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

Unified Diff: chrome/test/data/page_load_metrics/document_write_async_script.html

Issue 1918373002: Metrics for document.write script blocking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bryan's comment: Returning disallowFetch from shouldDisallowFetchForMainFrameScript Created 4 years, 7 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: chrome/test/data/page_load_metrics/document_write_async_script.html
diff --git a/chrome/test/data/page_load_metrics/document_write_async_script.html b/chrome/test/data/page_load_metrics/document_write_async_script.html
new file mode 100644
index 0000000000000000000000000000000000000000..00cc887495f423262c2522fbcb57a85fdc3c3c18
--- /dev/null
+++ b/chrome/test/data/page_load_metrics/document_write_async_script.html
@@ -0,0 +1,12 @@
+<html>
+<script>
+ (function() {
+ var crossOrigin = 'http://localhost:8000';
+ var filePath = "/page_load_metrics/empty.js";
+ var src = crossOrigin + filePath;
+ document.write('<scr' + 'ipt src="' + src + ' async"></scr' + 'ipt>');
+ })();
+</script>
+<body>
+ This page uses document.write to load external js.
+</body>

Powered by Google App Engine
This is Rietveld 408576698