Re: [heycam/webidl] Propagate active script to callbacks (#902)

Basically, this PR is adding another "incumbent-like thing" that gets propagated in the same way as incumbent: namely, the active script. In particular, the active script's base URL is used for `import()`.

So the example `setTimeout(eval, 0, 'import(`./example.mjs`)');` is about propagating the active script, not about propagating the incumbent. (The incumbent would come into play with an example like `setTimeout(eval, 0, 'postMessage(...)')`.)

So indeed, this is a bit more in @hiroshige-g's area. But, it will likely impact the bindings code, because it will need propagation through Web IDL callback conversion + calling in the same way incumbent currently does.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/902#issuecomment-657623987

Received on Monday, 13 July 2020 15:22:02 UTC