Closed
Bug 1495313
Opened 5 years ago
Closed 4 years ago
Failures in xhr/send-authentication-competing-names-passwords.htm
Categories
(Core :: Networking, enhancement, P3)
Core
Networking
Tracking
()
RESOLVED
FIXED
mozilla65
People
(Reporter: twisniewski, Assigned: valentin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(2 files)
NS_NewURI does not consider a URL with an empty username (just a password) to be valid. For instance: http://:pass@host.com This causes us to fail two of the WPTs in xhr/send-authentication-competing-names-passwords.htm. Blink and WebKit pass these tests, while Edge doesn't seem to support username *or* password in URLs passed to xhr.open. Per the WhatWG URL and XHR specs, we seem to be doing the wrong thing here. anne, smaug, what do you think? It seems like we would probably need to address this in NS_NewURI, not the XHR code. Should we?
Flags: needinfo?(bugs)
Flags: needinfo?(annevk)
Comment 1•5 years ago
|
||
Yeah, this should be fixed in the URL parser. No bug blocking bug 906714 is about this as far as I can tell. Valentin, do you know of any, do you want to reuse this bug, or should a new bug be filed?
Flags: needinfo?(valentin.gosu)
Flags: needinfo?(bugs)
Flags: needinfo?(annevk)
Assignee | ||
Comment 2•5 years ago
|
||
There might be one, but I can't find it right now. I'll just use this one for the fix.
Assignee: nobody → valentin.gosu
Component: DOM → Networking
Flags: needinfo?(valentin.gosu)
Priority: -- → P3
Whiteboard: [necko-triaged]
Assignee | ||
Comment 3•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9d28e96fc386e29007259cd140ee3fdc11a37ba2
Assignee | ||
Comment 4•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=f5f536464baf19d7300df72431998ad00d7f2327
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D11254
Assignee | ||
Comment 7•4 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=6ad357a3946824e97cdedc998ae02b576bfde917
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/9ad299b5161b Allow empty username in URLs r=dragana
Comment 9•4 years ago
|
||
Backed out for failing mochitest at dom/security/test/cors/test_CrossSiteXHR.html Push that started the fialures: https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=9ad299b5161b0cedf852d56365310de499f94043 Failure log: https://treeherder.mozilla.org/logviewer.html#?job_id=211739159&repo=autoland&lineNumber=2594 Backout: https://hg.mozilla.org/integration/autoland/rev/1f476b3ce845b4a6385c284734c60fa78b91027c
Flags: needinfo?(valentin.gosu)
Updated•4 years ago
|
Attachment #9023466 -
Attachment description: Bug 1495313 - Allow empty username in URLs r?dragana! → Bug 1495313 - Allow password with empty username in URLs r?dragana!
Assignee | ||
Comment 10•4 years ago
|
||
(In reply to Andreea Pavel [:apavel] from comment #9) > Backed out for failing mochitest at > dom/security/test/cors/test_CrossSiteXHR.html It seems I used lando to push the stack, but I pushed only the first commit :)
Assignee | ||
Updated•4 years ago
|
Flags: needinfo?(valentin.gosu)
Comment 11•4 years ago
|
||
Pushed by valentin.gosu@gmail.com: https://hg.mozilla.org/integration/autoland/rev/ef6d81f0b298 Allow password with empty username in URLs r=dragana https://hg.mozilla.org/integration/autoland/rev/db95e3b861f4 Fix xhr/fetch tests to allow passwords with no username in URLs r=baku
Comment 12•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/ef6d81f0b298 https://hg.mozilla.org/mozilla-central/rev/db95e3b861f4
Status: NEW → RESOLVED
Closed: 4 years ago
status-firefox65:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Updated•4 years ago
|
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•