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)
Core
Networking: WebSockets
Tracking
()
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};" ?
Comment 1•7 years ago
|
||
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.
Sample addon: https://share.riseup.net/#i79zO5TgqzcV7X-e5WzRkg
Flags: needinfo?(adrian.florinescu)
Comment 4•7 years ago
|
||
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
status-firefox61:
--- → affected
status-firefox62:
--- → affected
status-firefox63:
--- → affected
status-firefox-esr60:
--- → affected
Component: Untriaged → Networking: WebSockets
Flags: needinfo?(adrian.florinescu)
Product: Firefox → Core
Version: 60 Branch → Trunk
Updated•7 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•7 years ago
|
Assignee: nobody → michal.novotny
Priority: -- → P3
Whiteboard: [necko-triaged]
Comment 5•4 years ago
|
||
Unassigning Michal to move bugs back to triage pool.
Assignee: michal.novotny → nobody
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•