Changeset 150175 in webkit


Ignore:
Timestamp:
May 15, 2013 9:34:51 PM (11 years ago)
Author:
ap@apple.com
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:
Location:
trunk/Source/WebKit2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r150161 r150175  
     12013-05-15  Simon Cooper  <scooper@apple.com>
     2
     3        Enable printing in plugins
     4        https://bugs.webkit.org/show_bug.cgi?id=116201
     5        <rdar://problem/12347902>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        Add the printing entitlement so that legacy printing drivers can
     10        customize the print panel. Update the printing rules and enable them
     11        for the plugins.
     12
     13        * Configurations/PluginService.entitlements:
     14        * Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb:
     15        * Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb:
     16        * Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb:
     17        * Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb:
     18
    1192013-05-15  Anders Carlsson  <andersca@apple.com>
    220
  • trunk/Source/WebKit2/Configurations/PluginService.entitlements

    r143544 r150175  
    33<plist version="1.0">
    44<dict>
     5        <key>com.apple.security.print</key>
     6        <true/>
    57        <key>com.apple.security.files.user-selected.read-write</key>
    68        <true/>
  • trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.apple.WebKit.plugin-common.sb

    r149751 r150175  
    177177    (global-name "com.apple.cmio.VDCAssistant")
    178178    (global-name "com.apple.cookied") ;; FIXME: <rdar://problem/10790768> Limit access to cookies.
     179    (global-name "com.apple.coreservices.launchservicesd")
    179180    (global-name "com.apple.ocspd")
    180181    (global-name "com.apple.pasteboard.1")
     
    231232;; Printing
    232233(define (webkit-printing)
     234    (if (defined? 'authorization-right-obtain)
     235        (allow authorization-right-obtain
     236               (right-name "system.print.operator")
     237               (right-name "system.printingmanager")))
     238    (if (defined? 'mach-register)
     239        (deny mach-register (with no-log)
     240               (global-name-regex #"^com\.apple\.ICA-[0-9]+$")))
     241    (if (defined? 'mach-task-name)
     242        (allow mach-task-name))
    233243    (allow network-outbound (literal "/private/var/run/cupsd"))
    234244    (allow mach-lookup
     
    237247        (global-name "com.apple.printtool.daemon"))
    238248    (allow file-read*
     249        (subpath "/Library/Printers")
    239250        (home-literal "/.cups/lpoptions")
    240251        (home-literal "/.cups/client.conf")
     
    242253        (literal "/private/etc/cups/lpoptions")
    243254        (subpath "/private/etc/cups/ppd")
    244         (subpath "/private/var/run/cupsd")
    245         (shared-preferences-read "org.cups.PrintingPrefs")))
     255        (subpath "/private/var/run/cupsd"))
     256    (shared-preferences-read "org.cups.PrintingPrefs"))
    246257
    247258;; Text Services Manager
  • trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.macromedia.Flash Player.plugin.sb

    r149217 r150175  
    2828
    2929(webkit-powerbox)
     30(webkit-printing)
  • trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.microsoft.SilverlightPlugin.sb

    r149217 r150175  
    2121(allow ipc-posix-shm*
    2222    (ipc-posix-name-regex #"^CoreCLR_"))
     23
     24(webkit-printing)
  • trunk/Source/WebKit2/Resources/PlugInSandboxProfiles/com.oracle.java.JavaAppletPlugin.sb

    r149217 r150175  
    3636(deny job-creation (with no-log))
    3737(deny file-write* (with no-log) (subpath "/Library/Application Support/Oracle"))
     38
     39(webkit-printing)
Note: See TracChangeset for help on using the changeset viewer.