-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't Read Scrom File In IOS #1063
Comments
Error Log: |
Please fill in the form. How are you trying to load this resource? It sounds like you're trying to navigate the Cordova webview to a local file that is outside of your app's sandbox (ie outside of your app bundle), which the WKWebView disallows. |
Hi @breautek, We have similar issue and I created new bug with details: #1134 |
I didn't know how to respond to your last remark but I finally got around the time of researching. It appears WebKit terminology of "Sandbox" does not mean the same thing as the iOS sandbox. First we can see where WebKit prints out the sandbox error in question here, and it does so when That method does a few different checks, but I believe the main reason why it doesn't work is because I believe We know it doesn't enter any of the conditions and eventually reaches to process.checkURLReceivedFromWebProcess(url); because of your error message prints a couple lines before. This brings us to the WebProcessProxy class. Again, it does some further checks, but the interested one is the So looking to see if/when that variable becomes truthy, that seems to be handled in WebPageProxy::maybeInitializeSandboxExtensionHandle In From the Appe Docs So I believe this is what instructs WKWebView that it is okay to load in content from the app bundle container, so I think the first half of The second half of that method here is what needs to run successfully for WKWebVIew to grant access to loading content outside of the app bundle container.
I'm not an expert on the WebKit base at all, but based on the information available, I believe I don't know if there is a path to make it work, but I think this makes it clear that when WebKit talks about the sandbox, it isn't the same as the iOS sandbox architecture. It's talking about a broad sandbox (as this code is not strictly for iOS, it's used for mac as well). |
I've marked this issue as stale because it's been over a year with no further comments. If this is still an issue in the latest cordova-ios version and an up-to-date iOS version, please let us know. Otherwise, this issue will be closed. |
Closing as stale. |
Bug Report
WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox. In real device
Problem
Can't read the file in cordova ios.
What is expected to happen?
What does actually happen?
Information
Command or Code
Environment, Platform, Device
Version information
Checklist
The text was updated successfully, but these errors were encountered: