Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation dialog (onbeforeunload) displayed after popped from webview page #337

Closed
AlexV525 opened this issue May 11, 2020 · 2 comments
Closed

Comments

@AlexV525
Copy link
Contributor

Environment

Flutter version: 1.17.0 (stable)
Plugin version: 3.1.0
Android version: Android 10

Description

This issue will occur if a web page is using onbeforeunload to control page reload or close. An example would be onbeforeunload .

Expected behavior: Closing a webView without any confirmation, or prevent pop before confirmed/cancelled.

Current behavior: A dialog shown after popped.

Steps to reproduce

  1. Visit onbeforeunload
  2. Pop the webview page. e.g. using Navigator.pop(context).
  3. A dialog displayed. (If not, click "navigate" or "goto" link)

Images

A dialog shown after the webview has been popped.
image

@AlexV525
Copy link
Contributor Author

And it's not localized too.

@pichillilorenzo
Copy link
Owner

Fixed! Instead, I think the localization depends on the language you set on the smartphone. For example, I see the same message but In Italian on my smartphone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants