Closed Bug 1154331 Opened 10 years ago Closed 10 years ago

Connection to secured websocket goes to wrong port

Categories

(Core :: DOM: Core & HTML, defect)

37 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: andygluk, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0 Build ID: 20150402191859 Steps to reproduce: I payed with a simplest websocket echo application. Everithing working fine with unsecured websockets ("ws://"), but then I switched to secured websockets and try to connect to secured websocket: webSocket = new WebSocket("wss://localhost:8443/wss-web_war/echo"); (please note port 8443). Actual results: If script is being loaded from the net, then FF complains it can't connect to wss://localhost:8080/wss-web_war/echo (please note port 8080 here!). But if I manually copy-paste line webSocket = new WebSocket("wss://localhost:8443/wss-web_war/echo"); into a console, then everything works fine. Expected results: Both calls should succseeds, regardless of origin: net or console. I also try the same script in Chrome and it works fine in it.
Component: Untriaged → DOM
Product: Firefox → Core
> then FF complains it can't connect to wss://localhost:8080/wss-web_war/echo Is it possible you have an old version of the script cached?
(In reply to Not doing reviews right now from comment #1) > > then FF complains it can't connect to wss://localhost:8080/wss-web_war/echo > > Is it possible you have an old version of the script cached? Ooops.. Yes, looks like it was an issue.
OK. Is there still a Gecko bug here? ;)
(In reply to Not doing reviews right now from comment #3) > OK. Is there still a Gecko bug here? ;) No :) What is the right process? Do I have to mark it as resoled or is there a way to mark it as not a bug at all?
Just gets resolved invalid. Thanks for the quick followup!
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.