Intent to Prototype: Add value argument to URLSearchParams's has() and delete()

158 views
Skip to first unread message

Debadree Chatterjee

unread,
May 11, 2023, 8:25:28 AM5/11/23
to blin...@chromium.org

Contact emails

debad...@gmail.com

Explainer

None

Specification

https://url.spec.whatwg.org/#dom-urlsearchparams-has

Summary

This feature adds the ability to pass a `value` argument to URLSearchParams's has() and delete() methods which allow for deleting tuples stored in URLSearchParams either by the `name` parameter or by the combination of `name` and `value`


Blink component

Blink

Motivation

This particular addition to the standards has been a long requested and gives developers much needed flexibility in the has() and delete() apis allowing to delete specific tuples.


Initial public proposal

None

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Compatibility with existing websites were tested by means of a Counter in chromium, ref: https://github.com/whatwg/url/pull/735#issuecomment-1441503315 and no significant chances of breaking were found

Gecko: No signal

WebKit: Has shipped (https://github.com/WebKit/WebKit/pull/13500)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

Unknown but most probably no.



Debuggability

None

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

Yes

Flag name

None


Requires code in //chrome?

False

Tracking bug

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

Estimated milestones

No milestones specified


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5147732899004416

Links to previous Intent discussions



This intent message was generated by Chrome Platform Status.

Yoav Weiss

unread,
May 15, 2023, 4:32:09 AM5/15/23
to Debadree Chatterjee, blin...@chromium.org
Thanks for working towards alignment here! :)

On Thu, May 11, 2023 at 2:25 PM Debadree Chatterjee <debad...@gmail.com> wrote:

Contact emails

debad...@gmail.com

Explainer

None

Specification

https://url.spec.whatwg.org/#dom-urlsearchparams-has

Summary

This feature adds the ability to pass a `value` argument to URLSearchParams's has() and delete() methods which allow for deleting tuples stored in URLSearchParams either by the `name` parameter or by the combination of `name` and `value`


Blink component

Blink

Motivation

This particular addition to the standards has been a long requested and gives developers much needed flexibility in the has() and delete() apis allowing to delete specific tuples.


Initial public proposal

None

TAG review

None

TAG review status

Not applicable

Risks



Interoperability and Compatibility

Compatibility with existing websites were tested by means of a Counter in chromium, ref: https://github.com/whatwg/url/pull/735#issuecomment-1441503315 and no significant chances of breaking were found

The usecounter shows usage at 0.006% of page views, which is low but not low enough for this to be trivial.
At the same time, the list of origins that show this in the HTTPArchive is not huge and rather homogenic. So some sampling of these sites can go a long way to reassure the API owners regarding lack of breakage once this reaches the "Intent to ship" phase.
 

Gecko: No signal

It might be worthwhile to file for a signal - https://bit.ly/blink-signals
 

WebKit: Has shipped (https://github.com/WebKit/WebKit/pull/13500)

Web developers: No signals

Other signals:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?

Unknown but most probably no.



Debuggability

None

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

Yes

Flag name

None


Requires code in //chrome?

False

Tracking bug

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

Estimated milestones

No milestones specified


Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5147732899004416

Links to previous Intent discussions



This 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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CFBE060E-9D1C-4B8D-A4FB-B0279D73E6F4%40gmail.com.

Debadree Chatterjee

unread,
May 15, 2023, 4:42:59 AM5/15/23
to blink-dev, yoav...@chromium.org, blin...@chromium.org, Debadree Chatterjee
Hey! so sorry for missing it I filed for moving it to the Intent to Ship stage since it was recommended that it's small enough a feature to move to that stage here: https://groups.google.com/a/chromium.org/g/blink-dev/c/rDaQdKpWAx8

I have also filed for a Mozilla standards position as you mention!

So sorry once again for not mentioning the same here (new to the process hence had gotten confused intially)

Yours Sincerely,
Debadree

Yoav Weiss

unread,
May 15, 2023, 5:43:03 AM5/15/23
to Debadree Chatterjee, blink-dev
No worries at all! :)
Reply all
Reply to author
Forward
0 new messages