Bug 139739

Summary: [iOS] Define button and action should respect profile settings.
Product: WebKit Reporter: Enrica Casucci <enrica>
Component: WebKit2Assignee: Enrica Casucci <enrica>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: iOS 8.1   
Attachments:
Description Flags
Patch joepeck: review+

Description Enrica Casucci 2014-12-17 12:11:28 PST
The define button and action should only be available if not explicitly disabled via profile.
Comment 1 Enrica Casucci 2014-12-17 12:15:10 PST
rdar://problem/15461887
Comment 2 Enrica Casucci 2014-12-17 12:16:53 PST
Created attachment 243449 [details]
Patch
Comment 3 WebKit Commit Bot 2014-12-17 12:18:50 PST
Attachment 243449 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:51:  Alphabetical sorting problem.  [build/include_order] [4]
ERROR: Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:1342:  Multi line control clauses should use braces.  [whitespace/braces] [4]
Total errors found: 2 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Joseph Pecoraro 2014-12-17 13:46:56 PST
Comment on attachment 243449 [details]
Patch

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

r=me

> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:52
> +#import <ManagedConfiguration/MCProfileConnection.h>
> +#import <ManagedConfiguration/MCFeatures.h>

Nit: `sort` which you already noticed.

Are these SPI? In order for this to build with the public SDK do you have to do something special? dbates has been doing something like that, so there may be something you have to do here, or maybe not.
Comment 5 Enrica Casucci 2014-12-17 13:56:04 PST
Committed revision 177463.