Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2674973006: Move parsing of referrer policy header values to SecurityPolicy (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 AtomicString oldName = m_name; 110 AtomicString oldName = m_name;
111 m_name = value; 111 m_name = value;
112 if (m_name != oldName) 112 if (m_name != oldName)
113 frameOwnerPropertiesChanged(); 113 frameOwnerPropertiesChanged();
114 } else if (name == sandboxAttr) { 114 } else if (name == sandboxAttr) {
115 m_sandbox->setValue(value); 115 m_sandbox->setValue(value);
116 UseCounter::count(document(), UseCounter::SandboxViaIFrame); 116 UseCounter::count(document(), UseCounter::SandboxViaIFrame);
117 } else if (name == referrerpolicyAttr) { 117 } else if (name == referrerpolicyAttr) {
118 m_referrerPolicy = ReferrerPolicyDefault; 118 m_referrerPolicy = ReferrerPolicyDefault;
119 if (!value.isNull()) { 119 if (!value.isNull()) {
120 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( 120 SecurityPolicy::referrerPolicyFromString(
121 value, &m_referrerPolicy); 121 value, SupportReferrerPolicyLegacyKeywords, &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 frameOwnerPropertiesChanged(); 129 frameOwnerPropertiesChanged();
130 } else if (name == allowpaymentrequestAttr) { 130 } else if (name == allowpaymentrequestAttr) {
131 bool oldAllowPaymentRequest = m_allowPaymentRequest; 131 bool oldAllowPaymentRequest = m_allowPaymentRequest;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 bool HTMLIFrameElement::initializePermissionsAttribute() { 218 bool HTMLIFrameElement::initializePermissionsAttribute() {
219 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) 219 if (!RuntimeEnabledFeatures::permissionDelegationEnabled())
220 return false; 220 return false;
221 221
222 if (!m_permissions) 222 if (!m_permissions)
223 m_permissions = HTMLIFrameElementPermissions::create(this); 223 m_permissions = HTMLIFrameElementPermissions::create(this);
224 return true; 224 return true;
225 } 225 }
226 226
227 } // namespace blink 227 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLImageElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698