[Webkit-unassigned] [Bug 138720] Refactor iOS selection gestures

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 14 11:24:08 PST 2014


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

--- Comment #4 from Enrica Casucci <enrica at apple.com> ---
> No need to account for errors? (same for the ones below).
> 
> For example, if the WebProcess dies during a gesture, you may want to
> fallback safely?
> 
what is important is to call the completion handler, which will prevent any deadlocks.

> > Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:2658
> > +    [self reloadInputViews];
> > +    
> 
> This change is odd. I would expect [reloadInputViews] to be the last thing
> done after updating the internal state.
> 
Actually it was wrong to call _startAssistingKeyboard before calling reloadInputViews.
It could affect how gesture recognizers are installed.

> > Source/WebKit2/WebProcess/WebPage/WebPage.cpp:303
> > +    , m_selectionBaseIsStart(false)
> 
> This should be along the other state booleans of WebPage.
Ok, will do.
> 
> > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:1617
> > +    m_selectionBaseIsStart = baseIsStart; // FIXME: do we need to flip this for RTL?
> > +    send(Messages::WebPageProxy::UnsignedCallback(baseIsStart, callbackID));
> 
> This does not look right.
> 
> There is one message just to set a boolean state on WebPage, but that
> boolean is only used when interpreting other messages.
> 
> > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:1641
> > +            m_selectionBaseIsStart = !m_selectionBaseIsStart;
> 
> m_selectionBaseIsStart = false;
> 
> > Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:1650
> > +            m_selectionBaseIsStart = !m_selectionBaseIsStart;
> 
> m_selectionBaseIsStart = true;

At the beginning I need to know the direction of the gesture and I use it later to decide in which direction to extend the gesture and when to flip.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141114/b93022f0/attachment-0002.html>


More information about the webkit-unassigned mailing list