WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 58025
Web Inspector: Bugs in some corner cases in the text editor
https://bugs.webkit.org/show_bug.cgi?id=58025
Summary
Web Inspector: Bugs in some corner cases in the text editor
Andrey Adaikin
Reported
2011-04-07 03:26:00 PDT
1) The very last _empty_ line would not be deleted if you hit a Backspace on it, or the selection text to be deleted is extended to the very bottom of the editor. 2) An odd corner case: delete all source code from the editor, hit backspace on the only empty line, then add a character. In this case the browser will insert a TEXT node instead of a DIV node for a lineRow.
Attachments
Patch
(4.78 KB, patch)
2011-04-07 03:31 PDT
,
Andrey Adaikin
no flags
Details
Formatted Diff
Diff
Patch
(5.46 KB, patch)
2011-04-07 07:17 PDT
,
Andrey Adaikin
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Andrey Adaikin
Comment 1
2011-04-07 03:31:50 PDT
Created
attachment 88605
[details]
Patch
Yury Semikhatsky
Comment 2
2011-04-07 06:49:10 PDT
Comment on
attachment 88605
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=88605&action=review
> Source/WebCore/ChangeLog:7 > +
ChangeLog entry should briefly explain the change, please don't leave it empty.
> Source/WebCore/inspector/front-end/TextViewer.js:1145 > + for (var lineRow = element; lineRow; lineRow = lineRow.parentElement) {
Why not use this loop exclusively without relying on the class name above?
Yury Semikhatsky
Comment 3
2011-04-07 06:49:49 PDT
Comment on
attachment 88605
[details]
Patch Also, please update copyright years in the files you edit.
Andrey Adaikin
Comment 4
2011-04-07 07:14:16 PDT
Comment on
attachment 88605
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=88605&action=review
>> Source/WebCore/ChangeLog:7 >> + > > ChangeLog entry should briefly explain the change, please don't leave it empty.
done.
>> Source/WebCore/inspector/front-end/TextViewer.js:1145 >> + for (var lineRow = element; lineRow; lineRow = lineRow.parentElement) { > > Why not use this loop exclusively without relying on the class name above?
Because an element may not be attached to the this._container any more (e.g. after a DOMNodeRemoved event). The loop is to handle the odd case when the browser would insert a line-row without the "webkit-line-content" className right under the this._container.
Andrey Adaikin
Comment 5
2011-04-07 07:17:38 PDT
Created
attachment 88629
[details]
Patch
Pavel Podivilov
Comment 6
2011-04-08 04:22:11 PDT
Comment on
attachment 88629
[details]
Patch Clearing flags on attachment: 88629 Committed
r83285
: <
http://trac.webkit.org/changeset/83285
>
Pavel Podivilov
Comment 7
2011-04-08 04:22:21 PDT
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