apache / apache/cordova-plugin-inappbrowser
[Android] beforeload event for POST method is not fired
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
# Bug Report
beforeload event for POST method is not fired
## Problem
I read this https://github.com/apache/cordova-plugin-inappbrowser/pull/367
And try to build an app with https://github.com/dpa99c/cordova-plugin-inappbrowser-test
Then open inappbrowser with beforeload = YES option.
Click on `GET link`, beforeload, loadstart and loadstop events are fired
Click on `Submit`, only loadstart and loadstop events are fired
### What is expected to happen?
`beforeload` event should be fired with Submit form (POST method)
### What does actually happen?
Click on `Submit`, only loadstart and loadstop are fired
## Information
Android: 7.1
Cordova ver 9
source code and package.json get from https://github.com/dpa99c/cordova-plugin-inappbrowser-test
## Checklist
- [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

Contributor guide
Research direction
Reproduce the behavior with the cordova-plugin-inappbrowser-test app and its beforeload, loadstart, and loadstop event flow. Trace the Android handling of a submitted POST form, then verify that beforeload fires for Submit as it does for the GET link and rerun the test app to confirm the event sequence.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100