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

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

Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests. (Closed)
Patch Set: Created 4 years, 2 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 } else if (name == referrerpolicyAttr) { 111 } else if (name == referrerpolicyAttr) {
112 m_referrerPolicy = ReferrerPolicyDefault; 112 m_referrerPolicy = ReferrerPolicyDefault;
113 if (!value.isNull()) 113 if (!value.isNull())
114 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords( 114 SecurityPolicy::referrerPolicyFromStringWithLegacyKeywords(
115 value, &m_referrerPolicy); 115 value, &m_referrerPolicy);
116 } else if (name == allowfullscreenAttr) { 116 } else if (name == allowfullscreenAttr) {
117 bool oldAllowFullscreen = m_allowFullscreen; 117 bool oldAllowFullscreen = m_allowFullscreen;
118 m_allowFullscreen = !value.isNull(); 118 m_allowFullscreen = !value.isNull();
119 if (m_allowFullscreen != oldAllowFullscreen) 119 if (m_allowFullscreen != oldAllowFullscreen)
120 frameOwnerPropertiesChanged(); 120 frameOwnerPropertiesChanged();
121 } else if (name == allowpaymentrequestAttr) {
122 bool oldAllowPaymentRequest = m_allowPaymentRequest;
123 m_allowPaymentRequest = !value.isNull();
124 if (m_allowPaymentRequest != oldAllowPaymentRequest)
125 frameOwnerPropertiesChanged();
121 } else if (name == permissionsAttr) { 126 } else if (name == permissionsAttr) {
122 if (initializePermissionsAttribute()) 127 if (initializePermissionsAttribute())
123 m_permissions->setValue(value); 128 m_permissions->setValue(value);
124 } else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() && 129 } else if (RuntimeEnabledFeatures::embedderCSPEnforcementEnabled() &&
125 name == cspAttr) { 130 name == cspAttr) {
126 AtomicString oldCSP = m_csp; 131 AtomicString oldCSP = m_csp;
127 m_csp = value; 132 m_csp = value;
128 if (m_csp != oldCSP) 133 if (m_csp != oldCSP)
129 frameOwnerPropertiesChanged(); 134 frameOwnerPropertiesChanged();
130 } else { 135 } else {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool HTMLIFrameElement::initializePermissionsAttribute() { 202 bool HTMLIFrameElement::initializePermissionsAttribute() {
198 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) 203 if (!RuntimeEnabledFeatures::permissionDelegationEnabled())
199 return false; 204 return false;
200 205
201 if (!m_permissions) 206 if (!m_permissions)
202 m_permissions = HTMLIFrameElementPermissions::create(this); 207 m_permissions = HTMLIFrameElementPermissions::create(this);
203 return true; 208 return true;
204 } 209 }
205 210
206 } // namespace blink 211 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698