Hello,
I have an extension composed of a browser overlay(ff-overlay.xul) which launches a sidebar(ff-sidebar.xul) through this code (from mozilla extension generator): (in ff-overlay.xul)
<menupopup id="viewSidebarMenu">
<menuitem key="key_openSidebar_testinstallPackage" observes="viewSidebar_testinstallPackage" />
</menupopup>
<keyset id="mainKeyset">
<key id="key_openSidebar_testinstallPackage" command="viewSidebar_testinstallPackage" />
</keyset>
<broadcasterset id="mainBroadcasterSet">
<broadcaster id="viewSidebar_testinstallPackage"
label="&testinstallPackageSidebar.label;"
autoCheck="false"
type="checkbox"
group="sidebar"
sidebarurl="chrome://testinstallPackage/content/ff-sidebar.xul"
sidebartitle="&testinstallPackageSidebar.label;"
oncommand="toggleSidebar('viewSidebar_testinstallPackage');" />
</broadcasterset>
The main overlay has js code in overlay.js : (in ff-overlay.xul)
<script src="overlay.js"/>
The sidebar xul has js code in ff-sidebar.js : (in ff-sidebar.xul)
<script src="ff-sidebar.js"/>
I need to send some data (a String would be enough) from overlay.js to ff-sidebar.js
I have tried this but it didn't work (and I don't know if it could have worked, it is supposed to be between a main overlay and the current page).
Please provide me with some mean to do this.