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

Side by Side Diff: content/test/data/site_isolation/page-with-select.html

Issue 2077683003: Don't rely on untrusted events in site isolation browser test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment Created 4 years, 6 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/browser/site_per_process_browsertest.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 select { 3 select {
4 position:absolute; 4 position:absolute;
5 top:9px; 5 top:9px;
6 left:9px; 6 left:9px;
7 height:25px; 7 height:25px;
8 width:80px; 8 width:80px;
9 } 9 }
10 </style> 10 </style>
11 <script> 11 <script>
12 12
13 function openSelectMenu(target) { 13 function focusSelectMenu() {
14 var evt = document.createEvent("MouseEvents"); 14 document.querySelector('select').focus();
15 evt.initMouseEvent("mousedown", true, true, window);
16 document.querySelector('select').dispatchEvent(evt);
17 } 15 }
18 16
19 </script> 17 </script>
20 <html> 18 <html>
21 <body> 19 <body>
22 <select> 20 <select>
23 <option selected>Apple</option> 21 <option selected>Apple</option>
24 <option>Orange</option> 22 <option>Orange</option>
25 <option>Banana</option> 23 <option>Banana</option>
26 </select> 24 </select>
27 </body> 25 </body>
28 </html> 26 </html>
OLDNEW
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698