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

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

Issue 2672823006: Add UseCounter to see how often the "allowfullscreen" attribute is modified. (Closed)
Patch Set: Created 3 years, 10 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 | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index 12457460b7b20b3f17c50c8fe861b380e63af822..065711d074fdcca9c5d10b6da8559cc8b440006e 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -125,8 +125,13 @@ void HTMLIFrameElement::parseAttribute(
} else if (name == allowfullscreenAttr) {
bool oldAllowFullscreen = m_allowFullscreen;
m_allowFullscreen = !value.isNull();
- if (m_allowFullscreen != oldAllowFullscreen)
+ if (m_allowFullscreen != oldAllowFullscreen) {
+ if (contentFrame()) {
foolip 2017/02/05 23:22:08 I believe this means roughly "has this iframe load
iclelland 2017/02/06 20:15:25 Sandbox attributes are snapshotted in |WebLocalFra
+ UseCounter::count(
+ document(), UseCounter::HTMLIFrameElementAllowfullscreenAttribute);
foolip 2017/02/05 23:22:08 Can you append "ChangedAfterContentLoad" or someth
iclelland 2017/02/06 20:15:25 Done.
+ }
frameOwnerPropertiesChanged();
+ }
} else if (name == allowpaymentrequestAttr) {
bool oldAllowPaymentRequest = m_allowPaymentRequest;
m_allowPaymentRequest = !value.isNull();
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698