Re: [fetch] Introduce convenience property for request's context (#93)

I agree that we'll need need different types for `track`, `audio` and `video`. I'm not convinced that we should have different types for `script` and `worker`. Both of those process the returned resource in largely the same way. The main difference is on which thread they execute.

I think the initiator isn't entirely right. I was thinking of something more like (for document loads) `meta-refresh`, `hyperlink`, `location-api`, `form`, (for image loads) `css-background`, `css-image`, `img-element`, (for scripts) `script-element`, `shared-worker`, `importscripts-api`, etc. This is a very incomplete list obviously.

I'm honestly not sure that it's worth exposing at this time. Seems like a lot of work to define and I'm not convinced of the value. It seems unlikely to me to help implementations implement CSP.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/93#issuecomment-126068351

Received on Wednesday, 29 July 2015 19:30:33 UTC