| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 document.removeExtraNamedItem(m_name); | 103 document.removeExtraNamedItem(m_name); |
| 104 document.addExtraNamedItem(value); | 104 document.addExtraNamedItem(value); |
| 105 } | 105 } |
| 106 m_name = value; | 106 m_name = value; |
| 107 } else if (name == sandboxAttr) { | 107 } else if (name == sandboxAttr) { |
| 108 m_sandbox->setValue(value); | 108 m_sandbox->setValue(value); |
| 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::referrerPolicyFromString(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 == permissionsAttr) { | 119 } else if (name == permissionsAttr) { |
| 120 if (initializePermissionsAttribute()) | 120 if (initializePermissionsAttribute()) |
| 121 m_permissions->setValue(value); | 121 m_permissions->setValue(value); |
| 122 } else { | 122 } else { |
| 123 if (name == srcAttr) | 123 if (name == srcAttr) |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 { | 188 { |
| 189 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) | 189 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) |
| 190 return false; | 190 return false; |
| 191 | 191 |
| 192 if (!m_permissions) | 192 if (!m_permissions) |
| 193 m_permissions = HTMLIFrameElementPermissions::create(this); | 193 m_permissions = HTMLIFrameElementPermissions::create(this); |
| 194 return true; | 194 return true; |
| 195 } | 195 } |
| 196 | 196 |
| 197 } // namespace blink | 197 } // namespace blink |
| OLD | NEW |