Closed
Bug 717937
Opened 13 years ago
Closed 10 years ago
loadBindingDocument broken in 1.4
Categories
(Add-on SDK Graveyard :: General, defect, P3)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: suddani, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
application/octet-stream
|
Details |
Using xbl documents in addon-sdk-1.4 and above is impossible but worked without problems up to 1.3.
Using the following code in a contentscript results to "did not load anything" when using 1.4 and above without showing any errors. Works perfectly fine before that.
self.port.on("setup", function(xml) {
var xmldata = "data:text/xml;charset=utf-8,"+encodeURIComponent(xml);
document.loadBindingDocument(xmldata);
var tab = document.createElement("span");
document.body.appendChild(tab);
document.addBinding(tab, xmldata+"#autoSelectTab1");
var l = document.getAnonymousNodes(tab);
if (l == null)
window.alert("did not load anything");
else
window.alert("all fine");
});
you can find the example in a working addon context in the attachment.
This plugin works fine before 1.4.
Priority: -- → P3
Comment 1•10 years ago
|
||
There is no way to unload a binding document after loadBindingDocument is used, so this cannot be used with a restartless add-on which jetpacks are.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•