Title: [277331] trunk/Source/WebKit
Revision
277331
Author
[email protected]
Date
2021-05-11 11:00:26 -0700 (Tue, 11 May 2021)

Log Message

[macOS] Extend access to 'com.apple.print.normalizerd' when canvas drawing is done in the WebContent process
https://bugs.webkit.org/show_bug.cgi?id=225623
<rdar://problem/77354349>

Reviewed by Per Arne Vollan.

We need to dynamically extend access to 'com.apple.print.normalizerd' when the GPU Process is not handling canvas drawing.
WebKit needs this access to properly draw EPS images.

Tested by fast/images/eps-as-image.html

* UIProcess/WebPageProxy.cpp:
(WebKit::gpuMachServices): Add 'com.apple.print.normalizerd' to set of required services.
* WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in: Remove 'com.apple.print.normalizerd' since it is
not possible to use from the Web Authentication process.
* WebProcess/com.apple.WebProcess.sb.in: Expect the extension to be dynamically extended on all releases.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (277330 => 277331)


--- trunk/Source/WebKit/ChangeLog	2021-05-11 17:46:40 UTC (rev 277330)
+++ trunk/Source/WebKit/ChangeLog	2021-05-11 18:00:26 UTC (rev 277331)
@@ -1,3 +1,22 @@
+2021-05-11  Brent Fulgham  <[email protected]>
+
+        [macOS] Extend access to 'com.apple.print.normalizerd' when canvas drawing is done in the WebContent process
+        https://bugs.webkit.org/show_bug.cgi?id=225623
+        <rdar://problem/77354349>
+
+        Reviewed by Per Arne Vollan.
+
+        We need to dynamically extend access to 'com.apple.print.normalizerd' when the GPU Process is not handling canvas drawing.
+        WebKit needs this access to properly draw EPS images.
+
+        Tested by fast/images/eps-as-image.html
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::gpuMachServices): Add 'com.apple.print.normalizerd' to set of required services.
+        * WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in: Remove 'com.apple.print.normalizerd' since it is
+        not possible to use from the Web Authentication process.
+        * WebProcess/com.apple.WebProcess.sb.in: Expect the extension to be dynamically extended on all releases.
+
 2021-05-11  Eric Carlson  <[email protected]>
 
         [Cocoa] Add _STAttributionDisplayName to macOS and iOS GPUProcess Info.plist

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (277330 => 277331)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2021-05-11 17:46:40 UTC (rev 277330)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2021-05-11 18:00:26 UTC (rev 277331)
@@ -7828,6 +7828,7 @@
         "com.apple.MTLCompilerService"_s,
 #if PLATFORM(MAC) || PLATFORM(MACCATALYST)
         "com.apple.cvmsServ"_s,
+        "com.apple.print.normalizerd"_s,
 #endif
     });
     return services;

Modified: trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in (277330 => 277331)


--- trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in	2021-05-11 17:46:40 UTC (rev 277330)
+++ trunk/Source/WebKit/WebAuthnProcess/mac/com.apple.WebKit.WebAuthnProcess.sb.in	2021-05-11 18:00:26 UTC (rev 277331)
@@ -151,7 +151,6 @@
     (xpc-service-name "com.apple.coremedia.videodecoder")
     (xpc-service-name "com.apple.coremedia.videoencoder")
     (xpc-service-name "com.apple.hiservices-xpcservice")
-    (xpc-service-name "com.apple.print.normalizerd")
 )
 
 ;; Utility functions for home directory relative path filters

Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (277330 => 277331)


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2021-05-11 17:46:40 UTC (rev 277330)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2021-05-11 18:00:26 UTC (rev 277331)
@@ -866,7 +866,6 @@
 #if __MAC_OS_X_VERSION_MIN_REQUIRED <= 110000
 (allow mach-lookup
     (xpc-service-name "com.apple.audio.SandboxHelper")
-    (xpc-service-name "com.apple.print.normalizerd")
 )
 #endif
 
@@ -1760,6 +1759,7 @@
             "com.apple.audio.SandboxHelper"
             "com.apple.coremedia.videodecoder"
             "com.apple.coremedia.videoencoder"
+            "com.apple.print.normalizerd" ;; <rdar://problem/77354349>
             ;;; FIXME(207716): End services to remove.
         )
     )
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to