Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Támogatás keresése

Kerülje el a támogatási csalásokat. Sosem kérjük arra, hogy hívjon fel egy telefonszámot vagy osszon meg személyes információkat. Jelentse a gyanús tevékenységeket a „Visszaélés bejelentése” lehetőséggel.

Learn More

A témacsoportot lezárták és archiválták. Tegyen fel új kérdést, ha segítségre van szüksége.

Firefox Addon SDK does not send open event to Popup window

  • 1 válasz
  • 1 embernek van ilyen problémája
  • 2 megtekintés
  • Utolsó üzenet ettől: the-edmeister

more options

I tried a sample in addon-sdk and found the following behaviour.

Main.js:

var windows = require("sdk/windows").browserWindows; for each (var window in windows) {

 console.log(window.title);

} console.log(windows.length); windows.on('open', function(window) {

 console.log(windows.length+"open");

});

Using the website http://www.yourhtmlsource.com/javascript/popupwindows.html to test. Go to the section containing the phrase "Try it here: » Pop it", then click on "Pop it", a new winfow is opened but the open event is not triggered (windows.on('open'...); is not called)

Since I am new to Firefox SDK development, could you help me. Thanks.

I tried a sample in addon-sdk and found the following behaviour. Main.js: var windows = require("sdk/windows").browserWindows; for each (var window in windows) { console.log(window.title); } console.log(windows.length); windows.on('open', function(window) { console.log(windows.length+"open"); }); Using the website http://www.yourhtmlsource.com/javascript/popupwindows.html to test. Go to the section containing the phrase "Try it here: » Pop it", then click on "Pop it", a new winfow is opened but the open event is not triggered (windows.on('open'...); is not called) Since I am new to Firefox SDK development, could you help me. Thanks.

Összes válasz (1)

more options

Try asking in the add-on support forum.

https://discourse.mozilla-community.org/c/add-ons