diff --git a/browser/components/sessionstore/SessionHistory.jsm b/browser/components/sessionstore/SessionHistory.jsm index d3d31936e3a..2afb0348463 100644 --- a/browser/components/sessionstore/SessionHistory.jsm +++ b/browser/components/sessionstore/SessionHistory.jsm @@ -145,6 +145,10 @@ var SessionHistoryInternal = { entry.originalURI = shEntry.originalURI.spec; } + if (shEntry.loadReplace) { + entry.loadReplace = shEntry.loadReplace; + } + if (shEntry.srcdocData) entry.srcdocData = shEntry.srcdocData; @@ -316,6 +320,9 @@ var SessionHistoryInternal = { if (entry.originalURI) { shEntry.originalURI = Utils.makeURI(entry.originalURI); } + if (entry.loadReplace) { + shEntry.loadReplace = entry.loadReplace; + } if (entry.isSrcdocEntry) shEntry.srcdocData = entry.srcdocData; if (entry.baseURI) diff --git a/mobile/android/components/SessionStore.js b/mobile/android/components/SessionStore.js index c4ae1a61cd8..e4fdfad9436 100644 --- a/mobile/android/components/SessionStore.js +++ b/mobile/android/components/SessionStore.js @@ -756,6 +756,10 @@ SessionStore.prototype = { entry.originalURI = aEntry.originalURI.spec; } + if (aEntry.loadReplace) { + entry.loadReplace = aEntry.loadReplace; + } + if (aEntry.contentType) { entry.contentType = aEntry.contentType; } @@ -844,6 +848,10 @@ SessionStore.prototype = { shEntry.originalURI = Services.io.newURI(aEntry.originalURI, null, null); } + if (aEntry.loadReplace) { + shEntry.loadReplace = aEntry.loadReplace; + } + if (aEntry.cacheKey) { let cacheKey = Cc["@mozilla.org/supports-PRUint32;1"].createInstance(Ci.nsISupportsPRUint32); cacheKey.data = aEntry.cacheKey;