[Webkit-unassigned] [Bug 151270] Add SPI for handling inline link navigation for peek/pop

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 13 14:21:19 PST 2015


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

--- Comment #4 from Beth Dakin <bdakin at apple.com> ---
(In reply to comment #3)
> Comment on attachment 265492 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=265492&action=review
> 
> > Source/WebKit2/UIProcess/API/Cocoa/WKUIDelegatePrivate.h:40
> > + at class _WKPreviewingElementInfo;
> 
> “previewing element” sound a little weird, because the element isn’t doing
> any previewing, it is being previewed perhaps, so maybe
> _WKPreviewedElementInfo or _WKPreviewableElementInfo fit better.
> 

That's true. I think that _WKPreviewableElementInfo is the most accurate, but it's a little clumsy, maybe? Maybe it's fine. _WKPreviewedElementInfo sounds past-tense, so I don't like it as much. I changed it to _WKPreviewElementInfo for now, but I could be convinced that _WKPreviewableElementInfo is better.

> > Source/WebKit2/UIProcess/API/Cocoa/_WKElementInfo.mm:59
> > +    return _URL.get();
> 
> Because BOOL is sometimes just an unsigned char, this will return NO if the
> URL pointer ends in a 0 byte, so you should !! it or explicitly compare to
> nil.

Oh, yes, thank you!

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


More information about the webkit-unassigned mailing list