gecko-dev/netwerk
Peter Van der Beken 879cba492c Bug 1570255 - Reboot session history in parent part 1. r=smaug,necko-reviewers,valentin
This adds a new implementation of nsISHEntry
(mozilla::dom::SessionHistoryEntry). When session history in the parent
is turned on, we'll instantiate the existing nsSHistory in the parent
process, but it will store entries of this new type. The nsSHistory in
the child process will also be instantiated for now, to avoid breaking
too many assumptions, and we try to keep parent and child
implementations in sync.

mozilla::dom::SessionHistoryEntry stores most of its data in a new
structure (mozilla::dom::SessionHistoryInfo) which can be sent over IPC.
When a load starts through the DocumentChannel we create an entry of
this new type for it in the parent process in
DocumentLoadListener::Open. The SessionHistoryInfo for that entry (with
an associated ID) is then sent over IPC in the RedirectToRealChannelArgs
to the process that does the actual load, where we store it in the
nsDocShell in mLoadingEntry (and mLoadingEntryId). The parent process
keeps track of outstanding loading entries in an array (mLoadingEntries)
in the CanonicalBrowsingContext. When a load finishes the nsDocShell
transfers mLoadingEntry into mActiveEntry, and notifies the parent
process through an IPC message (HistoryCommit) with the id of that
entry. The CanonicalBrowsingContext then removes the entry from the
array and stores it in its mActiveEntry, and adds the entry to the
nsSHistory object.

There are a number of things in this patch that are broken, and a lot of
FIXME comments. However, with the pref turned off things should just be
working as before. The goal is to land this first part, and then iterate
on the new implementation until we can switch over.

Differential Revision: https://phabricator.services.mozilla.com/D65329
2020-05-13 13:46:33 +00:00
..
base Bug 1592488 - P8. Ensure AbstractThread exists with STS thread. r=valentin,necko-reviewers 2020-05-12 10:43:35 +00:00
build Bug 1184701 - Make the moz-page-thumb protocol work in the privileged about content process. r=haik,valentin 2020-04-06 17:46:52 +00:00
cache Bug 1629754 - Silence some nsCacheService warnings. r=michal 2020-04-14 22:36:53 +00:00
cache2 Bug 1634950 - Add event dispatch-and-run MOZ_LOG to our xpcom threads, r=froydnj 2020-05-12 12:48:49 +00:00
cookie Bug 1635399 - Function PrincipalInfoToPrincipal now returns Result<nsCOMPtr<nsIPrincipal>, nsresult> r=ckerschb 2020-05-12 19:02:05 +00:00
dns Bug 1635364 - Make netwerk/dns build outside unified build environment. r=valentin,necko-reviewers 2020-05-11 08:20:34 +00:00
ipc Bug 1570255 - Reboot session history in parent part 1. r=smaug,necko-reviewers,valentin 2020-05-13 13:46:33 +00:00
locales Bug 1616585 - add heuristic for visited redirection; r=baku 2020-04-09 12:42:59 +00:00
mime Bug 1633790 - add an API on nsIMIMEInfo that exposes whether we're the OS default handler, r=jaws 2020-05-06 20:25:29 +00:00
protocol Bug 1635399 - Function PrincipalInfoToPrincipal now returns Result<nsCOMPtr<nsIPrincipal>, nsresult> r=ckerschb 2020-05-12 19:02:05 +00:00
sctp Bug 1626570 - Improve handling of copying arrays in netwerk/sctp/datachannel/. r=drno 2020-05-05 13:00:58 +00:00
socket Bug 1485652 - Reimplement IsAcceptableForHost r=keeler 2020-04-24 14:45:56 +00:00
srtp Bug 1624128 - Update CK_GCM_PARAMS uses for PKCS11 v3.0 definition r=keeler 2020-04-14 18:32:19 +00:00
streamconv Bug 1633790 - pass channels to stream conversion getContentType and always allow PDF.js use for user-opened local PDF files, r=mattwoodrow,jaws 2020-05-06 20:34:51 +00:00
system Bug 1626570 - Improve handling of copying arrays in netwerk/. r=necko-reviewers,valentin 2020-05-06 11:48:42 +00:00
test Bug 1632187 - Introduce nsICookieService::setCookieStringFromDocument - part 3 - remove nsICookieService::setCookieString from tests, r=mayhemer 2020-05-09 22:28:53 +00:00
url-classifier Bug 1636371 - UrlClassifierSkipListService.jsm should call the observer even when RemoteSettings have not been received yet, r=johannh 2020-05-08 06:16:49 +00:00
wifi
moz.build