apache / apache/cordova-plugin-inappbrowser

iOS beforeload event blank page

Open
#809 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem

I tried to open a new window with beforeload event, but the link is not loading. It shows a blank page

``` window.cordova.InAppBrowser.open("","_blank","location=no,beforeload=yes")```

I also tried with `beforeload=get`

### What is expected to happen?

The URL should be loaded properly

### What does actually happen?

A blank page is opened. It works fine without `beforeload=yes`

### Environment, Platform, Device

iOS: 13.0
cordova: 9.0.0
cordova-plugin-inappbrowser: tried with 3.1.0 and `cordova plugin add https://github.com/apache/cordova-plugin-inappbrowser`

Both the versions not working

## Checklist

- [x] I searched for existing GitHub issues
- [ ] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Reproduce the blank page using window.cordova.InAppBrowser.open with beforeload=yes and beforeload=get on iOS 13. Start at the InAppBrowser beforeload handling entry point and compare it with the behavior when beforeload is omitted. Done means the URL loads normally while beforeload remains enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.