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

Unified Diff: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js

Issue 2094873002: DevTools: fix deepActiveElement and focus on Dialog when document blurs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo accidental rebase 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/settings/FrameworkBlackboxSettingsTab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
diff --git a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
index 9e273fba34d427b4b7ed0423d7739834c2173f17..0a3c79b9eb35dc9a79ef796d78b684b37a472a7f 100644
--- a/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
+++ b/third_party/WebKit/Source/devtools/front_end/platform/DOMExtension.js
@@ -932,7 +932,7 @@ Event.prototype.deepElementFromPoint = function()
Event.prototype.deepActiveElement = function()
{
var activeElement = this.target && this.target.ownerDocument ? this.target.ownerDocument.activeElement : null;
- while (activeElement && activeElement.shadowRoot)
+ while (activeElement && activeElement.shadowRoot && activeElement.shadowRoot.activeElement)
activeElement = activeElement.shadowRoot.activeElement;
return activeElement;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/settings/FrameworkBlackboxSettingsTab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698