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 7803799
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:42:05+00:00 2026-06-02T01:42:05+00:00

I am writing a simple Firefox extension which has an icon in the toolbar.

  • 0

I am writing a simple Firefox extension which has an icon in the toolbar. I am unable to add the toolbar icon using XUL. My file structure and code I am using is given below:

Extension:

-chrome.manifest
-install.rdf
-chrome
    -content
        -toolbarButton.js
        -toolbarButton.xul
    -locale
    -skin
        -toolbarButton.css
        -icon.png

chrome.manifest:

content myext chrome/content/
skin    myext   classic/1.0 chrome/skin/
locale    myext  en-US       chrome/locale/en-US/

overlay chrome://browser/content/browser.xul  chrome://myext/content/toolbarButton.xul

style chrome://global/content/customizeToolbar.xul chrome://myext/skin/toolbarButton.css
style chrome://global/content/browser.xul chrome://myext/skin/toolbarButton.css

XUL code:

<toolbarpalette id="BrowserToolbarPalette">
    <toolbarbutton id="toolbar-clipper-button"
      label="Some label"
      tooltiptext="Does something"
      oncommand="showMessage(event)" >
    </toolbarbutton>
</toolbarpalette>

CSS code:

#toolbar-clipper-button {
    list-style-image: url("chrome://myext/skin/toolbar-icon.png");
}

Please help me in figuring out the problem.

  • 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-06-02T01:42:07+00:00Added an answer on June 2, 2026 at 1:42 am

    I was able to fix the issue with the help of good folks in the mozilla community. Yes, I do not see the toolbar icon in the customize toolbar sheet. The issue was with packaging. All the files were not being copied in my case. The code works fine now…

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

Sidebar

Related Questions

As I was writing a Firefox add-on using the Add-on SDK , I noticed
iam writing a simple firefox toolbar, but i have failed to set a few
I was just writing some simple code and I noticed that using document.writeln doesn't
I'm writing a firefox-extension and I've got this little json file: for (;;);{__ar:1,payload:{stackable:[true,false],title:{__html:How You
I'm looking into writing simple graphics code in Android and I've noticed some synchronized()
I'm writing simple GUI using wxPyhon and faced some problems. My application does simple
I writing a simple method which should delete an entity from the database if
I'm writing a simple client-server system and the question is: how to structure my
I am writing a firefox extension where I need a bidirectional scale element (
I'm writing a firefox extension and I have a menulist of links that should

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.