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

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

Issue 1853543002: Add -ifsameorigin to autoplay experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autoplay
Patch Set: irebased. Created 4 years, 8 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
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 89cd250d948d49a1ce4876fe73ec39084239e422..6665e9c26e1b39439e3c62ddbd00909bf6e53555 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -314,6 +314,7 @@ public:
bool isLegacyViewportType() override;
PageVisibilityState pageVisibilityState() const override;
String autoplayExperimentMode() const override;
+ LocalFrame* frame() const override { return m_element->document().frame(); }
// LayoutObject
void setRequestPositionUpdates(bool) override;

Powered by Google App Engine
This is Rietveld 408576698