Open
Bug 1506857
Opened 7 years ago
Updated 4 years ago
The Nightly icon is displayed twice in the launcher when the language is changed after a restart
Categories
(Core :: Widget: Gtk, defect, P3)
Tracking
()
NEW
| Tracking | Status | |
|---|---|---|
| firefox63 | --- | unaffected |
| firefox64 | --- | unaffected |
| firefox65 | --- | affected |
People
(Reporter: george.craciun, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Preconditions
Set the following preferences from about:config
intl.multilingual.enabled - set to TRUE
intl.multilingual.downloadEnabled - set to TRUE
Go to extensions.getAddons.langpacks.url and past the following link: https://mock-amo-language-tools.glitch.me/ This server provides language packs for Nightly.
extensions.langpacks.signatures.required -set to FALSE
Restart the browser.
[Affected versions]:
Tested on Nightly 65.0a1(2018-11-13)
[Affected platforms]:
Linux only
[Steps to reproduce]:
1. Open "Preferences" and go to the "Language" section
2. Expand the language drop-down and choose Search for more languages..." option
3. User clicks on the dropdown, selects a language and click the "Add" button next to the dropdown
4. Added language appears in the table-first position
5. Alert Windows “Restart Browser / Browser must restart to enable this feature” is displayed
6. User restarts the browser
[Expected result]:
The browser is successfully restarted and the Nightly icon is displayed as intended in the Launcher bar.
[Actual result]:
The Nightly icon is displayed twice in the Launcher bar after restart.
Note: This issue is an intermittent one, it is reproducible 3/10.
Please see the attachment for more details.
| Reporter | ||
Updated•7 years ago
|
status-firefox63:
--- → unaffected
status-firefox64:
--- → unaffected
Comment 1•7 years ago
|
||
This isn't actually to do with the prefs.
Component: Preferences → Localization
Product: Firefox → Core
Comment 2•7 years ago
|
||
Actually, it might be prefs?
https://searchfox.org/mozilla-central/rev/adcc169dcf58c2e45ba65c4ed5661d666fc3ac74/browser/components/preferences/in-content/main.js#874 says we're doing an eAttemptQuit, and https://searchfox.org/mozilla-central/rev/adcc169dcf58c2e45ba65c4ed5661d666fc3ac74/toolkit/components/startup/nsAppStartup.cpp#405-414 about how that might end up leaving the process behind?
Is there a reason why we use eAttemptQuit instead of eForceQuit? Bug 1469684 doesn't talk about it (anymore, if reviewboard did).
Component: Localization → Preferences
Flags: needinfo?(mstriemer)
Product: Core → Firefox
Comment 3•7 years ago
|
||
(In reply to Axel Hecht [:Pike] from comment #2)
> Actually, it might be prefs?
>
> https://searchfox.org/mozilla-central/rev/
> adcc169dcf58c2e45ba65c4ed5661d666fc3ac74/browser/components/preferences/in-
> content/main.js#874 says we're doing an eAttemptQuit,
This is what all the helpers for restarts to pref updates (e.g. permanent private browsing mode) or other cases (e.g. devtools) do. I expect eForceQuit doesn't notify some observers, which may mean we drop user downloads or lose other data without prompting the user, so that doesn't seem like the right fix.
> and
> https://searchfox.org/mozilla-central/rev/
> adcc169dcf58c2e45ba65c4ed5661d666fc3ac74/toolkit/components/startup/
> nsAppStartup.cpp#405-414 about how that might end up leaving the process
> behind?
Sounds like that needs fixing.
Component: Preferences → Startup and Profile System
Product: Firefox → Toolkit
Updated•7 years ago
|
Priority: -- → P3
Comment 4•7 years ago
|
||
eAttemptQuit is the correct way to quit the browser nicely. The only thing that can block it that components observing the quit notification can cancel the attempt (e.g. you have a multitude of tabs open, are you sure you want to quit?). Possible onBeforeUnload affects it but I think we might have gotten around that.
I don't know how linux handles what launcher icons show but I don't think it is the startup code so I'm going to punt this to Linux land.
Component: Startup and Profile System → Widget: Gtk
Flags: needinfo?(mstriemer)
Product: Toolkit → Core
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•