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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:58:33+00:00 2026-06-15T00:58:33+00:00

I have a few queries related to contexts in Firefox extensions. When we load

  • 0

I have a few queries related to contexts in Firefox extensions.

  1. When we load the scripts from overlay xul do we get access to window/document? If yes, how can I access the web page content from this?
  2. What is the lifetime of the script loaded from xul, popup and scripts loaded using the @mozilla.org/moz/jssubscript-loader;1 scriptloader?
  3. What is the best way to access the content in the web page from the popup which is non blocking?
  • 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-15T00:58:34+00:00Added an answer on June 15, 2026 at 12:58 am

    When we load the scripts from overlay xul do we get access to window/document? If yes, how can I access the web page content from this?

    Overlays typically apply to browser.xul – the main browser window. Any scripts that they load are loaded in the context of the browser window which is what the global window and document variables refer to. You can access the currently selected browser tab via gBrowser.contentWindow and gBrowser.contentDocument (gBrowser is a reference to the <tabbrowser> element).

    What is the lifetime of the script loaded from xul, popup and scripts loaded using the @mozilla.org/moz/jssubscript-loader;1 scriptloader?

    Script loader loads scripts into the context given by the second parameter to loadSubScript(). If that parameter is omitted then it will load the script into the context of the caller. The script will stay around for at least as long as the context is still around – and longer if there are any external references to it (something that is usually not a good idea).

    What is the best way to access the content in the web page from the popup which is non blocking?

    This largely depends by what you consider “a popup”. A XUL dialog? A XUL <panel>? A webpage opened in a new browser window?

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

Sidebar

Related Questions

I have few queries related to read()/pread() system calls in a multithreaded environment I
I have few simple queries, that display rows from a table in a database.
I have prepared few queries using startwith and connectby for fetching all items of
I have a few queries regarding columns in Postgres CSV Log. Query 1 Following
I have ran across a few queries that use this where condition: select ...
I want to design a new distributed application, but I have a few queries
We have a a few queries in our system that use LIKE '%'+@SomeCriteria+'%' to
Firstly, I have searched for related answers, there is a few - but couldn't
Over the years, I've noticed a few issues with SQL queries in Perl scripts:
I have a few complex queries that are ran very often. Caching the results

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.