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 2701d7c6358e2a4a5ea1780ea049095d8881a8d0..8a4162b2526074e7605978c3c92f6e9d27aeb6c5 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
+++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js |
@@ -282,7 +282,7 @@ WebInspector.TextPrompt.prototype = { |
*/ |
_updateAutoComplete: function(force) |
{ |
- this.clearAutocomplete(); |
+ this._clearAutocompleteElement(); |
this.autoCompleteSoon(force); |
}, |
@@ -376,7 +376,11 @@ WebInspector.TextPrompt.prototype = { |
{ |
if (this.isSuggestBoxVisible()) |
this._suggestBox.hide(); |
+ this._clearAutocompleteElement(); |
+ }, |
+ _clearAutocompleteElement: function() |
+ { |
if (this._completeTimeout) { |
clearTimeout(this._completeTimeout); |
delete this._completeTimeout; |