Closed Bug 312811 Opened 19 years ago Closed 18 years ago

Port blocking code gets confused by proxy server

Categories

(Core :: Networking, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: darin.moz, Assigned: darin.moz)

References

Details

Attachments

(1 file)

Port blocking code gets confused by proxy server

ftp://ftp.mozilla.org:21/ is allowed if browsing without a proxy server, but if
I configure all FTP traffic to go through a HTTP proxy, then suddenly this URL
becomes invalid.  The problem I believe is that we hardcode the scheme passed to
the nsIIOService::AllowPort call.  We should instead use the scheme of the
nsIURI that we are loading.
Severity: normal → minor
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.9alpha
Priority: -- → P3
Attached patch v1 patchSplinter Review
Attachment #215851 - Flags: superreview?(bzbarsky)
Attachment #215851 - Flags: review?(cbiesinger)
Comment on attachment 215851 [details] [diff] [review]
v1 patch

+            NS_WARNING("port blocked");

hm... should there really a be a warning for this? I mean... this is something that is only triggered when a user loads a special URL, and they won't see this message.
Attachment #215851 - Flags: review?(cbiesinger) → review+
I added the warning to help developers, who might not realize what's going on otherwise.
Attachment #215851 - Flags: superreview?(bzbarsky) → superreview+
fixed-on-trunk
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: