xul

Running unit tests of JavaScript code from XUL - what and how

强颜欢笑 提交于 2019-12-03 03:16:52
I am writing an XUL application. It is not a Firefox extension but a standalone app to be used through XULrunner. My intention is to adopt TDD in my development process and I am looking at RhinoUnit as my unit testing framework. I will try to use it anyway but there is not much documentation about testing XUL applications. Some people talk about using UxU - but only for Firefox addons - and Mochitest - if you want to test Mozilla only. My question is: has someone written some XUL application with unit tests? What tool did you use and, if it is someone I have mentioned, how did you use it? You

Replicating Google Chrome Browser Actions popup Effect in a Firefox Extension

喜你入骨 提交于 2019-12-02 21:02:33
Chrome Browser Actions provide a really nice popup effect by default. dead ImageShack image link removed Hovering over the toolbar icon provides a neat hover effect. Clicking the toolbar icon shows a nice animation that opens the popup html file. The popup is aligned with the button that is pressed. Clicking the toolbar icon again fades out the popup. Any thoughts on how to approximate this effect with Firefox extensions? Has anybody successfully achieved something similar to this effect? Thanks. For everyone who is just starting with your first Firefox extension like I did here is an example

How do I get a richlistbox with a fixed listhead?

一曲冷凌霜 提交于 2019-12-02 07:25:46
问题 Targeting Firefox 29+, I'm trying to create a richlistbox with a listhead , containing listheader s, that should stay fixed at the top if the richlistbox content is scrollable, with: <richlistbox width="400" height="315" seltype="multiple"> <listhead> <listheader label="level" pack="end" width="90"/> <listheader label="marker" pack="center" width="115"/> <listheader label="default" pack="center" width="90"/> <listheader label="prime" pack="center" width="105"/> </listhead> <richlistitem> <!--

To anonymous element add pseudo element and cursor style and event listeners

人走茶凉 提交于 2019-12-02 03:41:17
问题 I have this anonymous element in the toolbarbutton xul element. It's a xul:image . I want to give it a pseudo element ( :before , :after ). And on hover I want to give it cursor:pointer style. I also want to addEventListener('click', ...) it. However none of this works. I even modified the XBL to inject my own stack element and then try this stuff on the stack element but it just doesn't work. Inspecting the anonymous elements DOM Inspector add-on. (I'm trying to set point on this element and

To anonymous element add pseudo element and cursor style and event listeners

空扰寡人 提交于 2019-12-01 23:56:51
I have this anonymous element in the toolbarbutton xul element. It's a xul:image . I want to give it a pseudo element ( :before , :after ). And on hover I want to give it cursor:pointer style. I also want to addEventListener('click', ...) it. However none of this works. I even modified the XBL to inject my own stack element and then try this stuff on the stack element but it just doesn't work. Inspecting the anonymous elements DOM Inspector add-on. (I'm trying to set point on this element and give it a pseudo element and give it onMouseDown functionality) It doesn't seem like these nested,

Firefox Extension, Window related sidebar

半腔热情 提交于 2019-12-01 10:55:38
I'm writing an extension for Firefox, and I need the UI of this extension to be on a sidebar, I followed some mozilla tutorials, but sidebars are not related to just one window. I need a sidebar like UI, that will save navigation data from the same window, and need it to be related to just that window, something like firebug. What I did so far is just creating a menu, and an item, I need that a click on this item will toggle my sidebar. I took a look at firebug source, I didn't find any overlay of sidebar in its XUL, the scripts are complicated for me, so i didn't know how they can add their

Firefox Extension, Window related sidebar

时光总嘲笑我的痴心妄想 提交于 2019-12-01 09:38:52
问题 I'm writing an extension for Firefox, and I need the UI of this extension to be on a sidebar, I followed some mozilla tutorials, but sidebars are not related to just one window. I need a sidebar like UI, that will save navigation data from the same window, and need it to be related to just that window, something like firebug. What I did so far is just creating a menu, and an item, I need that a click on this item will toggle my sidebar. I took a look at firebug source, I didn't find any

What is the simplest way to set up a BIRT report viewer for a xulrunner application?

。_饼干妹妹 提交于 2019-12-01 04:04:13
I recently began using BIRT and have developed a report to use with my xulrunner application. What I haven't yet figured out is how I should deploy the viewer. It seems like BIRT mostly targets Java applications, so there are instructions for deploying on J2EE, JBoss, and other technologies -- with which I am not familiar (but I'm not developing in Java anyway). Reviewing this article on deploying BIRT and reviewing the deployment details on BIRT's web site, I'm not sure where to go. I wasn't expecting to have to add some large Java dependency for the xulrunner application --is there no way I

Building XUL app a-la SongBird

那年仲夏 提交于 2019-12-01 03:31:51
问题 I've started exploring XUL Runner as a potential tool for an upcoming app. I can get some good examples running using the command line xulrunner-bin myapp. How can compile it all in a native looking application, like SongBird does. I understand SongBird packages the entire xul runtime with it, and I'm happy with that. I'm just wondering is there are any tool I can use to compile my xul project as a standalone app? Any Mac and/or PC hint much appreciated! EDIT: I guess what I'm looking for is

How to create firefox3 sidebar?

China☆狼群 提交于 2019-12-01 00:27:23
Hi I want to create sidebar in Firefox 3 but have no clue how to do this. I find tutorial on MDC ( https://developer.mozilla.org/en/Creating_a_Firefox_sidebar ) but after installation extension do not work with "not compatible with Firefox 3.0.3" error. Does anybody have any tip or link to some resource about how to make sidebar? Well, a Firefox extension, be it a sidebar, toolbar or whatever other type of extension is basically a mix of XUL and Javascript, all packaged nice and tidy into an installer package called an XPI. For an excelent XUL tutorial see http://xulplanet.mozdev.org/tutorials