WebKit Bugzilla
Attachment 347218 Details for
Bug 188615
: Assert that calling CGSSetDenyWindowServerConnections(true) succeeds
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
bug-188615-20180815160911.patch (text/plain), 1.67 KB, created by
Per Arne Vollan
on 2018-08-15 16:09:11 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Per Arne Vollan
Created:
2018-08-15 16:09:11 PDT
Size:
1.67 KB
patch
obsolete
>Index: Source/WebKit/ChangeLog >=================================================================== >--- Source/WebKit/ChangeLog (revision 234897) >+++ Source/WebKit/ChangeLog (working copy) >@@ -1,3 +1,16 @@ >+2018-08-15 Per Arne Vollan <pvollan@apple.com> >+ >+ Assert that calling CGSSetDenyWindowServerConnections(true) succeeds >+ https://bugs.webkit.org/show_bug.cgi?id=188615 >+ >+ Reviewed by Brent Fulgham. >+ >+ If the call to CGSSetDenyWindowServerConnections(true) fails, it means there are open WindowServer connections >+ at this point, and future WindowServer connections will not be denied. We should assert that this call succeeds. >+ >+ * WebProcess/cocoa/WebProcessCocoa.mm: >+ (WebKit::WebProcess::platformInitializeProcess): >+ > 2018-08-15 Ryan Haddad <ryanhaddad@apple.com> > > Unreviewed, rolling out r234870. >Index: Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm >=================================================================== >--- Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (revision 234885) >+++ Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm (working copy) >@@ -323,7 +323,8 @@ void WebProcess::platformInitializeProce > #if ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING) > // Deny the WebContent process access to the WindowServer. > // This call will not succeed if there are open WindowServer connections at this point. >- CGSSetDenyWindowServerConnections(true); >+ auto retval = CGSSetDenyWindowServerConnections(true); >+ RELEASE_ASSERT(retval == kCGErrorSuccess); > // Make sure that we close any WindowServer connections after checking in with Launch Services. > CGSShutdownServerConnections(); > #else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 188615
:
347203
|
347215
| 347218