[Webkit-unassigned] [Bug 204758] Add helper methods for description and equality to text manipulation SPI

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 2 11:24:14 PST 2019


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

--- Comment #4 from Wenson Hsieh <wenson_hsieh at apple.com> ---
Comment on attachment 384640
  --> https://bugs.webkit.org/attachment.cgi?id=384640
57438200.patch

View in context: https://bugs.webkit.org/attachment.cgi?id=384640&action=review

> Source/WebKit/UIProcess/API/Cocoa/_WKTextManipulationItem.mm:62
> +    if (![self.identifier isEqualToString:otherItem.identifier] || self.tokens.count != otherItem.tokens.count)

This would return NO in the case where both self and otherItem have nil identifiers (it’s unclear to me if that is desired).

> Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:687
> +    NSString *debugDescription = item.get().description;

Nit - We usually just use [item description] for this (or [item debugDescription], per David’s earlier comments).

> Tools/TestWebKitAPI/Tests/WebKitCocoa/TextManipulation.mm:694
> +    NSString *privacyPreservingDescription = item.get().privacyPreservingDescription;

Ditto.

-- 
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/20191202/31806cdb/attachment-0001.htm>


More information about the webkit-unassigned mailing list