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

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: refine comments and format 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..4021c88e9bc968416cfbe3762bdd128a9a96851f
--- /dev/null
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/iframe_retargeting.html
@@ -0,0 +1,15 @@
+<html>
+ <head>
+ <script>
+ function openInNewTab() {
+ var tab = window.open('navigation_observer_tests.html');
Charlie Reis 2016/11/03 22:58:45 What was the reason for changing this test?
Jialiu Lin 2016/11/04 05:38:01 Changed it back after using StartWatchingNewWebCon
+ tab.opener = null;
+ }
+ </script>
+ </head>
+ <body>
+ <a id="iframe_new_tab_navigation" href="#" onclick="openInNewTab(); return false;">
+ Open target url in new tab frome an iframe
+ </a><br>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698