summaryrefslogtreecommitdiffstats
path: root/toolkit/modules
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-23 09:02:57 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-23 09:02:57 +0200
commitb9ecf99332786f0040e63d868fa0d799ed1ab765 (patch)
tree4226709e8c9dc01228c7950c5af6b9ed86e93494 /toolkit/modules
parentc30ebdac27c93b57e368c69e9c13055a17229992 (diff)
downloadUXP-b9ecf99332786f0040e63d868fa0d799ed1ab765.tar
UXP-b9ecf99332786f0040e63d868fa0d799ed1ab765.tar.gz
UXP-b9ecf99332786f0040e63d868fa0d799ed1ab765.tar.lz
UXP-b9ecf99332786f0040e63d868fa0d799ed1ab765.tar.xz
UXP-b9ecf99332786f0040e63d868fa0d799ed1ab765.zip
moebius#65: Fix: "about:..." - throws an errors
https://github.com/MoonchildProductions/moebius/pull/65
Diffstat (limited to 'toolkit/modules')
-rw-r--r--toolkit/modules/sessionstore/FormData.jsm2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/modules/sessionstore/FormData.jsm b/toolkit/modules/sessionstore/FormData.jsm
index f90ba5825..d4fb08d93 100644
--- a/toolkit/modules/sessionstore/FormData.jsm
+++ b/toolkit/modules/sessionstore/FormData.jsm
@@ -216,7 +216,7 @@ var FormDataInternal = {
// We want to avoid saving data for about:sessionrestore as a string.
// Since it's stored in the form as stringified JSON, stringifying further
// causes an explosion of escape characters. cf. bug 467409
- if (isRestorationPage(ret.url)) {
+ if (isRestorationPage(ret.url) && ret.id && ret.id.sessionData) {
ret.id.sessionData = JSON.parse(ret.id.sessionData);
}