Bug 21760 - Inspector autocompletion auto-completes incorrectly in some cases
Summary: Inspector autocompletion auto-completes incorrectly in some cases
Status: VERIFIED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: HasReduction
Depends on:
Blocks:
 
Reported: 2008-10-20 15:44 PDT by Oliver Hunt
Modified: 2008-10-20 22:38 PDT (History)
2 users (show)

See Also:


Attachments
Proposed patch (3.12 KB, patch)
2008-10-20 21:37 PDT, Timothy Hatcher
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Hunt 2008-10-20 15:44:48 PDT
Autocomplete in the inspector will suggest things that represent incorrect syntax, eg.
foo[0] = "bar"; foo.-> autocompletes to foo.0
foo["\u03bb"] = "lamda"; foo.-> autocompletes to foo.λ
foo["bar+4"] = "math"; foo.-> autocompletes to foo.bar+4 which does not have the desired effect.
Comment 1 Timothy Hatcher 2008-10-20 21:37:20 PDT
Created attachment 24536 [details]
Proposed patch
Comment 2 Timothy Hatcher 2008-10-20 21:52:34 PDT
Landed in r37757.