Title: [253300] trunk/Source/WebCore
- Revision
- 253300
- Author
- [email protected]
- Date
- 2019-12-09 13:42:32 -0800 (Mon, 09 Dec 2019)
Log Message
Stop active DOM objects in removedLastRef
https://bugs.webkit.org/show_bug.cgi?id=204975
Reviewed by Antti Koivisto.
Always stop active DOM objects before reaching the destructor.
* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::removedLastRef):
(WebCore::Document::commonTeardown):
(WebCore::Document::prepareForDestruction):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (253299 => 253300)
--- trunk/Source/WebCore/ChangeLog 2019-12-09 21:12:17 UTC (rev 253299)
+++ trunk/Source/WebCore/ChangeLog 2019-12-09 21:42:32 UTC (rev 253300)
@@ -1,3 +1,18 @@
+2019-12-06 Ryosuke Niwa <[email protected]>
+
+ Stop active DOM objects in removedLastRef
+ https://bugs.webkit.org/show_bug.cgi?id=204975
+
+ Reviewed by Antti Koivisto.
+
+ Always stop active DOM objects before reaching the destructor.
+
+ * dom/Document.cpp:
+ (WebCore::Document::~Document):
+ (WebCore::Document::removedLastRef):
+ (WebCore::Document::commonTeardown):
+ (WebCore::Document::prepareForDestruction):
+
2019-12-09 Said Abou-Hallawa <[email protected]>
Throttling requestAnimationFrame should be controlled by RenderingUpdateScheduler
Modified: trunk/Source/WebCore/dom/Document.cpp (253299 => 253300)
--- trunk/Source/WebCore/dom/Document.cpp 2019-12-09 21:12:17 UTC (rev 253299)
+++ trunk/Source/WebCore/dom/Document.cpp 2019-12-09 21:42:32 UTC (rev 253300)
@@ -627,6 +627,8 @@
Document::~Document()
{
+ ASSERT(activeDOMObjectsAreStopped());
+
if (m_logger)
m_logger->removeObserver(*this);
@@ -756,6 +758,7 @@
#endif
decrementReferencingNodeCount();
} else {
+ stopActiveDOMObjects();
#ifndef NDEBUG
m_inRemovedLastRefFunction = false;
m_deletionHasBegun = true;
@@ -766,6 +769,12 @@
void Document::commonTeardown()
{
+ stopActiveDOMObjects();
+
+#if ENABLE(FULLSCREEN_API)
+ m_fullscreenManager->emptyEventQueue();
+#endif
+
if (svgExtensions())
accessSVGExtensions().pauseAnimations();
@@ -2530,11 +2539,6 @@
InspectorInstrumentation::documentDetached(*this);
- stopActiveDOMObjects();
-#if ENABLE(FULLSCREEN_API)
- m_fullscreenManager->emptyEventQueue();
-#endif
-
commonTeardown();
#if ENABLE(TOUCH_EVENTS)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes