DescriptionRemove all event listeners during window's frame destruction step.
Perform the removal of LocalDOMWindow event listeners as part of it being
informed of LocalFrame's destruction (via frameDestroyed()). This is preferable
to waiting until LocalDOMWindow's destructor is run, as it makes the timing of it
independent of when that destructor actually gets to run.
With Oilpan, it is possible that a frame and its window will be swept out without
an explicit frame destruction notification. In that event, a prefinalizing
action is run to take care of the removal.
Additionally, this CL removes an explicit call to reset() from the LocalDOMWindow
destructor. We have since r182337 been asserting that the reset() has already
occurred, without it ever triggering. Time to remove the redundant reset() call.
R=haraken
BUG=340522
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192149
Patch Set 1 #Patch Set 2 : Fix detached unregistration #Patch Set 3 : minor tidying #
Total comments: 5
Patch Set 4 : Improve LocalDOMWindow::dispose() comment a bit #
Messages
Total messages: 9 (3 generated)
|