Repository navigation
Closed
Labels
concerns: API designThe API for this is error-prone, poorly named, or inconsistent with the platformconcerns: complexityThis proposal seems needlessly complexconcerns: integrationCan't be used w/ other web platform features (or unclear what happens if used together)concerns: maintenanceIt's not clear the proposal is getting maintained.concerns: privacyThis proposal may cause privacy risk if implementedconcerns: venueThis proposal is in the wrong standards/incubation venue, or it's not in a venue at allfrom: GoogleProposed, edited, or co-edited by Google.position: supporttopic: loadingtopic: web apisSpec relates to web APIs (entry points for script)venue: WICGProposal is incubated in the Web Incubator Community Group
Description
Request for position on an emerging web specification
- WebKittens who can provide input:
Information about the spec
- Spec Title: Pending Beacon
- Spec URL: https://wicg.github.io/pending-beacon
- GitHub repository: https://github.com/WICG/pending-beacon
- Issue Tracker (if not the repository's issue tracker):
- Explainer (if not README.md in the repository): https://github.com/WICG/pending-beacon/blob/main/README.md
Design reviews and vendor positions
- TAG Design Review: Early Design Review: Pending Beacon API w3ctag/design-reviews#776
- Mozilla standards-positions issue: fetchLater() API mozilla/standards-positions#703
Anything else we need to know
We would like to have feedback from WebKit about this API before finalizing its shape and behavior.
Metadata
Metadata
Assignees
Labels
concerns: API designThe API for this is error-prone, poorly named, or inconsistent with the platformconcerns: complexityThis proposal seems needlessly complexconcerns: integrationCan't be used w/ other web platform features (or unclear what happens if used together)concerns: maintenanceIt's not clear the proposal is getting maintained.concerns: privacyThis proposal may cause privacy risk if implementedconcerns: venueThis proposal is in the wrong standards/incubation venue, or it's not in a venue at allfrom: GoogleProposed, edited, or co-edited by Google.position: supporttopic: loadingtopic: web apisSpec relates to web APIs (entry points for script)venue: WICGProposal is incubated in the Web Incubator Community Group
Type
Projects
- StatusShow more project fieldsDone
Activity
othermaciej commentedon Dec 20, 2022
How does this relate to Beacon API? Why is it a separate spec and not an extension of Beacon API?
Also on first glance, this is a lot more complicated than Beacon API itself, which is just one method, not a class hierarchy of multiple interfaces. Is the extra complexity actually necessary? At first glance, it's not obvious why it is necessary to have all these ways to customise a "pending" beacon when regular beacons don't need these things. (If Beacon API itself is underpowered, then that would be more reason to extend the Beacon API instead of making an orthogonal API).
othermaciej commentedon Dec 20, 2022
Also needs to be examined to see if it enables cross-site tracking.
mingyc commentedon Dec 21, 2022
I'll try to answer some of your questions. Feel free to add more under https://github.com/WICG/pending-beacon/issues so that more pepole can discussion
At the beginning there were discussions around the following options
navigator.sendBeacon()with a flag: the use cases went beyond a single flag. They need to be able to update what will be sent and/or cancel it. But the existingsendBeacon()semantic doesn't support it.1 and 2 have its own drawbacks, and the 3rd one is chosen. @fergald might be able to provide full context.
It's answered in WICG/pending-beacon#59. In short we would like to provide more type safety on compile time.
mingyc commentedon Dec 21, 2022
The scope of this API proposal doesn't include cross-site tracking.
Also cc @fergald
mingyc commentedon Jan 19, 2023
@othermaciej pinging for any updates or comments
mingyc commentedon Feb 2, 2023
Friendly pinging again for your position.
In addition to the above reasons from #85 (comment), we further added a section to explain why not extending the Fetch API (Beacon API is roughly equivalent to Fetch
keepalivefor Post-only request). Simply put, our requirements are beyond the scope of Fetch.marcoscaceres commentedon Feb 6, 2023
I’m also concerned about adding an entirely new API.
sure, but I’m wondering if all possible options have been explored for extending the existing spec? For instance, perhaps a third argument could be added to sendBeacon() accepting a dictionary that:
Perhaps something like the above could addressed the use cases without needing an entirely new API?
30 remaining items
annevk commentedon Apr 27, 2023
We put forward a proposal that would remove a number of our concerns here and would make us supportive of this effort: WICG/pending-beacon#70 (comment).
marcoscaceres commentedon May 5, 2023
Marking as support given the progress made...
mingyc commentedon Jul 18, 2023
Note: the PendingBeacon API has been evolved to a fetch-based approach, and the latest discussions happen in whatwg/fetch#1647
[-]PendingBeacon API[/-][+]fetchLater() API (previously: PendingBeacon API)[/+]mingyc commentedon Dec 10, 2024
Filed implementation request at https://bugs.webkit.org/show_bug.cgi?id=284347
Implement `fetchLater` (#39547)
Implement `fetchLater` (#39547)
Enable the fetchLater() API by default