RESOLVED FIXED 76058
Web Inspector: [TextPrompt] Autocomplete adds unwanted text that's hard to remove
https://bugs.webkit.org/show_bug.cgi?id=76058
Summary Web Inspector: [TextPrompt] Autocomplete adds unwanted text that's hard to re...
Alexander Pavlov (apavlov)
Reported 2012-01-11 06:37:13 PST
What steps will reproduce the problem? 1. Open the Web Inspector 2. Type in the console: str.replace(/is/, 'was') 3. Try to type a "g" after /is/ to make it a global replace What is the expected result? A "g". That's it. Just a "g". What happens instead? The 'smart' autocomplete adds 'getComputedStyle' and it won't go away! If you backspace, you backspace the last letter of getComputedStyle, not the whole thing. If you backspace all the way back, it just adds "etComputedStyle" again. If you ESC it's gone for half a second and than it's there again. It's not only annoying, it actually breaks functionality! The new autocomplete is a little too eager. Upstreaming http://code.google.com/p/chromium/issues/detail?id=109518
Attachments
Patch (2.13 KB, patch)
2012-01-11 08:06 PST, Alexander Pavlov (apavlov)
no flags
Patch (16.00 KB, patch)
2012-01-13 01:53 PST, Alexander Pavlov (apavlov)
no flags
Patch (20.71 KB, patch)
2012-01-13 09:43 PST, Alexander Pavlov (apavlov)
no flags
Patch (20.51 KB, patch)
2012-01-16 06:43 PST, Alexander Pavlov (apavlov)
no flags
Patch (20.54 KB, patch)
2012-01-17 03:36 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Alexander Pavlov (apavlov)
Comment 1 2012-01-11 08:06:46 PST
Pavel Feldman
Comment 2 2012-01-11 08:41:36 PST
Comment on attachment 122027 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122027&action=review > Source/WebCore/ChangeLog:8 > + - Avoid showing suggestions when navigating through the user input. Could you add a test that emits Right, Right, Right on various user inputs and checks that popup is never shown? > Source/WebCore/ChangeLog:9 > + - Don't complete the grayed (non-selected) suggestion with Right or End. Lets wait before we do this one.
Alexander Pavlov (apavlov)
Comment 3 2012-01-13 01:53:33 PST
WebKit Review Bot
Comment 4 2012-01-13 02:46:31 PST
Comment on attachment 122395 [details] Patch Attachment 122395 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11227511 New failing tests: inspector/styles/styles-cancel-editing.html
Alexander Pavlov (apavlov)
Comment 5 2012-01-13 09:43:43 PST
Created attachment 122442 [details] Patch Add PageUp/PageDown handling in suggest box
WebKit Review Bot
Comment 6 2012-01-13 10:22:37 PST
Comment on attachment 122442 [details] Patch Attachment 122442 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11236089 New failing tests: inspector/styles/styles-cancel-editing.html
Alexander Pavlov (apavlov)
Comment 7 2012-01-16 06:43:08 PST
Created attachment 122625 [details] Patch [PATCH] Fix test failure
Alexander Pavlov (apavlov)
Comment 8 2012-01-17 03:36:47 PST
Alexander Pavlov (apavlov)
Comment 9 2012-01-17 04:14:11 PST
Note You need to log in before you can comment on or make changes to this bug.