Document Object Model Scope?

Hello everyone,

I am currently developing a FireFox add-on using the panel module and when I call the document object from within the panels contentScript, I am only able to reach the DOM of the panel and not of the webpage.

I want to be able to capture user input from within the panel and then use that information to trigger an event in the current windows DOM.

Any idea how I could go about doing this?

Thanks

The document you get in the panel is X-Rayed. To get the actual document of the website, you’d have to use unsafeWindow.document. I don’t have time to find the matching wiki article, but I think there’s a guide on it somewhere in the documentation.