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
Whenever a new FirefoxPWA window is opened, all contents in the profile folder under chrome/pwa/... are being overwritten by the default files. I have not checked if any other files are also being overwritten. I thought I would report this as it is a bit of an odd behaviour in my opinion.
Steps to Reproduce
Try to edit anything in the profile folder under chrome/pwa/
Save changes
Restart the FirefoxPWA window
See no changes in the FirefoxPWA window and all changes in the files under chrome/pwa/ being gone
Environment
Operating system: Windows 10
System architecture: 64-bit
Installation method: Chocolatey
FirefoxPWA extension version: 1.0.0
FirefoxPWA native version: 1.0.0
Firefox version: 91.0.2
The text was updated successfully, but these errors were encountered:
It only overwrites/copies chrome/pwa and startupCache in the profile, and _autoconfig.cfg and defaults/pref/autoconfig.js in the Firefox installation (and some additional files on macOS, but this is actually needed on every launch so OS integration works correctly). I did this to make sure UserChrome stuff is always up-to-date, as updating them when package updates would be harder because user may have multiple OS and Firefox profiles.
Maybe the program could do this only when files actually differ from the latest installed version (C:\Program Files\FirefoxPWA\userchrome on Windows) but I'm not sure what the best way of checking if files need update would be. Perhaps it could check the hash/content of chrome/pwa/chrome.jsm as it contains package version which should be changed with every new release.
What about a script that only runs on package updates/installations to reduce overwrites. Should that not be possible? Your idea also sounds good. Maybe you could do that with an extra version file. But to be honest, I do not know to much about this topic. This behaviour just stood out to me while I was messing with the files in chrome/pwa and thought I should tell you.
I added a check to only copy files to the profile if the global chrome/pwa/chrome.jsm is newer than the profile file. Because that file contains version, it should be automatically copied on every release. Always copying files can still be enabled in the extension settings. Note that on macOS it still copies files every time, because this is needed to properly set PWA name.
Description
Whenever a new FirefoxPWA window is opened, all contents in the profile folder under chrome/pwa/... are being overwritten by the default files. I have not checked if any other files are also being overwritten. I thought I would report this as it is a bit of an odd behaviour in my opinion.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: