Firefox's warning when closing multiple tabs won't turn off

Bug #1082626 reported by 67GTA
30
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Linux Mint
Confirmed
Undecided
Unassigned

Bug Description

Release: Nadia/Any

Edition: Cinnamon/Any

Forum post with more info: http://forums.linuxmint.com/viewtopic.php?f=47&t=117696&p=651432#p651432

The Mint version of Firefox has an extra setting in about:config that overrides the normal Firefox setting of turning off "Warn Me When Closing Multiple Tabs". The "browser.showQuitWarning" only shows up in Linux Mint. It is not present in other distros stock FF settings. Thanks to a forum user for pointing this out. I didn't know this setting existed to even search for it. Could this setting be removed for future Mint releases?

Revision history for this message
67GTA (67gta) wrote :

I spoke too soon. Once I disabled this setting, FF closed without the warning until I restarted FF. This setting seems to reset it's self to "true" in Nadia.

Revision history for this message
67GTA (67gta) wrote :

/etc/skel/.mozilla/firefox/mwad0hks.default/prefs.js is part of mint-artwork-common. mwad0hks.default profile has a prefs.js file with:

//Save tabs before exiting
user_pref("browser.showQuitWarning",true);

This overrides the users settings in FF preferences. Setting this to false, or deleting this line fixes the problem. This setting hasn't been used since FF 5.0, and conflicts with all newer FF versions.

67GTA (67gta)
Changed in linuxmint:
status: New → Confirmed
Revision history for this message
CLINTON EVANS (clinton-douglas-evans) wrote :

I deleted the line user_pref("browser.showQuitWarning",true); from /etc/skel/.mozilla/firefox/mwad0hks.default/prefs.js and the warning box still shows when closing multiple tabs.

Revision history for this message
67GTA (67gta) wrote :

In about:config, is "browser.tabs.warnOnClose" set to false?

Revision history for this message
CLINTON EVANS (clinton-douglas-evans) wrote :

It was, but even with the entry in the prefs.js file deleted, the setting in about:config still resets upon opening firefox.

Revision history for this message
67GTA (67gta) wrote :

Not sure about your situation. Try renaming your ~/.mozilla folder and see if it still happens with a new profile. There may be a rouge setting somewhere. You can just delete the new one, and rename the old to get your original profile back. Also search about:config for "tab" and see what pops up.

Revision history for this message
sergunchik (sergunchik128) wrote :

I can reproduce the problem with the following setup: Linux Mint 14.1 (Nadya) 32-bit edition with MATE 1.4

Simply removing the line user_pref("browser.showQuitWarning",true); from
/etc/skel/.mozilla/firefox/mwad0hks.default/prefs.js and .mozilla/firefox/mwad0hks.default/prefs.js doesn't set that option to false.
Even after setting it manually to false via about:config doesn't yeld the desired result. It's still true next time Firefox is started.

The temporary solution is to also set browser.warnOnQuit to false manually via about:config and maybe a few of these browser.tabs.warnOnClose, browser.tabs.warnOnCloseOtherTabs to be sure.

A proper fix would need to figure out where this obsolete browser.showQuitWarning property is coming from and remove it completely. Has anybody tried to edit those mozilla's pref.js files before first Firefox launch to see if it makes any difference?

Revision history for this message
jacob019 (a-launchpad-jacobstoner-com) wrote :

same problem as clinton here, even after removing /etc/skel/.mozilla and /home/me/.mozilla entirely, browser.showQuitWarning shows up as manually set to True. If I change it to false and restart firefox, it reverts to true. It's killing me.

Revision history for this message
jacob019 (a-launchpad-jacobstoner-com) wrote :

Found it :-D

remove the showQuitWarning line from:
/usr/lib/firefox/browser/defaults/preferences/vendor-firefox.js

Revision history for this message
primolarry (primolarry) wrote :

I can reproduce the problem, but I can't solve it permanently. If I take these steps:

-Change the property in about:config
-Change the property in /etc/skel/.mozilla/firefox/mwad0hks.default/prefs.js
-Change the property in /usr/lib/firefox/browser/defaults/preferences/vendor-firefox.js

The problems disappear. However, after rebooting the system the property is set to true in my firefox settings and in /usr/lib/firefox/browser/defaults/preferences/vendor-firefox.js, so something is setting the property in /usr/lib/... and from there to my personal config.

Reproduced in Linux Mint 13 amd64. I might try a cronjob to solve it after reboot.

Revision history for this message
primolarry (primolarry) wrote :

I have finally solved. There is another file in /etc/firefox called 'syspref.js'. This file can be used to configure global preferences for Firefox. After setting the property to false the problem has disappearance.

user_pref("browser.showQuitWarning", false);

Regards,

Revision history for this message
John Franklin (ubuntu-sentaidigital) wrote :

This bug is still present in Linux Mint 17 (RC).

Revision history for this message
fabian (fabians-interia) wrote :

This bug is still present in Linux Mint 17 32 and 64 bit. primolarry thanks for your advice.
Add line

user_pref("browser.showQuitWarning", false);

to file
/etc/firefox 'syspref.js'

Revision history for this message
Kevin Seifert (sevkeifert) wrote :

I fixed this by deleting the file

/usr/lib/firefox/browser/defaults/preferences/vendor-firefox.js

(Testing in Mint 17).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.