Closed
Bug 1231301
Opened 9 years ago
Closed 7 years ago
tabs "close" event returns undefined tab.window
Categories
(Add-on SDK Graveyard :: General, defect)
Add-on SDK Graveyard
General
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: ke5trel, Unassigned)
References
Details
(Keywords: addon-compat, regression)
var { viewFor } = require("sdk/view/core"); var { modelFor } = require("sdk/model/core"); tabs.on("close", function(tab) { console.log(tab.window); // undefined console.log(modelFor(viewFor(tab).ownerGlobal)); // workaround to get window console.log(modelFor(require("sdk/tabs/utils").getOwnerWindow(viewFor(tab)))); // another workaround });
Regression due to Bug 1160676.
Blocks: 1160676
Keywords: addon-compat,
regression
Comment 2•7 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•