Electrolysis/places that need session history: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


<br>
<br>
=== Places using nsISHistory ===
=== Places using Session History ===
WebNavigation interface || ''attribute'' sessionHistory ||
WebNavigation interface || ''attribute'' sessionHistory ||
*[http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIWebNavigation.idl#322 nsIWebNavigation.idl]
*[http://mxr.mozilla.org/mozilla-central/source/docshell/base/nsIWebNavigation.idl#322 nsIWebNavigation.idl]
Line 86: Line 86:
*'::restoreHistory()' || [http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/nsSessionStore.js#2037 nsSessionStore.js]
*'::restoreHistory()' || [http://mxr.mozilla.org/mozilla-central/source/browser/components/sessionstore/src/nsSessionStore.js#2037 nsSessionStore.js]


fuelApplication.js || .history ||
*'::BookmarkFolder()' || [http://mxr.mozilla.org/mozilla-central/source/browser/fuel/src/fuelApplication.js#504 fuelApplication.js]


help.js || .history ||
*'::init()' || [http://mxr.mozilla.org/mozilla-central/source/toolkit/components/help/content/help.js#169 help.js]
*'::FillHistoryMenu()' || [http://mxr.mozilla.org/mozilla-central/source/toolkit/components/help/content/help.js#463 help.js]


=== Places using nsISHistoryListener ===
 
=== Places using Session History Listener ===
SHistoryInternal interface || ''attribute'' listener ||
SHistoryInternal interface || ''attribute'' listener ||
*[http://mxr.mozilla.org/mozilla-central/source/docshell/shistory/public/nsISHistoryInternal.idl#92 nsISHistoryInternal.idl]
*[http://mxr.mozilla.org/mozilla-central/source/docshell/shistory/public/nsISHistoryInternal.idl#92 nsISHistoryInternal.idl]
Line 103: Line 109:




=== Other cases ===
=== Other places ===
FrameLoader || ''nsComPtr'' ourHistory || [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#519 nsFrameLoader.cpp]
FrameLoader || ''nsComPtr'' ourHistory || [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#519 nsFrameLoader.cpp]
*but it does NOT yet do anything useful with it. [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#526 Take a look.]
*but it does NOT yet do anything useful with it. [http://mxr.mozilla.org/mozilla-central/source/content/base/src/nsFrameLoader.cpp#526 Take a look.]

Revision as of 20:59, 11 September 2009

Places that need session history

This planning document is preparatory work for task "Session history for remote tabs" in [1]. It lists all the places that need (read / write) session history.

all the following objects make use of session history (or session history listener) in a certain way. For each of them, nsISHistory usage is detailled and links to code are provided.


Places using Session History

WebNavigation interface || attribute sessionHistory ||

CCUncollectableMarker component || nsComPtr history ||

DocShell component || nsComPtr shistory & rootSH ||

SHEntry || QI for nsISHistoryInternal ||

EmbedPrivate || public member mSessionHistory ||

WebBrowser || adds/removes SHistory listeners ||

DocumentViewer || QI for nsISHistoryInternal ||

broswer-places.js || call .history member ||

browser.js || .sessionHistory & .history ||

bookmarkProperties.js || .history ||

controller.js || .history ||

editBookmarkOverlay.js || .history ||

history-panel.js || .history ||

places.js || .history ||

utils.js || .history ||

nsPlacesTransactionsService.js || .history ||

nsSessionStore.js || .history ||

fuelApplication.js || .history ||

help.js || .history ||


Places using Session History Listener

SHistoryInternal interface || attribute listener ||

DocShell || nsComPtr listener||

WebBrowser || QI for nsISHistoryListener ||

WebBrowserChrome || derives from nsISHistoryListener ||


Other places

FrameLoader || nsComPtr ourHistory || nsFrameLoader.cpp

  • but it does NOT yet do anything useful with it. Take a look.