[Webkit-unassigned] [Bug 103716] New: Web Inspector: [TextEditor] Delete/undo of selected text chunks broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 30 00:05:28 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=103716

           Summary: Web Inspector: [TextEditor] Delete/undo of selected
                    text chunks broken
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: apavlov at chromium.org
                CC: keishi at webkit.org, pmuellr at yahoo.com,
                    pfeldman at chromium.org, yurys at chromium.org,
                    apavlov at chromium.org, loislo at chromium.org,
                    vsevik at chromium.org,
                    web-inspector-bugs at googlegroups.com


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)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list