Bug 222284

Summary: [Cocoa] Send sandbox extensions for Network Extension services in load parameters
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
bfulgham: review+
Patch
ews-feeder: commit-queue-
Patch none

Description Per Arne Vollan 2021-02-22 12:28:38 PST
Currently, sandbox extensions for Network Extension are sent from the UI process to the WebContent process when the policy decision is made, but that is not soon enough in all cases. They should also be sent as part of the load parameters.
Comment 1 Per Arne Vollan 2021-02-22 12:30:48 PST
<rdar://problem/74402532>
Comment 2 Per Arne Vollan 2021-02-22 12:33:20 PST
Created attachment 421226 [details]
Patch
Comment 3 Brent Fulgham 2021-02-22 12:34:48 PST
Comment on attachment 421226 [details]
Patch

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

r=me

> Source/WebKit/ChangeLog:10
> +        policy decision is made, but that is not soon enough in all cases. They should also be sent as part of the load parameters.

Should we remove the policy decision part, since we are doing it at load time now?
Comment 4 Per Arne Vollan 2021-02-22 13:28:12 PST
Created attachment 421233 [details]
Patch
Comment 5 Per Arne Vollan 2021-02-22 13:29:16 PST
Created attachment 421234 [details]
Patch
Comment 6 Per Arne Vollan 2021-02-22 13:30:51 PST
(In reply to Brent Fulgham from comment #3)
> Comment on attachment 421226 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=421226&action=review
> 
> r=me
> 
> > Source/WebKit/ChangeLog:10
> > +        policy decision is made, but that is not soon enough in all cases. They should also be sent as part of the load parameters.
> 
> Should we remove the policy decision part, since we are doing it at load
> time now?

I believe this is still needed, since the order of events can vary.

Thanks for reviewing!
Comment 7 EWS 2021-02-22 16:03:13 PST
Committed r273286: <https://commits.webkit.org/r273286>

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