Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp

Issue 2450853005: Don't invoke load algorithm when a media element is moved into a new document.
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/media/video-move-to-new-document.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
index 20356848272833e76ea1b62a678b52ab3487c72d..20e5310cc7cbd444b2c1af637290f46280ad88b8 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -545,8 +545,8 @@ void HTMLMediaElement::didMoveToNewDocument(Document& oldDocument) {
// set. A proper fix would provide a mechanism to allow this object to
// refresh the MediaPlayer's LocalFrame and FrameLoader references on document
// changes so that playback can be resumed properly.
- m_ignorePreloadNone = false;
- invokeLoadAlgorithm();
+ // m_ignorePreloadNone = false;
+ // invokeLoadAlgorithm();
// Decrement the load event delay count on oldDocument now that
// m_webMediaPlayer has been destroyed and there is no risk of dispatching a
« no previous file with comments | « third_party/WebKit/LayoutTests/media/video-move-to-new-document.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698