Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6914583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:21:59+00:00 2026-05-27T09:21:59+00:00

On MDN , the phrase Add-on Manager-enabled XUL application is introduced. By dragging a

  • 0

On MDN, the phrase “Add-on Manager-enabled XUL application” is introduced.

By dragging a XPI file containing an add-on and dropping it onto a FireFox window, the addon’s widgets will be installed in FireFox’s add-on bar.

I can also use Firefox to run a XUL application by specifying the commandline option “-app application.ini”.

Since MDN makes me think that the two are not mutually exclusive, I’m looking for a simple 4 step process where steps 1 and 2 are create a XUL application and XPI independently, step 3 describes how to change either the XUL application or the XPI in preparation for step 4, and step 4 is final integration.

I’ll start you off with steps 1 and 2, and then suggest some things that need to be done in steps 3 or 4.

Step 1: Build the XPI by following the tutorial at https://addons.mozilla.org/en-US/developers/docs/sdk/1.3/dev-guide/addon-development/implementing-simple-addon.html

Step 2: Build the XUL application by following the tutorial at https://developer.mozilla.org/en/Getting_started_with_XULRunner

Now for Steps 3 and 4. They should include modifying the application.ini built in step 2 by adding the code:

[XRE]
EnableExtensionManager=1

They should also include adding lines to prefs.js to support the extension manager. And they may require adding addon bar window element to XUL by adding code similar to:

<toolbarpalette id="BrowserToolbarPalette">
<toolbarbutton 
    id="xfox-statusbarpanel" class="toolbarbutton-1 chromeclass-toolbar-additional"
    label="&name;"
    tooltiptext="&name;"
    oncommand="toggleSidebar('xfox-sidebar');"
    context="xfox-contextmenu">
</toolbarbutton>
</toolbarpalette>

I’ve succeeded in making the “Add-on Manager-enabled XUL application” (aka <TestApp>) accept the XPI (aka <wikipanel>) and attempt to install it, but it fails with the error message: “<wikipanel> could not be installed because it is not compatible with <TestApp version 1.0>”

[edit] I editted INSTALL.RDF (for my XPI) and added the following:

<em:targetApplication>
   <Description>
     <em:id>testapp@sample.xul</em:id>
     <em:minVers‌​ion>0.0</em:minVersion>
     <em:maxVersion>9.*</em:maxVersion>
   </Description>
 </em:targe‌​tApplication>.

The extension now installs, but I am getting the following error in jsconsole:

Error: The widget module currently supports only Firefox. In the future it will support other applications. Please see https://bugzilla.mozilla.org/show_bug.cgi?id=560716 for more information.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:22:00+00:00Added an answer on May 27, 2026 at 9:22 am

    I’ve found the answer but it is a bit of a hack and requires removing the following lines of code from the addon-kit javascript source:

    if (!require("api-utils/xul-app").is("Firefox")) {
        throw new Error([
          "The widget module currently supports only Firefox.  In the future ",
          "it will support other applications. Please see ",
          "https://bugzilla.mozilla.org/show_bug.cgi?id=560716 for more information."
        ].join(""));
    }
    

    Since the above code is specifically designed to prevent using the addon kit in anything other than bonafide Firefox, this avenue is not worth pursuing further. However, if there is a way to build a xul-app in such a way that it conforms to Firefox, then I will revisit the issue.

    Firefox is chrome://browser/content/browser.xul after all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does Firefox 8 (win/64) Support mp4? I cannot find any mention on MDN of
According to MDN documentation for JSON.stringify : Properties of non-array objects are not guaranteed
All sites that list css properties such like MDN or w3schools list every CSS
There is HTML page with contents like this. Documentation at MDN says that childNodes
According to the MDN JS Doc , the charAt method takes in an integer
This is snippet is found here , in an MDN article describing generators and
Possibly this is related to Using a plugin generated with Firebreath in a Firefox
I'm trying to dynamically add a css stylesheet rule using javascript, something like example
I'm using Firefox 5, and I already know that extensions are situated in the
MDN says: To perform a sticky search, that matches starting at the current position

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.