Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. |
| 7 * Copyright (C) 2009 Ericsson AB. All rights reserved. | 7 * Copyright (C) 2009 Ericsson AB. All rights reserved. |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 118 m_referrerPolicy = ReferrerPolicyDefault; | 118 m_referrerPolicy = ReferrerPolicyDefault; |
| 119 if (!value.isNull()) { | 119 if (!value.isNull()) { |
| 120 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( | 120 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( |
| 121 value, &m_referrerPolicy); | 121 value, &m_referrerPolicy); |
| 122 UseCounter::count(document(), | 122 UseCounter::count(document(), |
| 123 UseCounter::HTMLIFrameElementReferrerPolicyAttribute); | 123 UseCounter::HTMLIFrameElementReferrerPolicyAttribute); |
| 124 } | 124 } |
| 125 } else if (name == allowfullscreenAttr) { | 125 } else if (name == allowfullscreenAttr) { |
| 126 bool oldAllowFullscreen = m_allowFullscreen; | 126 bool oldAllowFullscreen = m_allowFullscreen; |
| 127 m_allowFullscreen = !value.isNull(); | 127 m_allowFullscreen = !value.isNull(); |
| 128 if (m_allowFullscreen != oldAllowFullscreen) | 128 if (m_allowFullscreen != oldAllowFullscreen) { |
| 129 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
| |
| 130 UseCounter::count( | |
| 131 document(), UseCounter::HTMLIFrameElementAllowfullscreenAttribute); | |
|
foolip
2017/02/05 23:22:08
Can you append "ChangedAfterContentLoad" or someth
iclelland
2017/02/06 20:15:25
Done.
| |
| 132 } | |
| 129 frameOwnerPropertiesChanged(); | 133 frameOwnerPropertiesChanged(); |
| 134 } | |
| 130 } else if (name == allowpaymentrequestAttr) { | 135 } else if (name == allowpaymentrequestAttr) { |
| 131 bool oldAllowPaymentRequest = m_allowPaymentRequest; | 136 bool oldAllowPaymentRequest = m_allowPaymentRequest; |
| 132 m_allowPaymentRequest = !value.isNull(); | 137 m_allowPaymentRequest = !value.isNull(); |
| 133 if (m_allowPaymentRequest != oldAllowPaymentRequest) | 138 if (m_allowPaymentRequest != oldAllowPaymentRequest) |
| 134 frameOwnerPropertiesChanged(); | 139 frameOwnerPropertiesChanged(); |
| 135 } else if (name == permissionsAttr) { | 140 } else if (name == permissionsAttr) { |
| 136 if (initializePermissionsAttribute()) | 141 if (initializePermissionsAttribute()) |
| 137 m_permissions->setValue(value); | 142 m_permissions->setValue(value); |
| 138 } else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() && | 143 } else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() && |
| 139 name == cspAttr) { | 144 name == cspAttr) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 218 bool HTMLIFrameElement::initializePermissionsAttribute() { | 223 bool HTMLIFrameElement::initializePermissionsAttribute() { |
| 219 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) | 224 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) |
| 220 return false; | 225 return false; |
| 221 | 226 |
| 222 if (!m_permissions) | 227 if (!m_permissions) |
| 223 m_permissions = HTMLIFrameElementPermissions::create(this); | 228 m_permissions = HTMLIFrameElementPermissions::create(this); |
| 224 return true; | 229 return true; |
| 225 } | 230 } |
| 226 | 231 |
| 227 } // namespace blink | 232 } // namespace blink |
| OLD | NEW |