Google Gruppi non supporta più i nuovi post o le nuove iscrizioni Usenet. I contenuti storici continuano a essere visibili.

Funky Sidebar Behaviour - Firefox 3b2

1 visualizzazione
Passa al primo messaggio da leggere

fantackle

da leggere,
11 gen 2008, 05:21:1811/01/08
a
This is what's happening:

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

fantackle

da leggere,
11 gen 2008, 05:26:5911/01/08
a
FYI, the same code worked fine FF 2.0.0.*. Also, when opening the
browser, if the sidebar was open during a previous session, I get this
error:

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

Mark Finkle

da leggere,
11 gen 2008, 09:49:0011/01/08
a
0 nuovi messaggi