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

Unified Diff: third_party/WebKit/Source/core/dom/ScriptLoader.cpp

Issue 2644143005: Adjust the <script nonce>-hiding experiment (Closed)
Patch Set: webexposed Created 3 years, 11 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/dom/ScriptLoader.cpp
diff --git a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
index f4470c87cb2856a79bdd0af0be21ff90c050bd74..fb669a5ff353386268cfaf1e91e2a6f9c3a78a8e 100644
--- a/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
+++ b/third_party/WebKit/Source/core/dom/ScriptLoader.cpp
@@ -547,10 +547,6 @@ bool ScriptLoader::doExecuteScript(const ScriptSourceCode& sourceCode) {
contextDocument->popCurrentScript();
}
- // "Number used _once_", so, clear it out after execution.
- if (RuntimeEnabledFeatures::hideNonceContentAttributeEnabled())
- client()->clearNonce();
-
return true;
}

Powered by Google App Engine
This is Rietveld 408576698