WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
202073
Don't create a universal sandbox extension in WebPageProxy::loadRequest when loading local files
https://bugs.webkit.org/show_bug.cgi?id=202073
Summary
Don't create a universal sandbox extension in WebPageProxy::loadRequest when ...
Per Arne Vollan
Reported
Saturday, September 21, 2019 7:55:23 AM UTC
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
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
Saturday, September 21, 2019 8:04:30 AM UTC
Created
attachment 379312
[details]
Patch
Per Arne Vollan
Comment 2
Saturday, September 21, 2019 10:29:06 AM UTC
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.
Top of Page
Format For Printing
XML
Clone This Bug