Closed Bug 1915402 Opened 1 year ago Closed 1 year ago

URIFixup should replace 0.0.0.0 with 127.0.0.1

Categories

(Core :: DOM: Navigation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: valentin, Assigned: Gijs)

References

(Regressed 1 open bug)

Details

Attachments

(1 file)

In bug 1889130 we made Firefox not load 0.0.0.0 addresses, as that could be a security risk.
However, in many developer workflows, one would start a python server listening on all addresses, and the server would print "Listening on http://0.0.0.0:8080"
Clicking on that link used to work, but now it doesn't.
I think we can make things a bit nicer for developers by fixing up the URL from http://0.0.0.0 to http://127.0.0.1 and http://[::] to http://[::1] in URIFixup

This looks a follow-up from bug 1889130 that we should fix sooner than later. Would you agree?

Flags: needinfo?(afarre)
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Flags: needinfo?(afarre)
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/4d8a1f790562 use 127.0.0.1 for 0.0.0.0 access from the address bar to make life easier for web devs, r=valentin,mak

Backed out for causing mochitests failures in browser_UrlbarInput_formatValue.js

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | browser/components/urlbar/tests/browser/browser_UrlbarInput_formatValue.js | Correct part of the URL is de-emphasized - "[::1]" == "[::]" -
Flags: needinfo?(gijskruitbosch+bugs)

Oops. I've updated the patch and pushed to try.

Flags: needinfo?(gijskruitbosch+bugs)
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/683bebc3099e use 127.0.0.1 for 0.0.0.0 access from the address bar to make life easier for web devs, r=valentin,mak,urlbar-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Regressions: 1947211
See Also: → 1952955
Regressions: 1952955
See Also: 1952955
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: