Bug 89559 - Web Inspector: duplicating selected text when Enter key is pressed.
Summary: Web Inspector: duplicating selected text when Enter key is pressed.
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:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-20 03:35 PDT by Sergey Rogulenko
Modified: 2012-06-20 09:15 PDT (History)
12 users (show)

See Also:


Attachments
Patch (1.78 KB, patch)
2012-06-20 06:12 PDT, Sergey Rogulenko
no flags Details | Formatted Diff | Diff
Patch (1.31 KB, patch)
2012-06-20 07:48 PDT, Sergey Rogulenko
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Rogulenko 2012-06-20 03:35:17 PDT
If you open a file in Sources in inspector, select some text from bottom to top(!) and press Enter key, the selected text will not substitute with one new line. Also, if you try to undo this action, the respond will not bring you to initial state.
Comment 1 Sergey Rogulenko 2012-06-20 06:12:25 PDT
Created attachment 148546 [details]
Patch
Comment 2 Pavel Feldman 2012-06-20 06:55:55 PDT
Comment on attachment 148546 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=148546&action=review

> Source/WebCore/ChangeLog:3
> +        Fixing Bug 89559 - Web Inspector: handling enter key bug

Patch should start with the bug title.

> Source/WebCore/ChangeLog:5
> +        Web Inspector: handling enter key bug

This bug title is too vague, please be more specific

> Source/WebCore/ChangeLog:12
> +        The person who fixed Bug 71625 forgot to use result of his own method.

We typically say "Regressed in rXXXX" where XXXX is a revision number. That should be mentioned in the bug description.

> Source/WebCore/inspector/front-end/TextViewer.js:1254
>          this._exitTextChangeMode(range, newRange);

You should call exitTextChangeMode with exact newRange that editRange returned.
Comment 3 Sergey Rogulenko 2012-06-20 07:48:57 PDT
Created attachment 148566 [details]
Patch
Comment 4 WebKit Review Bot 2012-06-20 09:15:39 PDT
Comment on attachment 148566 [details]
Patch

Clearing flags on attachment: 148566

Committed r120827: <http://trac.webkit.org/changeset/120827>
Comment 5 WebKit Review Bot 2012-06-20 09:15:45 PDT
All reviewed patches have been landed.  Closing bug.