MozillaZine

Thunderbird Windows Build with DOM Inspector

Discuss application theming and theme development.
CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 10th, 2004, 10:45 pm

Post Posted December 10th, 2004, 10:45 pm

I sure do wish it came packaged with 1.0. Gosh, it's a whole whopping 184K. We wouldn't want it to bloat the Tb installer, now would we. :roll:
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 11th, 2004, 12:21 am

Post Posted December 11th, 2004, 12:21 am

At one time there was a commitment to keep DOMi in the full zip builds and not the installer builds but, eventually, even that support was dropped.

I agree, not having DOMi makes theme supporting for Thunderbird (TB) much more of a challenge. In my case, I prefer to keep my themes up to date with the nightlies rather than wait until near the end of a release cycle and then attmpt to make sense of all the changes that had gone in since the previous release. DOMi makes doing this considerably easier and without it, I keep questioning myself as to if it's worth it to continue my theme support?

So far, I've kept up but there have been times when I've almost decided to abandon TB.

Old Bozz
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm
December 11th, 2004, 1:48 pm

Post Posted December 11th, 2004, 1:48 pm

Well, the bumped extension doesn't work so good for after all. It crashes after a few minutes when searching a window. Oh well.

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 11th, 2004, 2:33 pm

Post Posted December 11th, 2004, 2:33 pm

Yeah, DOMi as an extension has always been tempermental that way, that's why it was never made a bona fide extension. It will be best if mscott would at least make a "1.0" zip build with it in it or, even better, go back to having it part of the nightly zip builds, imo.

btw, now that "1.0" is available, should one now go back to the Trunk builds for the new stuff (like Firefox now) or is TB still using the Branch for new features, anyone know?

Old Bozz
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm
December 11th, 2004, 3:08 pm

Post Posted December 11th, 2004, 3:08 pm

Not sure about the branch/trunk. The nightlys being posted are from the trunk. See GrailKnights comment in this thread.

I posted in Thunderbird Builds about Dom Inspector if anyone want's to add comments.

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 11th, 2004, 3:27 pm

Post Posted December 11th, 2004, 3:27 pm

bozz wrote:I posted in Thunderbird Builds about Dom Inspector if anyone want's to add comments.

Everyone PLEASE post a little something there. We all need DOMi.
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 14th, 2004, 7:15 pm

Post Posted December 14th, 2004, 7:15 pm

I figured out a way to get DOMi into Tb 1.0 final. I'm not sure if this will work on the nightlies, but for anyone who wants it in the final here's how (Win only, English only, and Tb zip file only - not the exe installer).

1. Download "Thunderbird 1.0.zip" from <a href="http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/1.0/win32/en-US/">here</a>.

2. Download mscott's Tb build with DOMi "thunderbird-dominspector-0.9+.zip" from <a href="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/extensions/inspector/">here</a>.

3. Unzip each file into separate directories. (You'll eventually be keeping the Tb 1.0 Final and discarding mscott's Tb build.)

4. Take each of these files from mscott's version and place them into their respective locations in the Tb 1.0 Final version, creating new directories as needed:
<b>\thunderbird\chrome\inspector.jar
\thunderbird\chrome\overlayinfo\inspector\*.*
\thunderbird\components\inspector.dll
\thunderbird\components\inspector.xpt
\thunderbird\components\inspector-cmdline.js
\thunderbird\defaults\pref\inspector.js
\thunderbird\res\inspector\*.*</b>

5. Place this entry into \thunderbird\chrome\overlayinfo\messenger\content\overlays.rdf under <RDF:Seq RDF:about="chrome://messenger/content/mailWindowOverlay.xul">
<b><RDF:li>chrome://inspector/content/tasksOverlay.xul</RDF:li></b>

6. Place this entry into \thunderbird\chrome\overlayinfo\communicator\content\overlays.rdf under <RDF:Seq RDF:about="chrome://communicator/content/pref/preftree.xul">
<b><RDF:li>chrome://inspector/content/prefs/prefsOverlay.xul</RDF:li></b>

7. Execute the Tb 1.0 Final version's thunderbird.exe and you should have a DOMi that really, really works totally like it should!

The <b>\thunderbird\chrome\chrome.rdf</b>, <b>\thunderbird\components\compreg.dat</b>, and <b>\thunderbird\components\xpti.dat</b> entires will automatically be placed into these files upon program startup. The <b>\thunderbird\chrome\installed-chrome.txt</b> entires already exist.

I sure hope I didn't leave anything out since I didn't take notes when I did it and this is all from memory. :wink:

<u>EDIT:</u>
If you run into problems getting this to work correctly, delete the existing <b>\thunderbird\chrome\chrome.rdf</b>, <b>\thunderbird\components\compreg.dat</b>, and <b>\thunderbird\components\xpti.dat</b> files and allow them to regenerate upon Tb restart. (See this <a href="http://forums.mozillazine.org/viewtopic.php?t=169647&postdays=0&postorder=asc&postsperpage=15&start=30">follow-up post</a> for more information.)
Last edited by CatThief on January 15th, 2005, 3:17 pm, edited 3 times in total.
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 14th, 2004, 9:28 pm

Post Posted December 14th, 2004, 9:28 pm

Hmm, it (TB) hung when I first tried it but after I deleted the \thunderbird\chrome\chrome.rdf file (thus forcing it to regenerate) TB came up and DOMi could be selected from the menu. However, after it came up, it didn't seem to want to display nor pick and chrome items???

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 14th, 2004, 10:04 pm

Post Posted December 14th, 2004, 10:04 pm

Hmm, I double checked these files and entries but must have left something out. Mine is working perfectly. I'll go over everything again once I get back into Windows (in Linux at the moment) and post back. I'll try tonight, but it might not be until tomorrow. I'm sorry, Sailfish, that it caused you problems.

