Bug 58846

Summary: Re-add a null check lost in r83081
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebKit2Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: rsesek
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.6   
Attachments:
Description Flags
proposed patch mjs: review+

Alexey Proskuryakov
Reported 2011-04-18 15:49:32 PDT
A null check was lost in selectedRange(), causing crashes.
Attachments
proposed patch (1.34 KB, patch)
2011-04-18 15:51 PDT, Alexey Proskuryakov
mjs: review+
Alexey Proskuryakov
Comment 1 2011-04-18 15:51:51 PDT
Created attachment 90109 [details] proposed patch
Robert Sesek
Comment 2 2011-04-18 15:55:38 PDT
An alternative would be to return false in TextIterator::locationAndLengthFromRange(), which is what WebPage::getLocationAndLengthFromRange used to do. Sorry that I introduced so many regressions :/
Maciej Stachowiak
Comment 3 2011-04-18 15:58:07 PDT
Comment on attachment 90109 [details] proposed patch r=me
Alexey Proskuryakov
Comment 4 2011-04-18 16:07:57 PDT
Note You need to log in before you can comment on or make changes to this bug.