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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index 5f54fea087fcdf6e7c963c180be34821dfd8b1f3..91348bc09cc6777651b1e593604eae86b89a6471 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -40,6 +40,7 @@ class RemoteFrameOwner final
int marginWidth() const override { return m_marginWidth; }
int marginHeight() const override { return m_marginHeight; }
bool allowFullscreen() const override { return m_allowFullscreen; }
+ bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
const WebVector<WebPermissionType>& delegatedPermissions() const override {
return m_delegatedPermissions;
}
@@ -50,6 +51,9 @@ class RemoteFrameOwner final
void setAllowFullscreen(bool allowFullscreen) {
m_allowFullscreen = allowFullscreen;
}
+ void setAllowPaymentRequest(bool allowPaymentRequest) {
+ m_allowPaymentRequest = allowPaymentRequest;
+ }
void setDelegatedpermissions(
const WebVector<WebPermissionType>& delegatedPermissions) {
m_delegatedPermissions = delegatedPermissions;
@@ -71,6 +75,7 @@ class RemoteFrameOwner final
int m_marginWidth;
int m_marginHeight;
bool m_allowFullscreen;
+ bool m_allowPaymentRequest;
WebVector<WebPermissionType> m_delegatedPermissions;
};

Powered by Google App Engine
This is Rietveld 408576698