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

Unified Diff: chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.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/navigation_observer_multi_frame_tests.html
diff --git a/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html
new file mode 100644
index 0000000000000000000000000000000000000000..363ae10f78638aa0ca71026b608e7883a7e4cc38
--- /dev/null
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_multi_frame_tests.html
@@ -0,0 +1,19 @@
+<html>
+ <head>
+ <script>
+ // Identify the link by frame id and element id, click on it.
+ function clickLink(frameId, targetId) {
+ var iframe = document.getElementById(frameId);
+ var innerDoc = (iframe.contentDocument) ?
+ iframe.contentDocument : iframe.contentWindow.document;
+ var node = innerDoc.getElementById(targetId);
+ // Click and open link in the same tab.
+ node.click();
+ }
+ </script>
+ </head>
+ <body>
+ <iframe id="iframe1" src="iframe.html"></iframe><br>
+ <iframe id="iframe2" src="iframe_retargeting.html"></iframe>
+ </body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698