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

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

Issue 2379313002: Fix 'noopener' targeting and return value. (Closed)
Patch Set: Rebase Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/popup-blocked-from-different-frames.html » ('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 setOriginForLinks(baseUrl) { 5 function setOriginForLinks(baseUrl) {
6 var links = [ 6 var links = [
7 'noref_and_tblank_link', 7 'noref_and_tblank_link',
8 'noopener_and_tblank_link', 8 'noopener_and_tblank_link',
9 'tblank_link', 9 'tblank_link',
10 'noref_link', 10 'noref_link',
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Grab a reference to the existing foo window into a global variable 115 // Grab a reference to the existing foo window into a global variable
116 // for later testing. 116 // for later testing.
117 last_opened_window = window.open("", "foo"); 117 last_opened_window = window.open("", "foo");
118 } 118 }
119 function getLastOpenedWindowLocation() { 119 function getLastOpenedWindowLocation() {
120 return last_opened_window.location.href; 120 return last_opened_window.location.href;
121 } 121 }
122 122
123 function openWindowWithTargetAndFeatures(path, target, features) { 123 function openWindowWithTargetAndFeatures(path, target, features) {
124 var w = window.open(path, target, features); 124 var w = window.open(path, target, features);
125 return w !== undefined; 125 return w !== null;
126 } 126 }
127 </script> 127 </script>
128 </head> 128 </head>
129 129
130 <a href="title2.html" id="samesite_noref_and_targeted_link" 130 <a href="title2.html" id="samesite_noref_and_targeted_link"
131 rel="noreferrer" target="foo"> 131 rel="noreferrer" target="foo">
132 same-site rel=noreferrer and target=foo</a><br> 132 same-site rel=noreferrer and target=foo</a><br>
133 <a href="title2.html" id="samesite_noopener_and_targeted_link" 133 <a href="title2.html" id="samesite_noopener_and_targeted_link"
134 rel="noopener" target="foo"> 134 rel="noopener" target="foo">
135 same-site rel=noopener and target=foo</a><br> 135 same-site rel=noopener and target=foo</a><br>
(...skipping 18 matching lines...) Expand all
154 target="_blank">target=_blank</a><br> 154 target="_blank">target=_blank</a><br>
155 <a href="http://REPLACE/title2.html" id="noref_link" 155 <a href="http://REPLACE/title2.html" id="noref_link"
156 rel="noreferrer">rel=noreferrer</a><br> 156 rel="noreferrer">rel=noreferrer</a><br>
157 <a href="http://REPLACE/title2.html" id="noopener_link" 157 <a href="http://REPLACE/title2.html" id="noopener_link"
158 rel="noopener">rel=opener</a><br> 158 rel="noopener">rel=opener</a><br>
159 159
160 160
161 <iframe id="frame1" src="frame_tree/1-1.html"></iframe> 161 <iframe id="frame1" src="frame_tree/1-1.html"></iframe>
162 162
163 </html> 163 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/popup-blocked-from-different-frames.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698