The "-version" ("-v") command line option doesn't report version information when using cmd.exe
Categories
(Toolkit :: Startup and Profile System, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox-esr68 | --- | wontfix |
firefox67 | --- | unaffected |
firefox68 | --- | wontfix |
firefox69 | --- | wontfix |
firefox70 | --- | wontfix |
firefox71 | --- | wontfix |
firefox72 | --- | verified |
People
(Reporter: yuki, Assigned: emk)
Details
(Keywords: regression)
Attachments
(1 file)
Firefox supported a command line option "-version" (or "-v") to print its version, like:
> "c:\Program Files\Mozilla Firefox ESR60\firefox.exe" -version | more
Mozilla Firefox 60.7.2
>
However the option looks unavailable on recent versions.
Steps to reproduce
- Install Nightly on Windows.
- Open cmd.exe.
- Type
"c:\Program Files\Mozilla Nightly\firefox.exe" -version | more
and run it.
Actual result
Just line breaks are printed and there is no version information, like:
> "c:\Program Files\Mozilla Nightly\firefox.exe" -version | more
>
Expected result
A valid version information is printed like:
> "c:\Program Files\Mozilla Nightly\firefox.exe" -version | more
Mozilla Firefox 70.0a1
>
Envrionment
- Windows 10 1809 Pro
- Firefox 67.0.1 (64bit)
- Firefox ESR68.0 (64bit)
- Nightly 70.0a1 (64bit) build ID: 20190725215157
Reporter | ||
Comment 1•5 years ago
|
||
I've confirmed that the option works with Firefox ESR60. Because mozregression is not usable for this case, the initial failure build is not determined yet.
Reporter | ||
Comment 2•5 years ago
|
||
https://dxr.mozilla.org/mozilla-esr60/source/toolkit/xre/nsAppRunner.cpp#3525
https://searchfox.org/mozilla-central/rev/40e889be8ff926e32f7567957f4c316f14f6fbef/toolkit/xre/nsAppRunner.cpp#3480
The option is still defined on Nightly, so it looks a problem of DumpVersion()
or something related to the standard output.
Reporter | ||
Comment 3•5 years ago
|
||
I successfully got the expected output on the Windows PowerShell. On my environment this works as expected:
PS C:\Users\user> & 'C:\Program Files\Mozilla Firefox\firefox.exe' '-version' | more
Mozilla Firefox 68.0.1
So this looks a problem appearing only on the cmd.exe
.
Comment 4•5 years ago
|
||
The priority flag is not set for this bug.
:Dolske, could you have a look please?
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Comment 5•5 years ago
•
|
||
Confirmed issue with 70.0a1 (2019-08-13) on Windows 10.
Hope this helps:
- Last good: buildID 20190329153554
pushlog link - First bad: buildID 20190330093331
Comment 6•5 years ago
|
||
(In reply to Cristian Fogel, QA [:cfogel] from comment #5)
Confirmed issue with 70.0a1 (2019-08-13) on Windows 10.
Hope this helps:
- Last good: buildID 20190329153554
pushlog link- First bad: buildID 20190330093331
Changes in that range: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=69e9ee0ef3dd97a412d90be9c8377d660d08cbc2&tochange=5f519306c8bdf77c3236abcb626eacfe44c5e1f0
Updated•5 years ago
|
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Dão, or dolske, can you help find someone to work on this, maybe for the 71/72 release? Thanks!
For a simple enough fix, I would still take a patch for 70 beta 13 or 14, tbh, because of how much I love Tree Style Tab ;)
Comment 8•5 years ago
|
||
Sorry, I don't manage engineers. It would be helpful to pin down what bug caused this but nothing jumps out at me from the regression range.
Comment 9•5 years ago
|
||
Command line handling is handled in the code relating to Startup & Profile system, so lets move this across there and see if the triage owners can help.
Updated•5 years ago
|
Assignee | ||
Comment 11•5 years ago
|
||
AttachConsole() may change Win32 std handle values if Firefox is launched from
cmd.exe that makes discrepancy between Win32 and CRT. This patch synchronizes
both std handles.
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Fix verified for 72.0a1 (2019-11-14) on Windows 10.
Comment 15•5 years ago
|
||
Unless someone can point to a real-world instance where this bug is causing problems in the wild, I'm inclined to just let this fix ride the trains.
Assignee | ||
Comment 16•5 years ago
|
||
Piro-san, do you want to uplift this to ESR68?
Reporter | ||
Comment 17•5 years ago
|
||
Initially this was reported by my customer who used it. This was actually a usecase in the wild. But they already migrated to something different way (maybe application.ini or the registry of Windows), so it looks not immediately-necessary.
Description
•