diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-23 11:44:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-23 11:44:12 +0200 |
commit | 9c2f6f87f5014f1c23a0dc96ab5d1e0e81d67fbe (patch) | |
tree | 76d45af609ba25efce252d6ec276c0da7b223046 /toolkit | |
parent | 9fafcf7244338bc31d923a77ca4a03aa5fa5d0a9 (diff) | |
parent | 94f200e29db4ad8a8ef71b2b73f9a80f64fb4abe (diff) | |
download | uxp-9c2f6f87f5014f1c23a0dc96ab5d1e0e81d67fbe.tar.gz |
Merge pull request #234 from janekptacijarabaci/about_errors_1
moebius#65: Fix: various "about:..." system pages errors
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/components/aboutcache/content/aboutCache.js | 4 | ||||
-rw-r--r-- | toolkit/modules/sessionstore/FormData.jsm | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/toolkit/components/aboutcache/content/aboutCache.js b/toolkit/components/aboutcache/content/aboutCache.js index 07067cce36..e945d683e0 100644 --- a/toolkit/components/aboutcache/content/aboutCache.js +++ b/toolkit/components/aboutcache/content/aboutCache.js @@ -40,5 +40,9 @@ function navigate() if ($('priv').checked) context += 'p,'; + if (storage == null) { + storage = ""; + } + window.location.href = 'about:cache?storage=' + storage + '&context=' + context; } diff --git a/toolkit/modules/sessionstore/FormData.jsm b/toolkit/modules/sessionstore/FormData.jsm index f90ba5825e..d4fb08d939 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); } |