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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html

Issue 1868413002: Add about:flags support for doc.write script blocking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 8 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/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html
index c9b719952229fc30d9714f7efb4c79cc59a1b021..355ba97e3bea70d945a2366db0ce7ad2a1b25ab6 100644
--- a/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html
+++ b/third_party/WebKit/LayoutTests/http/tests/loading/doc-write-sync-third-party-script-block.html
@@ -2,9 +2,9 @@
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
- var sameOrigin = 'http://127.0.0.1:8000'
- var crossOrigin = 'http://localhost:8000'
- var filePath = '/loading/resources/js-loaded.js'
+ var sameOrigin = 'http://127.0.0.1:8000';
+ var crossOrigin = 'http://localhost:8000';
+ var filePath = '/loading/resources/js-loaded.js';
var jsLoaded = false;
var loadSuccess = false;
@@ -17,18 +17,17 @@
assert_true(jsLoaded);
assert_true(loadSuccess);
}, "Blocking of scripts doesn't come into effect since feature is disabled");
-
</script>
<script>
if (window.internals) {
- internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrame(true);
+ internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(true);
internals.setNetworkStateNotifierTestOnly(true);
internals.setNetworkConnectionInfo('cellular2g', 1.0);
internals.evictAllResources();
// Reset the state of the singleton network state notifier.
window.addEventListener('beforeunload', function() {
- internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrame(false);
+ internals.settings.setDisallowFetchForDocWrittenScriptsInMainFrameOnSlowConnections(false);
internals.setNetworkStateNotifierTestOnly(false);
}, false);
}
@@ -59,7 +58,6 @@
assert_true(jsLoaded);
assert_true(loadSuccess);
}, "cross-origin script not blocked since it is cached");
-
</script>
<script>
jsLoaded = false;

Powered by Google App Engine
This is Rietveld 408576698