Re: Starting firefox -venkman
Wink Saville <[email protected]> Tue, 20 Nov 2007 09:17:45 -0800
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
Justin Wood (Callek) wrote: > John J. Barton wrote: >> Gijs Kruitbosch wrote: >> >>> Venkman starts up first. >> Hi Gijs, do you know how Venkman gets in first? >> > > I guess he more means "the venkman window" which if it loads minus the > firefox window (am taking that for granted in this thread) then yes it > definately comes up first. > > If he means "before the services of said extension" than no, they > initialize first. > > ~Justin Wood (Callek) > _______________________________________________ > dev-apps-js-debugger mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-apps-js-debugger My desire was to have venkman start before my extension as it appeared there was something wrong with my xul file (see below). But apparently that isn't possible. Anyway for those interested, I resolved my problem. Turns out that the MacOS version of FF doesn't seem to handle the <menubar> at line 10 & 28 and if present no buttons are displayed. This xul does work on PC and Linux: 1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 3 <overlay id="sample" 4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 5 <script type="application/x-javascript" src="chrome://sparkrocket/content/ll.js"/> 6 <script type="application/x-javascript" src="chrome://sparkrocket/content/ajax_queue.js"/> 7 <script type="application/x-javascript" src="chrome://sparkrocket/content/sr.js"/> 8 <script type="application/x-javascript" src="chrome://sparkrocket/content/prefutils.js"/> 9 <toolbaritem id="urlbar-container"> 10 <menubar position="1" id="SparkRocketMenuBar"> 11 <!--style="width: 50px; height: 32px" style attribute for buttons --> 12 <button type="menu" 13 id="SparkMenu" 14 image="chrome://sparkrocket/content/spark-16x16.png" 15 label="Sparks"> 16 <menupopup id="SparkMenuPopup"> 17 <menuitem label="SparkRocket" oncommand="sr_goto('http://www.sparkrocket.com');"/> 18 </menupopup> 19 </button> 20 <button type="menu" 21 id="RocketMenu" 22 image="chrome://sparkrocket/content/rocket-16x16.png" 23 label="Rockets"> 24 <menupopup id="RocketMenuPopup"> 25 <menuitem label="No friends to target yet"/> 26 </menupopup> 27 </button> 28 </menubar> 29 </toolbaritem> 30 </overlay> If delete the menubar tags and use position in the buttons I get what I want, two buttons as the first items in the url-container: 1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 3 <overlay id="sample" 4 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 5 <script type="application/x-javascript" src="chrome://sparkrocket/content/ll.js"/> 6 <script type="application/x-javascript" src="chrome://sparkrocket/content/ajax_queue.js"/> 7 <script type="application/x-javascript" src="chrome://sparkrocket/content/sr.js"/> 8 <script type="application/x-javascript" src="chrome://sparkrocket/content/prefutils.js"/> 9 <toolbaritem id="urlbar-container"> 10 11 <!--style="width: 50px; height: 32px" style attribute for buttons --> 12 <button position="1" type="menu" 13 id="SparkMenu" 14 image="chrome://sparkrocket/content/spark-16x16.png" 15 label="Sparks"> 16 <menupopup id="SparkMenuPopup"> 17 <menuitem label="SparkRocket" oncommand="sr_goto('http://www.sparkrocket.com');"/> 18 </menupopup> 19 </button> 20 <button position="2" type="menu" 21 id="RocketMenu" 22 image="chrome://sparkrocket/content/rocket-16x16.png" 23 label="Rockets"> 24 <menupopup id="RocketMenuPopup"> 25 <menuitem label="No friends to target yet"/> 26 </menupopup> 27 </button> 28 29 </toolbaritem> 30 </overlay>