Title: [270682] trunk/Source/WebKit
- Revision
- 270682
- Author
- [email protected]
- Date
- 2020-12-11 09:32:56 -0800 (Fri, 11 Dec 2020)
Log Message
[macOS] Only extend access to the RootDomainUserClient IOKit class if the GPU Process is not used
https://bugs.webkit.org/show_bug.cgi?id=219758
<rdar://problem/70464431>
Reviewed by Per Arne Vollan.
The RootDomainUserClient IOKit class appears to only be used by media on Apple Silicon. Dynamically extend access to this
class for Apple Silicon builds if the GPU process is not being used.
This patch also includes telemetry to confirm that it is not needed on Intel, or for any other purposes. It does not
block access to the IOKit class yet.
* UIProcess/WebPageProxy.cpp:
(WebKit::mediaRelatedIOKitClasses):
* WebProcess/com.apple.WebProcess.sb.in:
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (270681 => 270682)
--- trunk/Source/WebKit/ChangeLog 2020-12-11 17:28:56 UTC (rev 270681)
+++ trunk/Source/WebKit/ChangeLog 2020-12-11 17:32:56 UTC (rev 270682)
@@ -1,3 +1,21 @@
+2020-12-11 Brent Fulgham <[email protected]>
+
+ [macOS] Only extend access to the RootDomainUserClient IOKit class if the GPU Process is not used
+ https://bugs.webkit.org/show_bug.cgi?id=219758
+ <rdar://problem/70464431>
+
+ Reviewed by Per Arne Vollan.
+
+ The RootDomainUserClient IOKit class appears to only be used by media on Apple Silicon. Dynamically extend access to this
+ class for Apple Silicon builds if the GPU process is not being used.
+
+ This patch also includes telemetry to confirm that it is not needed on Intel, or for any other purposes. It does not
+ block access to the IOKit class yet.
+
+ * UIProcess/WebPageProxy.cpp:
+ (WebKit::mediaRelatedIOKitClasses):
+ * WebProcess/com.apple.WebProcess.sb.in:
+
2020-12-11 Don Olmstead <[email protected]>
[GLib] Move GCrypt initialization to platformInitialize
Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (270681 => 270682)
--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2020-12-11 17:28:56 UTC (rev 270681)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2020-12-11 17:32:56 UTC (rev 270682)
@@ -7825,6 +7825,7 @@
static const auto services = makeNeverDestroyed(Vector<ASCIILiteral> {
#if (PLATFORM(MAC) || PLATFORM(MACCATALYST)) && CPU(ARM64)
"AppleAVDUserClient"_s,
+ "RootDomainUserClient"_s,
#endif
});
return services;
Modified: trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in (270681 => 270682)
--- trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2020-12-11 17:28:56 UTC (rev 270681)
+++ trunk/Source/WebKit/WebProcess/com.apple.WebProcess.sb.in 2020-12-11 17:32:56 UTC (rev 270682)
@@ -863,7 +863,10 @@
)
(allow iokit-open
- (iokit-user-client-class "RootDomainUserClient") ;; Needed by WebCore::PerformanceMonitor
+ (require-all
+ (extension "com.apple.webkit.extension.iokit")
+ (iokit-user-client-class "RootDomainUserClient") ;; Needed by Media playback
+ )
#if HAVE(SANDBOX_MESSAGE_FILTERING)
(with telemetry-backtrace)
(apply-message-filter
@@ -1654,6 +1657,17 @@
)
)
+;; FIXME: Data indicates this is only needed on ARM64. This logging will confirm.
+;; Remove when the GPU process is enabled by default
+(allow iokit-open (with report) (with telemetry-backtrace)
+ (require-all
+ (require-not (extension "com.apple.webkit.extension.iokit"))
+ (iokit-user-client-class
+ "RootDomainUserClient"
+ )
+ )
+)
+
#endif // HAVE(SANDBOX_MESSAGE_FILTERING)
#if __MAC_OS_X_VERSION_MIN_REQUIRED > 110000
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes