Re: [whatwg/dom] Proposal: DOM APIs in web workers? (Issue #1217)

> What are the advantages of this proposal, vs being able to create an iframe that runs in a different thread?

Ability to create an iframe is gated on CSP; `frame-src 'none'` will prevent that from working. `worker-src` similarly gates workers, of course, but it's a lot more justifiable (and also objectively less dangerous) to relax your `worker-src` to do off-thread computation than to relax your `frame-src`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1217#issuecomment-1700327611
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1217/1700327611@github.com>

Received on Thursday, 31 August 2023 03:49:11 UTC