Closed Bug 1052909 Opened 11 years ago Closed 2 years ago

Remove pref and code that enables websocket redirects

Categories

(Core :: Networking: WebSockets, task, P3)

task

Tracking

()

RESOLVED FIXED
120 Branch
Tracking Status
firefox120 --- fixed

People

(Reporter: tanvi, Assigned: gregp)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [necko-backlog])

Attachments

(1 file)

network.websocket.auto-follow-http-redirect is set to false by default. A search through the addon mxr doesn't highlight any addons that set this pref to true: https://mxr.mozilla.org/addons/search?string=auto-follow-http-redirects We should remove this preference and remove the code that handles websocket redirects. Except - we should keep the code that allows for websockets to be upgraded from ws:// to wss://. http://mxr.mozilla.org/mozilla-central/source/netwerk/protocol/websocket/WebSocketChannel.cpp#2478
Patrick: Got any objections to removing support for websocket redirects? The simplest patch would be to remove the pref but keep the existing code in place (i.e. still have mAutoFollowRedirects, but always keep it == 0) in case we want to support redirects again someday. Also we're not talking about changing the special case that allows redirecting from ws: -> wss: during HTTPS-everywhere.
Flags: needinfo?(mcmanus)
that code can all be removed - it was written like that when it wasn't clear which way the RFC would go.
Flags: needinfo?(mcmanus)
Anyone want to take this bug?
(In reply to Tanvi Vyas [:tanvi] from comment #3) > Anyone want to take this bug? Perhaps jduell can find an owner?
Flags: needinfo?(jduell.mcbugs)
It's on my list of smallish/less-important bugs to fix.
Flags: needinfo?(jduell.mcbugs)
Any update on removing this code?
At Tanvi's request, I will take this one :)
Assignee: nobody → sworkman
Needinfo'ing myself as a reminder.
Flags: needinfo?(sworkman)
steve?
Whiteboard: [necko-backlog]
Yeah ... unlikely that I'll get to this, especially considering that it's been in my queue for a year. Unassigning myself...
Assignee: sworkman → nobody
Flags: needinfo?(sworkman)
Priority: -- → P1
Priority: P1 → P3
Severity: normal → S3
Blocks: old-prefs
Type: defect → task
Assignee: nobody → gregp
Status: NEW → ASSIGNED
Pushed by gp3033@protonmail.com: https://hg.mozilla.org/integration/autoland/rev/599dc5d67521 Remove network.websocket.auto-follow-http-redirects pref r=necko-reviewers,kershaw
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: