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

Side by Side Diff: chrome/test/data/click-noreferrer-links.html

Issue 9325082: Create window in a new BrowsingInstance when opening a link in a new process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line break Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_manager_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 2
3 <head><title>Click noreferrer links</title> 3 <head><title>Click noreferrer links</title>
4 <script> 4 <script>
5 function simulateClick(target) { 5 function simulateClick(target) {
6 var evt = document.createEvent("MouseEvents"); 6 var evt = document.createEvent("MouseEvents");
7 evt.initMouseEvent("click", true, true, window, 7 evt.initMouseEvent("click", true, true, window,
8 0, 0, 0, 0, 0, false, false, 8 0, 0, 0, 0, 0, false, false,
9 false, false, 0, null); 9 false, false, 0, null);
10 10
11 return target.dispatchEvent(evt); 11 return target.dispatchEvent(evt);
12 } 12 }
13 13
14 function clickNoRefTargetBlankLink() { 14 function clickNoRefTargetBlankLink() {
15 return simulateClick(document.getElementById("noref_and_tblank_link")); 15 return simulateClick(document.getElementById("noref_and_tblank_link"));
16 } 16 }
17 17
18 function clickSameSiteNoRefTargetedLink() {
19 return simulateClick(
20 document.getElementById("samesite_noref_and_targeted_link"));
21 }
22
18 function clickTargetBlankLink() { 23 function clickTargetBlankLink() {
19 return simulateClick(document.getElementById("tblank_link")); 24 return simulateClick(document.getElementById("tblank_link"));
20 } 25 }
21 26
22 function clickNoRefLink() { 27 function clickNoRefLink() {
23 return simulateClick(document.getElementById("noref_link")); 28 return simulateClick(document.getElementById("noref_link"));
24 } 29 }
25 30
26 </script> 31 </script>
27 </head> 32 </head>
28 33
29 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html" 34 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html"
30 id="noref_and_tblank_link" rel="noreferrer" target="_blank"> 35 id="noref_and_tblank_link" rel="noreferrer" target="_blank">
31 rel=noreferrer and target=_blank</a><br> 36 rel=noreferrer and target=_blank</a><br>
37 <a href="title2.html" id="samesite_noref_and_targeted_link"
38 rel="noreferrer" target="foo">
39 same-site rel=noreferrer and target=foo</a><br>
32 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="tblank_link" 40 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="tblank_link"
33 target="_blank">target=_blank</a><br> 41 target="_blank">target=_blank</a><br>
34 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="noref_link" 42 <a href="https://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="noref_link"
35 rel="noreferrer">rel=noreferrer</a><br> 43 rel="noreferrer">rel=noreferrer</a><br>
36 44
37 </html> 45 </html>
38
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698