Closed Bug 1631271 Opened 5 years ago Closed 4 years ago

SSB cannot open file:// and http://, only https

Categories

(Firefox :: General, defect, P5)

76 Branch
Desktop
All
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
firefox76 --- affected
firefox77 --- affected

People

(Reporter: oleg.b.antonyan, Unassigned)

References

Details

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0

Steps to reproduce:

Try to open local file or http url with --ssb option:
firefox --ssb 'file:///home/oleg/.local/share/jupyter/runtime/nbserver-13758-open.html'
OR
firefox --ssb 'http://localhost'
Does nothing, no browser window, no errors, only 0 return code immediately.

But firefox --ssb 'https://localhost' works just fine

Linux 64 bit, FF developer edition 76.0b5

Actual results:

Immediate return to the terminal, no windows, no errors, as if nothing happened

Expected results:

Firefox should open local html file or http url in SSB mode, or at least explain a good reason why this is not possible. This works fine in Chrome with its --app option.

Checked on Ubuntu 18.04 64bit + Windows10 64bit + MacOs 10.15

On these versions:
Developer 76.0b7 (affected)
Beta 76.0b7 (affected)
Nightly 77.0a1 (affected)
Release 75 (there is no browser.ssb.enabled)

Steps:
Set browser.ssb.enabled to true.
launch from cmd : firefox --ssb 'http://localhost'

on windows 10 :
Http does not work
Https works if i remove the '

Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → Desktop
Version: 75 Branch → 76 Branch

Mossop, can you please set a priority here? Thanks.

Blocks: ssb
Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Priority: -- → P5

The severity field is not set for this bug.
:Dolske, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dolske)
Severity: normal → S3
Severity: S3 → N/A
Flags: needinfo?(dolske)

The severity field is not set for this bug.
:Dolske, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dolske)
Flags: needinfo?(dolske)
Severity: N/A → S4

From this change (https://hg.mozilla.org/mozilla-central/rev/12b24c616863) it looks like that restricting -ssb to https was intentional, but I don't know why.

if (!uri.schemeIs("https")) {
throw new Error(
"Site specific browsers can only be opened for secure sites."
);

I would like to be able to use -ssb to connect to locallay hosted apps. (eg http://localhost:1234)

Would it be possible to add a boolean option in about:config to allow SSB over unsecure connections? Something like (for example): browser.ssb.allow_http.

Closing per bug 1682593.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.