EDIT:
Sailfish, do you have these entries inside \thunderbird\chrome\chrome.rdf ?

under:
<RDF:Seq RDF:about="urn:mozilla:package:root">
this entry:
<RDF:li RDF:resource="urn:mozilla:package:inspector"/>

under:
<RDF:Seq RDF:about="urn:mozilla:locale:en-US:packages">
this entry:
<RDF:li RDF:resource="urn:mozilla:locale:en-US:inspector"/>

under:
<RDF:Seq RDF:about="urn:mozilla:skin:classic/1.0:packages">
this entry:
<RDF:li RDF:resource="urn:mozilla:skin:classic/1.0:inspector"/>
Last edited by CatThief on December 14th, 2004, 10:38 pm, edited 1 time in total.
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 14th, 2004, 10:28 pm

Post Posted December 14th, 2004, 10:28 pm

No need for apologies, I cause much worse problems than that fiddling on my own :_)

Consider me an alpha-tester.

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 14th, 2004, 10:40 pm

Post Posted December 14th, 2004, 10:40 pm

oops, I posted an edit before I saw that you posted again. See my edit in the last post. Maybe this is the problem?
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 14th, 2004, 11:16 pm

Post Posted December 14th, 2004, 11:16 pm

I have it in those and a number of other places:
Code: Select all
<RDF:Seq RDF:about="urn:mozilla:package:root">
    <RDF:li RDF:resource="urn:mozilla:package:inspector"/>

Code: Select all
<RDF:Seq RDF:about="urn:mozilla:skin:classic/1.0:packages">
    <RDF:li RDF:resource="urn:mozilla:skin:classic/1.0:inspector"/>

Code: Select all
<RDF:Seq RDF:about="urn:mozilla:skin:modern/1.0:packages">
    <RDF:li RDF:resource="urn:mozilla:skin:modern/1.0:inspector"/>

Code: Select all
<RDF:Seq RDF:about="urn:mozilla:locale:en-US:packages">
    <RDF:li RDF:resource="urn:mozilla:locale:en-US:inspector"/>

Code: Select all
<RDF:Description RDF:about="urn:mozilla:locale:en-US:inspector"
                   c:baseURL="jar:resource:/chrome/inspector.jar!/locale/en-US/inspector/"
                   c:localeVersion="1.7">
    <c:package RDF:resource="urn:mozilla:package:inspector"/>
  </RDF:Description>

Code: Select all
<RDF:Description RDF:about="urn:mozilla:skin:classic/1.0:inspector"
                   c:baseURL="jar:resource:/chrome/inspector.jar!/skin/classic/inspector/"
                   c:allowScripts="false"
                   c:skinVersion="1.5">
    <c:package RDF:resource="urn:mozilla:package:inspector"/>
  </RDF:Description>

Code: Select all
<RDF:Description RDF:about="urn:mozilla:skin:modern/1.0:inspector"
                   c:baseURL="jar:resource:/chrome/inspector.jar!/skin/modern/inspector/"
                   c:allowScripts="false"
                   c:skinVersion="1.5">
    <c:package RDF:resource="urn:mozilla:package:inspector"/>
  </RDF:Description>

Code: Select all
<RDF:Description RDF:about="urn:mozilla:package:inspector"
                   c:hasOverlays="true"
                   c:baseURL="jar:resource:/chrome/inspector.jar!/content/inspector/"
                   c:locType="install"
                   c:displayName="Document Inspector"
                   c:author="Joe Hewitt"
                   c:name="inspector"
                   c:localeVersion="1.7"
                   c:skinVersion="1.5" />
  <RDF:Description RDF:about="urn:mozilla:locale:en-US:messenger-smime"
                   c:baseURL="jar:resource:/chrome/en-US-mail.jar!/locale/en-US/messenger-smime/"
                   c:localeVersion="1.7">

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 14th, 2004, 11:55 pm

Post Posted December 14th, 2004, 11:55 pm

oops, I forgot about
Code: Select all
<RDF:Seq RDF:about="urn:mozilla:skin:modern/1.0:packages">
    <RDF:li RDF:resource="urn:mozilla:skin:modern/1.0:inspector"/>

I have the other entries, too, but have found from time to time with other things that the ones I noted are sometimes left out causing major problems. Looks like we can't track the problem down to it this time, though, since everything seems to be in order.

Darn, I don't know what else to try. I can't understand why it works for me and not you. I must have missed something else but don't know what. Aside from the individual files I listed, you did copy the entire contents of \thunderbird\chrome\overlayinfo\inspector\*.* and \thunderbird\res\inspector\*.* right? Gosh, I'm sure you did, I shouldn't even ask. #-o
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Sailfish
 
Posts: 5681
Joined: November 5th, 2002, 4:58 pm
December 15th, 2004, 12:14 am

Post Posted December 15th, 2004, 12:14 am

Yeah, I copied the folders over (since they didn't exist in TB1.0). Maybe I'll take a closer look tomorrow, it quite possibly could be something I missed.

btw, I'm on Win98SE so, perhaps, that might be a reason???

CatThief

User avatar
 
Posts: 1617
Joined: January 19th, 2004, 12:19 am
Location: Northeast USA
December 15th, 2004, 12:38 am

Post Posted December 15th, 2004, 12:38 am

Logically(?) it shouldn't matter (98 or XP) since the program files are the same. I just doublechecked everything again and I'm 99.9% certain I didn't miss anything. I even deleted the chrome.rdf file so Tb would regenerate it. All entries still match yours and DOMi is working fine. This is so strange.
Mostly Crystal - themes for Firefox, Thunderbird, and SeaMonkey

Return to Theme Development


Who is online

Users browsing this forum: No registered users and 6 guests