Skip to content

[iOS]: Possible Unhandled Promise Rejection (id: 0): Error: Unable to open URL: about:blank  #20917

@UrbanChrisy

Description

@UrbanChrisy

Environment

System:
OS: macOS High Sierra 10.13.5
CPU: x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
Memory: 147.76 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.11.2 - /usr/local/bin/node
Yarn: 1.9.4 - /usr/local/bin/yarn
npm: 6.2.0 - /usr/local/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.4.0 => 16.4.0
react-native: 0.56.0 => 0.56.0

Description

When I embed certain urls inside of a WebView on iOS is throws an uncaught exception, you can view this log here, which doesn't crash the app or do anything serious that I can find currently. But it shows up in my Sentry crash logs quite a bit. So i though id have a look at why it is occurring.

Reproducible Demo

I tried reproduce it on the expo demo but it doesn't seem to be showing the warning errors, you may have to turn them on but any way. Paste this into any view to get the warnings come up in the console.

<WebView bounces={false} 
         source={{uri: `https://www.youtube.com/embed/CjyIP1AGqzw?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent`}} 
         style={{flex: 1}}/>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions