Bug 160454 - Allow building with content filtering disabled
Summary: Allow building with content filtering disabled
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Enrica Casucci
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-02 09:44 PDT by Enrica Casucci
Modified: 2016-08-02 17:03 PDT (History)
7 users (show)

See Also:


Attachments
Patch (14.41 KB, patch)
2016-08-02 11:11 PDT, Enrica Casucci
no flags Details | Formatted Diff | Diff
Patch2 (13.89 KB, patch)
2016-08-02 12:11 PDT, Enrica Casucci
no flags Details | Formatted Diff | Diff
Patch3 (15.28 KB, patch)
2016-08-02 15:32 PDT, Enrica Casucci
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Enrica Casucci 2016-08-02 09:44:33 PDT
We need to fix the build if we want to disable content filtering.
Comment 1 Enrica Casucci 2016-08-02 11:11:39 PDT
Created attachment 285121 [details]
Patch
Comment 2 WebKit Commit Bot 2016-08-02 11:12:27 PDT
Attachment 285121 [details] did not pass style-queue:


ERROR: Source/WebKit/mac/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/WebCore/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/WebKit2/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
Total errors found: 4 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Tim Horton 2016-08-02 11:25:12 PDT
Comment on attachment 285121 [details]
Patch

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

> Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig:57
> +ENABLE_CONTENT_FILTERING[sdk=iphonesimulator*] = ENABLE_CONTENT_FILTERING;

Looks like we usually just use the prefix, so these could be e.g. iphone* and only mentioned once (and the same above).

> Source/WebCore/platform/PlatformContentFilter.h:63
>      virtual String unblockRequestDeniedScript() const { return emptyString(); }

This seems related, too, no?

> Source/WebCore/testing/MockContentFilter.h:49
>      String unblockRequestDeniedScript() const override;

Ditto
Comment 4 Enrica Casucci 2016-08-02 11:31:48 PDT
Comment on attachment 285121 [details]
Patch

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

>> Source/WebCore/platform/PlatformContentFilter.h:63
>>      virtual String unblockRequestDeniedScript() const { return emptyString(); }
> 
> This seems related, too, no?

It is relevant because ContentFilterUnblockHandler is only defined if ENABLED_CONTENT_FILTERING.
Comment 5 Enrica Casucci 2016-08-02 12:11:43 PDT
Created attachment 285124 [details]
Patch2
Comment 6 WebKit Commit Bot 2016-08-02 12:13:00 PDT
Attachment 285124 [details] did not pass style-queue:


ERROR: Source/WebKit/mac/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/WebCore/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
ERROR: Source/WebKit2/Configurations/FeatureDefines.xcconfig:0:  Any changes made to FeatureDefines should be made to all of them (changed file does not match Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig).  [featuredefines/equality] [5]
Total errors found: 4 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Enrica Casucci 2016-08-02 15:32:11 PDT
Created attachment 285148 [details]
Patch3
Comment 8 Enrica Casucci 2016-08-02 17:03:00 PDT
Committed revision 204053