Can't Create a Default Theme Entry in Addons/Themes for xulrunner my app

RESOLVED WORKSFORME

Status

Toolkit Graveyard
XULRunner
RESOLVED WORKSFORME
11 years ago
2 years ago

People

(Reporter: Mel Reyes, Unassigned)

Tracking

Details

(Reporter)

Description

11 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

is there any way to get a default theme entry in the addons manager for xulrunner (MOZILLA_1_8_BRANCH)? Sample install.rdf below.

Without a default entry it's impossible for a normal user to revert back to the base theme.  Additionally need to test uninstalling newer themes and making sure that classic/1.0 is the fallback, etc.

Reproducible: Always

Steps to Reproduce:
1. create {94084226-8526-44de-9482-F582355EDE4E} folder under xulrunner/extensions
2. create and copy install.rdf from snippet below
3. change targetApplication to your application id in the install.rdf
4. start xulrunner application
Actual Results:  
Chrome Registration error and no entry in addons/themes.

Expected Results:  
No error and a default locked theme entry in addons manager.

<?xml version="1.0"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
	<Description about="urn:mozilla:install-manifest">
		<em:id>{94084226-8526-44de-9482-F582355EDE4E}</em:id>
		<em:version>1.0</em:version>

		<em:name>my theme (default)</em:name>
		<em:description>The default theme</em:description>
		<em:creator>Mel Reyes</em:creator>
		<em:internalName>classic/1.0</em:internalName>

    <em:appManaged>true</em:appManaged>

    <em:locked>true</em:locked>

		<em:targetApplication>
			<Description>
				<em:id>myxulrunnerapp@mrtech.com</em:id>
				<em:minVersion>1.0</em:minVersion>
				<em:maxVersion>1.0.0.*</em:maxVersion>
			</Description>
		</em:targetApplication>

	</Description>
</RDF>
The default theme ID must be 972ce4c6-7e08-4474-a285-3208198ce6fd
(Reporter)

Comment 2

11 years ago
that resolved it for me, but where do I put the icon and preview.png?  Will do some testing to see where/if it will read it in.
Take a look at the contents of any default theme for those images and place them in the same place with the same name.

Updated

5 years ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → WORKSFORME
(Assignee)

Updated

2 years ago
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.