这是错误的:
Services.appShell.hiddenDOMWindow.document.createElementNS('http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul', 'browser');这可能是因为Services.appShell.hiddenDOMWindow是一个html文档。如何添加到Services.appShell.hiddenWindow --它似乎没有一个.document
有趣的注释:
Services.appShell.hiddenWindow != Services.appShell.hiddenDOMWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIWebNavigation).QueryInterface(Ci.nsIDocShellTreeItem).rootTreeItem.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindow);发布于 2014-11-06 22:55:15
我不认为您可以创建<browser>节点,您可以尝试使用iframe吗?
https://stackoverflow.com/questions/26723472
复制相似问题