You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/31 07:51:11 UTC

[GitHub] [cordova-plugin-wkwebview-engine] gasci opened a new issue #140: WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

gasci opened a new issue #140: WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140
 
 
   # Bug Report
   Received an unexpected URL from the web process: 'file:///Users/gokasci/Library/Developer/CoreSimulator/Devices/2EFBFE26-6A43-4F8C-A502-2AAE7CA5B67A/data/Containers/Bundle/Application/7ED4101B-FDCD-40E0-AD59-A24B37829E40/Curiosmo.app/www/pages/templates/homepage.html'
   WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
   
   ## Problem
   I receive a sandbox error when I try to direct the user to a local .html file in my app:
   'file:///Users/gokasci/Library/Developer/CoreSimulator/Devices/2EFBFE26-6A43-4F8C-A502-2AAE7CA5B67A/data/Containers/Bundle/Application/7ED4101B-FDCD-40E0-AD59-A24B37829E40/Curiosmo.app/www/pages/templates/homepage.html' on iOS 13. (It works fine on below iOS 13.)
   
   ### What is expected to happen?
   After user login on 'index.html', user should be directed to 'homepage.html'
   
   ### What does actually happen?
   After the user login on 'index.html', the user is stuck on 'index.html' and the device gives the error above.
   
   ## Information
   https://github.com/react-native-community/react-native-webview/issues/952
   https://stackoverflow.com/questions/40123321/wkwebview-run-local-html-in-document-received-an-unexpected-url-from-the-web-p
   https://forums.developer.apple.com/thread/95473
   
   ### Command or Code
   cordova platform add ios
   cordova plugin add cordova-plugin-webview-engine
   
   ### Environment, Platform, Device
   ios 5.1.1
   
   ### Version information
   cordova-pdf-generator 2.0.8 "PDFGenerator"
   cordova-plugin-app-version 0.1.9 "AppVersion"
   cordova-plugin-apprate 1.5.0 "AppRate"
   cordova-plugin-badge 0.8.8 "Badge"
   cordova-plugin-calendar 5.1.5 "Calendar"
   cordova-plugin-camera 4.1.0 "Camera"
   cordova-plugin-customurlscheme 4.4.0 "Custom URL scheme"
   cordova-plugin-device 1.1.7 "Device"
   cordova-plugin-dialogs 1.2.1 "Notification"
   cordova-plugin-file 6.0.1 "File"
   cordova-plugin-firebase-analytics 4.1.2 "FirebaseAnalyticsPlugin"
   cordova-plugin-firebase-messaging 4.1.1 "FirebaseMessagingPlugin"
   cordova-plugin-inappbrowser 3.2.0 "InAppBrowser"
   cordova-plugin-ios-camera-permissions 1.2.0 "iOS Permissions"
   cordova-plugin-media-capture 3.0.2 "Capture"
   cordova-plugin-native-settings 1.0.0 "NativeSettings"
   cordova-plugin-nativestorage 2.3.2 "NativeStorage"
   cordova-plugin-navigationbar-color 0.0.8 "NavigationBar"
   cordova-plugin-purchase 9.0.0 "Purchase"
   cordova-plugin-splashscreen 5.0.3 "Splashscreen"
   cordova-plugin-statusbar 2.4.3 "StatusBar"
   cordova-plugin-whitelist 1.3.3 "Whitelist"
   cordova-plugin-wkwebview-engine 1.2.1 "Cordova WKWebView Engine"
   cordova-plugin-wkwebview-file-xhr 2.1.4 "Cordova WKWebView File XHR Plugin"
   cordova-plugin-x-socialsharing 5.4.7 "SocialSharing"
   cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
   cordova-support-google-services 1.4.0 "cordova-support-google-services"
   cordova.plugins.diagnostic 5.0.1 "Diagnostic"
   es6-promise-plugin 4.2.2 "Promise"
   
    android 8.1.0
    browser 6.0.0
    ios 5.1.1
    osx 5.0.0
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] breautek commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
breautek commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606593286
 
 
   > Ignoring request to load this main resource because it is outside the sandbox
   
   This sounds like you're trying to access a resource that is "outside" of your app.
   
   > (It works fine below iOS 13.)
   
   This suggests to me you're trying to use the exact same URL (maybe hard-coded) on different simulators.
   
   Make sure you're using relative paths, not absolute paths. You cannot after all determine the UUID portion of the url on iOS.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] gasci closed issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
gasci closed issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] jcesarmobile commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
jcesarmobile commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606568104
 
 
   how do you redirect to homepage.html?
   can you provide a sample app?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606608992
 
 
   While testing in a blank app, we realized that putting index.html in a folder and redirecting it to another .html in another folder outside the index.html's folder causes the problem:
   ```
   -folder1
   --index.html
   -folder2
   --redirected.html
   ```
   
   The solution is to put secondary html' into subdirectories of index.html:
   ```
   -index.html
   -folder2
   --redirected.html
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] gasci commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
gasci commented on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606608992
 
 
   While testing in a blank app, we realized that putting index.html in a folder and redirecting it to another .html in another folder outside the index.html's folder causes the problem:
   
   -folder1
   --index.html
   -folder2
   --redirected.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606608992
 
 
   While testing in a blank app, we realized that putting index.html in a folder and redirecting it to another .html in another folder outside the index.html's folder causes the problem:
   -folder1
   --index.html
   -folder2
   --redirected.html
   
   The solution is to put secondary html's in subdirectories of index.html:
   -index.html
   -folder2
   --redirected.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


[GitHub] [cordova-plugin-wkwebview-engine] gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox

Posted by GitBox <gi...@apache.org>.
gasci edited a comment on issue #140: iOS 13 Sandbox Issue - WebPageProxy::Ignoring request to load this main resource because it is outside the sandbox
URL: https://github.com/apache/cordova-plugin-wkwebview-engine/issues/140#issuecomment-606608992
 
 
   While testing in a blank app, we realized that putting index.html in a folder and redirecting it to another .html in another folder outside the index.html's folder causes the problem:
   -folder1
   --index.html
   -folder2
   --redirected.html
   
   The solution is to put secondary html' into subdirectories of index.html:
   -index.html
   -folder2
   --redirected.html

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org