Chromium Code Reviews| 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(); |