Search completed in 1.15 seconds.
nsISessionStore
ndows other than the one you want to use in nsISessionStore, you need a nsIDOMWindow object containing browser.xul. This will be the outermost or root nsIDOMWindow in a nsIXULWindow (the window seen by users as a moveable frame on the display). This kind of DOMWindow object can be obtained from other nsIDOMWindow objects (like the sidebar window object) by applying the 'mainWindow' statement from
Working_with_windows_in_chrome_code. This outermost or root window can also be obtained from the list returned by nsIWindowMediator; see example #3 in
Working_with_windows_in_chrome_code. It can also be obtained from an nsIXULWindow using if (xul_win.docShell instanceof nsIInterfaceRequestor) { var win = xul_win.docShell.getInterface(nsIDOMWindow); ... Note on tabs The nsISessionStore APIs referencing nsIDOMNode aTab re...