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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 2393763002: [DevTools] Cleanup DOMExtension.js. (Closed)
Patch Set: review comments Created 4 years, 2 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 | « third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
index ce7d57fa6cb7513c15f71c07341cd9384971fe7a..5e21725946ae869686f8066d51ee08b081bf8dfe 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js
@@ -798,8 +798,9 @@ WebInspector._windowBlurred = function(document, event)
*/
WebInspector._focusChanged = function(event)
{
- var node = event.deepActiveElement();
- WebInspector.Widget.focusWidgetForNode(node);
+ var document = event.target && event.target.ownerDocument;
+ var element = document ? document.deepActiveElement() : null;
+ WebInspector.Widget.focusWidgetForNode(element);
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/ui/Tooltip.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698