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

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: Rebased 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 30 matching lines...) Expand all
41 m_didLoadNonEmptyDocument(false), 41 m_didLoadNonEmptyDocument(false),
42 m_sandbox(HTMLIFrameElementSandbox::create(this)), 42 m_sandbox(HTMLIFrameElementSandbox::create(this)),
43 m_referrerPolicy(ReferrerPolicyDefault) {} 43 m_referrerPolicy(ReferrerPolicyDefault) {}
44 44
45 DEFINE_NODE_FACTORY(HTMLIFrameElement) 45 DEFINE_NODE_FACTORY(HTMLIFrameElement)
46 46
47 DEFINE_TRACE(HTMLIFrameElement) { 47 DEFINE_TRACE(HTMLIFrameElement) {
48 visitor->trace(m_sandbox); 48 visitor->trace(m_sandbox);
49 visitor->trace(m_permissions); 49 visitor->trace(m_permissions);
50 HTMLFrameElementBase::trace(visitor); 50 HTMLFrameElementBase::trace(visitor);
51 Supplementable<HTMLIFrameElement>::trace(visitor);
51 } 52 }
52 53
53 HTMLIFrameElement::~HTMLIFrameElement() {} 54 HTMLIFrameElement::~HTMLIFrameElement() {}
54 55
55 DOMTokenList* HTMLIFrameElement::sandbox() const { 56 DOMTokenList* HTMLIFrameElement::sandbox() const {
56 return m_sandbox.get(); 57 return m_sandbox.get();
57 } 58 }
58 59
59 DOMTokenList* HTMLIFrameElement::permissions() const { 60 DOMTokenList* HTMLIFrameElement::permissions() const {
60 if (!const_cast<HTMLIFrameElement*>(this)->initializePermissionsAttribute()) 61 if (!const_cast<HTMLIFrameElement*>(this)->initializePermissionsAttribute())
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 bool HTMLIFrameElement::initializePermissionsAttribute() { 207 bool HTMLIFrameElement::initializePermissionsAttribute() {
207 if (!RuntimeEnabledFeatures::permissionDelegationEnabled()) 208 if (!RuntimeEnabledFeatures::permissionDelegationEnabled())
208 return false; 209 return false;
209 210
210 if (!m_permissions) 211 if (!m_permissions)
211 m_permissions = HTMLIFrameElementPermissions::create(this); 212 m_permissions = HTMLIFrameElementPermissions::create(this);
212 return true; 213 return true;
213 } 214 }
214 215
215 } // namespace blink 216 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLIFrameElement.h ('k') | third_party/WebKit/Source/modules/modules_idl_files.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698