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

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

Issue 2601303002: Wireup SafeBrowsingNavigationObserverManager to help PPAPI download attribution (Closed)
Patch Set: add check for rfh Created 3 years, 11 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/navigation_observer_tests.html
diff --git a/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_tests.html b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_tests.html
index bde0c0b89fc7714bd97110d4ef3e1a6bf44f6255..904b1c64015d59387e7c6881fb18df78bdd173c4 100644
--- a/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_tests.html
+++ b/chrome/test/data/safe_browsing/download_protection/navigation_observer/navigation_observer_tests.html
@@ -115,6 +115,17 @@
Open download in new tab with data url
</a><br>
+ <a id="new_tab_download_with_server_redirect" href="#" rel="noreferrer" target=_blank>
+ Open navigation in a new tab and immediately redirect to a download by server.
+ </a><br>
+
+ <script>
+ var request = location.origin + "/server-redirect?" + location.origin +
+ "/safe_browsing/download_protection/signed.exe"
+ document.getElementById("new_tab_download_with_server_redirect")
+ .setAttribute('href', request);
+ </script>
+
<a id="html5_file_api" href="" onclick="downloadViaFileApi()">
Download via HTML5 file system API
</a><br>

Powered by Google App Engine
This is Rietveld 408576698