Closed Bug 346151 Opened 20 years ago Closed 20 years ago

Want nsIProxiedChannel

Categories

(Core :: Networking, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: Biesinger, Assigned: Biesinger)

References

Details

Attachments

(1 file)

I think it would be a good idea to expose the proxyInfo that a channel was constructed with on the channel. That way, users can find out exactly where the connection went. The interface would look like: /** * An interface for accessing the proxy info that a channel was constructed with. * * @see nsIProxiedProtocolHandler */ interface nsIProxiedChannel : nsISupports { readonly attribute nsIProxyInfo proxyInfo; }; This should maybe be a cloned proxy info to ensure callers can't mess with the channel's state, although nsIProxyInfo does not currently expose a clone method...
Assignee: nobody → cbiesinger
Blocks: 265780
Severity: normal → enhancement
OS: Linux → All
Hardware: PC → All
OK, so currently nsIHttpChannelInternal has this same attribute, but a more generic way seems more useful, especially as there _are_ other channels that support proxies (although only SOCKS).
Priority: -- → P1
Target Milestone: --- → mozilla1.9alpha
Attached patch patch — — Splinter Review
Attachment #231041 - Flags: superreview?
Attachment #231041 - Flags: review?(darin)
Attachment #231041 - Flags: superreview? → superreview?(bzbarsky)
Comment on attachment 231041 [details] [diff] [review] patch Looks reasonable.
Attachment #231041 - Flags: superreview?(bzbarsky) → superreview+
Status: NEW → ASSIGNED
oh, in case someone wonders about the bug 265780 dependency - the authprompt implementation needs a way to figure out what the proxy was when the PROXY_AUTH flag is set, and this would be a way to provide that.
Attachment #231041 - Flags: review?(darin) → review+
fixed on trunk
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: