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

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

Issue 2971683003: Change code to make jumbo exceptions unnecessary in core/html (Closed)
Patch Set: Removed the undef instead. Created 3 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
Index: third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp
index 3885b4453f6992fffef818f10b9eb94c61d28fb7..da28648ccafc2d19f2b139cdc7215de3c59da075 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementSandbox.cpp
@@ -10,17 +10,17 @@ namespace blink {
namespace {
-const char* const kSupportedTokens[] = {"allow-forms",
- "allow-modals",
- "allow-pointer-lock",
- "allow-popups",
- "allow-popups-to-escape-sandbox",
- "allow-same-origin",
- "allow-scripts",
- "allow-top-navigation"};
+const char* const kSupportedSandboxTokens[] = {"allow-forms",
+ "allow-modals",
+ "allow-pointer-lock",
+ "allow-popups",
+ "allow-popups-to-escape-sandbox",
+ "allow-same-origin",
+ "allow-scripts",
+ "allow-top-navigation"};
bool IsTokenSupported(const AtomicString& token) {
- for (const char* supported_token : kSupportedTokens) {
+ for (const char* supported_token : kSupportedSandboxTokens) {
if (token == supported_token)
return true;
}
« no previous file with comments | « third_party/WebKit/Source/core/html/BUILD.gn ('k') | third_party/WebKit/Source/core/html/parser/HTMLTokenizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698