[Webkit-unassigned] [Bug 41284] New: ApplyStyleCommand::splitTextElementAtEndIfNeeded/splitTextAtEndIfNeeded ASSERTS should be returns.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 28 10:33:17 PDT 2010


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

           Summary: ApplyStyleCommand::splitTextElementAtEndIfNeeded/split
                    TextAtEndIfNeeded ASSERTS should be returns.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mifenton at rim.com



Mike Fenton <mifenton at rim.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #59909|                            |review?
               Flag|                            |


Created an attachment (id=59909)
 --> (https://bugs.webkit.org/attachment.cgi?id=59909)
Patch

Both splitTextElementAtStartIfNeeded and splitTextAtEndIfNeeded call splitTextNodeContainingElement and splitTextNode respectively assuming that the split will succeed and verify the resulting using ASSERTS.

In both functions there are a number of early returns possibly.  The state after the split occurs should be validated with an if statement so that a proper return can happen.

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