Title: [231389] trunk/Source/WebKit
- Revision
- 231389
- Author
- [email protected]
- Date
- 2018-05-04 16:42:44 -0700 (Fri, 04 May 2018)
Log Message
Shutdown WindowServer connections after checking in with launch services
https://bugs.webkit.org/show_bug.cgi?id=185082
<rdar://problem/39613173>
Reviewed by Brent Fulgham.
When WindowServer access is blocked in the WebContent process, we should shutdown all connections
after checking in with launch services.
* WebProcess/cocoa/WebProcessCocoa.mm:
(WebKit::WebProcess::platformInitializeProcess):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (231388 => 231389)
--- trunk/Source/WebKit/ChangeLog 2018-05-04 23:41:55 UTC (rev 231388)
+++ trunk/Source/WebKit/ChangeLog 2018-05-04 23:42:44 UTC (rev 231389)
@@ -1,3 +1,17 @@
+2018-05-04 Per Arne Vollan <[email protected]>
+
+ Shutdown WindowServer connections after checking in with launch services
+ https://bugs.webkit.org/show_bug.cgi?id=185082
+ <rdar://problem/39613173>
+
+ Reviewed by Brent Fulgham.
+
+ When WindowServer access is blocked in the WebContent process, we should shutdown all connections
+ after checking in with launch services.
+
+ * WebProcess/cocoa/WebProcessCocoa.mm:
+ (WebKit::WebProcess::platformInitializeProcess):
+
2018-05-04 Don Olmstead <[email protected]>
[Win][WebKit] Fix forwarding headers for Windows build
Modified: trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (231388 => 231389)
--- trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2018-05-04 23:41:55 UTC (rev 231388)
+++ trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm 2018-05-04 23:42:44 UTC (rev 231389)
@@ -303,6 +303,8 @@
// Deny the WebContent process access to the WindowServer.
// This call will not succeed if there are open WindowServer connections at this point.
setApplicationIsDaemon();
+ // Make sure that we close any WindowServer connections after checking in with Launch Services.
+ CGSShutdownServerConnections();
#else
#if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
// This call is needed when the WebProcess is not running the NSApplication event loop.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes