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

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: rebased. 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 a23c6a4f7feeac806f2ce01e6a46fe57afe6bc7a..72f961e78ff848de9236da74a9b8803979ef423e 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -316,6 +316,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