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

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: comment. 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 87b1339ab97b91a034580ebb6d0f7f4f2684cb9f..96e09963e585bf0bd33ec4167121c625813b7251 100644
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
@@ -317,6 +317,13 @@ public:
PageVisibilityState pageVisibilityState() const override;
String autoplayExperimentMode() const override;
+ // Frame
+ bool isCrossOrigin() const override
+ {
+ const Frame* frame = m_element->document().frame();
+ return frame && frame->isCrossOrigin();
+ }
+
// LayoutObject
void setRequestPositionUpdates(bool) override;
IntRect absoluteBoundingBoxRect() const override;

Powered by Google App Engine
This is Rietveld 408576698