[Webkit-unassigned] [Bug 51573] New: nodeWillBeRemoved and textWillBeReplaced may not be called properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 23 16:00:25 PST 2010


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

           Summary: nodeWillBeRemoved and textWillBeReplaced may not be
                    called properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rniwa at webkit.org
                CC: darin at apple.com


Per the discussion on the bug 51389, I attempted changing:

highestAncestor(node)->nodeType() == Node::DOCUMENT_FRAGMENT_NODE

to

highestAncestor(node) != node->document()

However, this change caused
editing/pasteboard/paste-plaintext-nowrap.html
to crash and the following tests to fail:
editing/deleting/delete-all-text-in-text-field-assertion.html
editing/deleting/delete-ligature-001.html
editing/pasteboard/copy-in-password-field.html

We might be removing node without calling nodeWillBeRemoved or failing to catch other ways for the selection's end points to be detached from the document.

-- 
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