** Changed in: firefox (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/777412
Title: firefox extension's prefs.js does not work in ubuntu version of firefox Status in “firefox” package in Ubuntu: Fix Released Bug description: Binary package hint: firefox I have created this Firefox addon for Firefox 4 some time ago: https://addons.mozilla.org/en-us/firefox/addon/classic-opera/ This addon has a defaults/preferences/prefs.js file that sets a few default preferences: pref("browser.tabs.closeWindowWithLastTab", false); pref("browser.tabs.insertRelatedAfterCurrent", false); pref("browser.tabs.warnOnClose", false); After upgrading to Natty, i switched from the FF i downloaded from mozilla.com to the one provided by Ubuntu. Suddenly the preferences from prefs.js weren't being set anymore. I disabled all the other addons - this did not make a difference. Then i switched back to the mozilla.com version of Firefox and the prefs.js settings were working again. Switched to Ubuntu FF again and the problem was back. In an effort to fix the problem in the addon's code, i went to my ~/.mozilla/firefox/<blah>.default/extensions/ directory and unpacked the contents of the classic-op...@oele.net.xpi archive into it's own directory so that i could edit the scripts. (so i replaced the file classic-op...@oele.net.xpi with the directory classic-op...@oele.net with the same contents) When i restarted Ubuntu Firefox, suddenly the prefs.js settings were being set correctly! Restarted FF various times, and it kept on working. Then i re-packed the addon in an XPI file and it stopped working again. So, it seems that for some reason Ubuntu Firefox ignores the prefs.js file of .xpi packed extensions, but not of unpacked extensions? To reproduce the problem: - install Ubuntu's Firefox 4 - download Mozilla.com's Firefox 4 and extract it somewhere on the hard drive - install the classic opera plugin in one of the browsers (they share one profile directory, so you'll only have to do this once) - go to about:config and look at browser.tabs.closeWindowWithLastTab, browser.tabs.insertRelatedAfterCurrent and browser.tabs.warnOnClose . Compare these settings in both versions of the browser. - exit Firefox and go to ~/.mozilla/firefox/<something>.default/extensions/ and unzip the extension into it's own directory: unzip -d classic-op...@oele.net classic-op...@oele.net.xpi && rm classic-op...@oele.net.xpi - look at the same settings again in both versions of FF. Description: Ubuntu 11.04 Release: 11.04 firefox: Installed: 4.0.1+build1+nobinonly-0ubuntu0.11.04.1 Candidate: 4.0.1+build1+nobinonly-0ubuntu0.11.04.1 Version table: *** 4.0.1+build1+nobinonly-0ubuntu0.11.04.1 0 500 http://nl.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages 500 http://security.ubuntu.com/ubuntu/ natty-security/main i386 Packages 100 /var/lib/dpkg/status 4.0+nobinonly-0ubuntu3 0 500 http://nl.archive.ubuntu.com/ubuntu/ natty/main i386 Packages ProblemType: Bug DistroRelease: Ubuntu 11.04 Package: firefox 4.0.1+build1+nobinonly-0ubuntu0.11.04.1 ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2 Uname: Linux 2.6.38-8-generic i686 NonfreeKernelModules: nvidia Architecture: i386 Date: Wed May 4 22:07:52 2011 FirefoxPackages: firefox 4.0.1+build1+nobinonly-0ubuntu0.11.04.1 flashplugin-installer 10.2.159.1ubuntu1 adobe-flashplugin N/A icedtea-plugin 1.1~20110420-0ubuntu1 InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007) ProcEnviron: LANGUAGE=en_US:en PATH=(custom, user) LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: firefox UpgradeStatus: Upgraded to natty on 2011-04-28 (6 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/777412/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp