Title: [165820] trunk/Source/WebCore
- Revision
- 165820
- Author
- [email protected]
- Date
- 2014-03-18 11:05:14 -0700 (Tue, 18 Mar 2014)
Log Message
<media> elements are not properly moved to new documents' visibility callback lists
https://bugs.webkit.org/show_bug.cgi?id=127711
Reviewed by David Kilzer.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::didMoveToNewDocument):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (165819 => 165820)
--- trunk/Source/WebCore/ChangeLog 2014-03-18 18:02:45 UTC (rev 165819)
+++ trunk/Source/WebCore/ChangeLog 2014-03-18 18:05:14 UTC (rev 165820)
@@ -1,3 +1,13 @@
+2014-03-17 Jeffrey Pfau <[email protected]>
+
+ <media> elements are not properly moved to new documents' visibility callback lists
+ https://bugs.webkit.org/show_bug.cgi?id=127711
+
+ Reviewed by David Kilzer.
+
+ * html/HTMLMediaElement.cpp:
+ (WebCore::HTMLMediaElement::didMoveToNewDocument):
+
2014-03-18 Filip Pizlo <[email protected]>
More FTL enabling.
Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (165819 => 165820)
--- trunk/Source/WebCore/html/HTMLMediaElement.cpp 2014-03-18 18:02:45 UTC (rev 165819)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp 2014-03-18 18:05:14 UTC (rev 165820)
@@ -467,10 +467,17 @@
}
if (oldDocument) {
+#if ENABLE(PAGE_VISIBILITY_API)
+ oldDocument->unregisterForVisibilityStateChangedCallbacks(this);
+#endif
oldDocument->unregisterForMediaVolumeCallbacks(this);
removeElementFromDocumentMap(*this, *oldDocument);
}
+#if ENABLE(PAGE_VISIBILITY_API)
+ document().registerForVisibilityStateChangedCallbacks(this);
+#endif
+
document().registerForMediaVolumeCallbacks(this);
addElementToDocumentMap(*this, document());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes