You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
reopening a PWA after closing all windows opens new tab page #42
A new window with the Firefox new tab / home page is opened. There is also no way to get into the PWA anymore and the app has to be closed and restarted.
I don't know how hard it would be to roll into a proper "fix", but my naïve† workaround was to update the browser.startup.homepage setting in about:config to be the same as the start_url page of the PWA:
Open the app's Preferences (e.g., ⌘ Comma on a Mac)
While the Preferences page is displayed, open "Developer Tools » Console" (⌘⌥ K)
In the console, type: document.location.href="about:config" and hit Enter
Accept the Risk
Type home into the Search Box, then change the value of the browser.startup.homepage field from about:home to the URL of your PWA and hit Enter
Et voilà! Close the window/tab (⌘ W) and re-open a new one (⌘ N or ⌘ T) and it should launch your app from now on, rather than showing the Firefox "about:home" page...
† PS — It goes without saying, of course, that this is all likely unsupported: YMMV; use at your own risk; void where prohibited; not applicable in New Hampshire; etc. ;-D
Well, at least that workaround is better than nothing. I will try to check how Firefox handles this internally, but if I don't find anything easy and useful, I will just implement setting homepage URL when you launch a PWA.
It might not work when multiple PWAs are in the same profile, but they already don't work properly on macOS (#81) and users should install each into own profile, so I guess it's fine.
I implemented a fix/workaround for this which will be released in 2.0.0. However, it still doesn't work when multiple PWAs are in the same profile. This does not matter currently as multiple PWAs per profile should not be used because of #81, but once it is fixed, this also needs to be reworked.
Activity
dithom commentedon Sep 20, 2021
Same here, a fix would be awesome!
DabeDotCom commentedon Jun 20, 2022
I don't know how hard it would be to roll into a proper "fix", but my naïve† workaround was to update the
browser.startup.homepagesetting inabout:configto be the same as thestart_urlpage of the PWA:⌘ Commaon a Mac)⌘⌥ K)document.location.href="about:config"and hit Enterhomeinto the Search Box, then change the value of thebrowser.startup.homepagefield fromabout:hometo the URL of your PWA and hit EnterEt voilà! Close the window/tab (
⌘ W) and re-open a new one (⌘ Nor⌘ T) and it should launch your app from now on, rather than showing the Firefox "about:home" page...† PS — It goes without saying, of course, that this is all likely unsupported: YMMV; use at your own risk; void where prohibited; not applicable in New Hampshire; etc. ;-D
filips123 commentedon Jun 22, 2022
Well, at least that workaround is better than nothing. I will try to check how Firefox handles this internally, but if I don't find anything easy and useful, I will just implement setting homepage URL when you launch a PWA.
It might not work when multiple PWAs are in the same profile, but they already don't work properly on macOS (#81) and users should install each into own profile, so I guess it's fine.
filips123 commentedon Jul 31, 2022
I implemented a fix/workaround for this which will be released in 2.0.0. However, it still doesn't work when multiple PWAs are in the same profile. This does not matter currently as multiple PWAs per profile should not be used because of #81, but once it is fixed, this also needs to be reworked.
Fix reopening web app after closing all windows on macOS (fixes filip…