Skip to content

fix(panel): Firefox Android only "Hide content block" does not close the panel - #3773

Merged
philipp-classen merged 1 commit into
mainfrom
firefox_android_workaround_to_close_the_panel
Nov 18, 2026
Merged

philipp-classen merged 1 commit into
mainfrom
firefox_android_workaround_to_close_the_panel

Conversation

@philipp-classen

Copy link
Copy Markdown
Member

Workaround for Firefox Android: if you move between views (e.g. open and close the Menu), the panel cannot close itself.
(The user can still close it with the back button, but the extension cannot close it.)

The workaround here prevents reaching a state with multiple history entries.

Note: this is related to 0f3173e, which fixed the same problem for the onboarding. Since Firefox 139, a popup can close itself only while its session history has exactly one entry (https://bugzilla.mozilla.org/show_bug.cgi?id=1959610).


Steps to reproduce (I manually confirmed the breakage on a Volla phone with Android 16; but not the fix, which has been tested in an emulator):

  1. Open https://example.com in a tab.
  2. Tap ⋮ → Extensions → Ghostery. The panel opens, with an example.com button at the top centre.
  3. Tap ☰ at the top right of the panel. A page titled "Menu" opens.
  4. Tap ✕ at the top right. You are back on the first panel page.
  5. Tap the example.com button. A list opens.
  6. Tap "Hide content block".
  • Expected: the panel closes. The website shows a card at the bottom: "Hide distraction – Select distracting element".
  • Before this PR: the panel stays open and covers the website.

…and close the Menu), the panel cannot close itself.

(The user can still close it with the back button, but the extension cannot close it.)

The workaround here prevents reaching a state with multiple history entries.

Note: this is related to 0f3173e,
which fixed the same problem for the onboarding. Since Firefox 139, a popup can close itself only while its session
history has exactly one entry (https://bugzilla.mozilla.org/show_bug.cgi?id=1959610).

Steps to reproduce:

1. Open https://example.com in a tab.
2. Tap ⋮ → Extensions → Ghostery. The panel opens, with an example.com button at the top centre.
3. Tap ☰ at the top right of the panel. A page titled "Menu" opens.
4. Tap ✕ at the top right. You are back on the first panel page.
5. Tap the example.com button. A list opens.
6. Tap "Hide content block".

- Expected: the panel closes. The website shows a card at the bottom: "Hide distraction – Select
  distracting element".
- Before this fix: the panel stays open and covers the website.
@philipp-classen philipp-classen added the Android For Android platform specific issues label Nov 17, 2026
@philipp-classen
philipp-classen marked this pull request as ready for review November 17, 2026 20:40
@smalluban smalluban changed the title (Firefox Android only) "Hide content block" does not close the panel fix(panel): Firefox Android only "Hide content block" does not close the panel Nov 18, 2026
@smalluban

smalluban commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

@philipp-classen Please follow the semantic prefix (https://www.conventionalcommits.org/en/v1.0.0/- we don't strictly follow it, but use the prefix where possible). PR titles become commit messages when squashed merged.

@philipp-classen
philipp-classen merged commit 0d9e503 into main Nov 18, 2026
9 checks passed
@philipp-classen
philipp-classen deleted the firefox_android_workaround_to_close_the_panel branch November 18, 2026 09:53
@smalluban smalluban mentioned this pull request Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android For Android platform specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants