首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >向Services.appShell.hiddenWindow的xul添加xul元素

向Services.appShell.hiddenWindow的xul添加xul元素
EN

Stack Overflow用户
提问于 2014-11-03 21:24:25
回答 1查看 50关注 0票数 0

这是错误的:

代码语言:javascript
复制
Services.appShell.hiddenDOMWindow.document.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'browser');

这可能是因为Services.appShell.hiddenDOMWindow是一个html文档。如何添加到Services.appShell.hiddenWindow --它似乎没有一个.document

有趣的注释:

代码语言:javascript
复制
Services.appShell.hiddenWindow != Services.appShell.hiddenDOMWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem).rootTreeItem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);
EN

回答 1

Stack Overflow用户

发布于 2014-11-06 22:55:15

我不认为您可以创建<browser>节点,您可以尝试使用iframe吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26723472

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档