← Back to release summary

Port overflow check in URL setters

Category
Miscellaneous
Type
Chromium catches up
Status
Enabled by default (Chrome 117)
Intent stage
None

Summary

The port value will be checked when setting url.port. All the values that overflows the 16-bit numeric limit will be no longer valid. For instance the following script behave differently after the change: ``` u = new URL("http://test.com"); u.port = 65536; console.log(u.port); ``` Before the change the output is 65536. After the change the output will be 80.

Standards & signals

View on chromestatus.com