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

Unified Diff: LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html

Issue 138183003: Revert of Make ancestors of modal <dialog> inert (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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/fast/dom/HTMLDialogElement/inert-inlines.html
diff --git a/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html b/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html
index 8d95ae6b8e5640320e66cdab6dfa42c5b0430ef3..2b9c920bc9b26dcc524dbcd96e42ea2b60a4b2e2 100644
--- a/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html
+++ b/LayoutTests/fast/dom/HTMLDialogElement/inert-inlines.html
@@ -53,8 +53,8 @@
element.addEventListener('mousemove', eventFiredOnInertElement);
});
-document.addEventListener('click', function(e) {
- document.firedOn = true;
+document.body.addEventListener('click', function(e) {
+ document.body.firedOn = true;
});
document.getElementById('dialog-parent').addEventListener('click', function(e) {
@@ -63,7 +63,7 @@
document.querySelector('dialog').showModal();
inertElements.forEach(function(id) {
- expectedTarget = document;
+ expectedTarget = document.body;
if (id == 'dialog-sibling')
expectedTarget = document.getElementById('dialog-parent')
element = document.getElementById(id);

Powered by Google App Engine
This is Rietveld 408576698