Bug 188615

Summary: Assert that calling CGSSetDenyWindowServerConnections(true) succeeds
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, commit-queue, ews-watchlist, rniwa, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
bfulgham: review+, bfulgham: commit-queue-
Archive of layout-test-results from ews107 for mac-sierra-wk2
none
Patch none

Description Per Arne Vollan 2018-08-15 13:28:45 PDT
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.
Comment 1 Per Arne Vollan 2018-08-15 13:30:53 PDT
Created attachment 347203 [details]
Patch
Comment 2 Brent Fulgham 2018-08-15 13:49:58 PDT
Comment on attachment 347203 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=347203&action=review

> Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:327
> +    ASSERT_UNUSED(retval, retval == kCGErrorSuccess);

Don't we want a RELEASE_ASSERT here? If this returns something besides kCGErrorSuccess, it means we still have an open CGSWindowServer connection, which we do not want!
Comment 3 Per Arne Vollan 2018-08-15 13:56:25 PDT
(In reply to Brent Fulgham from comment #2)
> Comment on attachment 347203 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=347203&action=review
> 
> > Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm:327
> > +    ASSERT_UNUSED(retval, retval == kCGErrorSuccess);
> 
> Don't we want a RELEASE_ASSERT here? If this returns something besides
> kCGErrorSuccess, it means we still have an open CGSWindowServer connection,
> which we do not want!

I will change it to RELEASE_ASSERT. Thanks for reviewing!
Comment 4 Brent Fulgham 2018-08-15 15:09:06 PDT
Comment on attachment 347203 [details]
Patch

r=me if this is a RELEASE_ASSERT
Comment 5 EWS Watchlist 2018-08-15 15:41:34 PDT
Comment on attachment 347203 [details]
Patch

Attachment 347203 [details] did not pass mac-wk2-ews (mac-wk2):
Output: https://webkit-queues.webkit.org/results/8872372

New failing tests:
css3/filters/backdrop/add-remove-add-backdrop-filter.html
Comment 6 EWS Watchlist 2018-08-15 15:41:35 PDT
Created attachment 347215 [details]
Archive of layout-test-results from ews107 for mac-sierra-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107  Port: mac-sierra-wk2  Platform: Mac OS X 10.12.6
Comment 7 Per Arne Vollan 2018-08-15 16:09:11 PDT
Created attachment 347218 [details]
Patch
Comment 8 WebKit Commit Bot 2018-08-16 08:53:38 PDT
Comment on attachment 347218 [details]
Patch

Clearing flags on attachment: 347218

Committed r234929: <https://trac.webkit.org/changeset/234929>
Comment 9 Radar WebKit Bug Importer 2018-08-17 08:15:44 PDT
<rdar://problem/43424172>