Closed Bug 1646928 Opened 5 years ago Closed 5 years ago

Bogus URL autocorrect for servers starting with 'ps'

Categories

(Firefox :: Address Bar, defect, P3)

78 Branch
defect
Points:
3

Tracking

()

VERIFIED FIXED
Firefox 80
Iteration:
80.1 - June 29 - July 12
Tracking Status
firefox-esr78 --- fixed
firefox77 --- wontfix
firefox78 --- wontfix
firefox79 --- verified
firefox80 --- verified

People

(Reporter: g.hr, Assigned: mak)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

In the «awesomebar», type pserver:8080 or pserver.mydomain.com:8080

Actual results:

The URL autocorrection feature tries to load httpserver:8080, which obviously results in an error page.

Expected results:

Load the website which URL is http://pserver:8080 or http://pserver.mydomain.com:8080

Hello,

It's my first bug report, and honestly I never thought I would create even one in my life. I did not find this hunting for bugs, I just stumbled on a specific problem accessing the web interface of some print servers in a corporate environment, and trying to understand the issue, I noticed the autocorrect behavior.

Knowing that it's not critical, since manually prefixing with http:// (or even a simple '/') allows Firefox to load the correct page.

Thanks.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Address Bar

The problem is here:
https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/docshell/base/URIFixup.jsm#324-329

we fixup ps to https, we should require a colon after it though.

Assignee: nobody → mak
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P3

Thanks for spotting this 👍👍

As a consequence, I learnt about browser.fixup.typo.scheme (does not exist by default, like browser.fixup.dns_first_for_single_words which is also very useful in corporate environments). So I created it, set it to false, and now Firefox stopped trying to mess up my server names ...

Thank you again.

disabling scheme typo fixes will have other consequences, so once this bug is fixed I'd suggest to revert the pref change.

Pushed by mak77@bonardo.net: https://hg.mozilla.org/integration/autoland/rev/178ce324531b Bogus scheme typo correction in URIFixup. r=harry
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 80

Comment on attachment 9159691 [details]
Bug 1646928 - Bogus scheme typo correction in URIFixup. r=harry

Beta/Release Uplift Approval Request

  • User impact if declined: Certain domains will be "transformed" unexpectedly, like pserver to httpserver.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: 1. type pserver:8000 or pserver.com:8000 in the urlbar and confirm
  1. check we don't try to load httpserver:8000
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial patch with an automated test
  • String changes made/needed:

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is particularly concerning for enterprises since it also affects intranet domains
  • User impact if declined: Certain domains will be "transformed" unexpectedly, like pserver to httpserver.
  • Fix Landed on Version: 80
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Trivial patch with an automated test
  • String or UUID changes made by this patch:
Attachment #9159691 - Flags: approval-mozilla-esr78?
Attachment #9159691 - Flags: approval-mozilla-beta?
Flags: qe-verify+

Comment on attachment 9159691 [details]
Bug 1646928 - Bogus scheme typo correction in URIFixup. r=harry

Approved for 79.0b2. We'll revisit the ESR78 request later this cycle after this has baked a bit more.

Attachment #9159691 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
QA Whiteboard: [qa-triaged]

I managed to reproduce the issue using an older version of Nightly (2020-06-19) on Windows 10x64.
I tested everything on latest Nightly 80.a1 and Firefox 79.0b2 using Windows 10 x64, Ubuntu 18.04 x64 and macOS 10.13. The issue is not reproducing anymore.

Status: RESOLVED → VERIFIED

Comment on attachment 9159691 [details]
Bug 1646928 - Bogus scheme typo correction in URIFixup. r=harry

Thanks for the verification on Nightly and Beta. Approved for 78.1esr.

Attachment #9159691 - Flags: approval-mozilla-esr78? → approval-mozilla-esr78+
Iteration: --- → 80.1 - June 29 - July 12
Points: --- → 3

Issue is verified fixed using the latest Fx91.3.0ESR version on Windows 10 and Ubuntu 20.04.

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: