Bug 223958

Summary: Web Inspector: [Cocoa] WKInspectorResourceURLSchemeHandler can exceed the soft thread limit when opening multiple inspectors simultaneously.
Product: WebKit Reporter: Patrick Angle <pangle>
Component: Web InspectorAssignee: Patrick Angle <pangle>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, ews-watchlist, hi, inspector-bugzilla-changes, joepeck, pangle, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch v1.0
none
Patch v1.1 - Shorten redundant part of comment none

Description Patrick Angle 2021-03-30 14:41:57 PDT
Multiple WKInspectorResourceURLSchemeHandlers may be loading inspectors at the same time, which makes it possible for their combined operations to exceed the soft thread limit. In practice, this should only possible in engineering builds.
Comment 1 Patrick Angle 2021-03-30 14:47:25 PDT
<rdar://75847924>
Comment 2 Patrick Angle 2021-03-30 14:51:36 PDT
Created attachment 424701 [details]
Patch v1.0
Comment 3 BJ Burg 2021-03-31 15:30:28 PDT
Comment on attachment 424701 [details]
Patch v1.0

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

r=me

> Source/WebKit/UIProcess/Inspector/mac/WKInspectorResourceURLSchemeHandler.mm:62
> +        // The default value (NSOperationQueueDefaultMaxConcurrentOperationCount) results in a large number of threads

I think this second comment is nice but redundant with the changelog, and could be removed.
Comment 4 Patrick Angle 2021-03-31 19:02:21 PDT
Created attachment 424862 [details]
Patch v1.1 - Shorten redundant part of comment
Comment 5 EWS 2021-03-31 19:31:23 PDT
Committed r275341: <https://commits.webkit.org/r275341>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424862 [details].