Closed Bug 596224 Opened 13 years ago Closed 7 years ago

Firefox 4 createDocument - overlay document creation is failing in XUL namespace inside XPCOM component

Categories

(Core :: XUL, defect, P1)

x86
macOS
defect

Tracking

()

RESOLVED WONTFIX
Tracking Status
blocking2.0 --- -

People

(Reporter: srihari.m, Assigned: sicking)

References

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b5) Gecko/20100101 Firefox/4.0b5
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.5; rv:2.0b5) Gecko/20100101 Firefox/4.0b5

Inside my JS XPCOM component, i'm trying to create an overlay document
as follows.

var domDocument = Components.Classes["@mozilla.org/xul/xul-document;
1"].createInstance(CI.nsIDOMDocument);
var _mDocument = domDocument.implementation.createDocument("http://
www.mozilla.org/keymaster/gatekeeper/there.is.only.xul", "overlay",
null);

The above code is failing with this error.

Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE)
[nsIDOMDOMImplementation.createDocument]

The code is working fine in FF 3. It's failing in Firefox 4.

Is this a side effect of dropping remote XUL? (bug 546857)

Reproducible: Always
blocking2.0: --- → ?
Keywords: regression
Priority: -- → P1
Version: unspecified → Trunk
sicking?
Assignee: nobody → jonas
blocking2.0: ? → betaN+
blocking2.0: betaN+ → beta9+
Creating documents using contract ids is a bad idea, so not blocking on this. Can you work around this?
blocking2.0: beta9+ → -
Hi Jonas,

Do we have any updates on this issue?

Thanks, Paul.
Flags: needinfo?(jonas)
If this is still a problem, we're unlikely to spend enough resources to fix it. We're investing in other solutions for both XUL and for addons these days. I recommend looking at WebExtensions instead.

https://wiki.mozilla.org/Browser_Extensions
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jonas)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.