Closed Bug 717937 Opened 13 years ago Closed 10 years ago

loadBindingDocument broken in 1.4

Categories

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

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: suddani, Unassigned)

References

Details

Attachments

(1 file)

(deleted), application/octet-stream
Details
Attached file The complete plugin test. (deleted) —
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.
Depends on: 734891
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.

Attachment

General

Creator:
Created:
Updated:
Size: