| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 UseCounter::count(document(), UseCounter::SandboxViaIFrame); | 109 UseCounter::count(document(), UseCounter::SandboxViaIFrame); |
| 110 } else if (name == referrerpolicyAttr) { | 110 } else if (name == referrerpolicyAttr) { |
| 111 m_referrerPolicy = ReferrerPolicyDefault; | 111 m_referrerPolicy = ReferrerPolicyDefault; |
| 112 if (!value.isNull()) | 112 if (!value.isNull()) |
| 113 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(value, &m
_referrerPolicy); | 113 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(value, &m
_referrerPolicy); |
| 114 } else if (name == allowfullscreenAttr) { | 114 } else if (name == allowfullscreenAttr) { |
| 115 bool oldAllowFullscreen = m_allowFullscreen; | 115 bool oldAllowFullscreen = m_allowFullscreen; |
| 116 m_allowFullscreen = !value.isNull(); | 116 m_allowFullscreen = !value.isNull(); |
| 117 if (m_allowFullscreen != oldAllowFullscreen) | 117 if (m_allowFullscreen != oldAllowFullscreen) |
| 118 frameOwnerPropertiesChanged(); | 118 frameOwnerPropertiesChanged(); |
| 119 } else if (name == allowvrAttr) { |
| 120 bool oldAllowVR = m_allowVR; |
| 121 m_allowVR = !value.isNull(); |
| 122 if (m_allowVR != oldAllowVR) |
| 123 frameOwnerPropertiesChanged(); |
| 119 } else if (name == permissionsAttr) { | 124 } else if (name == permissionsAttr) { |
| 120 if (initializePermissionsAttribute()) | 125 if (initializePermissionsAttribute()) |
| 121 m_permissions->setValue(value); | 126 m_permissions->setValue(value); |
| 122 } else { | 127 } else { |
| 123 if (name == srcAttr) | 128 if (name == srcAttr) |
| 124 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol
dValue, value); | 129 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol
dValue, value); |
| 125 HTMLFrameElementBase::parseAttribute(name, oldValue, value); | 130 HTMLFrameElementBase::parseAttribute(name, oldValue, value); |
| 126 } | 131 } |
| 127 } | 132 } |
| 128 | 133 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 { | 193 { |
| 189 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) | 194 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) |
| 190 return false; | 195 return false; |
| 191 | 196 |
| 192 if (!m_permissions) | 197 if (!m_permissions) |
| 193 m_permissions = HTMLIFrameElementPermissions::create(this); | 198 m_permissions = HTMLIFrameElementPermissions::create(this); |
| 194 return true; | 199 return true; |
| 195 } | 200 } |
| 196 | 201 |
| 197 } // namespace blink | 202 } // namespace blink |
| OLD | NEW |