Questions tagged [xul]

XUL is an XML-based user interface markup language developed by Mozilla. It allows creating native-looking applications and is the base of Mozilla products like Firefox and Thunderbird as well as applications based on the Mozilla XULRunner platform.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

How to use local source instead of jar file in chrome.manifest in Mozilla application

I want to change some codes in zotero application, so i extracted jar codes in a directory for debug convenience. Therefor needs change links in chrome.manifest file too. but when this line changed, I'...
hanem's user avatar
  • 13
1 vote
0 answers
9 views

How can I get WebStorm to lookup entity references in my DTD files

I'm using JetBrains WebStorm 2023.1, to work on a Thunderbird extension. My extension includes some XUL/XHTML files whose content gets overlaid on top of Thunderbird. These files contain may attribute ...
einpoklum's user avatar
  • 121k
0 votes
0 answers
25 views

Where can I find an XSD/DTD for XUL which WebStorm will like?

I'm trying to use JetBrains' WebStorm IDE to work on a Mozilla Thunderbird extension of mine. It's not giving me such an easy time... but the worst part is all the error messages about my XUL files. ...
einpoklum's user avatar
  • 121k
0 votes
1 answer
19 views

How to set the checkbox label width in the xul file?

I am developping an zotero plugin, and would like to draw a dialog. The width of dialog, groupbox, hbox, checkbox etc have been tried, minwidth, maxwidth have also been tried, but it doesn't work. I ...
Minyi Han's user avatar
  • 817
1 vote
1 answer
120 views

How to pass link to javascript function via right-click menu?

I'm writing an add-on for Pale Moon web browser (Mozilla). I have added the menu item to the right-click menu contentAreaContextMenu, which is the menu that appears when you right-click on a hyperlink....
Deanie's user avatar
  • 2,320
0 votes
1 answer
30 views

Can not fire the ondialogaccept event handler in Thunderbird 68.5.0 add-on's xul dialog

In my currently writing Thunderbird 68.5.0's addon, the dialog's event handlers both ondialogaccept and ondialogcancel are not fired for unknown reasons. enter image description here When clicking ...
Mr. MAX's user avatar
0 votes
1 answer
80 views

Can not generate a multiline textbox on XUL dialog (Thunderbird 68.5.0)

I can not understand in my writing Thunderbird addon that a textbox is not generated as multiline against my intension. Could you tell me the reason or point out the wrong code? Or could you tell me ...
Mr. MAX's user avatar
1 vote
1 answer
252 views

How to add onload listener without XUL in Thunderbird Addon?

My goal is to access the current Text in the editor when composing a message with Thunderbird. Before Thunderbird 68 my extension could access the text by chrome.manifest: overlay chrome://editor/...
volpe's user avatar
  • 46
0 votes
1 answer
34 views

FireGestures script to call extension function

How does one invoke a function provided by a Firefox extension, inside FireGestures User Script? For example, I frequently use deskCut's context menu command to make desktop url shortcut files. I've ...
rych's user avatar
  • 682
1 vote
0 answers
90 views

XUL window events for Thunderbird 60+

I am trying to open a window from another window in javascript (in a Thunderbird addon). I am able to achieve the desired result, but the problem is I am not able to modify the contents of the window ...
Damian's user avatar
  • 95
0 votes
1 answer
576 views

How to force Firefox 56 to reload a legacy add-on?

I had been using an old version of Firefox, because I have a legacy add-on which is incompatible with new versions. Now many websites have stopped working in the old version of Firefox, and this ...
and his dog's user avatar
0 votes
1 answer
2k views

C# - Windows forms with Gecko and xul

I've some problem with integrating Gecko in C# with XUL. 1/I've downloaded geckofx45.45.0.34.nupkg. With that, I've renamed its extension in '.zip' and unzipped this folder. I've got many directory. ...
user2274060's user avatar
0 votes
0 answers
663 views

C/C++ WIN32 - Gecko - Integrate web browser

I've created a WIN32 application for C/C++ into Visual Studio. Then, I went to the following address to download an example of using Gecko : https://github.com/bnoordhuis/mozilla-central/tree/master/...
user2274060's user avatar
3 votes
0 answers
96 views

How detect if a webpage is opened by XUL <browser> tag?

I created this XUL application <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin" type="text/css"?> <window title="example" xmlns:html="http://www.w3.org/1999/...
Reptile's user avatar
  • 9,533
0 votes
1 answer
165 views

How to send message from XUL to embedded WebExtension

I need to migrate the settings from the old version of the extension (XUL / Components.interfaces.nsIPrefService) to the new one (WebExtension / browser.storage.sync). To do this, I imported the code ...
M.Onyshchuk's user avatar
0 votes
0 answers
14 views

Identify tab within xul document opened inside a tab

