如何使用IFRAME将Firefox2兼容的扩展更新为Firefox3?
我正在尝试更新我为一些工作任务创建的自定义firefox扩展。基本上,它是一个侧边栏,用于在iframe中为各种目的调出我们的一个网页。当移动到Firefox3时,iframe根本不会出现 下面是一个XUL文件的示例,其中包含特定于扩展名的代码,包括iframe,目前仅尝试加载google,但无法处理任何内容。我在网上找不到任何关于FF3中可能导致这种情况的变化的信息。如有任何建议,将不胜感激如何使用IFRAME将Firefox2兼容的扩展更新为Firefox3?,firefox,xul,Firefox,Xul,我正在尝试更新我为一些工作任务创建的自定义firefox扩展。基本上,它是一个侧边栏,用于在iframe中为各种目的调出我们的一个网页。当移动到Firefox3时,iframe根本不会出现 下面是一个XUL文件的示例,其中包含特定于扩展名的代码,包括iframe,目前仅尝试加载google,但无法处理任何内容。我在网上找不到任何关于FF3中可能导致这种情况的变化的信息。如有任何建议,将不胜感激 <?xml version="1.0"?> <?xml-stylesheet hre
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://customsidebar/skin/customsidebar.css" type="text/css"?>
<overlay id="customsidebar-Main" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="chrome://customsidebar/content/customsidebar.js"/>
<vbox flex="1">
<toolbar>
<vbox>
<hbox id="customsidebar_TopToolbarRow">
<toolbarbutton label="Refresh" id="customsidebar_Refresh" oncommand="customsidebar_Refresh()" />
</hbox>
<hbox>
<label control="customsidebar_StatusBox" value="Log"/>
<textbox id="customsidebar_StatusBox" multiline="true" rows="1" wrap="off" />
</hbox>
</vbox>
</toolbar>
<iframe id="customsidebar_Iframe" src="http://www.google.com" />
</vbox>
</overlay>
这是覆盖XUL文件
<?xml version="1.0"?>
<overlay id="CustomSidebar-Overlay"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<menupopup id="viewSidebarMenu">
<menuitem observes="viewCustomSidebar" />
</menupopup>
<broadcasterset id="mainBroadcasterSet">
<broadcaster id="viewCustomSidebar"
autoCheck="false"
label="CustomSidebar"
type="checkbox" group="sidebar"
sidebarurl="chrome://customersidebar/content/customersidebarMain.xul"
sidebartitle="CustomSidebar"
oncommand="toggleSidebar('viewCustomSidebar');"/>
</broadcasterset>
</overlay>
我会尝试在iframe上设置flex=“1”。如果这不起作用,也许可以尝试使用元素而不是iframe