Unable to use WebSocket in Thunderbird
Categories
(Thunderbird :: General, defect)
Tracking
(thunderbird_esr68 fixed, thunderbird77 fixed)
People
(Reporter: sephir, Assigned: mkmelin)
Details
Attachments
(1 file, 1 obsolete file)
|
7.50 KB,
patch
|
benc
:
review+
wsmwk
:
approval-comm-beta+
wsmwk
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0
Steps to reproduce:
First, the following was tried on Thunderbird 75.0b3 and 68.6.0.
I tried to use WebSockets in a very simple WebExtension.
The background.js only have the following code:
console.log("a");
let ws = new WebSocket("wss://echo.websocket.org/");
console.log("b");
I also tried to open a WebSocket in the debugging console directly by just typing the following code:
let ws = new WebSocket("wss://echo.websocket.org");
I tried the same on Firefox 76.0a1 (2020-04-05) (64-bit). Both, background.js and console tries worked.
Actual results:
As a result, in the debugging console, I only got this result:
a background.js:1:9
: background.js:2
<anonymous> moz-extension://aa11cfda-f35c-4d6d-ae9a-1f3595103d4f/background.js:2
As you can see, the error returned by the console is totally empty.
When trying to catch the Exception inside a try-catch block, the Exception returned is totally empty.
When entering the code directly in the console, I get another error:
undefined
NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIInterfaceRequestor.getInterface]
Expected results:
I expect to get a fully working WebSocket, as it is the case with Firefox.
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Actually, this is a general fault - websocket is not working in Thunderbird.
STR: load https://www.websocket.org/echo.html into the start page. Try pressing "Connect" - nothing happens.
| Assignee | ||
Comment 2•6 years ago
|
||
Sent to try now: https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=29f33dc9e3ec11df1d84eaa0809d439fea582c70
Comment 3•6 years ago
|
||
Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is -- (Backlog,) indicating it has has not been previously triaged, the bug's Severity is being updated to -- (default, untriaged.)
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
The earlier patch was not 100% right. I added some clarifying comments in the code
Comment 6•6 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/b5cb669844cd
Unable to use WebSocket in Thunderbird. r=benc DONTBUILD
Comment 8•6 years ago
|
||
| Assignee | ||
Comment 9•6 years ago
|
||
(In reply to Ben Campbell from comment #6)
Is there any policy/standard that for logging output for mochitests that should be followed here?
I think there's some other way, but I can't seem to find it atm. Subtests of the type used here are hard to debug without output since it's the same "checks" so line numbers do not help due to changing data.
Comment 10•6 years ago
|
||
| Assignee | ||
Comment 11•6 years ago
|
||
Are you able to verify it's working in the webextension you have with current nightly builds?
| Reporter | ||
Comment 12•6 years ago
|
||
(In reply to Magnus Melin [:mkmelin] from comment #11)
Are you able to verify it's working in the webextension you have with current nightly builds?
It seems to work properly! Thanks!
Comment 13•6 years ago
|
||
Comment 14•6 years ago
|
||
77.0b3:
https://hg.mozilla.org/releases/comm-beta/rev/f3ae070191f10b7281025a43d69285bf769042d6 (both revisions rolled together)
Comment 15•6 years ago
|
||
Comment 16•6 years ago
|
||
| bugherder uplift | ||
Thunderbird 68.8.1:
https://hg.mozilla.org/releases/comm-esr68/rev/face673d2586
Description
•