Search completed in 1.64 seconds.
8 results for "WindowState":
nsISessionStore
aindex); astring getbrowserstate(); unsigned long getclosedtabcount(in nsidomwindow awindow); astring getclosedtabdata(in nsidomwindow awindow); unsigned long getclosedwindowcount(); astring getclosedwindowdata(); astring gettabstate(in nsidomnode atab); astring gettabvalue(in nsidomnode atab, in astring akey); astring get
windowstate(in nsidomwindow awindow); astring getwindowvalue(in nsidomwindow awindow, in astring akey); void init(in nsidomwindow awindow); void persisttabattribute(in astring aname); void restorelastsession(); void setbrowserstate(in astring astate); void settabstate(in nsidomnode atab, in astring astate); void settabvalue(in nsidomnode atab, ...
...in astring akey, in astring astringvalue); void set
windowstate(in nsidomwindow awindow, in astring astate, in boolean aoverwrite); void setwindowvalue(in nsidomwindow awindow, in astring akey, in astring astringvalue); nsidomnode undoclosetab(in nsidomwindow awindow, in unsigned long aindex); nsidomwindow undoclosewindow(in unsigned long aindex); attributes attribute type description canrestorelastsession boolean is it possible to restore the previous session.
...if you need to retrieve cookies as well, you should use get
windowstate() instead.
...And 4 more matches
Chapter 5: Let's build a Firefox extension - Archive of obsolete content
lines 7–9 use the nslsessionstore interface’s set
windowstate method to restore the session, using the current window as an origin point.
... listing 20: content for restore method restore: function(event) { var filename = event.target.getattribute("filename"); var file = this._dir.clone(); file.append(filename); var state = this._readfile(file); var ss = components.classes["@mozilla.org/browser/sessionstore;1"] .getservice(components.interfaces.nsisessionstore); ss.set
windowstate(window, state, false); }, clear method this uses the directoryentries property of the nslfile interface to delete all files within the directory you got earlier.
... set
windowstate(awindow, astate, aoverwrite) restores the browser window indicated by the parameter awindow to the state indicated by astate.
nsISHEntry
(prior to gecko 6.0 returned a json encoded string.) sticky boolean whether the content viewer is marked "sticky"
windowstate nsisupports saved state of the global window object.
...if either contentviewer or
windowstate are null, then all of the following members are cleared/reset: contentviewer, sticky,
windowstate, viewerbounds, childshells, refreshurilist.
Event reference
ss
windowstateready addons specific a window state has switched to "ready".
... ss
windowstatebusy addons specific a window state has switched to "busy".
XUL Events - Archive of obsolete content
note: this event may fire several times or while resizing the window (for example, see bug 715867), so always check if the window state changed by inspecting window.
windowstate in the event.
nsIDOMChromeWindow
title domstring obsolete since gecko 1.9.1
windowstate unsigned short returns current window state, the value is one of state_* constants.