peterpeterson
peterpeterson

Reputation: 1325

Firefox sdk - access popup opened

I'm currently working on a Firefox addon, and I was wondering if is there any way to access pop-up, in other words a window that was open using Javascript function .open().

If I access all tabs the popups are not there, if I access all windows the popups windows are not there.

 //
 var allWindows = window_utils.windows(null);
 //
 var tabs = require('sdk/tabs');
 for (let tab of tabs)
     console.log(tab.title);

Upvotes: 1

Views: 28

Answers (1)

matagus
matagus

Reputation: 6206

If you know the popup's url you can use a PageMod to detect when it loads, its url, etc.

Upvotes: 1

Related Questions