Skip to content

Web: extensions on playground no longer work on Safari #108285

Closed

Description

Steps:

  • yarn web
  • open in Safari

I believe this is related to how we load the web worker extension host. Errors:

Unrecognized Content-Security-Policy directive 'worker-src'.
SecurityError: The operation is insecure.

Activity

  1. added
    bug
    web
    on Oct 8, 2020
  2. added
    safari
    important
    on Oct 8, 2020
  3. alexdima commented on Oct 9, 2020

    @alexdima
    Member

    There is nothing I could do to get this working in Safari. Basically, I could not get an <iframe> with a null origin to start up a web worker. Here are the combinations I tried on Safari:

    <iframe> sandbox <iframe> src WebWorker src origin inside <iframe> Worker runs
    allow-scripts data: data: null No
    allow-scripts data: blob: null No
    allow-scripts blob: data: null No
    allow-scripts blob: blob: null No
    allow-scripts allow-same-origin data: data: null No
    allow-scripts allow-same-origin data: blob: null No
    allow-scripts allow-same-origin blob: data: null No
    allow-scripts allow-same-origin blob: blob: http://localhost:8080 Yes

    The only way I could get a WebWorker running in an <iframe> is if the <iframe> is sharing the origin with the outer page. This beats the purpose of having an <iframe> to begin with, so I will do the following:

    • disable <iframe> wrapping on Safari for now
    • look into hosting an <iframe> src on a different domain, similar to webviews.
  4. alexdima commented on Oct 9, 2020

    @alexdima
    Member

    fyi Matt Bierner (@mjbvz) I will need some help from you to host the <iframe> src on a different domain, similar to webviews.

    fyi Eric Amodio (@eamodio) Jackson Kearl (@JacksonKearl)

  5. changed the title [-]Web: playground no longer opens on Safari[/-] [+]Web: extensions on playground no longer work on Safari[/+] on Oct 16, 2020
  6. mjbvz commented on Oct 16, 2020

    @mjbvz
    Contributor

    Alexandru Dima (@alexdima) Sure! Let's set up a meeting to talk about the problem and what we do today for webviews. After our Monday team meeting would work for me

  7. rebornix commented on Oct 16, 2020

    @rebornix
    Contributor
  8. alexdima commented on Oct 22, 2020

    @alexdima
    Member

    We now have <iframe> wrapping also on Safari thanks to using a different origin.

  9. locked and limited conversation to collaborators on Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugimportantsafariverifiedweb

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions