Closed
Bug 995484
Opened 11 years ago
Closed 10 years ago
Implement fetch() in ServiceWorkers
Categories
(Core :: DOM: Workers, defect)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: nsm, Assigned: nsm)
References
Details
Attachments
(1 obsolete file)
The fetch() function is available on ServiceWorkerGlobalScope, and asks the UA to make a HTTP request on the ServiceWorker's behalf according to the Fetch specification.
Filing in Necko since most of the work will be exposing Fetch spec semantics via existing HTTP infrastructure.
Relevant specs:
Fetch: http://fetch.spec.whatwg.org/
ServiceWorker: http://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
Comment 1•11 years ago
|
||
> Filing in Necko since most of the work will be exposing Fetch spec
> semantics via existing HTTP infrastructure.
This looks more like an XHR-like thing to me (i.e. a bunch of wrapper code around HTTP channels, that doesn't necessarily live in /netwerk). Jonas, do you have an idea where this code should live?
Updated•11 years ago
|
Flags: needinfo?(jonas)
Assignee | ||
Updated•11 years ago
|
Component: Networking: HTTP → DOM: Workers
The code should probably live in contant/base/src or dom/base.
FWIW I would expect that the implementation would look significantly different from the XHR code since most of the XHR code is back-compat cruft and event handling code, neither of which is needed for the fetch() API.
Flags: needinfo?(jonas)
Assignee: nobody → gene.lian
Updated•10 years ago
|
Assignee: gene.lian → nobody
Assignee | ||
Comment 3•10 years ago
|
||
Taking for now since I have some patches.
Assignee: nobody → nsm.nikhil
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Attachment #8444530 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Depends on: dom-fetch-api
Updated•10 years ago
|
Blocks: ServiceWorkers-v1
Updated•10 years ago
|
Keywords: dev-doc-needed
Assignee | ||
Comment 5•10 years ago
|
||
Closing as dom-fetch-api deals with all of this.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Updated•10 years ago
|
Keywords: dev-doc-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•