DescriptionFix the "inactive document" condition for HTMLMediaElement GC
document().isActive() is the wrong condition, and triggered an assert:
https://codereview.chromium.org/584633004
The assert was added in https://codereview.chromium.org/552303006
The original assumption was that !document().isActive() implies that
ActiveDOMObject::stop() has been called, but since a document is
inactive also in the beginning of its lifecycle, that is not true.
Instead use the internal m_active state to determine if stop(), which
calls m_asyncEventQueue->close(), has been called.
TEST=LayoutTests/media/gc-pending-event-inactive-document.html
This test hits the assert if the condition is !document().isActive().
BUG=400659
Patch Set 1 #
Total comments: 3
Messages
Total messages: 7 (1 generated)
|