xul

how to have tab-specific xul control with firefox

别说谁变了你拦得住时间么 提交于 2019-12-14 03:09:26
问题 let me put it simple. With Firefox 29, I add a check box control next to the back & forward button in the toolbar "nav-bar". It works. I mean I can do check and uncheck, and the javascript code will be triggered. Now, my problem: after I checked the checkbox in one tab, I found that the checkbox in all other tabs are also checked, and if I uncheck any of them, the checkbox in all other tabs will be unchecked. Why they change as one? I would like them to be unrelated or separated. In another

How can I find Firefox code that opens “Add new Bookmark” window?

你说的曾经没有我的故事 提交于 2019-12-14 02:15:46
问题 I am writing a Firefox Add-on that is supposed to add new bookmarks. I am thinking of employing some of the functionality that is already present in the Mozilla Firefox browser. As I understand, the Firefox browser is written in XUL and the code is open source. How can I find the code that performs any specific action, like in this case when I click the context menu item "Bookmark this link" a window appears "New Bookmark", how can I find the code that opens this window? Thank you! 回答1: See

How to completely uninstall XULRunner 7 Mac OS X

拈花ヽ惹草 提交于 2019-12-13 18:42:12
问题 There is a thread here: How to Install and run a XulRunner Application on Mac OS X? ...in which a user mentions having trouble uninstalling XULRunner 7 so he could then install XULRunner 6. Unfortunately he just says he figured it out, but doesn't say how. It appears that I cannot private-message or email that user (CIRK). So, does anyone know how one removes it, or at least get OS X to allow the install of XULRunner 6? As a side-note, removing the /Library/Frameworks/XUL.framework directory

Capture editable tree changes in XUL

与世无争的帅哥 提交于 2019-12-13 15:49:08
问题 I have a dynamically constructed editable XUL tree. The problem is - how is one supposed to listen and capture the changed cells? I detect the submitting of the edited value by capturing blur event of the tree.inputField , any other events are not working. At least it works, but is there an easy way to retrieve new value? Should it really be as hackish as getting the Tree element, calculating the current cell, and querying its new value? 回答1: I guess that "dynamically constructed" means that

Prevent XUL notificationBox from closing when button is hit

≡放荡痞女 提交于 2019-12-13 15:22:26
问题 I have a problem concerning the notificationBox. I create a notification using appendNotification( label , value , image , priority , buttons, eventCallback ) and supply a button in the buttons argument. Now, I want to prevent the notificationBox from closing when I hit the button. The XUL Documentation states that this can be done by throwing an error in the eventCallback function: This callback can be used to prevent the notification box from closing on button click. In the callback

Get Firefox to run XUL type script on startup

独自空忆成欢 提交于 2019-12-13 14:28:02
问题 With Firefox 17.0.1 I am using an add-on called KeyConfig 20110522 to set some new hot keys and also set the acceltext of menuitems for my new keys as well as for add-ons that do not bother to do so. I want the acceltext of the menuitems to be set when Firefox starts , but currently I am just using a hot key to execute the following code against the UI via KeyConfig : document.getElementById("tabmix-menu") .setAttribute("acceltext","Alt+Ctrl+Shift+T"); // more of the same... I need a couple

How to Create XUL Toolbar via Javascript?

試著忘記壹切 提交于 2019-12-13 07:28:10
问题 With the coming of multi-process Firefox I have decided to re-write my addon using the Addon-SDK. My addon is mainly a toolbar with an extensive set of menus. The addonsdk does not provide any way to build menus. So I found this method by which I can add them to an existing toolbar. However, I cannot find any way to create menus like this and add them to an Addon-SDK toolbar. So I thought I would just create the toolbar the same way I am creating the menus. So, I am basically trying to create

FirefoxDriver - selenium and XUL

泪湿孤枕 提交于 2019-12-13 06:33:42
问题 I have a web application written in XUL and I've been trying to use FireFoxDriver to interact with the browser. I can locate an element, but when I use the sendKeys or click it doesn't trigger any event. here are my code <rows> <row> <spacer height="10"/> </row> <row> <label class="LoginLabels" control="login" value="&LOGIN_LABEL;"/> <textbox id="login" onkeypress="doKey(event)" onclick="return false;" ondblclick="return false;" persist="value" context="nocontext"/> </row> <row> <spacer

CustomEvent() to an XUL tab - Firefox addon

左心房为你撑大大i 提交于 2019-12-13 05:16:19
问题 For many reasons, I have to open up XUL in a tab, instead of using a standard window. I wish to send custom events to this tab, and here's how my code looks like : myextension.js : .. var pTab = window.gBrowser.loadOneTab("chrome://myextension/path/options.xul", {inBackground: false}); var pWin = window; var event = new pWin.CustomEvent("prefwindow-event"); pWin.dispatchEvent(event); .. options.xul code: window.addEventListener("load", init, false); window.addEventListener("prefwindow-event",

Firefox Xul Clipboad

為{幸葍}努か 提交于 2019-12-13 05:05:25
问题 I'm new to the programming world & i'm trying to develop an extension for Firefox. I have a Xul window with a textbox and i would like to copy the entire textbox and put in to the clipboard of firefox and paste it anywhere on the firefox browser. Help me out with some JS code or using xul coding. Please help me out or give me some suggestion. Thanking you guys in advance. 回答1: For copying text to the clipboard the easiest way is to use the clipboard helper service. 回答2: My Problem is Fixed :