DescriptionOilpan: dispose an HTMLImportsController on document detach/removal.
When a Document becomes detached and removes its HTMLImportsController
supplement, this will synchronously remove the controller and all
its "HTML imports" owned objects, in a non-Oilpan setting. This cancels
all ongoing loaders and more (cf. HTMLImportsController::removeFrom().)
ResourceFetcher objects are moving to accurately detaching from their
FrameFetchContexts when their frames become detached from a document
(http://crbug.com/458222). This implies that we cannot have loader objects
active, as that may cause FrameFetchContexts to be accessed, but once
lacking a frame. The code is no longer that expecting that.
For HTML imports loaders, this is avoided by synchronously cancelling &
finalizing the loaders, but that doesn't happen for Oilpan. It needs to,
so an explicit dispose() step is introduced for HTMLImportsController
and all its associated objects.
R=haraken
BUG=340522
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192677
Patch Set 1 #
Total comments: 5
Patch Set 2 : No need to call dispose() when destructing HTMLImportsController #
Messages
Total messages: 13 (3 generated)
|