Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] Firefox: Private Browsing for external Scripts #582

Open
sotasan opened this issue Apr 11, 2024 · 1 comment
Open

[🐞] Firefox: Private Browsing for external Scripts #582

sotasan opened this issue Apr 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sotasan
Copy link

sotasan commented Apr 11, 2024

Describe the bug

Hey,

apparently Firefox currently doesn't support service workers in private browsing mode, so the external third party scripts aren't being called at all, but the inline scripts work without a problem. Is there a way to support the external scripts like the inline scripts as a fallback or is there no way to get it working without the service worker?

Reproduction

https://github.com/sotasan/squalid-spectrum

Steps to reproduce

  1. pnpm install
  2. pnpm build
  3. pnpm preview
  4. Open http://localhost:4321 in Firefox's private browsing

Browser Info

Firefox

Additional Information

No response

@sotasan sotasan added the bug Something isn't working label Apr 11, 2024
@kuraobi
Copy link

kuraobi commented Apr 26, 2024

I'm testing Partytown right now and spent a few hours figuring this out too.

After replacing this in the code snippet:

o=r.createElement("script")).innerHTML=l[n].innerHTML

with

o=r.createElement("script")).innerHTML=l[n].innerHTML,o.src=l[n].src

It works. I don't know anything about the project, but it may help fixing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants