The ProgressEvent has attributes `loaded` and `total` indicating the progress, and their type is `unsigned long long` now. With this feature, the type for these two attributes is changed to `double` instead, which gives the developer more control over the value. For example, the developers can now create a ProgressEvent with the `total` of 1 and the `loaded` increasing from 0 to 1 gradually. This is aligned with the default behavior of the <progress> HTML element if the max attribute is omitted.
This change will not be visible if the web developers implement the ProgressEvent using non-negative integer in the loaded or total fields. However, if a negative number or a decimal number is used, it would be converted to unsigned integer before, but will be returned without any conversion after this feature is introduced. For example - `new ProgressEvent("event", { loaded: 1.1 }).loaded` is 1 now, but it will be 1.1 after the change. - `new ProgressEvent("event", { loaded: -1 }).loaded` is 18446744073709552000 now, but it will be -1 after the change.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
https://wpt.fyi/results/xhr/progress-events-response-data-gzip.htm?label=experimental&label=master&aligned https://wpt.fyi/results/xhr/progressevent-constructor.html?label=experimental&label=master&aligned https://wpt.fyi/results/xhr/progressevent-interface.html?label=experimental&label=master&aligned
This feature changes the definition of existing implementation of ProgressEvent so it's not possible to conduct a finch experiment.
Shipping on desktop | 135 |
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneNon-finch justification
This feature changes the definition of existing implementation of ProgressEvent so it's not possible to conduct a finch experiment.
Requires code in //chrome?
FalseEstimated milestones
Shipping on desktop 135 Anticipated spec changes
Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).
NoneLink to entry on the Chrome Platform Status
https://chromestatus.com/feature/5067669587623936?gate=5176277298053120This intent message was generated by Chrome Platform Status.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/67aec131.2b0a0220.80420.0241.GAE%40google.com.
Stephen.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
Stephen.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
The spec PR thread has a Gecko bug linked (https://bugzilla.mozilla.org/show_bug.cgi?id=1943649), but I don't see a WebKit bug. Can you please file one to ensure we don't lost track of WebKit aligning to the proposed change?
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/c2e23875-cc0b-4cc6-88d8-9bc22da8f9b1n%40chromium.org.