mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
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:
parent
31c3a9789b
commit
acb8298a71
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user