Chromium Code Reviews| 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() { |
|
Charlie Reis
2016/10/28 23:36:09
nit: Fix indent.
Jialiu Lin
2016/10/29 00:45:34
Done.
|
| + 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> |