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

Unified Diff: chrome/test/data/safe_browsing/malware_delayed_loads.html

Issue 1509073002: Fixes for Safe Browsing with unrelated pending navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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/safe_browsing/malware_delayed_loads.html
diff --git a/chrome/test/data/safe_browsing/malware_delayed_loads.html b/chrome/test/data/safe_browsing/malware_delayed_loads.html
new file mode 100644
index 0000000000000000000000000000000000000000..9ecf26db6a4fe9f4e7e7d65525ad72cf3097d1a3
--- /dev/null
+++ b/chrome/test/data/safe_browsing/malware_delayed_loads.html
@@ -0,0 +1,17 @@
+<html>
+<script>
+function loadMalwareImage() {
+ setTimeout(function() {
+ var img = new Image();
+ img.src = "malware_image.png";
+ document.body.appendChild(img);
+ }, 1);
+}
+function navigateAndLoadMalwareImage() {
+ loadMalwareImage();
+ window.location.href="/never_completes";
+}
+</script>
+<body>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698