Better popups from FuriOS

This changes popup handling based on the work by FuriLabs for the FLX1. Jesús Higueras did the hard work for this.

To credit them, I've cherry-picked and re-formatted multiple commits from https://github.com/FuriLabs/furios-firefox-tweaks.

Known issues (no functional regression):

Worth discussing:

  • appMenu code is no longer in a separate file

Tested on postmarketOS edge

  • Firefox 140.4 ESR
    • Phosh
    • Gnome Mobile
    • Plasma Mobile
    • Sxmo
  • Firefox 144
    • Phosh
    • Gnome Mobile
    • Plasma Mobile
    • Sxmo
  • Firefox Beta 145
    • Phosh (in Debian distrobox, Phosh only)
  • Firefox Nightly 146
    • Phosh (in Debian distrobox, Phosh only)

Fun fact

I had this almost done in March, but could not figure out how to make installing extensions work (the necessary popups would not show up).

So I cherry-picked all the commits again, reformatted all the JavaScript FuriOS have in their config to make it pass my pre-commit hook, to then realize that I still had the very same problem. Fortunately, I've found a solution 1peter10/mobile-config-firefox@2950f91b because I was so desperate that I discussed the issue with Antrophic Claude (which did not suggest this exact solution, but it's solution had the -100vh part).

CC @ollieparanoid @dannycolin

Edited by Peter Mack

Merge request reports

Loading