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

Unified Diff: chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html

Issue 2302913003: Add SafeBrowsingNavigationObserver to listen to navigation events (Closed)
Patch Set: resolve final nit Created 4 years, 1 month 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/download_protection/navigation_observer/iframe_retargeting.html
diff --git a/chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html b/chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html
new file mode 100644
index 0000000000000000000000000000000000000000..80eae40c0c51463018401257fb5f25283f26e405
--- /dev/null
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <script>
+ function downloadInNewTab() {
+ var tab = window.open('');
+ tab.opener = null;
+ tab.document.write(
+ '<META HTTP-EQUIV="refresh" content="0; url=../signed.exe">');
+ tab.document.close();
+ }
+ </script>
+ </head>
+ <body>
+ <a id="iframe_new_tab_download" href="#" onclick="downloadInNewTab(); return false;">
+ Open download in new tab frome an iframe
+ </a><br>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698