Closed
Bug 995080
Opened 11 years ago
Closed 11 years ago
Exceptions raised when a window without toolbars is opened with existing widgets
Categories
(Add-on SDK Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: zer0, Unassigned)
Details
The following code:
const { open } = require("sdk/window/helpers");
require('sdk/widget').Widget({
content: 'hi',
label: 'hi',
id: 'hi',
onClick: () => open("", {
features: {
toolbar: false
}
})
});
Raises the following exception:
Message: TypeError: frame.contentDocument is undefined
Because the window opened is a browser window, it seems that the Widget tries to attach itself to it, creating a new instance of its view and therefore the symbiont, but because it's not actually attached – the window doesn't have a toolbar – the symbiont's frame is failing.
Also, when this window is closed, another exception is raised, for the same reason:
Message: TypeError: this._symbiont is null
Notice that if any add-ons installed by an user has a widget, and this such window is opened – not necessary by the same add-on, but in any way or another add-on – the exceptions are raised.
Not sure if we want to spend time in fixing this, due the fact that using `ActionButton` instead will makes everything works; and widgets are deprecated anyway, but it seems to me at least worthy to be report.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•