WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164391
REGRESSION (
r208248
): Web Inspector: Pressing Left Arrow breaks autocomplete
https://bugs.webkit.org/show_bug.cgi?id=164391
Summary
REGRESSION (r208248): Web Inspector: Pressing Left Arrow breaks autocomplete
Nikita Vasilyev
Reported
2016-11-03 17:48:59 PDT
Steps: 1. Open Console. 2. Type "a" 3. Press Arrow Down key. 4. Press Arrow Left key. 5. Erase console prompt (by pressing Cmd+A and Delete, for example). 6. Type "a". Expected: a|ddEventListener (Autocomple still works) Actual: a| (Autocomplete doesn't work any more) Notes: This is a recent regression. It works as expected in Safari Technology Preview 16.
Attachments
[Animated GIF] Bug
(70.71 KB, image/gif)
2016-11-03 17:55 PDT
,
Nikita Vasilyev
no flags
Details
Patch
(16.30 KB, patch)
2016-11-15 15:36 PST
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
[Animated GIF] With patch applied
(34.95 KB, image/gif)
2016-11-15 15:36 PST
,
Nikita Vasilyev
no flags
Details
Patch
(13.46 KB, patch)
2016-11-15 15:40 PST
,
Nikita Vasilyev
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2016-11-03 17:49:24 PDT
<
rdar://problem/29102408
>
Nikita Vasilyev
Comment 2
2016-11-03 17:55:32 PDT
Created
attachment 293838
[details]
[Animated GIF] Bug
Nikita Vasilyev
Comment 3
2016-11-15 12:53:57 PST
This regressed in
https://trac.webkit.org/changeset/208248
, which in turn was supposed fix another autocomplete regression.
Nikita Vasilyev
Comment 4
2016-11-15 15:36:25 PST
Created
attachment 294887
[details]
Patch Unroll
r208248
.
Nikita Vasilyev
Comment 5
2016-11-15 15:36:53 PST
Created
attachment 294888
[details]
[Animated GIF] With patch applied
Nikita Vasilyev
Comment 6
2016-11-15 15:40:23 PST
Created
attachment 294890
[details]
Patch
Matt Baker
Comment 7
2016-11-15 15:56:50 PST
Comment on
attachment 294890
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294890&action=review
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:164 > + delete this._ignoreNextCursorActivity;
Why were the two remaining properties changed to delete?
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:250 > + var container = document.createElement("span");
Nit: let
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:251 > + container.classList.add(WebInspector.CodeMirrorCompletionController.CompletionHintStyleClassName);
Since the class name was removed from CodeMirrorCompletionController.prototype._applyCompletionHint I think we can just inline the class name.
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:273 > + var currentText = this._codeMirror.getRange(from, cursor);
Why did these change from let to var?
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:283 > + delete this._ignoreChange;
Why the change?
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:322 > + var history = this._codeMirror.getHistory();
Nit: let
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:381 > + delete this._ignoreChange;
Why the change?
> Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js:835 > + delete this._ignoreNextCursorActivity;
Same as above.
Matt Baker
Comment 8
2016-11-15 15:57:32 PST
Doh! Nevermind.
WebKit Commit Bot
Comment 9
2016-11-15 17:03:30 PST
Comment on
attachment 294890
[details]
Patch Clearing flags on attachment: 294890 Committed
r208774
: <
http://trac.webkit.org/changeset/208774
>
WebKit Commit Bot
Comment 10
2016-11-15 17:03:40 PST
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