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

Unified Diff: chrome/test/data/ads_observer/docwrite_provisional_frame.html

Issue 2861433005: [PageLoadMetrics] Reenable AdsMetrics and handle case where navigation aborts (Closed)
Patch Set: Fix Created 3 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/ads_observer/docwrite_provisional_frame.html
diff --git a/chrome/test/data/ads_observer/docwrite_provisional_frame.html b/chrome/test/data/ads_observer/docwrite_provisional_frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..175386a91f86adb9af172c4488cc81437a462d89
--- /dev/null
+++ b/chrome/test/data/ads_observer/docwrite_provisional_frame.html
@@ -0,0 +1,15 @@
+<html>
+<iframe id="slow_frame" src="slow?100"></iframe>
+
+<script>
+ // slow takes 100 seconds to load, plenty of time to overwrite the
+ // provisional load.
+ let iframe = document.getElementById("slow_frame");
+ let doc = iframe.contentDocument;
+
+ doc.open();
+ doc.write('<html>Rewritten. <img src=pixel.png><img src=pixel2.png><img src=pixel3.png></html>');
Charlie Harrison 2017/05/04 20:21:14 Can you confirm that the images are successfully l
jkarlin 2017/05/05 19:56:28 Sure. Done.
+ doc.close();
+</script>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698