Bug 167608

Summary: Don't migrate WebKit DOM headers in MigrateHeaders.make
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: WebKit Misc.Assignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, andersca, ap, commit-queue, darin, mitz
Priority: P2    
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=160654
Attachments:
Description Flags
Proposed patch
ap: review-, ap: commit-queue-
proposed patch
none
proposed patch darin: review+

Description Aakash Jain 2017-01-30 15:08:58 PST
Source/WebKit/mac/MigrateHeaders.make copies the headers from WebCore to WebKit. However the file is out of date.

As part of https://bugs.webkit.org/show_bug.cgi?id=160654 , many DOM headers were moved from WebCore to WebKit. We should cleanup these files from MigrateHeaders.make as well.
Comment 1 Aakash Jain 2017-01-30 15:35:32 PST
Created attachment 300152 [details]
Proposed patch
Comment 2 Alexey Proskuryakov 2017-01-30 16:57:29 PST
The current version of this patch this breaks the build.
Comment 3 Alexey Proskuryakov 2017-02-07 17:14:07 PST
More changes are needed here, taking this.
Comment 4 Alexey Proskuryakov 2017-02-07 17:16:10 PST
Created attachment 300863 [details]
proposed patch
Comment 5 WebKit Commit Bot 2017-02-07 17:18:58 PST
Attachment 300863 [details] did not pass style-queue:


ERROR: Source/WebKit/mac/DOM/DOMTokenList.mm:28:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebKit/mac/DOM/DOMTokenList.mm:32:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebKit/mac/DOM/DOMImplementation.mm:27:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 3 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 Alexey Proskuryakov 2017-02-07 17:55:20 PST
Forgot to make deleting iOS headers conditional. Will fix.
Comment 7 mitz 2017-02-07 20:29:50 PST
Comment on attachment 300863 [details]
proposed patch

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

> Source/WebKit/mac/ChangeLog:45
> +        * postprocess-headers.sh: There are two SPI headers that are only exposed on iOS.
> +        This is the cleanest way I found to avoid exposing them on Mac (we don't migrate
> +        them, so it would be wrong to keep the logic in MigrateHeaders.make).

Have you considered naming the two headers in the EXCLUDED_SOURCE_FILES build setting when targeting macOS? If it works, then it’s somewhat cleaner in that the files do not get copied, then deleted, in each incremental build of the framework.
Comment 8 Alexey Proskuryakov 2017-02-08 00:05:38 PST
Created attachment 300882 [details]
proposed patch

It works, thank you Dan!
Comment 9 WebKit Commit Bot 2017-02-08 00:07:47 PST
Attachment 300882 [details] did not pass style-queue:


ERROR: Source/WebKit/mac/DOM/DOMTokenList.mm:28:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebKit/mac/DOM/DOMTokenList.mm:32:  Bad include order. Mixing system and custom headers.  [build/include_order] [4]
ERROR: Source/WebKit/mac/DOM/DOMImplementation.mm:27:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 3 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 10 Alexey Proskuryakov 2017-02-08 22:09:04 PST
Committed http://trac.webkit.org/r211931