moebius#65: Fix: "about:..." - throws an errors

https://github.com/MoonchildProductions/moebius/pull/65
This commit is contained in:
janekptacijarabaci 2018-04-23 09:02:57 +02:00 • committed by Roy Tam
commit 61ce67c968
5 changed files with 43 additions and 30 deletions

View file

@ -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);
}