Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <script> | |
| 5 function simulateClick(properties) { | |
| 6 var evt = new MouseEvent("click", properties); | |
| 7 | |
| 8 target = document.getElementById("test-anchor"); | |
| 9 return target.dispatchEvent(evt); | |
| 10 } | |
| 11 </script> | |
| 12 </head> | |
| 13 <body> | |
| 14 This page helps testing shift-clicking or ctrl-clicking an anchor/link | |
| 15 that normally (when clicked without any modifier keys) targets a remote, | |
| 16 cross-site frame. See also https://crbug.com/647772. | |
| 17 <hr> | |
| 18 <a href="/cross-site/c.com/title1.html" | |
| 19 target="cross-site-frame" | |
| 20 id="test-anchor">Test link to click while holding shift key</a> | |
|
alexmos
2016/10/19 23:48:30
nit: s/shift/ctrl/, since that's what the test doe
Łukasz Anforowicz
2016/10/19 23:52:01
Done.
| |
| 21 <hr> | |
| 22 <iframe | |
| 23 name="cross-site-frame" | |
| 24 src="/cross-site/b.com/title1.html"></iframe> | |
| 25 </body> | |
| 26 </html> | |
| OLD | NEW |