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

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: nit Created 4 years, 3 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/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..2a95f12209104cc723bfb69fd897e20e4b91be29
--- /dev/null
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html
@@ -0,0 +1,17 @@
+<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()">
+ Open download in new tab frome an iframe
+ </a><br>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698