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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/site_per_process_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/site_isolation/page-with-select.html
diff --git a/content/test/data/site_isolation/page-with-select.html b/content/test/data/site_isolation/page-with-select.html
index c8282d4fd386e3178e10f0a449f49054d4517f8a..465910570c7d4721569bf840564ae8e23999e1e9 100644
--- a/content/test/data/site_isolation/page-with-select.html
+++ b/content/test/data/site_isolation/page-with-select.html
@@ -10,10 +10,8 @@ select {
</style>
<script>
-function openSelectMenu(target) {
- var evt = document.createEvent("MouseEvents");
- evt.initMouseEvent("mousedown", true, true, window);
- document.querySelector('select').dispatchEvent(evt);
+function focusSelectMenu() {
+ document.querySelector('select').focus();
}
</script>
@@ -25,4 +23,4 @@ function openSelectMenu(target) {
<option>Banana</option>
</select>
</body>
-</html>
+</html>
« 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