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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2191443002: Ensure the permissions DOMTokenList is initialized before access (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Ensure the permissions DOMTokenList is initialized before access Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index a68f5d7774d4e23cd38ff2668fc0550fc47c248b..86f95d4515935500e6d51a7c09d9b3f1b2ea6d82 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -63,6 +63,8 @@ DOMTokenList* HTMLIFrameElement::sandbox() const
DOMTokenList* HTMLIFrameElement::permissions() const
{
+ if (!const_cast<HTMLIFrameElement*>(this)->initializePermissionsAttribute())
+ return nullptr;
return m_permissions.get();
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/HTMLIFrameElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698