Hi community,
I wanted to dig into writing themes. Google led me to the following site: https://developer.mozilla.org/en-US/doc ... ng_a_Theme. However I'm wondering if the site is still up to date.
First I couldn't get the "hello world" theme from the tutorial working. I already posted a question at stackexchange, but got no answer. (See here: http://stackoverflow.com/questions/3964 ... ing-in-the)
After discovering that the aforementioned tutorial has been tagged with "NeedsUpdate" I have serious concerns that this article is outdated. Am I right with this assumption? If yes, where can I get a good tutorial about writing complete themes in firefox?
"Building a theme" tutorial still up to date? [SOLVED]
-
- Posts: 3
- Joined: September 22nd, 2016, 5:04 pm
"Building a theme" tutorial still up to date? [SOLVED]
Last edited by Scindix on September 23rd, 2016, 11:10 am, edited 1 time in total.
-
- Posts: 3
- Joined: September 22nd, 2016, 5:04 pm
Re: "Building a theme" tutorial still up to date?
Okay now it gets really strange. I unzipped another theme from the Firefox extensions site that works and currently is also enabled. I changed the name and the id in the install.rdf file saved it, removed the META-INF folder (as Firefox thinks it is corrupt otherwise because of the mismatching hash sums) and zipped the xpi file again. When loading the plugin file Firefox says that this plugin is incompatible with "Firefox 49". However in the install.rdf "maxVersion" is set to "50.*"
I replaced the install.rdf with the file from the tutorial. Now Firefox accepts the plugin although the exact same code line above is present here as well. (maxVersion is set to 50.*, too!) Nevertheless the symptoms are exactly the same as in the hello world tutorial. Firefox shows the standard theme instead of the copied theme. How could that be? I only changed the meta information and set a new id. Other than that the theme is exactly the same. Could it be that Firefox needs the META-INF folder to properly load the theme? How can I create it? I somehow wasn't able to recreate the hash sum of install.rdf in manifest.mf by hand.
Code: Select all
<em:maxVersion>50.*</em:maxVersion>
-
- Posts: 3
- Joined: September 22nd, 2016, 5:04 pm
Re: "Building a theme" tutorial still up to date?
MDN wrote:The third column needs to match your theme's internalName value from the install manifest above.
That was it. I forgot to adjust "sample" to the internalName I was using in my install.rdfIn my stackexchange post I wrote:I copy-pasted the contents of chrome.manifest from the tutorial to my file.