Bug 40409 - Web Inspector: [REGRESSION] Tab complete in a command line jumps on next value
Summary: Web Inspector: [REGRESSION] Tab complete in a command line jumps on next value
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
URL: http://screenr.com/9gK
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-10 01:54 PDT by Nikita Vasilyev
Modified: 2010-06-11 01:12 PDT (History)
10 users (show)

See Also:


Attachments
Then complete using a tab key, select very first value, not a second. (1.14 KB, patch)
2010-06-10 02:47 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff
When completing using a tab key, select very first value, not a second. (1.14 KB, patch)
2010-06-10 02:58 PDT, Nikita Vasilyev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Vasilyev 2010-06-10 01:54:16 PDT
How to reproduce the bug:
1. Type "document.get" in the command line. You should see document.get<CSSCanvasContext> (<> is an auto-suggestion)
2. Press Tab

Expected:
"document.get[CSSCanvasContext]" ([] is a selected text)

Actual:
"document.get[ElementById]"

Screencast: http://screenr.com/9gK
Comment 1 Pavel Feldman 2010-06-10 02:09:15 PDT
https://bugs.webkit.org/show_bug.cgi?id=38753 is a primary suspect.
Comment 2 Nikita Vasilyev 2010-06-10 02:47:23 PDT
Created attachment 58347 [details]
Then complete using a tab key, select very first value, not a second.
Comment 3 Pavel Feldman 2010-06-10 02:51:21 PDT
Comment on attachment 58347 [details]
Then complete using a tab key, select very first value, not a second.

Thanks for fixing this. I small nit about the changelog entry and you are good to land!

WebCore/ChangeLog:5
 +          Web Inspector: Then complete using a tab key, select very first value, not a second.
When completing using ...

Please re-attach new path and I'll mark it as r+,cq+!
Comment 4 Nikita Vasilyev 2010-06-10 02:58:52 PDT
Created attachment 58350 [details]
When completing using a tab key, select very first value, not a second.

My terrible grammar fixed.
Comment 5 Ilya Tikhonovsky 2010-06-10 06:40:11 PDT
It was a conscious decision as far as we have auto-suggestion mechanic.
If the first suggestion is not suitable for you it is possible to get the next by tab.
In the other case you can complete suggested variant by arrow.

Your scenario is fine if we have no auto-suggestions mechanics.
Comment 6 Nikita Vasilyev 2010-06-10 07:21:23 PDT
(In reply to comment #5)
It makes sense, but:

1) Tab is easier to press than right arrow. I do it with my left little finger without leaving the pointer finger from F key.

2) I've never seen applications which behaves like this. Xcode have a similar gray auto-suggestion, but by pressing Tab you're completing a current suggestion, not the next one.
Comment 7 WebKit Commit Bot 2010-06-10 11:45:58 PDT
Comment on attachment 58350 [details]
When completing using a tab key, select very first value, not a second.

Rejecting patch 58350 from commit-queue.

Failed to run "['WebKitTools/Scripts/run-webkit-tests', '--no-launch-safari', '--exit-after-n-failures=1', '--ignore-tests', 'compositing', '--quiet']" exit_code: 1
Last 500 characters of output:
ing Java tests
make: Nothing to be done for `default'.
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Skipped list contained 'compositing/iframes/composited-iframe.html', but no file of that name could be found
Testing 19073 test cases.
svg/dom/SVGScriptElement/script-set-href.svg -> failed

Exiting early after 1 failures. 16747 tests run.
362.26s total testing time

16746 test cases (99%) succeeded
1 test case (<1%) had incorrect layout
15 test cases (<1%) had stderr output

Full output: http://webkit-commit-queue.appspot.com/results/3217143
Comment 8 Joseph Pecoraro 2010-06-11 00:12:12 PDT
That commit queue failure was unrelated. If no-body gets to this tomorrow I can try to land it manually (my tree is outdated on this machine, so I'll be updating and building overnight).

Feel free to beat me to it!

Otherwise, does re-flipping the cq+ flag make the commit queue try again? I'll try that.
Comment 9 WebKit Commit Bot 2010-06-11 01:12:40 PDT
Comment on attachment 58350 [details]
When completing using a tab key, select very first value, not a second.

Clearing flags on attachment: 58350

Committed r60995: <http://trac.webkit.org/changeset/60995>
Comment 10 WebKit Commit Bot 2010-06-11 01:12:47 PDT
All reviewed patches have been landed.  Closing bug.