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

Issue 2285993002: DevTools: Fix flickering hint when typing in TextPrompt (Closed)

Created:
4 years, 3 months ago by einbinder
Modified:
4 years, 2 months ago
Reviewers:
lushnikov
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, devtools-reviews_chromium.org, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, pfeldman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: Fix flickering hint when typing in TextPrompt The grey hint text in the TextPrompt was being removed on every keystroke, and then re-added the next frame if it was still needed for the suggestion. BUG=none Committed: https://crrev.com/37a665db550b7afc5175dee09596a46a8fcf6697 Cr-Commit-Position: refs/heads/master@{#426681}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Refactor #

Total comments: 2

Patch Set 3 : Add test #

Total comments: 10

Patch Set 4 : Merge clearAutocomplete methods #

Patch Set 5 : Merge #

Total comments: 4

Patch Set 6 : merge #

Patch Set 7 : currentHintText #

Total comments: 6

Patch Set 8 : Remove _updateAutocomplete #

Total comments: 5

Patch Set 9 : Explicity measure autocomplete text length #

Patch Set 10 : condition #

Patch Set 11 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -23 lines) Patch
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint.html View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/http/tests/inspector-unit/text-prompt-hint-expected.txt View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js View 1 2 3 4 5 6 7 8 9 13 chunks +30 lines, -23 lines 0 comments Download

Messages

Total messages: 39 (16 generated)
einbinder
Ptal
4 years, 3 months ago (2016-08-27 00:36:10 UTC) #2
lushnikov
Could you please also briefly describe in the issue description the root cause of this ...
4 years, 3 months ago (2016-08-29 22:10:41 UTC) #7
einbinder
Ptal https://codereview.chromium.org/2285993002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/1/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode395 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:395: clearAutoComplete: function(includeTimeout, singleCharInput, singleDeleteChar) On 2016/08/29 at 22:10:41, ...
4 years, 3 months ago (2016-08-30 22:22:35 UTC) #9
lushnikov
https://codereview.chromium.org/2285993002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: if (this._autocompleteElement) { what is this._autocompleteElement? AFAIU it is ...
4 years, 3 months ago (2016-08-31 15:11:16 UTC) #11
einbinder
I added a test. ptal https://codereview.chromium.org/2285993002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/20001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: if (this._autocompleteElement) { On ...
4 years, 3 months ago (2016-08-31 21:19:01 UTC) #12
lushnikov
https://codereview.chromium.org/2285993002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: if (this.autoCompleteElement) { can we hide autoCompleteElement inside text ...
4 years, 3 months ago (2016-09-01 21:25:33 UTC) #13
einbinder
ptal https://codereview.chromium.org/2285993002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/40001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: if (this.autoCompleteElement) { On 2016/09/01 at 21:25:33, lushnikov ...
4 years, 3 months ago (2016-09-01 23:28:46 UTC) #14
lushnikov
there's a lot going on here; can we split this in patches?
4 years, 3 months ago (2016-09-02 21:55:15 UTC) #15
einbinder
I merged with the other patch. PTAL
4 years, 3 months ago (2016-09-06 23:56:23 UTC) #16
lushnikov
https://codereview.chromium.org/2285993002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: } else if (this._previousText.substring(0, this._previousText.length - 1) === text) ...
4 years, 3 months ago (2016-09-07 22:11:01 UTC) #17
einbinder
http://crbug.com/645665 got fixed, so we can land this. https://codereview.chromium.org/2285993002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode293 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:293: } ...
4 years, 2 months ago (2016-10-18 00:57:33 UTC) #21
lushnikov
"I'm confused why is this not updated" (Joel)
4 years, 2 months ago (2016-10-18 18:50:43 UTC) #22
einbinder
ptal
4 years, 2 months ago (2016-10-19 21:57:26 UTC) #23
lushnikov
https://codereview.chromium.org/2285993002/diff/120001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/120001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode286 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:286: _updateAutoComplete: function(force) let's get rid of this method - ...
4 years, 2 months ago (2016-10-19 23:36:47 UTC) #24
einbinder
ptal https://codereview.chromium.org/2285993002/diff/120001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/120001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode286 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:286: _updateAutoComplete: function(force) On 2016/10/19 at 23:36:47, lushnikov wrote: ...
4 years, 2 months ago (2016-10-20 01:21:44 UTC) #25
lushnikov
https://codereview.chromium.org/2285993002/diff/140001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/140001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode351 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:351: this._autocompleteElement.textContent = this._currentHintText.substring(text.length); we should update currentHintText in applySuggestion ...
4 years, 2 months ago (2016-10-20 20:49:27 UTC) #26
einbinder
https://codereview.chromium.org/2285993002/diff/140001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js File third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js (right): https://codereview.chromium.org/2285993002/diff/140001/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js#newcode351 third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js:351: this._autocompleteElement.textContent = this._currentHintText.substring(text.length); On 2016/10/20 at 20:49:27, lushnikov wrote: ...
4 years, 2 months ago (2016-10-20 21:13:47 UTC) #27
lushnikov
lgtm
4 years, 2 months ago (2016-10-20 21:15:30 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2285993002/180001
4 years, 2 months ago (2016-10-20 21:36:29 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/320972)
4 years, 2 months ago (2016-10-20 23:17:20 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2285993002/200001
4 years, 2 months ago (2016-10-20 23:27:43 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 2 months ago (2016-10-21 01:33:58 UTC) #37
commit-bot: I haz the power
4 years, 2 months ago (2016-10-21 13:25:51 UTC) #39
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/37a665db550b7afc5175dee09596a46a8fcf6697
Cr-Commit-Position: refs/heads/master@{#426681}

Powered by Google App Engine
This is Rietveld 408576698