Bug 1319596 - Wait for first historychange when starting RDM. r=ochameau

In bug 1310771, the session store process for gathering data from content was
changed so that the key "historychange" is used instead of "history".  Kept the
check for "history" as well, since other places in session store still test for
it.

MozReview-Commit-ID: 4xF7FkxkriI
This commit is contained in:
J. Ryan Stinnett 2016-11-25 14:06:38 -06:00
parent 31c3a9789b
commit acb8298a71

View File

@ -314,7 +314,8 @@ function copyPermanentKey(outer, inner) {
// what SessionStore uses to identify each browser.
let outerMM = outer[FRAME_LOADER].messageManager;
let onHistoryEntry = message => {
let history = message.data.data.history;
let data = message.data.data;
let history = data.history || data.historychange;
if (!history || !history.entries) {
// Wait for a message that contains history data
return;