mozTCPSocket should respect the proxy preferences
Categories
(Core :: DOM: Core & HTML, defect, P5)
Tracking
()
Tracking | Status | |
---|---|---|
firefox87 | --- | fixed |
People
(Reporter: freddy, Assigned: rnons)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Currently, mozTCPSocket does not respect the preferences that enable proxy support in Gecko (network.proxy.*). HTTP and SOCKS proxys are able to proxy non-HTTP connections, so this might be doable with little to none extra implementation effort
In what state is this bug?, I see at the moment this blocks many bugs and posibility to implement a feature to change the proxy prefs to GAIA in firefox OS(setting app I suppose). Now the only way is edit the file(prefs.js) in profile device or WebIDE > Device Preferences. But the way should be in Gaia, i think.
Updated•6 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
- Add a password field to MozProxyInfo
- Add a proxyInfo field to SocketOptions
- When constructing a TCPSocket, the MozProxyInfo is converted to nsIProxyInfo, then passed to CreateTransport
Updated•3 years ago
|
Comment 3•3 years ago
|
||
The socket should work more like other uses of proxy, relying on the proxy service to fetch a proxyInfo. That should allow proxy.settings to work, or proxy.onRequest to receive the event and return the proxyInfo, which can include the password. If credentials are otherwise needed, it should ask for the credentials, which would also trigger webRequest.onAuthRequired. proxy.RequestDetails has a type (webRequest.ResourceType) where a "tcpSocket" type could be added, since this is not a "webSocket".
Given that approach, no API change (other than adding "tcpSocket" to the resource type) or even any webidl changes are necessary. TCPSocket would then also work with manually entered proxy configurations (via about:preferences).
Updated•3 years ago
|
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/integration/autoland/rev/373160bb04a5 Support proxy in TCPSocket. r=necko-reviewers
Comment 5•3 years ago
|
||
Backed out changeset 373160bb04a5 (Bug 902346) for causing assertion failures in nsCOMPtr.h
Backout link: https://hg.mozilla.org/integration/autoland/rev/375bea508a03d900321fb2e3564dcc6f1fb831a8
Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=373160bb04a5ba02d06c6c09468fe4fe4696eef8
Failure logs:
https://treeherder.mozilla.org/logviewer?job_id=329477629&repo=autoland&lineNumber=31164
https://treeherder.mozilla.org/logviewer?job_id=329478010&repo=autoland&lineNumber=2179
Assignee | ||
Comment 6•3 years ago
|
||
Thanks, I made a fix. Try run: https://treeherder.mozilla.org/jobs?repo=try&revision=3b840893c8de176e683148576cf6364e7a4fa6c0
Updated•3 years ago
|
Pushed by remotenonsense@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b51cf4ac52f8 Support socks proxy in TCPSocket. r=mixedpuppy,necko-reviewers
Comment 8•3 years ago
|
||
bugherder |
Description
•