elisemn opened a new issue, #1261:
URL: https://github.com/apache/cordova-ios/issues/1261
# Bug Report
## Problem
An iframe in our app triggers a navigation action via `window.open` or
`window.top.location.href` to a url that is in our allow-intent allow list. The
url is correctly opened in the system browser. However after it is opened
window.webkit.messageHandlers is undefined which causes runtime errors within
the cordova exec.js file when it attempts to use the cordova message handler to
post a message.
TypeError
null is not an object (evaluating 'window.webkit.messageHandlers.cordova')
### What is expected to happen?
The URL opened by the iframe should be opened in the system browser without
triggering errors within the cordova app.
### What does actually happen?
After the URL is opened window.webkit.messageHandlers undefined errors occur
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
### Command or Code
### Environment, Platform, Device
This issues appears to happen on any iOS mobile device.
### Version information
<!--
What are relevant versions you are using?
For example:
Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
Other Frameworks: Ionic Framework and CLI version
Operating System, Android Studio, Xcode etc.
-->
```
Cordova Packages:
cli: 11.0.0
common: 4.0.2
create: 4.0.0
lib: 11.0.0
common: 4.0.2
fetch: 3.0.1
serve: 4.0.0
Project Installed Platforms:
ios: 6.2.0
```
## Checklist
- [x] I searched for existing GitHub issues
- https://github.com/apache/cordova-ios/issues/1214 looks potentially
related but does not callout the error being triggered by iframe calls to
`window.open` or `window.top.location.href`
- [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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]