When one xul document (chrome://myextension/content/mydoc.xul) opened inside two tabs, is there a way assign an unique id to each tab, so it would persist on page refresh? I'm using modules for easy ...
vanowm's user avatar
  • 9,698
-1 votes
1 answer
171 views

What is the CSS for Firefox's URL suggestion popup?

I wasn't able to find the popup with suggestions of URLs when you begin typing an address. Just to be clear – here is a screenshot of what I mean: I'm using the Browser Toolbox (Ctrl+Alt+Shift+I) to ...
user3350906's user avatar
4 votes
3 answers
586 views

How do I migrate a legacy XPCOM extension to WebExtensions?

Embedded WebExtensions talks all about how to "... embed a WebExtension in a classic bootstrapped extension or an Add-on SDK add-on." But I've got neither a "bootstrapped" nor "Add-on SDK" extension, ...
arantius's user avatar
  • 1,715
3 votes
1 answer
1k views

Always Display Firefox Video controlBar

I am trying to find some userChrome.css to cause Firefox HTML5 video tags to always display the control bar: Looking at the source code I see that the video controls are defined in videocontrols.xml, ...
Rob's user avatar
  • 3,716
2 votes
0 answers
32 views

create search box for zotero bibliography in XUL

I have this block as UI : <textbox id="style-search" flex="1" type="search" timeout="250" dir="reverse"/> and this is the onload function: var listbox = document.getElementById("...
Kalagar's user avatar
  • 379
0 votes
0 answers
27 views

Firefox addon hangs while loading multiple URLs

I have an addon which loads multiple URLs in tab format. For URLs of certain websites, it is being seen that it hangs while loading. When I try to load the same URLs on firefox browser, it doesn't ...
ginni's user avatar
  • 37
0 votes
0 answers
26 views

Firefox XUL OnTabSwitchEvent

I am using a file with the ending uc.js (in Firefox chrome directory). When a website is completely loaded a msgbox "ReadystateComplete" should appear, and when clicking a tab a msgbox "TabSelected" ...
Heiko's user avatar
  • 17
0 votes
1 answer
107 views

Automatically uncheck a checkbox when another checkbox is checked

I work with XUL and I have two hboxes in each there is one checkbox : <hbox id="hBox1"> <label value="label1" style="width:15ex" /> <spacer style="width:5px" /> <...
Denis's user avatar
  • 391
0 votes
1 answer
547 views

Is selenium IDE an XUL add-on in Firefox?

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 ...
Brainles71's user avatar
1 vote
0 answers
205 views

Firefox 51.0.1 chrome://global/content/console.xul don't exist for XUL

I work on a XUL firefox application and i need to debug it. For debug i use the console that firefox give us. In the 49.0.2 version of firefox : chrome://global/content/console.xul exist in the ...
julien groud's user avatar
0 votes
1 answer
377 views

Desktop application using Firefox WebExtensions

I am working on a XUL desktop application, where I use the browser tag and load a URL in that tag within the desktop application. However, some websites display as old format and according to Mozilla,...
Tariq's user avatar
  • 218
1 vote
1 answer
188 views

How do I persuade an icon in a listcell to be sized to 16x16

I'm going slightly demented with an old(ish) firefox extension I am trying to clean up. It creates a list of web sites and their favicon. And it displays the list either as a pop up menu or as a list, ...
Tom Tanner's user avatar
  • 9,264
0 votes
0 answers
34 views

Change Firefox Add-on SDK sidebar to a tab or window

I need help with Firefox plugin sidebar: sdk/ui/sidebar var sidebars = require("sdk/ui/sidebar"), ... var orderSidebar = sidebars.Sidebar({ id: "order-sidebar", title: "clix Sidebar", ...
Simo Lougsari's user avatar
0 votes
0 answers
26 views

How to open XUL application in private (incognito) mode?

I am working on a XUL application. I want to open cookie free app on start just like Private Window. I used pref("network.cookie.lifetimePolicy", 2); But this seems to be not working at all. Is ...
Tariq's user avatar
  • 218
1 vote
1 answer
174 views

Get notified when workstation gets locked

On Windows system pressing Win + L will lock the workstation. Is there a way within XUL addon detect when workstation is being locked down? I could probably detect pressing this key combination, but ...
vanowm's user avatar
  • 9,698
0 votes
1 answer
63 views

How can I launch the Lightning-"create Event"-Dialog with given Date and Time

I would like to open the thunderbrid-lightning-create event dialog with a given date and time. Currently I have: window.open("chrome://calendar/content/calendar-event-dialog.xul", ...
thi gg's user avatar
  • 2,008
1 vote
1 answer
507 views

postMessage is not working with dynamically added iframe in firefox addon using xul

I am creating a firefox addon using xul. I have added a dynamic iframe using following script: //addon script: let chromeUrl = 'https://myserver/downloadProduct.html'; ...
Saurabh Sharma's user avatar
-1 votes
2 answers
56 views

Need to create xul based frame in firefox extension build using xul

I want to create xul based frame in one of my firefox extension. The frame should look like https://developer.mozilla.org/en-US/Add-ons/SDK/Low-Level_APIs/ui_frame or how to use below node js code ...
Saurabh Sharma's user avatar
-1 votes
1 answer
102 views

XUL textbox is not editable or visible

When using an XUL <textbox> element in the latest Firefox releases, I am not able to focus the element and write something into it. It worked in older versions, like 33. Using html:textarea ...
kirschkern's user avatar
  • 1,257
1 vote
1 answer
236 views

In Firefox 50, what is the appropriate chrome:// URL to overlay and extend DevTools main window?

Previously, you could extend/style Firefox DevTools at chrome://devtools/content/framework/toolbox-options.xul with an overlay. Now, that seems to no longer exist in Firefox 50. The Developer toolbox ...
NoBugs's user avatar
  • 9,340
0 votes
1 answer
4k views

How to add event listener to window

In my addon I have a menu command that opens the xul Options panel for my addon. That xul window has no javascript of its own. However, since the main script opens the panel, how can the main ...
bgmCoder's user avatar
  • 6,245
0 votes
1 answer
145 views

Getting Thunderbird's email editor object from a restartless (bootstrapped) addon

I'm creating a restartless (bootstrapped) addon for Thunderbird to replicate the functionality of an overlay-based addon I made years ago. The desire is to manipulate some of the text in the new email'...
David Perry's user avatar
2 votes
1 answer
2k views

How to read a local file in an add-on for Firefox version 45+

I spent 4 hours trying to find a solution for loading a file into my Firefox Add-on. But, with no success (((. The code I have: const {TextDecoder, OS} = Cu.import("resource://gre/modules/osfile.jsm"...
Greccy's user avatar
  • 23
6 votes
1 answer
2k views

Firefox WebExtension settings page

I have a settings page on my WebExtension, but I dont know how to acces the values of the settings with javascript. Current .xul-File: <?xml version="1.0"?> <!DOCTYPE mydialog SYSTEM "...
Patrick Mlr's user avatar
  • 2,955
4 votes
1 answer
136 views

Build standalone XUL program based on Firefox's `-app` switch

I've been working on a XULRunner based program for quite long. Since XULRunner isn't actively supported anymore, I kept running my program via Firefox with its -app switch. Now I'd like to build a ...
user2953241's user avatar
2 votes
1 answer
348 views

I want to replace innerHTML() call in a Firefox overlay addon

I am maintaining an overlay add-on for Firefox. To pass Mozilla's Add-on validation process I have to replace innerHTML() calls manipulating the content of a DOM element. I create a new cell of a ...
kabeleced's user avatar
  • 609
1 vote
1 answer
467 views

Why are CSS declarations for about:addons placed in userContent and not userChrome, given that the namespace is XUL?

Why do CSS declarations for about:addons have to be placed in userContent and not userChrome, given that the namespace of about:addons is XUL? This is regarding CSS programming for Firefox. Related: ...
End Anti-Semitic Hate's user avatar
0 votes
1 answer
171 views

Crop for checkbox and radio XUL elements doesn't work

I'm trying to crop the very long label of a checkbox so it will fit in boundaries set by it's parent node. I can't figure out why the crop attribute is totally ignored: <?xml version="1.0"?> &...
vanowm's user avatar
  • 9,698
5 votes
1 answer
684 views

splitter - resize specific node

How can I resize a specific node in xul window when a splitter is dragged? Can't use resizebefore/resizeafter attributes due to complexity of the xul window. I've tried use ondrag event on splitter, ...
vanowm's user avatar
  • 9,698
1 vote
0 answers
26 views

How to use a binding instead of a row in a grid

In a Xulrunner application I'm working on a grid with a dynamic number of rows. All the rows are going to look similar with same functionality. For this reason I would like to create and reuse an XBL ...
Sergey Avdeev's user avatar
1 vote
1 answer
1k views

Ability to load init script in Firefox?

I have a long time stick with Conkeror as my default web browser and get used to configuring/adding new features to my browser using js code with all the XUL Api through the .conkerorrc file. I'm ...
tmtxt's user avatar
  • 990
4 votes
3 answers
3k views

How to dynamically modify CSS rule set (e.g. with a class selector) from JavaScript within Firefox Add-on using XUL, SDK or WebExtensions techniques?

How to dynamically modify CSS rule set (e.g. with a class selector) from JavaScript within Firefox Add-on using XUL, SDK or WebExtensions techniques? Trying to support Firefox 29.0b1 through 49.0a1. ...
user avatar
0 votes
1 answer
65 views

How can a Firefox XUL-addon prevent websites from stealing keypress events?

I use a slightly hacked version of Firemacs, which is an "old" XUL-based addon for Firefox. To watch for keypress events, the plugin creates an <overlay> and sources a script that uses: window....
Michaël's user avatar
  • 410
1 vote
1 answer
257 views

Trouble with XUL overlay, stringbundleset, getString is not a function, but createBundle method works

So I am working on an old XUL overlay add-on and encountered this problem, and simplified it to a minimal add-on. Was wondering if someone could explain to me if I am doing something wrong, if I ...
user avatar
1 vote
1 answer
54 views

Explanation of (undocumented?) XUL dialog attribute buttoniconaccept (and similar)

I am pulling this attribute directly from Mozilla Firefox's about.xul file which shows the About dialog box for an add-on. It is a relatively simple XUL dialog with no inputs, locale data pulled from ...
user avatar

1
2 3 4 5
27