DescriptionCleanly detach XHR and other pending loader clients from Inspector.
If the XHR object is finalized without first being notified of
ExecutionContext destruction, its prefinalizer is responsible for making
up the difference and behave as if that did.
Do so by delegating to contextDestroyed(); this takes care of
releasing its resources promptly, along with unregistering as
a loader client (with its associated async loader and Inspector.)
Also make other Inspector loading clients cleanly detach when
finalized; prevents Inspector from keeping dead raw pointers to them.
R=yhirano,haraken
BUG=667254
Review-Url: https://codereview.chromium.org/2649323005
Cr-Commit-Position: refs/heads/master@{#446660}
Committed: https://chromium.googlesource.com/chromium/src/+/ef8b2502b396988865f9d4754748a3767a40160e
Patch Set 1 #Patch Set 2 : detach all loader clients from inspector #
Total comments: 6
Patch Set 3 : clarifications #
Total comments: 2
Patch Set 4 : unregister EventSource early #
Total comments: 2
Patch Set 5 : rebalance XHR disposal steps #Messages
Total messages: 30 (15 generated)
|