Title: [270418] trunk/Source/WebKit
Revision
270418
Author
[email protected]
Date
2020-12-03 16:31:23 -0800 (Thu, 03 Dec 2020)

Log Message

[macOS] Only extend access to the AppleSNBFBUserClient IOKit class if the GPU Process is not used
https://bugs.webkit.org/show_bug.cgi?id=219014
<rdar://problem/70463873>

Reviewed by Per Arne Vollan.

Instead of globally extending access to the AppleSNBFBUserClient IOKit class,
only extend it when the GPU process is not in use.

* UIProcess/WebPageProxy.cpp:
(WebKit::gpuIOKitClasses): Add 'AppleSNBFBUserClient' as a dynamically-extended
IOKit class.
* WebProcess/com.apple.WebProcess.sb.in: Only allow 'AppleSNBFBUserClient' if it
was dynamically extended.

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (270417 => 270418)


--- trunk/Source/WebKit/ChangeLog	2020-12-04 00:24:28 UTC (rev 270417)
+++ trunk/Source/WebKit/ChangeLog	2020-12-04 00:31:23 UTC (rev 270418)
@@ -1,3 +1,20 @@
+2020-12-03  Brent Fulgham  <[email protected]>
+
+        [macOS] Only extend access to the AppleSNBFBUserClient IOKit class if the GPU Process is not used
+        https://bugs.webkit.org/show_bug.cgi?id=219014
+        <rdar://problem/70463873>
+
+        Reviewed by Per Arne Vollan.
+
+        Instead of globally extending access to the AppleSNBFBUserClient IOKit class,
+        only extend it when the GPU process is not in use.
+
+        * UIProcess/WebPageProxy.cpp:
+        (WebKit::gpuIOKitClasses): Add 'AppleSNBFBUserClient' as a dynamically-extended
+        IOKit class.
+        * WebProcess/com.apple.WebProcess.sb.in: Only allow 'AppleSNBFBUserClient' if it
+        was dynamically extended.
+
 2020-12-03  Said Abou-Hallawa  <[email protected]>
 
         [GPU Process] Disconnect NativeImages from RemoteResourceCacheProxy when RemoteRenderingBackendProxy is destroyed

Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (270417 => 270418)


--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-12-04 00:24:28 UTC (rev 270417)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp	2020-12-04 00:31:23 UTC (rev 270418)
@@ -7742,6 +7742,7 @@
 #endif
 #if PLATFORM(MAC) || PLATFORM(MACCATALYST)
         "AppleIntelMEUserClient"_s,
+        "AppleSNBFBUserClient"_s,
 #endif
     });
     return services;

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


--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2020-12-04 00:24:28 UTC (rev 270417)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in	2020-12-04 00:31:23 UTC (rev 270418)
@@ -200,7 +200,10 @@
     
     ;; This is needed for Encrypted Media on some hardware (MacMini8,1 for example)
     (allow iokit-open
-        (iokit-registry-entry-class "AppleSNBFBUserClient")
+        (require-all
+            (extension "com.apple.webkit.extension.iokit")
+            (iokit-registry-entry-class "AppleSNBFBUserClient")
+        )
 #if HAVE(SANDBOX_MESSAGE_FILTERING)
         (with telemetry-backtrace)
         (apply-message-filter
@@ -1617,6 +1620,7 @@
         (require-not (extension "com.apple.webkit.extension.iokit"))
         (iokit-registry-entry-class
             "AppleIntelMEUserClient"
+            "AppleSNBFBUserClient"
         )
     )
 )
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to