Open Bug 1467954 Opened 7 years ago Updated 3 years ago

redirectUrl failed to redirect ws:// to wss:// URL.

Categories

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

defect

Tracking

()

Tracking Status
firefox-esr60 --- affected
firefox61 --- affected
firefox62 --- affected
firefox63 --- affected

People

(Reporter: u608644, Unassigned)

Details

(Whiteboard: [necko-triaged])

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:60.0) Gecko/20100101 Firefox/60.0 Build ID: 20100101 Steps to reproduce: WebExtension's "redirectUrl" can't redirect ws://server to wss://server. 1. Listen ws:// and wss:// using onBeforeRequest. 2. When the requestinfo.destinationUrl includes 'ws://echo.websocket.org', redirect to 'wss://echo.websocket.org' using "console.log('Addon test: fired');return {redirectUrl: wss://...};" for testing: http://www.websocket.org/echo.html ws://echo.websocket.org Actual results: (Browser console) Addon test: fired Firefox can’t establish a connection to the server at ws://echo.websocket.org/?encoding=text. Therefore Firefox didn't redirect the request. Expected results: Connect to "wss"://echo.websocket.org/?encoding=text as it should be. Why Firefox is ignoring "return {redirectUrl: wss://xxx};" ?
Thanks for the report John. Could you please add an example test add-on to test with.
(In reply to Adrian Florinescu [:adrian_sv] from comment #1) > Thanks for the report John. Could you please add an example test add-on to > test with. Sure, I'll make a sample add-on when I have spare time.
Flags: needinfo?(adrian.florinescu)
Thanks John for the reduced test case. Problem reproducible with FF63 20180628130527, FF61 20180621125625, FX60.1.0esr 0180621121604 on Ubuntu 16.04 x64. redirecting ws://echo.websocket.org/?encoding=text to wss://echo.websocket.org/?encoding=text background.js:7:2 Firefox can’t establish a connection to the server at ws://echo.websocket.org/?encoding=text. echo.js:136:16
Component: Untriaged → Networking: WebSockets
Flags: needinfo?(adrian.florinescu)
Product: Firefox → Core
Version: 60 Branch → Trunk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → michal.novotny
Priority: -- → P3
Whiteboard: [necko-triaged]

Unassigning Michal to move bugs back to triage pool.

Assignee: michal.novotny → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.