Bug 197299

Summary: Trying to load a main resource outside the sandbox should not crash the WebContent process
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, commit-queue, ggaren, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Chris Dumez 2019-04-25 15:44:37 PDT
Trying to load a main resource outside the sandbox should not crash the WebContent process. We should simply ignore the load and log an error message.
Comment 1 Chris Dumez 2019-04-25 15:44:54 PDT
<rdar://problem/49808042>
Comment 2 Chris Dumez 2019-04-25 15:46:18 PDT
Created attachment 368279 [details]
Patch
Comment 3 Geoffrey Garen 2019-04-25 16:31:32 PDT
Comment on attachment 368279 [details]
Patch

r=me

Can we API test this?
Comment 4 Chris Dumez 2019-04-25 16:40:02 PDT
(In reply to Geoffrey Garen from comment #3)
> Comment on attachment 368279 [details]
> Patch
> 
> r=me
> 
> Can we API test this?

Last I checked, our API test runner was not sandboxed. Do you believe this has changed?
Comment 5 Chris Dumez 2019-04-25 16:40:47 PDT
(In reply to Chris Dumez from comment #4)
> (In reply to Geoffrey Garen from comment #3)
> > Comment on attachment 368279 [details]
> > Patch
> > 
> > r=me
> > 
> > Can we API test this?
> 
> Last I checked, our API test runner was not sandboxed. Do you believe this
> has changed?

According to rdar://problem/42638129 which I filed a while back, this has not been fixed yet.
Comment 6 WebKit Commit Bot 2019-04-25 17:17:28 PDT
Comment on attachment 368279 [details]
Patch

Clearing flags on attachment: 368279

Committed r244670: <https://trac.webkit.org/changeset/244670>
Comment 7 WebKit Commit Bot 2019-04-25 17:17:31 PDT
All reviewed patches have been landed.  Closing bug.