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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js

Issue 2615753003: DevTools: do not subscribe to global object events from the widgets that are not necessarily dispos… (Closed)
Patch Set: same Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.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/sources/OpenResourceDialog.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
index 12ea268d1042c2c11f8a8e23bfb008f19108e966..1a228a51e8244d8e82216eaa1da15688c72ee04f 100644
--- a/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
+++ b/third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js
@@ -27,7 +27,8 @@ Sources.OpenResourceDialog = class extends Sources.FilteredUISourceCodeListDeleg
*/
static show(sourcesView, query, defaultScores, history) {
var dialog = new Sources.OpenResourceDialog(sourcesView, defaultScores, history);
- Sources.OpenResourceDialog._instanceForTest = dialog;
+ if (InspectorFrontendHost.isUnderTest())
+ Sources.OpenResourceDialog._instanceForTest = dialog;
var filteredItemSelectionDialog = new UI.FilteredListWidget(dialog);
filteredItemSelectionDialog.showAsDialog();
filteredItemSelectionDialog.setQuery(query);
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698