Bug 202073

Summary: Don't create a universal sandbox extension in WebPageProxy::loadRequest when loading local files
Product: WebKit Reporter: Per Arne Vollan <pvollan>
Component: WebKit Misc.Assignee: Per Arne Vollan <pvollan>
Status: NEW    
Severity: Normal CC: ap, bfulgham, cdumez
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Per Arne Vollan
Reported 2019-09-20 23:55:23 PDT
When loading local files through WebPageProxy::loadRequest, a sandbox extension for "/" is created. This is problematic, since creating a universal sandbox extension can fail, and there are also cases where it succeeds, but the WebContent process is failing to create sandbox extensions for the Networking process. Both of these cases can be fixed by creating a sandbox extension for the base url of the local file instead of a universal extension. Clients which need to create a universal extension can use WebPageProxy::loadFile instead, since this method gives the caller control over which folder the sandbox extension is created for, through a resource URL parameter.
Attachments
Patch (4.96 KB, patch)
2019-09-21 00:04 PDT, Per Arne Vollan
no flags
Per Arne Vollan
Comment 1 2019-09-21 00:04:30 PDT
Per Arne Vollan
Comment 2 2019-09-21 02:29:06 PDT
This breaks layout tests since tests are accessing resources outside its folder.
Note You need to log in before you can comment on or make changes to this bug.