Stylish completely broken in Seamonkey 1.1.14

edited January 2009 in Stylish
Installed latest version on AMO.

Console message at browser startup:

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/StylishStyle.js :: anonymous :: line 435" data: no]

Console messages when "Manage Styles..." status bar menu entry is used and "Write Style" is clicked (repetitions removed):

Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/browserOverlay.js :: anonymous :: line 36" data: no]
Source File: chrome://stylish/content/browserOverlay.js
Line: 36

Error: uncaught exception: Permission denied to call method Location.toString

Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/browserOverlay.js :: anonymous :: line 36" data: no]
Source File: chrome://stylish/content/browserOverlay.js
Line: 36

Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/browserOverlay.js :: anonymous :: line 36" data: no]
Source File: chrome://stylish/content/browserOverlay.js
Line: 36

Error: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/browserOverlay.js :: anonymous :: line 36" data: no]
Source File: chrome://stylish/content/browserOverlay.js
Line: 36

Error: StylishStyle.prototype.ds has no properties
Source File: chrome://stylish/content/browserOverlay.js
Line: 410

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getCharPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/StylishStyle.js :: anonymous :: line 435" data: no]

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getIntPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/manage.js :: init :: line 10" data: no]

Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getBoolPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://stylish/content/edit.js :: init :: line 33" data: no]

Appearance of Stylish "Write Style" window: see http://ca.geocities.com/insertrealname/files/stylish-1.PNG

Also, the installation button on every userstyles.org style page does not appear.

It's really sad, this extension is so useful.

I've repeatedly installed/uninstalled using Chrome Manager and verifyied that the extension was correctly installed/uninstalled.

Comments

  • Sounds like it's just missing a bunch of prefs for some reason...

    extensions.stylish.install.allowedDomains = userstyles.org

    That's an important one.
  • Jason,

    You're exactly right about the problem: the extension installed by default in the user profile without signaling any errors, but none of the default user prefs were copied to the pref.js file. Is this a problem with the extension install logic perhaps?

    I unpacked the xpi archive, found the default preferences stylish.js file and copied the preferences using the about:config Mozilla page. On restarting the browser, the Stylish extension appearance and function was correct, so it's NOT broken on Seamonkey.

    Thanks very much for the tip--in future, I will check for the presence of default preferences when I have problem installing extension.
Sign In or Register to comment.