| 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 14b69808064f39d603d3a00775b54f99bfcfdb58..0ac2d2966cbac6d8d8208423e76f45e6e820f7f5 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
|
| @@ -125,8 +125,17 @@ void HTMLIFrameElement::parseAttribute(
|
| } else if (name == allowfullscreenAttr) {
|
| bool oldAllowFullscreen = m_allowFullscreen;
|
| m_allowFullscreen = !value.isNull();
|
| - if (m_allowFullscreen != oldAllowFullscreen)
|
| + if (m_allowFullscreen != oldAllowFullscreen) {
|
| + // TODO(iclelland): Remove this use counter when the allowfullscreen
|
| + // attribute state is snapshotted on document creation. crbug.com/682282
|
| + if (m_allowFullscreen && contentFrame()) {
|
| + UseCounter::count(
|
| + document(),
|
| + UseCounter::
|
| + HTMLIFrameElementAllowfullscreenAttributeSetAfterContentLoad);
|
| + }
|
| frameOwnerPropertiesChanged();
|
| + }
|
| } else if (name == allowpaymentrequestAttr) {
|
| bool oldAllowPaymentRequest = m_allowPaymentRequest;
|
| m_allowPaymentRequest = !value.isNull();
|
|
|