IsRunningAsASnap incorrectly detected when not running from a snap
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: sergio.schvezov, Assigned: sergio.schvezov)
References
Details
Attachments
(2 files)
878 bytes,
patch
|
Details | Diff | Splinter Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0
Steps to reproduce:
On Ubuntu
- apt install firefox
- snap install emacs --classic
- launch emacs
- from emacs, launch firefox (the deb)
Actual results:
Firefox detects it is in a snap since the SNAP environment variable was exported for the context of emacs.
Expected results:
Firefox should have a stricter check. I have attached a proposal patch.
Comment 1•5 years ago
|
||
FWIW the patch looks good to me and makes sense.
Assignee | ||
Comment 2•5 years ago
|
||
Can I have this bug assigned to myself?
Comment 3•5 years ago
|
||
Hi Sergio!
Thank you very much for filing this and providing a patch! I agree with Olivier the patch looks good to me. Although, I don't feel qualified to r+ it. I'm not a Gecko developer and I haven't written C++ in years.
The Shell Integration component doesn't have an owner and when I look at who changed this file[1], nobody really stands out. I had a quick chat with Sylvestre and he said :glandium could be a good fit. How does this sound to you, Mike?
Comment 4•5 years ago
|
||
Karl, what do you think? Or should we redirect this to the Red Hat folks?
Comment 5•5 years ago
|
||
Yes, I'm not familiar this this.
Comment 6•5 years ago
|
||
I'll look at it.
Sergio can you use phabricator to submit the patch? see https://moz-conduit.readthedocs.io/en/latest/phabricator-user.html
AFAIK Mozilla no longer commits patches from bugzilla.
Assignee | ||
Comment 7•5 years ago
|
||
Sounds good! I will do that tomorrow when my holiday break is over
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
Hi Marin, I have submitted the patch to phabricator and set you up as a reviewer (hope that is what was expected, if not I will take note of this, there was a lot of reading involved).
Comment 10•5 years ago
|
||
Comment 11•5 years ago
|
||
bugherder |
Description
•