Bug 160188

Summary: Database Process: ASSERTION FAILED: paths.size() == handles.size() with SANDBOX_EXTENSIONS disabled
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, beidson, cdumez
Priority: P2 Keywords: LayoutTestFailure
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=160398
Attachments:
Description Flags
Patch svillar: review+

Description Carlos Garcia Campos 2016-07-25 23:49:13 PDT
This happens in ports with sandbox extensions disabled, and it's making several tests to crash in debug builds. The SandboxExtension implementation is empty in case of building with sandbox extensions disabled, so that we are actually allocating no extensions at all in NetworkProcessProxy::grantSandboxExtensionsToDatabaseProcessForBlobs(). When the message arrives to database process, we have a list of paths, but an empty list of hanldes which causes the assertion. We can just avoid that message entirely in case of building without sandbox extensions.
Comment 1 Carlos Garcia Campos 2016-07-25 23:54:02 PDT
Created attachment 284567 [details]
Patch
Comment 2 Brady Eidson 2016-07-28 06:19:52 PDT
Yup looks good.
Comment 3 Carlos Garcia Campos 2016-07-28 22:17:27 PDT
Committed r203856: <http://trac.webkit.org/changeset/203856>