Bug 170496

Summary: [iOS] DDQueryOffset is the wrong size in Public SDK builds
Product: WebKit Reporter: Andy Estes <aestes>
Component: New BugsAssignee: Andy Estes <aestes>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ap, bfulgham, buildbot, cdumez, enrica, koivisto, mitz, sam, thorton
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=167594
https://bugs.webkit.org/show_bug.cgi?id=161967
Attachments:
Description Flags
Patch ap: review+

Description Andy Estes 2017-04-04 23:06:52 PDT
[iOS] DDQueryOffset is the wrong size in Public SDK builds
Comment 1 Andy Estes 2017-04-04 23:16:48 PDT
Created attachment 306262 [details]
Patch
Comment 2 Build Bot 2017-04-04 23:19:38 PDT
Attachment 306262 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h:109:  Please declare enum bitfields as unsigned integral types.  [runtime/enum_bitfields] [5]
ERROR: Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h:110:  Please declare enum bitfields as unsigned integral types.  [runtime/enum_bitfields] [5]
Total errors found: 2 in 4 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 mitz 2017-04-04 23:23:14 PDT
I think this might be the cause of bug 167594!
Comment 4 Alexey Proskuryakov 2017-04-04 23:23:31 PDT
Comment on attachment 306262 [details]
Patch

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

Neat.

> Source/WebCore/ChangeLog:4
> +        https://bugs.webkit.org/show_bug.cgi?id=170496

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

> Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h:120
> +static_assert(sizeof(DDQueryOffset) == 8, "DDQueryOffset is defined to be 8 bytes in the Public SDK build.");

The message doesn't sound quite right - the assert can potentially fail in non-public build too (and that's a good thing).
Comment 5 Andy Estes 2017-04-04 23:30:44 PDT
(In reply to Alexey Proskuryakov from comment #4)
> Comment on attachment 306262 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=306262&action=review
> 
> Neat.
> 
> > Source/WebCore/ChangeLog:4
> > +        https://bugs.webkit.org/show_bug.cgi?id=170496
> 
> https://bugs.webkit.org/show_bug.cgi?id=161967 ?
> 
> > Source/WebCore/platform/spi/cocoa/DataDetectorsCoreSPI.h:120
> > +static_assert(sizeof(DDQueryOffset) == 8, "DDQueryOffset is defined to be 8 bytes in the Public SDK build.");
> 
> The message doesn't sound quite right - the assert can potentially fail in
> non-public build too (and that's a good thing).

The message isn't saying in which build the assertion is failing, it's saying what size our SPI header defines the struct to be in the Public SDK build; it's just restating the assertion in English. I'll reword it as an error.

Thanks for the review!
Comment 6 Andy Estes 2017-04-04 23:41:45 PDT

*** This bug has been marked as a duplicate of bug 167594 ***
Comment 7 Andy Estes 2017-04-04 23:42:10 PDT

*** This bug has been marked as a duplicate of bug 161967 ***