DescriptionPending scripts can cause disposed documents to leak.
The script runner of a document may still be holding pending scripts
when the document is disposed (e.g. due to navigation). The script
runner, and thus the pending scripts, is cleared in the destructor of
the document. However, the pending scripts keep a reference to the
script element they belong to. The script element in turn, keeps a
guard ref to the document, so the document will never be deleted.
Clearing the script runner in dispose clears the pending scripts and
breaks the reference cycle so that document can be deleted.
BUG=534844
R=sigbjornf@opera.com
Committed: https://crrev.com/da753c3cf6f742b968a9b72d27fdc9baaf8d739b
Cr-Commit-Position: refs/heads/master@{#350664}
Patch Set 1 #
Messages
Total messages: 6 (1 generated)
|