Chromium Code Reviews| 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) { |