[Webkit-unassigned] [Bug 75171] NULL ptr in WebCore::TextIterator::rangeFromLocationAndLength

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 4 15:53:05 PST 2012


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





--- Comment #3 from Pablo Flouret <pablof at motorola.com>  2012-01-04 15:53:05 PST ---
(In reply to comment #2)
> (From update of attachment 121168 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=121168&action=review
> 
> > Source/WebCore/editing/ApplyBlockElementCommand.cpp:84
> > +    // startOfSelection and endOfSelection can be null when
> > +    // "-webkit-user-select: none" style attribute is specified.
> > +    if (startOfSelection.isNull() || endOfSelection.isNull())
> 
> You should just call isNonOrphanedCaretOrRange on selection.

That's called at the start of the function and it returns true. If i understand things correctly, it's not orphaned, it's just that there's a single element but it's not selectable due to the -webkit-user-select css declaration.

A similar bug is https://bugs.webkit.org/show_bug.cgi?id=26214

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