Title: [150175] trunk/Source/WebKit2
- Revision
- 150175
- Author
- [email protected]
- Date
- 2013-05-15 21:34:51 -0700 (Wed, 15 May 2013)
Log Message
Enable printing in plugins
https://bugs.webkit.org/show_bug.cgi?id=116201
<rdar://problem/12347902>
Reviewed by Alexey Proskuryakov.
Add the printing entitlement so that legacy printing drivers can
customize the print panel. Update the printing rules and enable them
for the plugins.
* Configurations/PluginService.entitlements:
* Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
* Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
* Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
* Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (150174 => 150175)
--- trunk/Source/WebKit2/ChangeLog 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/ChangeLog 2013-05-16 04:34:51 UTC (rev 150175)
@@ -1,3 +1,21 @@
+2013-05-15 Simon Cooper <[email protected]>
+
+ Enable printing in plugins
+ https://bugs.webkit.org/show_bug.cgi?id=116201
+ <rdar://problem/12347902>
+
+ Reviewed by Alexey Proskuryakov.
+
+ Add the printing entitlement so that legacy printing drivers can
+ customize the print panel. Update the printing rules and enable them
+ for the plugins.
+
+ * Configurations/PluginService.entitlements:
+ * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
+ * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
+ * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
+ * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
+
2013-05-15 Anders Carlsson <[email protected]>
Move HTTPRequest class to WebKit2
Modified: trunk/Source/WebKit2/Configurations/PluginService.entitlements (150174 => 150175)
--- trunk/Source/WebKit2/Configurations/PluginService.entitlements 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/Configurations/PluginService.entitlements 2013-05-16 04:34:51 UTC (rev 150175)
@@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
+ <key>com.apple.security.print</key>
+ <true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
Modified: trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb (150174 => 150175)
--- trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb 2013-05-16 04:34:51 UTC (rev 150175)
@@ -176,6 +176,7 @@
(global-name "com.apple.cfnetwork.AuthBrokerAgent")
(global-name "com.apple.cmio.VDCAssistant")
(global-name "com.apple.cookied") ;; FIXME: <rdar://problem/10790768> Limit access to cookies.
+ (global-name "com.apple.coreservices.launchservicesd")
(global-name "com.apple.ocspd")
(global-name "com.apple.pasteboard.1")
(global-name "com.apple.pbs.fetch_services")
@@ -230,19 +231,29 @@
;; Printing
(define (webkit-printing)
+ (if (defined? 'authorization-right-obtain)
+ (allow authorization-right-obtain
+ (right-name "system.print.operator")
+ (right-name "system.printingmanager")))
+ (if (defined? 'mach-register)
+ (deny mach-register (with no-log)
+ (global-name-regex #"^com\.apple\.ICA-[0-9]+$")))
+ (if (defined? 'mach-task-name)
+ (allow mach-task-name))
(allow network-outbound (literal "/private/var/run/cupsd"))
(allow mach-lookup
(global-name "com.apple.printuitool.agent")
(global-name "com.apple.printtool.agent")
(global-name "com.apple.printtool.daemon"))
(allow file-read*
+ (subpath "/Library/Printers")
(home-literal "/.cups/lpoptions")
(home-literal "/.cups/client.conf")
(literal "/private/etc/cups/client.conf")
(literal "/private/etc/cups/lpoptions")
(subpath "/private/etc/cups/ppd")
- (subpath "/private/var/run/cupsd")
- (shared-preferences-read "org.cups.PrintingPrefs")))
+ (subpath "/private/var/run/cupsd"))
+ (shared-preferences-read "org.cups.PrintingPrefs"))
;; Text Services Manager
(allow iokit-set-properties (iokit-property "CapsLockDelayOverride"))
Modified: trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb (150174 => 150175)
--- trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb 2013-05-16 04:34:51 UTC (rev 150175)
@@ -27,3 +27,4 @@
(mount-relative-regex #"^/\.TemporaryItems/"))
(webkit-powerbox)
+(webkit-printing)
Modified: trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb (150174 => 150175)
--- trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb 2013-05-16 04:34:51 UTC (rev 150175)
@@ -20,3 +20,5 @@
;; FIXME: <rdar://problem/13636078>
(allow ipc-posix-shm*
(ipc-posix-name-regex #"^CoreCLR_"))
+
+(webkit-printing)
Modified: trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb (150174 => 150175)
--- trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb 2013-05-16 04:20:16 UTC (rev 150174)
+++ trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb 2013-05-16 04:34:51 UTC (rev 150175)
@@ -35,3 +35,5 @@
(deny job-creation (with no-log))
(deny file-write* (with no-log) (subpath "/Library/Application Support/Oracle"))
+
+(webkit-printing)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes