Closed Bug 245335 Opened 20 years ago Closed 20 years ago

can't switch to certain themes, exception thrown

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED FIXED

People

(Reporter: steffen.wilberg, Assigned: bugs)

Details

Attachments

(2 files)

I tried the Pinball 0.8.1 and iCandy junior themes, which are said to be
compatible with the new theme manager:
http://forums.mozillazine.org/viewtopic.php?t=79513
Indeed, they show up in it. But upon clicking the "use theme" button, nothing
happens. It throws an exception:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004003 (NS_ERROR_INVALID_POINTER) [nsIXULChromeRegistry.isSkinSelected]" 
nsresult: "0x80004003 (NS_ERROR_INVALID_POINTER)"  location: "JS frame ::
chrome://mozapps/content/extensions/extensions.js :: anonymous :: line 594" 
data: no]
Same result with a new profile.
Tested with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040602 Firefox/0.8.0+ (Steffen)
Flags: blocking0.9?
This works with the Spheregnome 0.9.1 theme, but it's probably still a Firefox bug.
Summary: can't switch themes in the new theme manager → can't switch to certain themes, exception thrown
Could somebody with a debug build work this a little bit? set a breakpoint in
nsChromeRegistry::IsProviderSelected and see where this error code is coming from.
Keywords: helpwanted
Confirming with:

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040604
Firefox/0.8.0+ - Clean Profile/Zip Build.

Apollo 0.9: http://www.cs.txstate.edu/~as1130/themes/apollo/apollo_fx_09.jar

Tried installing via drag-drop, and via
http://texturizer.net/firefox/themes/#install

Identical exception thrown.
Status: NEW → ASSIGNED
Flags: blocking0.9? → blocking0.9+
All of these themes are file not found. There's a separate bug on better network
error reporting, so can someone please give me a theme I can actually download
that reproduces thsi?
http://www.steffen-wilberg.de/icandyjr_fx_09.jar

I can still reproduce the bug with that one.
Tried it and found that for me the "Use Theme" button does nothing.
Restarting Firefox does not change this

User-Agent:       Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko/20040608
Firefox/0.8.0+

Zip Build. Clean profile. 
I had this problem with 'Le Breeze (Unofficial Release)' by Kevin Davis.
In this case, em:internalName property in install.rdf is not
same as chrome:name property of contents.rdf (inside jar file).
This causes the exeption pointed in comment #0.

When I modified em:internalName property to 'lebreeze/1.0',
I can succesfully change to the LeBreeze theme.


icandy Jr. linked from comment #5 misses em:internalname
property.


Ben says:
> em:internalname
> This must be the same as the chrome:name property used in your contents.rdf file,
# http://www.bengoodger.com/software/mb/extensions/packaging/themes.html
so I think this bug is 'INVALID'.
Confirming comment #8, the repackaged version of apollo throws no exception, and
switches. Perhaps a sanity check of said propertie(s) , with a
comment/error/notice about it not being compatible?
sorry, typo in my document. that should be "internalName"
I just updated my document to fix the typo. 
Flags: blocking1.0?
Attached patch additional fixesSplinter Review
This additional patch makes sure redundant data isn't written to the extensions
ds when a theme with incorrect data is installed.
This bug was referenced in a checkin comment last night.  Is it fixed?
It's fixed. Installing such a theme now displays the alert "Malformed File".
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040629
Firefox/0.9.0+ (Steffen)

first patch checkin:
0.9.1:  2004-06-24 03:19.
Aviary: 2004-06-24 14:40.
Trunk:  2004-06-28 16:37.

second patch checkin:
0.9.1:  2004-06-24 14:38.
aviary: 2004-06-28 16:33.
trunk:  2004-06-28 16:37.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Flags: blocking-aviary1.0?
Keywords: helpwanted
Resolution: --- → FIXED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: