Skip to content

fix(onboarding): address some API differences on Firefox Android (vs Desktop) - #3772

Merged
philipp-classen merged 1 commit into
mainfrom
fix_onboarding_on_android_v2
Nov 17, 2026
Merged

philipp-classen merged 1 commit into
mainfrom
fix_onboarding_on_android_v2

Conversation

@philipp-classen

@philipp-classen philipp-classen commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

The on-boarding is currently flakey on Android. It depends how the on-boarding is being reached, but the underlying problem are slight API differences on the Firefox Android platform. These changes should not be needed on Desktop.

The symptoms that this PR is trying to fix is that a user could end up with a dead "Start browsing" button, or the panel closing with nothing opened.


Test instructions (generated, but verified on a Volla Phone with Android 16 and Firefox 160 - but only the breakage, not the fix):

Before (store version)

  1. Install Ghostery from its addons.mozilla.org page and tap OK. A "Welcome to Ghostery" tab opens. Do
    not tap anything in it.
  2. Open https://example.com in a new tab.
  3. Tap ⋮ → Extensions → Ghostery. The panel shows a red "Enable Ghostery" button.
  4. Tap "Enable Ghostery". One of two things happens, and it changes between tries (3 and 2 times in my 5
    tries):
    • The panel closes and nothing opens. Go back to step 3.
    • The welcome page loads inside the panel (no address bar). Continue.
  5. Tap "Enable Ghostery", then the first filtering mode card, then "Start browsing".
    • Bug: "Start browsing" does nothing. Press back three times to leave.
  6. Open the panel again on example.com and tap "Tell us" in the card at the bottom.
    • Bug: the panel closes and no tab opens (5 of 5 tries).

After (PR build)

  1. Remove the store version: ⋮ → Extensions → Manage extensions → Ghostery AdBlocker for Privacy →
    Remove.
  2. In Firefox, turn on Settings → "Remote debugging via USB".
  3. In the PR checkout, run:
    npm ci && npm run build firefox
    npx web-ext run -t firefox-android --adb-device --firefox-apk org.mozilla.firefox
    --no-reload
  4. Tap OK on "Ghostery AdBlocker for Privacy was added". The welcome tab opens. Do not tap anything in
    it.
  5. Open https://example.com in a new tab, then ⋮ → Extensions → Ghostery → "Enable Ghostery".
    • Expected: the panel closes and the welcome page opens in a new tab (address bar visible), every
      time.
  6. Tap "Enable Ghostery", then the first filtering mode card, then "Start browsing".
    • Expected: the tab closes and example.com is shown again.
  7. Open the panel again and tap "Tell us".
    • Expected: the panel closes and the survey opens in a new tab.

Notes for the tester:

  • The panel only exists in the menu while a website is open. From the Firefox homepage, ⋮ → Extensions
    opens the add-on manager instead.
  • In step 6 (before) and step 7 (after), do not open the panel's Menu (☰) first. After a Menu visit,
    links load inside the panel in both builds; that is expected.
  • The "Tell us" card is a survey notice and may change or disappear.
  • If the panel shows no "Enable Ghostery" button after installing, old settings survived. Remove
    Ghostery again (twice if it is still listed) and reinstall.

@philipp-classen philipp-classen added the Android For Android platform specific issues label Nov 17, 2026
@philipp-classen
philipp-classen force-pushed the fix_onboarding_on_android_v2 branch from 2500cb7 to d9f9ac0 Compare November 17, 2026 14:33
@philipp-classen
philipp-classen force-pushed the fix_onboarding_on_android_v2 branch from d9f9ac0 to ca549c3 Compare November 17, 2026 14:36
@philipp-classen
philipp-classen marked this pull request as ready for review November 17, 2026 14:36
@philipp-classen philipp-classen changed the title Fix onboarding on Android: opening it could lead to blank page fix(onboarding): address some API differences on Firefox Android (vs Desktop) Nov 17, 2026
@philipp-classen
philipp-classen merged commit 0f3173e into main Nov 17, 2026
9 checks passed
@philipp-classen
philipp-classen deleted the fix_onboarding_on_android_v2 branch November 17, 2026 16:40
@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