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

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.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 | « third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.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/TextPrompt.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
index 8113627b4912b4cd035a5989f2c3b949b54080c4..862dd38dfdf23e10ec43faa71c7bce3fa29f79a7 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
@@ -120,7 +120,6 @@ UI.TextPrompt = class extends Common.Object {
this._element.addEventListener('mousewheel', this._boundOnMouseWheel, false);
this._element.addEventListener('selectstart', this._boundClearAutocomplete, false);
this._element.addEventListener('blur', this._boundClearAutocomplete, false);
- this._element.ownerDocument.defaultView.addEventListener('resize', this._boundClearAutocomplete, false);
this._suggestBox = new UI.SuggestBox(this, 20, true);
@@ -209,7 +208,6 @@ UI.TextPrompt = class extends Common.Object {
this._element.removeEventListener('input', this._boundOnInput, false);
this._element.removeEventListener('selectstart', this._boundClearAutocomplete, false);
this._element.removeEventListener('blur', this._boundClearAutocomplete, false);
- this._element.ownerDocument.defaultView.removeEventListener('resize', this._boundClearAutocomplete, false);
if (this._isEditing)
this._stopEditing();
if (this._suggestBox)
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sources/OpenResourceDialog.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698