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.

xul
Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

Inject external XUL file into tabpanel

I was working on an old XUL based add-on and found that there was an about.xul file in use. This file is used from the about:addons page if you right-click on the add-on and choose About from the ...
user avatar
1 vote
1 answer
425 views

XUL get the value of MENUITEM selected

I am creating a dropdown in XUL like this: <button id="bid" oncommand="alert(event.target.nodeName)" > <menupopup> <menuitem label="one" value="one" /> ...
Pankaj Kumar's user avatar
0 votes
1 answer
122 views

Cannot get instance of TinyMCE in XUL Firefox extension

I am trying to get the instance of tinyMCE editor in JavaScript for Firefox extensions. When I type window.tinyMCE in the console, it returns an object; however, when trying to get an instance of ...
Gregory R.'s user avatar
  • 1,875
1 vote
1 answer
188 views

How to get the right-clicked tab's URL in a Firefox add-on

I'm writing a Firefox extension that adds a menu item to the browser's tab context menu to send the URL of the tab to a Web service. I have a command event listener for my menu item that fires when ...
kindall's user avatar
  • 182k
1 vote
1 answer
2k views

Inserting text with execCommand causes a duplication issue

I'm working on a Firefox extension that inserts Polish characters to any text field using keyboard shortcuts. It's working for all text fields, except for Facebook, Draft.js, and any React ...
Gregory R.'s user avatar
  • 1,875
0 votes
1 answer
105 views

Drag'n drop tree items as files to a folder?

Is there a way start dragging items from a XUL tree into a folder and when dropped, create a file with data from these items? I've successfully implemented drag'n drop file from folder to XUL tree as ...
vanowm's user avatar
  • 9,887
0 votes
1 answer
42 views

Show firefox addon toolbar on certain URL

How do I enable Toolbar (set Hidden to False) when a URL is matching pattern? I know the logic for this (if url == "...") elemById("toolbar").setAttrib(hidden, false), but I don't know how can I ...
Marek's user avatar
  • 1,229
0 votes
1 answer
37 views

Invalid sidebar broadcaster specified -- What would a valid sidebar broadcaster look like?

I'm trying to modify the XUL School Hello World extension to Firefox so as to open a sidebar rather than a pop-up window. Unfortunately, I can't seem to get past the "Invalid sidebar broadcaster ...
Holger Friedrich's user avatar
0 votes
1 answer
192 views

Transparent context menu item during Thunderbird addon development

Currently i am developing a context menu addon for Thunderbird 3*. I am trying to add my own Submenu items as part of existing Thunderbird Context menu for mail content. With the following XUL: <...
bprasanna's user avatar
  • 2,433
2 votes
1 answer
101 views

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

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 ...
GreenBear's user avatar
  • 373
1 vote
1 answer
1k views

Opening a browser window in Thunderbird Extension

I'm currently working with a Thunderbird Add On which opens a pop-up every time someone hovers over a link. In this pop-up, the user should be able to click on a link which opens a new window or tab ...
betty's user avatar
  • 11
0 votes
0 answers
32 views

Can't get Javascript code to work in custom Firefox toolbar extension

I am learning to create a toolbar extension in Firefox using this tutorial. So far so good, until I got to Chapter 6: Scripting the Toobar. In the section Adding Functionality to the Buttons, I ...
thegreatjedi's user avatar
  • 2,878
0 votes
0 answers
16 views

progressmeter is updated too rarely

I have progressmeter in my XUL source code and button that I created for testing, that increments value of progressmeter by constant value. Problem exists because if value of increment is smaller than ...
qtreez's user avatar
  • 121
3 votes
1 answer
61 views

Prevent XUL notificationBox from closing when button is hit

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 ...
tnull's user avatar
  • 738
0 votes
0 answers
379 views

Thunderbird plugin FolderPane

