toggleSidebar('mySidebar',true); ///open it
var sidebarDOM = document.getElementById("sidebar").contentDocument;
Works good, but if you close the sidebar and re-run the same code I
get this error:
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80004005 (NS_ERROR_FAILURE) [nsIWebNavigation.document]"
nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://global/content/bindings/browser.xml :: get_contentDocument ::
line 0" data: no]
For some reason the second time around it cant figure out what the
contentDocument is. I have to restart the browser to get it working
again. I've lost a day of development to this one thing... don't know
what do :/
Thanks for your help,
-Dave
Error: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIWebNavigation.sessionHistory]" nsresult:
"0x80004005 (NS_ERROR_FAILURE)" location: "JS frame ::
chrome://global/content/bindings/browser.xml :: :: line 582" data:
no] Source File: chrome://global/content/bindings/browser.xml Line: 588
for tracking purposes, see https://bugzilla.mozilla.org/show_bug.cgi?id=410559