Closed Bug 1326175 Opened 7 years ago Closed 7 years ago

Stop preserving empty passwords in URLs

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox55 --- fixed

People

(Reporter: annevk, Assigned: valentin)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-active])

Attachments

(1 file)

Input:

  https://test:@test/

Expected output:

  https://test@test/

Actual output:

  https://test:@test/

Input

  https://:@test/

Expected output:

  https://test/

Actual output:

  Failure

Tests:

  https://github.com/w3c/web-platform-tests/issues/4405

Standard:

  https://github.com/whatwg/url/pull/186
Blocks: url
Assignee: nobody → valentin.gosu
Whiteboard: [necko-active]
Why add more mochitests? Are the web-platform-tests not sufficient? If so, why not add more tests there?
(In reply to Anne (:annevk) from comment #2)
> Why add more mochitests? Are the web-platform-tests not sufficient? If so,
> why not add more tests there?

I added another xpcshell test because that tests the internal nsStandardURL implementation, while WPT tests the URL implementation. This is needed to test other code paths which may not be exposed to the web API such as nsIURI::SetUserPass
Comment on attachment 8851540 [details]
Bug 1326175 - Stop preserving empty passwords in URLs

https://reviewboard.mozilla.org/r/123850/#review126286
Attachment #8851540 - Flags: review?(mcmanus) → review+
Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/4a00e1ca8f47
Stop preserving empty passwords in URLs r=mcmanus
https://hg.mozilla.org/mozilla-central/rev/4a00e1ca8f47
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: