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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2377193004: [DevTools] Rework some focus code. (Closed)
Patch Set: fixes Created 4 years, 3 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: third_party/WebKit/Source/devtools/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index cf8b62f16c05a35868bc9e124918d46a78606721..65a1af273e534ffe67c07b1e157604b953e79a5a 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -663,10 +663,11 @@ WebInspector.Main.SearchActionDelegate.prototype = {
* @param {!WebInspector.Context} context
* @param {string} actionId
* @return {boolean}
+ * @suppressGlobalPropertiesCheck
*/
handleAction: function(context, actionId)
{
- var searchableView = WebInspector.SearchableView.fromElement(WebInspector.currentFocusElement()) || WebInspector.inspectorView.currentPanel().searchableView();
+ var searchableView = WebInspector.SearchableView.fromElement(document.deepActiveElement()) || WebInspector.inspectorView.currentPanel().searchableView();
pfeldman 2016/09/30 22:29:03 which document?
if (!searchableView)
return false;
switch (actionId) {

Powered by Google App Engine
This is Rietveld 408576698