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 }}
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
[Bug] Not using userAgentFallback to inject the userAgent causes service workers to get the Electron user agent #1312
This is the same issue thats been raised many times here. Eg: #1112
Using latest release of nativefier, the above problem exists even if user agent is overridden.
The troubleshooting steps mentioned in README didnt help either.
This is because user agent used by service worker is still the original one. (Ref: GoogleChrome/workbox#2314)
According to the link above, it makes sense to use the original user agent for service workers.
We do use this to an extent (if you do not provide a user agent and don't specify the user agent honest flag. However a quick experiment with doing this for all (even injected user agents) seems promising. I'll see if we can get a release to do this soon.
changed the title [-][Possible Solution] WhatsApp reporting outdated Chrome version[/-][+][Bug] Not using userAgentFallback to inject the userAgent causes service workers to get the Electron user agent[/+]on Nov 29, 2021
Activity
TheCleric commentedon Nov 29, 2021
We do use this to an extent (if you do not provide a user agent and don't specify the user agent honest flag. However a quick experiment with doing this for all (even injected user agents) seems promising. I'll see if we can get a release to do this soon.
[-][Possible Solution] WhatsApp reporting outdated Chrome version[/-][+][Bug] Not using userAgentFallback to inject the userAgent causes service workers to get the Electron user agent[/+]Use userAgentFallback for userAgent injection (PR #1316)
Use userAgentFallback for userAgent injection (PR nativefier#1316)