Skip to content

fix(close-watcher): allow back navigation when nothing is open - #31520

Merged
ShaneK merged 1 commit into
mainfrom
FW-7737
Oct 5, 2026
Merged

ShaneK merged 1 commit into
mainfrom
FW-7737

Conversation

@ShaneK

@ShaneK ShaneK commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Issue number: resolves #29648


What is the current behavior?

Currently, with experimentalCloseWatcher enabled, a CloseWatcher is always active, so back does nothing when no overlay or menu is open. In Capacitor and Cordova apps on Android the flag also breaks the hardware back button entirely, because Android WebView never sends it to a CloseWatcher and we stopped listening for the native backbutton event.

What is the new behavior?

The CloseWatcher now only exists while a menu or an overlay other than a toast is open, so back navigates normally otherwise. We also always listen for backbutton again, which browsers never fire, so the hardware back button works in hybrid apps.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Current dev build

9.0.7-dev.11790887756.13f9320e

@ShaneK
ShaneK requested a review from a team as a code owner October 1, 2026 20:48
@ShaneK
ShaneK requested a review from thetaPC October 1, 2026 20:48
@vercel

vercel Bot commented Oct 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ionic-framework Ready Ready Preview Oct 1, 2026 8:48pm UTC

Request Review

@github-actions github-actions Bot added the package: core @ionic/core package label Oct 1, 2026

@thetaPC thetaPC left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShaneK
ShaneK added this pull request to the merge queue Oct 5, 2026
Merged via the queue into main with commit 6532bcb Oct 5, 2026
70 checks passed
@ShaneK
ShaneK deleted the FW-7737 branch October 5, 2026 18:15

This branch was successfully deployed

1 active deployment
Preview — 3f9320ea Deployed Oct 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants