apache / apache/cordova-plugin-inappbrowser

InAppBrowser loadstart is not firing when clicking on a pdf link after chrome update

Open
#459 1 comment 0 reactions 0 assignees View on GitHub
platform: android support
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report
Inappbrowser loadstart is not firing when clicking on a pdf link after chrome update on android
## Problem
On Android when clicking on a pdf link on site loaded on InAppBrowser, loadstart event is not firing.
Issue happening only after chrome update, no issues was there before and if chrome update is uninstalled it works fine

Suppose google is loaded on Android InAppBrowser, search any pdf document and when clicking on particular pdf link loadstart event is not firing
Load start is firing for all other links, only issue with document/pdf links

var windowref = cordova.InAppBrowser.open('https://www.google.com', '_blank', 'location=yes');
windowref.addEventListener('loadstart', function (e) {
alert('URL: '+e.url);

});

### What is expected to happen?

loadstart event should fire, it was working before chrome update and even if chrome update is removed, it still working

### What does actually happen?

loadstart event should firing

## Information

### Command or Code

### Environment, Platform, Device

### Version information

## 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

Start by reproducing the issue on Android with cordova.InAppBrowser.open, a Google PDF result, and the loadstart listener shown in the report. Compare behavior with and without the Chrome update; done means identifying why PDF navigation differs and restoring the expected loadstart event, with the relevant platform and version details documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, javascript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.