I am trying to add a folderpane to the main view (something like http://extensions.sanjer.nl/xpi/tb/contactssidebar-1.7pre.xpi). This seems to give a nice tool to start with but I want to add an event ...
user1320651's user avatar
6 votes
0 answers
480 views

How to debug Firefox's XUL startup (on Windows)

I have a problem that causes Firefox to behave strangely during startup. (Specifically, it displays the "Firefox seems slow... to... start" message, even though I didn't install any new extensions ...
conio's user avatar
  • 3,688
1 vote
0 answers
59 views

Did the XUL script tag change?

I have an about dialog in an extension that does not display properly in Firefox 43. I'm developing (at the moment) with the xpinstall.signatures.required option disabled (so I can test without having ...
Jonah Bishop's user avatar
  • 12.4k
2 votes
0 answers
80 views

SVG inside Mozilla/XUL app: title/tooltip is not displayed

I wrote a xul application where a SVG fragment is embedded in a XUL element. (...) <scrollbox style='overflow:auto;' flex="1" pack="center"> <svg:svg version="1.1" baseProfile="full" ...
Pierre's user avatar
  • 34.9k
0 votes
1 answer
120 views

How to Create XUL Toolbar via Javascript?

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 ...
bgmCoder's user avatar
  • 6,325
0 votes
2 answers
151 views

Firefox Addon SDK onMouseover Event for a Button

With the coming of multi-process Firefox, I have decided to revamp my addon. It is a toolbar addon that was built on XUL. Now I want to build it using the Addon SDK. The old XUL overlay allowed for ...
bgmCoder's user avatar
  • 6,325
1 vote
0 answers
49 views

Dynamically resize luxor(XUL) button in JAVA

I have a button defined in my .xul file like this: <button icon="PASTE" id="crew" label="Add crew" command="add_crew"/> which is one of multiple buttons in my vbox, but the only one with text ...
Prpaa's user avatar
  • 247
1 vote
2 answers
117 views

How can I make even-width columns?

I am very perplexed with the XUL's 'Box Model' layout. I want to make a table-like layout of elements. The layout should consist of one row and three columns. The columns should have the same width ...
GreenBear's user avatar
  • 373
0 votes
1 answer
262 views

How can I create a "Restore Previous Session" button on my custom HTML Homepage?

about:home in Mozilla Firefox opens an HTML page, that has a "Restore Previous Session" button. Upon clicking that button a previous session is restored. I am creating my custom HTML homepage and want ...
GreenBear's user avatar
  • 373
2 votes
1 answer
857 views

How to replace string of a webpage using firefox addon?

I want to create an addon whose xpi installation will enable to replace a string of a website with other string. For example , replacing all "the"s in a webpage with "change". Actually, wanted to ...
Aksh1693's user avatar
0 votes
1 answer
91 views

Signing XUL-based add-on for Firefox

Is it possible to sign an add-on based on XUL for Firefox, or signing only possible with the new SDK?
tofutim's user avatar
  • 23k
0 votes
0 answers
70 views

SVG to canvas using XPCOM

I'm trying to render an svg file in a canvas by just using xpcom (no gui). For this purpose I'm running the following javascript code using xpcshell (firefox-sdk): const Cc = Components.classes; var ...
mescarra's user avatar
  • 715
1 vote
0 answers
84 views

FireFox Extension XulSchool - Adding Events and Commands - on load function

I'm trying to edit the helloworld from this tutorial: https://developer.mozilla.org/en-US/Add-ons/Overlay_Extensions/XUL_School/Getting_Started_with_Firefox_Extensions So, I need to execute a ...
Eduardo B.M.'s user avatar
0 votes
1 answer
123 views

Firefox extension: Refer to object defined in bootstrap.js from XUL file

I'm trying to contribute to a Firefox extension I use, but I have no idea what I'm doing :) I've got a dialog powered by a XUL document to gather some data from the user. That's all fine and good. ...
Nathan Wallace's user avatar
0 votes
0 answers
154 views

How can I hook into new message windows using a bootstrapped Thunderbird extension?

I am currently trying to create a Thunderbird extension that write the recipients of a draft into the title of the composing window. The default behaviour of Thunderbird is Compose: [Subject] (...
Imanuel's user avatar
  • 3,616
0 votes
1 answer
45 views

Thunderbird extension: accessing the value of mail-urlfield (xbl element)

I'm playing with the thunderbird API, and I'm trying to create a button that would 'alert(url)' the content of the original website inside the RSS panel. AS far as I can see, the element is in https://...
Pierre's user avatar
  • 34.9k
1 vote
0 answers
140 views

AngularJS app in XUL

I am trying to load an entire angular.js app in a XUL window in my Firefox addon Unfortunately, my angular app does not get loaded if I use (just white page with source code): <?xml version="1.0"?...
elmalto's user avatar
  • 1,028
1 vote
1 answer
76 views

Electrolysis compatibility shims doesn't work with evalInSandbox

We have a rather old XUL extension which we want to make sure works with Electrolysis. We will eventually migrate it to the WebExtensions API, but for now we want to use the compatibility shims. We ...
Shlomi Atia's user avatar
1 vote
0 answers
164 views

Custom XBL scrollbar(not only colors!) in browser window and in HTML page in tabs

I want custom XBL scrollbar: Add event mousedown to thumb, slider and my duppa tag. Add styles to this elements. For all scrollbars in browser window and for all scrollbars in all tabs pages. I ...
lukaszpolowczyk's user avatar
1 vote
1 answer
160 views

Firefox Add On SDK: How to build a settings page?

I am building a Firefox Add-On based on the new Mozilla jpm Add-On SDK. What ist the best way to build a settings or preferences page? Should it be made within a new panel, or a separate tab? Are ...
sgotre's user avatar
  • 405
1 vote
1 answer
455 views

Firefox toolbarbutton context ( right click menu on toolbar )

In Chrome, its possible to make context menu items for extension icons, like this: What is the best and cleanest way to emulate that in Firefox - preferably using the standard toolbar and standard ...
MarZab's user avatar
  • 2,573
2 votes
0 answers
87 views

Firebreath function call

I am trying to call firebreath functions from my javascript file.Everything works fine if I call the firebreath functions using an html document with javascript functions and also for firefox version ...
Anushya Charles's user avatar
1 vote
1 answer
28 views

How to recognize an update from XUL to Jetpack?

We're updating our Firefox add-on. The current one the users have is built using the old XUL technology, the new extension is built with Jetpack (add-on SDK). Is there a way to tell that a XUL add-on ...
MeLight's user avatar
  • 5,524
2 votes
1 answer
101 views

Unable to call firebreath dll functions

My firefox plugin is written using firebreath framework. It works absolutely fine upto version 28 of firefox. For higher versions I was unable to call the functions of firebreath dll from my ...
Anushya Charles's user avatar
2 votes
0 answers
106 views

How can I properly detect mousemove deltas beyond the screen in XUL?

For the SlyZoom extension I have created, I want to implement a virtual slider: a XUL/XBL element that acts as a small static region where, on mousedown, the mouse pointer changes to ew-resize and I ...
Codifier's user avatar
  • 354
0 votes
1 answer
87 views

How to send message or establish 2 way communication between two XUL Overlay Firefox extensions/add-ons

I have an XUL Overlay Firefox extension, I need to develop a dummy XUL extension that establishes connection with the original extension and sends a set of parameters (message) to the original ...
Sandeep Singh's user avatar
0 votes
0 answers
64 views

Varied results for window.open

I am working on a standalone XUL application and have this bit for opening a dialog window: window.open("./help.xul","help","chrome,dialog,centerscreen,modal,resizable=no,close=no"); On Windows 7/8 ...
user3402292's user avatar
1 vote
1 answer
306 views

XUL + javascript module : TypeError: xxx.yyyy is not a function

I'm playing with XUL and modules ( https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Using ) I've defined a small module: under hello01/chrome/content/js/hello.jsm this....
Pierre's user avatar
  • 34.9k
1 vote
1 answer
200 views

Linux/Ubuntu: Wheel events not triggering when context menu is open

This is the code I am running: window.removeEventListener('wheel', onwheel, false); window.removeEventListener('mousedown', ondown, false); function onwheel(e) { console.info('wheeled, e:',...
yatg's user avatar
  • 1,121
0 votes
1 answer
86 views

xul overlay for new menu in TB/Firefox main menubar

I'd like to add a new menu at the end of the main menu bar (file, edit, ...) after the Help menu via an extension i wrote. I already know how to add a new item to one of the menus by something like: &...
Martin's user avatar
  • 1,183
1 vote
2 answers
129 views

XUL iframe firefox addon, how to change the src within the iframe?

I am developing a firefox addon, in my settings page dialog.xul i have an iframe where i load different settings pages page1.xul page2.xul page3.xul Iframe : <vbox flex="1"> <iframe ...
intika's user avatar
  • 9,124
1 vote
1 answer
335 views

React.js with XUL for Firefox development

React.js was designed to work with HTML. How about XUL, sort of HTML? When I tried to run them together I got an error: Target container is not a DOM element. Basically I don't see the reason why ...
GoOlga's user avatar
  • 224
-2 votes
3 answers
917 views

Variable is not defined error in my Firefox extension

I'm developing a Firefox add-on. When I run it, I open up the browser console and it says, AMO_Uedit_Beta_Firefox is not defined :browser.xul. <?xml version="1.0"?> <?xml-stylesheet href="...
clickbait's user avatar
  • 2,927
3 votes
3 answers
2k views

Firefox always show menubar toolbar

I am working on a Firefox extension in which I have made various changes in browser.xul to customize Firefox's UI. By default Firefox has its menu-bar disabled/invisible. I want it to always display ...
Sagar Pilkhwal's user avatar
0 votes
1 answer
91 views

Dumping SQLite database in time interval

I have XUL desktop app which stores data in SQLite database. To prevent too much data store in DB i want to create some kind of auto dumping system for my DB. My idea is to store timestamp of last DB ...
amidzic89's user avatar
0 votes
1 answer
226 views

Display CustomizableUI widget of type "custom" as icon in Firefox customization palette

I develop a restartless Firefox addon using a CustomizableUI widget of the type custom. The widget itself contains several XUL elements. Currently, the full widget appears in the customization-...
Boris's user avatar
  • 348

1
2
3 4 5
27