WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
38753
Web Inspector: Autocompletion in console is not usable because it is not add to the entered text the common prefix of suggestions.
https://bugs.webkit.org/show_bug.cgi?id=38753
Summary
Web Inspector: Autocompletion in console is not usable because it is not add ...
Ilya Tikhonovsky
Reported
2010-05-07 08:28:15 PDT
As example if you entered $0.getE then getElementByClassName will be suggested as gray text. If you press tab then getElementByClassName be suggested again and lementByClassName becomes selected as black text with selection background. Really after pressing the TAB the next suggestion should be selected (getElementByTagName) and only flexible part of suggestions should be selected. In this case it should be TagName because getElementBy is the common part for all getE prefix suggestions.
Attachments
[patch] Initial version.
(4.21 KB, patch)
2010-05-07 08:41 PDT
,
Ilya Tikhonovsky
timothy
: review-
Details
Formatted Diff
Diff
screencast
(435.12 KB, application/octet-stream)
2010-05-07 08:42 PDT
,
Ilya Tikhonovsky
no flags
Details
[patch] second iteration.
(4.26 KB, patch)
2010-05-07 09:28 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2010-05-07 08:41:48 PDT
Created
attachment 55378
[details]
[patch] Initial version.
Ilya Tikhonovsky
Comment 2
2010-05-07 08:42:38 PDT
Created
attachment 55379
[details]
screencast
Timothy Hatcher
Comment 3
2010-05-07 09:18:47 PDT
Comment on
attachment 55378
[details]
[patch] Initial version. WebCore/inspector/front-end/TextPrompt.js:234 + for (var j = wordPrefixLength; j < lastIndex; ++j) Need {} around the body, since it is multiline (per style guide.) WebCore/inspector/front-end/TextPrompt.js:248 + for (var i = 0; i < completions.length; ++i) Need {} around the body, since it is multiline (per style guide.) WebCore/inspector/front-end/TextPrompt.js:235 + if (commonPrefix[j] != completion[j]) { !== WebCore/inspector/front-end/TextPrompt.js:236 + commonPrefix = commonPrefix.substr(0,j); Add a space after ",". Otherwise looks great! Thanks for the screencast.
Ilya Tikhonovsky
Comment 4
2010-05-07 09:28:58 PDT
Created
attachment 55384
[details]
[patch] second iteration. coding style changes.
WebKit Commit Bot
Comment 5
2010-05-08 06:20:33 PDT
Comment on
attachment 55384
[details]
[patch] second iteration. Clearing flags on attachment: 55384 Committed
r59025
: <
http://trac.webkit.org/changeset/59025
>
WebKit Commit Bot
Comment 6
2010-05-08 06:20:41 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug