Open Bug 1638814 Opened 5 years ago Updated 4 years ago

Allow fetch() and XHR in workers use a <link preload> response

Categories

(Core :: DOM: Networking, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: mayhemer, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

No description provided.
Depends on: 1618543
No longer depends on: 1618544
Summary: Allow fetch() in workers use a <link preload> response → Allow fetch() and XHR in workers use a <link preload> response
Priority: -- → P2
Whiteboard: [necko-triaged]

(In reply to Honza Bambas (:mayhemer) from comment #1)

https://phabricator.services.mozilla.com/D74899#inline-439234

Andrew, do you know if this is something we need, and how hard it's to implement?

Flags: needinfo?(bugmail)

(In reply to Valentin Gosu [:valentin] (he/him) from comment #3)

(In reply to Honza Bambas (:mayhemer) from comment #1)

https://phabricator.services.mozilla.com/D74899#inline-439234

Andrew, do you know if this is something we need, and how hard it's to implement?

The anchor link doesn't seem to work for me, I don't know what the question is.

Flags: needinfo?(bugmail)

https://phabricator.services.mozilla.com/D74899#inline-439234

Comment here

baku:
If you do this it means that fetch() from workers cannot use the preload data.
Readying the spec, this should be supported. Maybe this can be done in a follow up because the fix is not trivial.
We need to store the Preload data in a shareable place between workers and window.

https://phabricator.services.mozilla.com/D75557#inline-439509
and here

baku:
Here we have exactly the same problem as in fetch() for workers. It should be fixed too

This is a follow-up for workers reusing preload data.

Flags: needinfo?(bugmail)

Thank you for excerpting the questions; I know I had changed the default phabricator setting so that it only shows inline comments made explicitly on the current revision in the code listings because the various bots were ending posting N copies of inline comments... I guess the anchors must be to those despite the comments seeming to exist in the transaction log?

My understanding of the current state of things is that Preload is not (sufficiently) specified in terms of fetch, so it's not actually clear what preload should be doing as it relates to workers. (Well, per spec, I guess workers shouldn't interact with preload, but it seems like there was some intent that it should and maybe Blink does it at some level?) I expect if we were looking to implement this, we'd first want to help out with the spec work. The key issues as I understand them are:

Flags: needinfo?(bugmail)

Do we know that Chrome supports this? And if so, for what worker types? (When they are same-process perhaps?)

Thanks!

Severity: -- → S3
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.