Bug 58764 - Web Inspector: Backspace in the Console is broken
Summary: Web Inspector: Backspace in the Console is broken
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on: 58875
Blocks:
  Show dependency treegraph
 
Reported: 2011-04-18 00:12 PDT by Alexander Pavlov (apavlov)
Modified: 2011-04-19 03:01 PDT (History)
13 users (show)

See Also:


Attachments
[PATCH] Suggested fix (1.40 KB, patch)
2011-04-18 01:16 PDT, Alexander Pavlov (apavlov)
yurys: review-
Details | Formatted Diff | Diff
[PATCH] A proper fix that only inhibits Backspace default handling for -webkit-user-modify: read-only elements (1.63 KB, patch)
2011-04-18 09:15 PDT, Alexander Pavlov (apavlov)
yurys: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2011-04-18 00:12:55 PDT
This is a regression from http://trac.webkit.org/changeset/83968
Comment 1 Alexander Pavlov (apavlov) 2011-04-18 01:16:43 PDT
Created attachment 90002 [details]
[PATCH] Suggested fix
Comment 2 Yury Semikhatsky 2011-04-18 02:04:53 PDT
Comment on attachment 90002 [details]
[PATCH] Suggested fix

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

> Source/WebCore/inspector/front-end/inspector.js:797
> +            if (!selection.rangeCount || !selection.isCollapsed)

This will break backspace on non-empty selection. r- for this.
Comment 3 Alexander Pavlov (apavlov) 2011-04-18 09:15:22 PDT
Created attachment 90043 [details]
[PATCH] A proper fix that only inhibits Backspace default handling for -webkit-user-modify: read-only elements
Comment 4 Yury Semikhatsky 2011-04-18 09:17:34 PDT
Comment on attachment 90043 [details]
[PATCH] A proper fix that only inhibits Backspace default handling for -webkit-user-modify: read-only elements

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

> Source/WebCore/inspector/front-end/inspector.js:797
> +                var computedStyle = document.defaultView.getComputedStyle(this.currentFocusElement, null, "");

Could you provide a comment explaining this logic?
Comment 5 Alexander Pavlov (apavlov) 2011-04-18 09:24:31 PDT
Committed r84150: <http://trac.webkit.org/changeset/84150>
Comment 6 WebKit Review Bot 2011-04-18 12:20:45 PDT
http://trac.webkit.org/changeset/84150 might have broken GTK Linux 32-bit Debug
Comment 7 Alexander Pavlov (apavlov) 2011-04-19 03:01:05 PDT
Rolled out in r84236.