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

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

Issue 1868823002: Fix cross-site popups to inherit their opener's sandbox flags even when popup opener is not set (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « content/renderer/render_view_impl.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 setOriginForLinks(baseUrl) { 5 function setOriginForLinks(baseUrl) {
6 var links = ['noref_and_tblank_link', 'tblank_link', 'noref_link']; 6 var links = [
7 'noref_and_tblank_link',
8 'noopener_and_tblank_link',
9 'tblank_link',
10 'noref_link',
11 'noopener_link'
12 ];
7 links.forEach(function(linkId) { 13 links.forEach(function(linkId) {
8 link = document.getElementById(linkId); 14 link = document.getElementById(linkId);
9 link.href = baseUrl + link.pathname.substr(1); 15 link.href = baseUrl + link.pathname.substr(1);
10 }); 16 });
11 } 17 }
12 function simulateClick(target) { 18 function simulateClick(target) {
13 var evt = document.createEvent("MouseEvents"); 19 var evt = document.createEvent("MouseEvents");
14 evt.initMouseEvent("click", true, true, window, 20 evt.initMouseEvent("click", true, true, window,
15 0, 0, 0, 0, 0, false, false, 21 0, 0, 0, 0, 0, false, false,
16 false, false, 0, null); 22 false, false, 0, null);
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 target="_blank">target=_blank</a><br> 154 target="_blank">target=_blank</a><br>
149 <a href="http://REPLACE/title2.html" id="noref_link" 155 <a href="http://REPLACE/title2.html" id="noref_link"
150 rel="noreferrer">rel=noreferrer</a><br> 156 rel="noreferrer">rel=noreferrer</a><br>
151 <a href="http://REPLACE/title2.html" id="noopener_link" 157 <a href="http://REPLACE/title2.html" id="noopener_link"
152 rel="noopener">rel=opener</a><br> 158 rel="noopener">rel=opener</a><br>
153 159
154 160
155 <iframe id="frame1" src="frame_tree/1-1.html"></iframe> 161 <iframe id="frame1" src="frame_tree/1-1.html"></iframe>
156 162
157 </html> 163 </html>
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698