Closed Bug 246031 Opened 20 years ago Closed 19 years ago

theme manager looks like extension manager if theme's contents.rdf doesn't contain chrome:name

Categories

(Toolkit :: Add-ons Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: steffen.wilberg, Assigned: bugs)

Details

Just tested Arvid's standalone Qute. His contents.rdf didn't contain
chrome:name. The result was that the theme manager had no themePreviewArea.

The js console displays:
Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIXULChromeRegistry.getSelectedSkin]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://mozapps/content/extensions/extensions.js :: Startup :: line 85" data: no]

context:
if (!isExtensions) {
    gExtensionsView.addEventListener("richview-select", onThemeSelect, false);
    var cr = Components.classes["@mozilla.org/chrome/chrome-registry;1"]
                       .getService(Components.interfaces.nsIXULChromeRegistry);
    gCurrentTheme = cr.getSelectedSkin("global");
    
    var useThemeButton = document.getElementById("useThemeButton");
    useThemeButton.hidden = false;
  }

line 85 is this one: gCurrentTheme = cr.getSelectedSkin("global");

We might want to reject installation of broken themes. Besides that, Qute works
normally though.
Tested with the 0.9 RC: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7)
Gecko/20040608 Firefox/0.8.0+
Also, the button Use Theme is missing and the title says Extensions.

On a more serious notice, upon changing theme, all opened tabs are blanked and
all history is wiped from each tab. Anyone knows the bug number for that?
Severity: minor → normal
You're right, it has the appearance of the extension manager.

The theme switching bug is bug 245327.
Summary: no themePreviewArea if theme's contents.rdf doesn't contain chrome:name → theme manager looks like extension manager if theme's contents.rdf doesn't contain chrome:name
*** Bug 306724 has been marked as a duplicate of this bug. ***
Is this still a problem with 1.5?
WFM with Firefox 1.5.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → WORKSFORME
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.