xul

Why doesn't background-color works for my xul app?

不想你离开。 提交于 2019-12-12 04:22:47
问题 Running this xul app: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window width="400" height="300" style="background-color:transparent;" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <label value="MAIN WINDOW"/> </window> my window background is showing up. Is there a way to make it transparent (without get rid of the chrome://global/skin/ )? 回答1: On Linux and Windows, toolkit also themes windows with -moz-appearance: window;

Pass variable values from child XUL window to parent XUL window using JavaScript

折月煮酒 提交于 2019-12-12 02:45:28
问题 I have a function to get the values of the selected check-box from the xul file(Lets say tree.xul). In another XUL file has the text-box where I want to pass the values(label values) of the selected check-box(Lets say textbox.xul). Originally I'm opening my "tree.xul" file from "textbox.xul" file. When I select the check box values and click on the button to pass the values to an another xul file("textbox.xul"). I have a text-box in "textbox.xul" file, I want to pass the values of the check

In Xul, within a transparent window, how do I hide the mouse cursor?

a 夏天 提交于 2019-12-12 02:32:37
问题 I have a Xul window that is transparent, and I need to hide the mouse cursor after 1 second. Applying cursor: none will not work, the mouse cursor still shows up in the transparent part of the window. Any idea how to get rid of the mouse cursor? 回答1: Your OS generally won't even bother to send mouse events to a completely transparent (area of your) window; as far as it's concerned, your window isn't there. However if your OS allows it, a nearly transparent window might work. 来源: https:/

Is selenium IDE an XUL add-on in Firefox?

点点圈 提交于 2019-12-12 02:17:48
问题 With Firefox discontinuing the use XUL overlay it raises concerns that Selenium IDE requires this overlay to function. Can anyone confirm one way or the other? Mozilla Will Deprecate XUL Add-ons Before the End of 2017 回答1: Selenium IDE is definitely an overlay/XUL based add-on. It contains an instal.rdf file and chrome.manifest file which uses the overlay directive. Mozilla has stated that all types of extensions, other than WebExtensions, will be disabled in the near future. They have stated

Creating a XUL button gives “component failure code”

对着背影说爱祢 提交于 2019-12-12 01:58:36
问题 I'm one of the developers of TryAgain, a Firefox add-on, that displays a custom error page when a website fails to load. It essentially replaces Firefox's netError.xhtml with a customized version. In order to execute JavaScript from the extension code within the netError.xhtml , I've added a XUL <command> element to the error page as follows: var increment_btn = doc. createElementNS( "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "xul:command" ); increment_btn.setAttribute(

XULRunner ignores updates on edited files

﹥>﹥吖頭↗ 提交于 2019-12-12 01:37:44
问题 I am writing a XUL application following the default structure for standalone XUL apps - that is, I have the following files: ./application.ini ./chrome ./chrome/chrome.manifest ./chrome/content ./chrome/content/main.xul ./chrome.manifest ./defaults ./defaults/preferences ./defaults/preferences/prefs.js What bothers me is that sometimes I run my application with xulrunner, note something wrong and go change my main.xul file. However, when I run my application again with xulrunner, the

How to listen to focus event of a window with a browser?

走远了吗. 提交于 2019-12-12 01:19:17
问题 By running this sample: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window width="640" height="480" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" onload=""> <script> <![CDATA[ function onfocus() { dump("FOCUSED!\n"); } window.addEventListener("focus", onfocus, false); ]]> </script> <browser id="gmail" type="content" src="http://gmail.com/" flex="1" /> <button label="click here to remove the focus from the browser"/> </window>

In XUL, how do I know a browser-tag has finished loading?

淺唱寂寞╮ 提交于 2019-12-11 15:17:57
问题 I'm developing a firefox extension based on this tutorial which is a FF 2.0 extension (second part of the tutorial is at this url) The main thing that is important is that it uses <iframe id="contentview" src="http://www.ibm.com/developerworks/web" flex="2"/> In the backend code, when clicking the GO button, this happens: contentview.contentDocument.location.href = urlbox.value; //Use Firefox XPath to get the raw text of the document var doctext = contentview.contentDocument.evaluate( "string

I try to add a new button to Firefox, but it's the old button that gets added!

心已入冬 提交于 2019-12-11 14:37:35
问题 Once, I tried adding a button with "bookmark-item pagerank" as class to PersonalToolbar. Now, the code... function createToolbarButton() { const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; var anitem = document.createElementNS(XUL_NS, "toolbarbutton"); anitem.setAttribute("id", "Testing-Doit-Button2"); anitem.setAttribute("class", "toolbarbutton-1 chromeclass-toolbar-additional pagerank"); anitem.setAttribute("label", "PageRank"); anitem.setAttribute("tooltiptext

Firefox extension elements id

十年热恋 提交于 2019-12-11 13:46:49
问题 Can someone tell me where can I find the ids of browser elements in Firefox? I want to put a menupopup in the web developer section in Firefox and I need an id to put into the insertafter attribute. 回答1: You can see all the IDs in the source code of browser.xul as well as its include files like browser-sets.inc. Alternatively, you can inspect the browser window at runtime using the DOM Inspector extension. 回答2: The web developer menupopup can be found in: http://mxr.mozilla.org/mozilla