Description[wip] Add some more state to RenderViewHost's lifetime.
Keep track of in-flight copy-requests for a RenderViewHost. If a RenderViewHost
has pending copy-requests, then:
* Do not decrement active-view-count on the SiteInstance when the
RenderViewHost becomes inactive.
* Hold back sending was-swapped-out IPC to the renderer.
* Do not run the shutdown-on-swap callback.
When all the copy-requests are completed in the RenderViewHost:
* Check if the current state of the RenderViewHost is not active anymore.
If it's not active, then send the was-swapped-out message. This should
work because new copy-requests are not made if the RenderViewHost isn't
in an active state.
* If the current state is not active, then also decrement the active-view
count on the SiteInstance.
* If the state is in a pending-shutdown state, then run the callback.
BUG=340682
Patch Set 1 #
Total comments: 2
Patch Set 2 : tot-merge-r254378 #Patch Set 3 : fix-moar-tests? #Patch Set 4 : moar #
Messages
Total messages: 5 (0 generated)
|