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

Unified Diff: Source/core/dom/FullscreenElementStack.cpp

Issue 399933002: Add UseCounter for <iframe allowfullscreen> exemption for <video> (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/FullscreenElementStack.cpp
diff --git a/Source/core/dom/FullscreenElementStack.cpp b/Source/core/dom/FullscreenElementStack.cpp
index 85f472d75043a36ad16d6f6c98ad334cfa966a02..6d7efb50345a1d6903cdb3969e2b95bd07cb443b 100644
--- a/Source/core/dom/FullscreenElementStack.cpp
+++ b/Source/core/dom/FullscreenElementStack.cpp
@@ -167,8 +167,12 @@ void FullscreenElementStack::requestFullScreenForElement(Element& element, Reque
// The context object's node document, or an ancestor browsing context's document does not have
// the fullscreen enabled flag set.
- if (requestType != PrefixedVideoRequest && !fullscreenIsAllowedForAllOwners(element.document()))
- break;
+ if (!fullscreenIsAllowedForAllOwners(element.document())) {
+ if (requestType == PrefixedVideoRequest)
+ UseCounter::count(element.document(), UseCounter::VideoFullscreenAllowedExemption);
+ else
+ break;
+ }
// The context object's node document fullscreen element stack is not empty and its top element
// is not an ancestor of the context object. (NOTE: Ignore this requirement if the request was
« no previous file with comments | « no previous file | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698