Closed
Bug 1849332
Opened 2 years ago
Closed 2 years ago
Fix remaining https-scheme failures in url/url-setters-stripping tests
Categories
(Core :: DOM: Networking, defect, P2)
Core
DOM: Networking
Tracking
()
RESOLVED
FIXED
118 Branch
| Tracking | Status | |
|---|---|---|
| firefox118 | --- | fixed |
People
(Reporter: jfkthame, Assigned: jfkthame)
References
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
Bug 1818374 resolved most of the failures here, but there are a couple of remaining ones, as found in the url-setters-stripping.any.js.ini metadata file:
[Setting port with leading U+0000 (https:)]
[Setting port with leading U+001F (https:)]
It seems these are failing because URL::SetPort uses nsAString::ToInteger() to parse the port number, but this method skips over initial non-numeric (actually non-hexadecimal) characters in the string.
However, to be valid as a a value for the port setter, the string would need to begin with an ASCII digit, afaict:
https://url.spec.whatwg.org/#dom-url-port
https://url.spec.whatwg.org/#port-state
So we should check that before passing the string to ToInteger.
| Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Updated•2 years ago
|
Pushed by jkew@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/00adce290a8f
Ensure URL::SetPort rejects values with leading non-numeric junk. r=necko-reviewers,valentin
Comment 3•2 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
status-firefox118:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•