I'm trying to make a quick Firefox sidebar addon, using Simple Sidebar as the base.
I'm getting the current tab URL, and I want it to change in the sidebar automatically, so that when you change tab or URL the sidebar shows the corresponding page.
I have been trying to alter this line (line 56 in bootstrap.js):
bc.setAttribute('sidebarurl', URL HERE);
I have tried the mainWindow.content.location.href, window.location.href, gBrowser.contentWindow.location.href attributes, and the best I can do is to make the browser show a smaller browser with a blank tab inside the sidebar.
I can't work out what I'm missing, do I need to include something else?