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

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

Issue 743773003: OOPIF: Data URLs are now rendered in the renderer that initiated the navigation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing android compile Created 6 years 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
« no previous file with comments | « content/shell/browser/shell.cc ('k') | no next file » | 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
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 function clickTargetBlankLink() { 31 function clickTargetBlankLink() {
32 return simulateClick(document.getElementById("tblank_link")); 32 return simulateClick(document.getElementById("tblank_link"));
33 } 33 }
34 34
35 function clickNoRefLink() { 35 function clickNoRefLink() {
36 return simulateClick(document.getElementById("noref_link")); 36 return simulateClick(document.getElementById("noref_link"));
37 } 37 }
38 38
39 function clickBlankTargetedLink() {
40 return simulateClick(document.getElementById("blank_targeted_link"));
41 }
42
39 function testScriptAccessToWindow() { 43 function testScriptAccessToWindow() {
40 // Grab a reference to the existing foo window and access its location. 44 // Grab a reference to the existing foo window and access its location.
41 try { 45 try {
42 var w = window.open("", "foo"); 46 var w = window.open("", "foo");
43 var url = w.location.href; 47 var url = w.location.href;
44 return url != undefined; 48 return url != undefined;
45 } catch (e) { 49 } catch (e) {
46 return false; 50 return false;
47 } 51 }
48 } 52 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 rel="noreferrer" target="foo"> 93 rel="noreferrer" target="foo">
90 same-site rel=noreferrer and target=foo</a><br> 94 same-site rel=noreferrer and target=foo</a><br>
91 <a href="navigate_opener.html" id="samesite_targeted_link" target="foo"> 95 <a href="navigate_opener.html" id="samesite_targeted_link" target="foo">
92 same-site target=foo</a><br> 96 same-site target=foo</a><br>
93 <a href="title2.html" id="samesite_tblank_link" target="_blank"> 97 <a href="title2.html" id="samesite_tblank_link" target="_blank">
94 same-site target=_blank</a><br> 98 same-site target=_blank</a><br>
95 <a href="http://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="tblank_link" 99 <a href="http://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="tblank_link"
96 target="_blank">target=_blank</a><br> 100 target="_blank">target=_blank</a><br>
97 <a href="http://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="noref_link" 101 <a href="http://REPLACE_WITH_HOST_AND_PORT/files/title2.html" id="noref_link"
98 rel="noreferrer">rel=noreferrer</a><br> 102 rel="noreferrer">rel=noreferrer</a><br>
103 <a href="about:blank" id="blank_targeted_link" target="foo">
104 blank_targeted_link=foo</a><br>
99 105
100 <iframe id="frame1" src="frame_tree/1-1.html"></iframe> 106 <iframe id="frame1" src="frame_tree/1-1.html"></iframe>
101 107
102 </html> 108 </html>
OLDNEW
« no previous file with comments | « content/shell/browser/shell.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698