- From: Ian Kilpatrick via GitHub <sysbot+gh@w3.org>
- Date: Fri, 28 Apr 2017 22:54:21 +0000
- To: public-houdini-archive@w3.org
cc/ @annevk - So a lot of the environment settings object is complex by the fact there isn't one clear "owner" script.
> The API base URL is inherited from the HTML page? Meaning that URL resolution inside a worklet script created via CSS.paintWorklet.loadModule("foo/bar.js") should be relative to index.html, not relative to foo/bar.js?
So I think needs to more or less be this way? I.e.
```js
CSS.paintWorklet.addModule('foo/module1.js');
CSS.paintWorklet.addModule('module2.js');
```
We aren't able to have `API base URL` switch depending on the currently running script right?
> The referrer policy ignores any HTTP headers for the worklet scripts, but instead just uses whatever the HTML page does?
> The HTTPS state is copied from the document? So if I import a worklet over an insecure transport, it still counts as secure, as long as the hosting page uses HTTPS?
I'm not sure what is correct for these two... @mkwst might have some thoughts.
--
GitHub Notification of comment by bfgeek
Please view or discuss this issue at https://github.com/w3c/css-houdini-drafts/issues/396#issuecomment-298124605 using your GitHub account
Received on Friday, 28 April 2017 22:54:28 UTC