RESOLVED FIXED 128084
WK2: Selection in non editable content is not cleared when navigating to a different page
https://bugs.webkit.org/show_bug.cgi?id=128084
Summary WK2: Selection in non editable content is not cleared when navigating to a di...
Enrica Casucci
Reported 2014-02-02 15:07:44 PST
We need to make sure the selection code knows that we are resigning first responder. <rdar://problem/15966166>
Attachments
Patch (1.28 KB, patch)
2014-02-02 15:11 PST, Enrica Casucci
mitz: review+
Enrica Casucci
Comment 1 2014-02-02 15:11:31 PST
mitz
Comment 2 2014-02-02 15:24:05 PST
Comment on attachment 222941 [details] Patch Conceptually it seems wrong to do any work in our override of resignFirstResponder if the superclass implementation is going to return NO. Should we call super first and bail out if it returned NO? This is not new to this patch, however, so r=me.
Enrica Casucci
Comment 3 2014-02-02 15:35:44 PST
(In reply to comment #2) > (From update of attachment 222941 [details]) > Conceptually it seems wrong to do any work in our override of resignFirstResponder if the superclass implementation is going to return NO. Should we call super first and bail out if it returned NO? > > This is not new to this patch, however, so r=me. Thanks for the review! You are probably correct about calling the super class first. I checked the implementation in UIWebDocumentview and there are tasks performed before and other performed after calling [super resignFirstResponder] but no checks are performed on the return value. I will leave it like this for now, but I'll add a comment before landing to remind me to do further investigation.
Enrica Casucci
Comment 4 2014-02-02 15:41:31 PST
Committed revision 163273.
Note You need to log in before you can comment on or make changes to this bug.