Bug 103716 - Web Inspector: [TextEditor] Delete/undo of selected text chunks broken
Summary: Web Inspector: [TextEditor] Delete/undo of selected text chunks broken
Status: RESOLVED INVALID
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-11-30 00:07 PST by Alexander Pavlov (apavlov)
Modified: 2014-12-12 13:42 PST (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2012-11-30 00:07:45 PST
I tried removing the beginning and end chunks of SourceFrame.js (can't say what they were exactly, since I could not undo the deletes), but I did roughly this:

SourceFrame.js:
A
B
C

(where A, B, C are rather big chunks consisting of full lines)

1. Put caret at the beginning of the first line of B
2. Ctrl-Shift-Home, Delete
3. Put caret at the beginning of the first line of C
4. Ctrl-Shift-End, Delete
5. Ctrl-Z, Ctrl-Z.

At this point, the entire contents of the file were just two characters: "/*" (unquoted) - only the first line of the file. I also had a bunch of JS errors in the console (perhaps, some were added after some more experiments):

Uncaught Out of bounds:1 (TextEditorModel.js:224)
Uncaught TypeError: Cannot call method 'substring' of undefined (TextEditorModel.js:422)
Uncaught TypeError: Cannot call method 'insertBefore' of null (DefaultTextEditor.js:2638)
(2) Uncaught TypeError: Cannot read property 'offsetTop' of undefined (DefaultTextEditor.js:924)
Uncaught TypeError: Cannot call method 'insertBefore' of null (DefaultTextEditor.js:2638)
(2) Uncaught Error: NotFoundError: DOM Exception 8 (View.js:462)
Uncaught Out of bounds:1 (TextEditorModel.js:224)
Comment 1 Brian Burg 2014-12-12 13:40:45 PST
Closing as invalid, as this bug pertains to the old inspector UI and/or its tests.
Please file a new bug (https://www.webkit.org/new-inspector-bug) if the bug/feature/issue is still relevant to WebKit trunk.