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

Opening the preview URL in a standalone tab ask to connect to a StackBlitz project even if the origin is not stackblitz #1087

Open
1 task done
paoloricciuti opened this issue May 30, 2023 · 2 comments
Labels

Comments

@paoloricciuti
Copy link

Describe the bug

At SvelteLab we use the webcontainer api package to run a Sveltekit project in the browser. Given that sometimes it's necessary to open the project in another tab we added this ability to our UI.

But sometimes if I try to open in the new tab I get prompted with the need to connect this tab to a StackBlitz project which obviously does not exist since is not a project generated in stackblitz.

Link to the blitz that caused the error

Steps to reproduce

  1. Go to https://sveltelab.dev
  2. Try to open the preview in another tab (notice this doesn't happen always...it seems to be more usual with Firefox but I was not able to find a reliable reproduction)

Expected behavior

Opening in another tab should display the preview without asking to connect to a StackBlitz project. If the "connect" is needed for some reason developers that uses the webcontainer api package should be able to let the preview connect to their project instead.

Parity with Local

Screenshots

No response

Platform

No response

Additional context

No response

@Nemikolh
Copy link
Member

Hi @paoloricciuti ! I think you are facing the same issue that was reported here: #1025

To summarize, previews in a separate tab do not work on Firefox nor Safari because of storage partitioning. We're currently looking at our options to have a solution that is simple to implement for @webcontainer/api users.

@jrvidal
Copy link
Contributor

jrvidal commented Nov 9, 2023

From #1242, this doesn't seem to work in Chrome either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants