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

Unified Diff: LayoutTests/dialog/inert-node-is-not-highlighted-expected.html

Issue 133393002: Make ancestors of modal <dialog> inert (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: save a tree walk if able Created 6 years, 11 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
Index: LayoutTests/dialog/inert-node-is-not-highlighted-expected.html
diff --git a/LayoutTests/dialog/inert-node-is-not-highlighted-expected.html b/LayoutTests/dialog/inert-node-is-not-highlighted-expected.html
index 64796e758eaafc0a9018a2518d71ef6831a4b1bf..3aaeb5f75bc0fc859b50d10770adebb4e1715a41 100644
--- a/LayoutTests/dialog/inert-node-is-not-highlighted-expected.html
+++ b/LayoutTests/dialog/inert-node-is-not-highlighted-expected.html
@@ -24,7 +24,8 @@ none (crbug.com/147490).</p>
<script>
dialog = document.querySelector('dialog');
dialog.show();
-document.execCommand('SelectAll');
+selectable = document.querySelector('#selectable');
+window.getSelection().selectAllChildren(selectable);
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698