DescriptionOilpan: Remove ~HTMLMediaElement document access when the document is destructed.
The document() accessor on all Nodes end up touching the document. The
reason is that the document accessor gets the document from the
TreeScope which is often the document itself. Therefore, we cannot
use the document() accessor in Node destructors. Fortunately, there
is a more direct way of checking if the Document has been destructed.
HTMLMediaElement is an ActiveDOMObject which is a
ContextLifecycleObserver. Therefore, ActiveDOMObject::executionContext
will tell us if the Document is still alive so that we can access it.
R=haraken@chromium.org, oilpan-reviews@chromium.org, sigbjornf@chromium.org, zerny@chromium.org
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175465
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove braces. #Messages
Total messages: 8 (0 generated)
|