Intent to extend origin trial: Pending Beacon API

180 views
Skip to first unread message

Ming-Ying Chung

unread,
May 9, 2023, 2:03:36 AM5/9/23
to blink-dev, Yoav Weiss, Daisuke Enomoto, Fergal Daly, marce...@google.com, Ian Clelland, pending-beac...@chromium.org

API owners,


We would like to extend the origin trial for 3 additional milestones, with the extension starting in 113 continuing through 115. The OT was previously approved to run from 107 to 112 (OT token expires on 2023-06-02).


Contact emails

my...@chromium.org, fer...@chromium.org, deno...@chromium.org, pending-beac...@google.com


Explainer

https://github.com/WICG/pending-beacon/blob/main/README.md


Specification

https://wicg.github.io/pending-beacon/


Design docs

https://docs.google.com/document/d/1QIFUu6Ne8x0W62RKJSoTtZjSd_bIM2yXZSELxdeuTFo/edit?pli=1


Summary

A stateful PendingBeacon API allows website authors to specify one or more beacons (HTTP requests) that should be sent reliably when the page is being unloaded.

 

Existing beacon APIs are all based around a developer constructing and sending a beacon, and there's no good time for that "send" call to be made. (Handlers such as 'unload' are often ignored, for example.) This API delegates the sending to the browser itself, so it can support beacons on page unload or on page hide, without the developer having to implement send calls at exactly the right times.


Blink component

UI>Browser>Navigation>BFCache


TAG review

https://github.com/w3ctag/design-reviews/issues/776


TAG review status

Pending


Risks

N/A

 

Interoperability and Compatibility

 

 

Gecko: pending further feedback: https://github.com/mozilla/standards-positions/issues/703

 

WebKit: Positive signal (closed): https://github.com/WebKit/standards-positions/issues/85 / 

 

Web developers: No signals

 

Other signals: ongoing API discussion in https://github.com/WICG/pending-beacon/issues/70

 

Ergonomics

N/A

 

 

Activation

 

Security

 

Goals for experimentation

  • Collect usability feedback about the current API shape to decide how to improve the API design

  • Collect stability metrics of the current API implementation

Reason this experiment is being extended

The new API shape is currently being discussed with WebKit Fetch folks. It is unlikely that we will ship the current OT version of the API.


At the same time, we have received additional feedback after the previous OT extension. There are users currently trying to evaluate the API with their usage and need more time to collect the metrics, but our OT token will expire in early June. We would like to request an extension to help both of us.

 

Ongoing technical constraints

See “What’s not supported

 

Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes

 

Is this feature fully tested by web-platform-tests?

Yes

 

Flag name

--enable-features=PendingBeaconAPI

or via Origin Trial Token

 

Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1293679

 

Launch bug

https://launch.corp.google.com/launch/4200808

 

Estimated milestones


OriginTrial desktop last (new request)

115

OriginTrial desktop last

112

OriginTrial desktop first

107


OriginTrial desktop last (new request)

115

OriginTrial Android last

112

OriginTrial Android first

107

 

Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5690553554436096

 

Links to previous Intent discussions

Intent to prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/tPTRZkSmlbg/m/6oYq7FtHBAAJ

Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/Vd6RTIfxkiY/m/HECcgiDOAAAJ

Read for Trial: https://groups.google.com/a/chromium.org/g/blink-dev/c/CE3ngAKFil4/m/wG-ziOFGAQAJ

Yoav Weiss

unread,
May 9, 2023, 3:00:20 AM5/9/23
to Ming-Ying Chung, blink-dev, Daisuke Enomoto, Fergal Daly, marce...@google.com, Ian Clelland, pending-beac...@chromium.org
LGTM to extend experimentation M113-115

I appreciate your engagement with WebKit & Fetch folks and your willingness to modify the API shape based on feedback. I think that can easily count as progress towards shipping, which is required for extending the OT. The fact that the current shape is unlikely to ship as is is also reassuring (as it reduces the risk of burn-in following a long trial).
Reply all
Reply to author
Forward
0 new messages