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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 HTMLDocument& document = toHTMLDocument(this->document()); | 106 HTMLDocument& document = toHTMLDocument(this->document()); |
107 document.removeExtraNamedItem(m_name); | 107 document.removeExtraNamedItem(m_name); |
108 document.addExtraNamedItem(value); | 108 document.addExtraNamedItem(value); |
109 } | 109 } |
110 m_name = value; | 110 m_name = value; |
111 } else if (name == sandboxAttr) { | 111 } else if (name == sandboxAttr) { |
112 m_sandbox->setValue(value); | 112 m_sandbox->setValue(value); |
113 UseCounter::count(document(), UseCounter::SandboxViaIFrame); | 113 UseCounter::count(document(), UseCounter::SandboxViaIFrame); |
114 } else if (name == referrerpolicyAttr) { | 114 } else if (name == referrerpolicyAttr) { |
115 m_referrerPolicy = ReferrerPolicyDefault; | 115 m_referrerPolicy = ReferrerPolicyDefault; |
116 if (!value.isNull()) | 116 if (!value.isNull()) { |
117 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( | 117 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( |
118 value, &m_referrerPolicy); | 118 value, &m_referrerPolicy); |
| 119 UseCounter::count(document(), |
| 120 UseCounter::HTMLIFrameElementReferrerPolicyAttribute); |
| 121 } |
119 } else if (name == allowfullscreenAttr) { | 122 } else if (name == allowfullscreenAttr) { |
120 bool oldAllowFullscreen = m_allowFullscreen; | 123 bool oldAllowFullscreen = m_allowFullscreen; |
121 m_allowFullscreen = !value.isNull(); | 124 m_allowFullscreen = !value.isNull(); |
122 if (m_allowFullscreen != oldAllowFullscreen) | 125 if (m_allowFullscreen != oldAllowFullscreen) |
123 frameOwnerPropertiesChanged(); | 126 frameOwnerPropertiesChanged(); |
124 } else if (name == allowpaymentrequestAttr) { | 127 } else if (name == allowpaymentrequestAttr) { |
125 bool oldAllowPaymentRequest = m_allowPaymentRequest; | 128 bool oldAllowPaymentRequest = m_allowPaymentRequest; |
126 m_allowPaymentRequest = !value.isNull(); | 129 m_allowPaymentRequest = !value.isNull(); |
127 if (m_allowPaymentRequest != oldAllowPaymentRequest) | 130 if (m_allowPaymentRequest != oldAllowPaymentRequest) |
128 frameOwnerPropertiesChanged(); | 131 frameOwnerPropertiesChanged(); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 bool HTMLIFrameElement::initializePermissionsAttribute() { | 215 bool HTMLIFrameElement::initializePermissionsAttribute() { |
213 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) | 216 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) |
214 return false; | 217 return false; |
215 | 218 |
216 if (!m_permissions) | 219 if (!m_permissions) |
217 m_permissions = HTMLIFrameElementPermissions::create(this); | 220 m_permissions = HTMLIFrameElementPermissions::create(this); |
218 return true; | 221 return true; |
219 } | 222 } |
220 | 223 |
221 } // namespace blink | 224 } // namespace blink |
OLD | NEW |