Bug 129579

Summary: Misleading sandbox extension error when loading a nonexistent local file
Product: WebKit Reporter: Blaze Burg <bburg>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: ap, ddkilzer, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Blaze Burg
Reported 2014-03-02 12:51:47 PST
When I debug DumpRenderTree using lldb, I typically run it from the root of the working copy, so passing "LayoutTests/inspector/test-name.html" works fine. But if I pass the same as an argument to DumpRenderTree or WebKitTestRunner from a custom Xcode scheme, I get an obtuse sandbox extension error. Could not create a sandbox extension for '/Users/bburg/repos/webkit/OpenSource/WebKitBuild/Vanilla/Debug/LayoutTests/inspector/test-harness-trivially-works.html' It seems that the CWD when running from Xcode is the BUILT_PRODUCTS_DIR, so its trying to open a file that doesn't exist with that base directory. That's fine, but it would save a lot of confusion if the error message said the file did not exist.
Attachments
Alexey Proskuryakov
Comment 1 2014-03-03 09:42:28 PST
Same thing happens when opening a local file that references a non-existent subresource. Yes, it's not right to log a warning any time a non-existent local file is referenced.
Note You need to log in before you can comment on or make changes to this bug.