summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h')
-rw-r--r--chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h b/chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h
index 3ce50fb760b..c39178808b6 100644
--- a/chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h
+++ b/chromium/third_party/WebKit/Source/core/html/media/HTMLMediaElement.h
@@ -258,8 +258,8 @@ class CORE_EXPORT HTMLMediaElement
using HTMLElement::GetExecutionContext;
bool HasSingleSecurityOrigin() const {
- return GetWebMediaPlayer() &&
- GetWebMediaPlayer()->HasSingleSecurityOrigin();
+ return GetWebMediaPlayer() ? GetWebMediaPlayer()->HasSingleSecurityOrigin()
+ : true;
}
bool IsFullscreen() const;
@@ -342,6 +342,12 @@ class CORE_EXPORT HTMLMediaElement
InsertionNotificationRequest InsertedInto(ContainerNode*) override;
void RemovedFrom(ContainerNode*) override;
+ // Return true if media is cross origin from the current document
+ // and has not passed a cors check, meaning that we should return
+ // as little information as possible about it.
+
+ bool MediaShouldBeOpaque() const;
+
void DidMoveToNewDocument(Document& old_document) override;
virtual KURL PosterImageURL() const { return KURL(); }