Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.
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

Closed

Description

@firefinchdev

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.

But for the scope of nativefier, things are different. We can have an app level user agent.
Seems like Electron does have some option for this.
See electron/electron#16196
electron/electron#16196 (comment)

Activity

  1. TheCleric commented on Nov 29, 2021

    @TheCleric
    Collaborator

    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.

  2. 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
  3. added a commit that references this issue on Nov 29, 2021
    5f02f14
  4. added a commit that references this issue on Nov 9, 2022
    d301af1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions