Closed
Bug 1003988
Opened 11 years ago
Closed 9 years ago
window.open strange behavior with tabs api
Categories
(Add-on SDK Graveyard :: General, defect, P1)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 993015
People
(Reporter: m.coenca, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14
Steps to reproduce:
2 cases
1) I inject via pageMod [*] a script in top tabs that calls window.open to open a foo_window
2)I inject via tab.attach() the script in the tabs on events "ready", "open" only if New Tab, and ActiveTab only if about:empty (to get the first empty tab) that calls window.open to open a foo_window
Actual results:
1)-foo_window receive the injected script as well
-foo_window appears in the sdk tabs list BUT i cannot use activate() on it (as i think it is a DOM window instead of a xul ?) but i can use reload() on it..
2)-foo_window receive the injected script the moment i close it...
-foo_window does NOT appears in the sdk tabs list.
Expected results:
1) and 2) : foo_window should be referenced in tabs, receive the injected script and i should be able to make it foreground by using .activate()
I think it is related to https://bugzilla.mozilla.org/show_bug.cgi?id=993015 but my first bug and I'm starting extension dev so I'm not sure :)
Depends on: 993015
Priority: -- → P1
Updated•9 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•