Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted Types: URLs should be USVString, not DOMString. #14377

Closed
wants to merge 1 commit into from

Conversation

chromium-wpt-export-bot
Copy link
Collaborator

@chromium-wpt-export-bot chromium-wpt-export-bot commented Dec 5, 2018

This patch adjusts ScriptURLString to be a union including USVString,
not DOMString. The advice in WebIDL isn't exactly clear, but it
boils down to @domenic's notes in heycam/webidl#84 and
w3ctag/design-principles#93.

Long story short, URLs are USVString. This patch adjusts our
implementation to match.

Change-Id: I9bf1240b421287d7d9c291b13d887ca981a66231
Reviewed-on: https://chromium-review.googlesource.com/1363178
WPT-Export-Revision: 98c00dc650d15c101d6fa9619f864f4e04b0ddbd

Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already reviewed downstream.

This patch adjusts `ScriptURLString` to be a union including `USVString`,
not `DOMString`. The advice in [WebIDL][1] isn't exactly clear, but it
boils down to @domenic's notes in [whatwg/webidl#84][2] and
[w3ctag/design-principles#93][3].

Long story short, URLs are `USVString`. This patch adjusts our
implementation to match.

[1]: https://heycam.github.io/webidl/#idl-USVString
[2]: whatwg/webidl#84 (comment)
[3]: w3ctag/design-principles#93 (comment)

Change-Id: I9bf1240b421287d7d9c291b13d887ca981a66231
@gsnedders gsnedders closed this Jan 24, 2020
@gsnedders gsnedders deleted the chromium-export-cl-1363178 branch January 24, 2020 18:02
@gsnedders gsnedders restored the chromium-export-cl-1363178 branch January 24, 2020 18:47
@Hexcles Hexcles reopened this Jan 24, 2020
mingyc added a commit to WICG/pending-beacon that referenced this pull request Jun 29, 2022
The proposal of `setData()` is to take the data of the same types as
`sendBeacon()`'s, which takes an USVString` instead of `DOMString`.

The `url` should be USVString as described in [this issue][1].

[1]: web-platform-tests/wpt#14377
@KyleJu KyleJu closed this Apr 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants