Closed Bug 989527 Opened 11 years ago Closed 7 years ago

Windows.on(open) event is not triggered for all the Window Open

Categories

(Add-on SDK Graveyard :: General, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: evold, Unassigned)

References

Details

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"); }); Condition: 1) On opening the new window from File->New Window menu. 2) Right click the existing mozilla window in Task Bar and click New Window 3) Open a new window from Start Menu. Only on condition 1) I am able to receive the window open, but for 2) and 3) I am not receiving the same. Since I am new to SDK development can you help me further.
lots of other bugs with similar/related symptoms: Bug 922956 - Tabs ready event not firing when calling window.open on Firefox 24 Bug 942286 - tabs module tabs.on('activate') does not fire when Firefox Options->Tabs->Open New Windows in New Tab instead is unchecked (edit) and new window is opened or new tabs are created that way Bug 939496 - tabs.on('open') fires when window is closed even one from earlier today: Bug 989288 - Firefox Addons SDK is not receving any events from windows opened via window.open (and probably a few others) i'll let you decide on which ones should be marked as duplicates, and/or dependents Erik.
(In reply to Tomislav Jovanovic [:zombie] from comment #2) > lots of other bugs with similar/related symptoms: > > Bug 922956 - Tabs ready event not firing when calling window.open on Firefox > 24 > > Bug 942286 - tabs module tabs.on('activate') does not fire when Firefox > Options->Tabs->Open New Windows in New Tab instead is unchecked (edit) and > new window is opened or new tabs are created that way > > Bug 939496 - tabs.on('open') fires when window is closed > > even one from earlier today: > > Bug 989288 - Firefox Addons SDK is not receving any events from windows > opened via window.open > > (and probably a few others) > > > i'll let you decide on which ones should be marked as duplicates, and/or > dependents Erik. I don't think any of these are dups of this bug.
Flags: needinfo?(evold)
Possibly related to window.open events
This may be fixed. Can you guys retest please? I'm not entirely sure I understand what the "Task Bar" and "Start Menu" are, but I clicked a link from the list of bookmarks under the URL bar and it worked.
Priority: P1 → --
TabCenter is running into this in a particularly heinous way. If you click on any of the links at http://unicode.org/cldr/utility/unicodeset.jsp they will load in a new window (in the default JPM profile, that is. I'm not sure why JPM is changing the browser.link.open_newwindow pref, tbh), and since we don't get notified about those, we don't get a chance to move the tabs over to the side, and everything looks broken. :(
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.