ionic-team / ionic-team/ionic-framework

bug: CloseWatcher API Prevents Navigation When No Overlays Are Present in Chromium v126

Ouverte
#29,648 5 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
package: core type: bug
Langage dominant
TypeScript
Étoiles
52.7k
Forks
13.3k
Merge moyen
1 j 15 h
PR mergées (30 j)
51

Description

### Prerequisites

- [X] I have read the [Contributing Guidelines](https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.

### Ionic Framework Version

v8.x

### Current Behavior

Hello,

I recently noticed that the CloseWatcher API, which had been removed, is now back in Chromium version 126. After testing this feature, I found it to be working very well overall. However, I encountered an issue:

When no overlays are present on the page, I am unable to navigate back to the previous page. This seems to be a bug.

Could you please look into this issue? Thank you for your assistance.

### Expected Behavior

The CloseWatcher API should only be active when overlays are present, allowing normal navigation when there are no overlays.

### Steps to Reproduce

1- Clone the repository and navigate to the project directory.
2- Enable `experimentalCloseWatcher` option.
3- Run the command `npm run start` to start the application.
4- Open a mobile browser and navigate to any page with overlays, such as `src/components/modal`.
5- Close all overlays.
6- Try to navigate back to the previous page using the back button on your mobile device.

### Code Reproduction URL

#

### Ionic Info

v8.2.2

Android Chrome v126

### Additional Information

_No response_

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.