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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:20:19+00:00 2026-05-22T21:20:19+00:00

I like to create a window by extending the basic Firefox window which is

  • 0

I like to create a window by extending the basic Firefox window which is defined in chrome://browser/content/browser.xul as the top level element (is not overlay).

My question is about branching/forking from basic window definition before any modification applied to it by other extension and is not about how to apply overlay or modification to what user see as main FF window.

Do you have any idea how to do that?

  • 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-22T21:20:19+00:00Added an answer on May 22, 2026 at 9:20 pm

    Your question is still about overlays. Your overlay should go like this:

    <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
        <window id="main-window">
            <commandset id="my-commands">
                ...
            </commandset>
        </window>
    </overlay>
    

    This example will add a <commandset> element to the root of the browser window (which happens to be a <window> element with ID main-window).

    Edit: It appears that the question wasn’t about adding elements on the top level but rather about making a fork of an existing XUL document. You can create an alias by adding an override directive to your chrome.manifest:

    override chrome://myextension/content/browser.xul chrome://browser/content/browser.xul
    

    Now you can apply an overlay to the alias ony:

    overlay chrome://myextension/content/browser.xul chrome://myextension/content/browserOverlay.xul
    

    Overlays apply to URLs which makes this possible. Now you can open chrome://myextension/content/browser.xul in a new window and it should be the browser window but with your overlay applied. Please note that this approach has limitations, e.g. extensions overlaying the browser window will have no effect on your window (their overlays only apply to the original browser window URL).

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

Sidebar

Related Questions

I would like to create a window with a progressbar which shows the current
I like to create a Cocoa window without any chrome whatsoever. The only thing
I would like to create a popup window which will appear the first time
I would like to create a modal window which will only mask the center
How do I create a window which looks like this in Java: I want
I would like to create a custom XUL element named 'video' for a video
For Android GUI: I would like to create a window that I can pull
I'm looking for a program to create window transparency within Windows XP; somewhat like
I would like to create a javascript modal pop up window to get some
I want to a create dialog box like window before displaying the console window.

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.