summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/sessionstore/SessionStore.jsm
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-04-28 17:57:18 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-04-28 17:57:18 +0200
commitf69729b0aa1d8cd1964994919ab30ce7c7d9f410 (patch)
treed877e04983b628a9e45271615fc9486712e4a404 /application/palemoon/components/sessionstore/SessionStore.jsm
parentb53db93006f732fb2e140137e4713dedca1700d9 (diff)
parentde057c7a5635e65f45ce47162d226b1ddf24e8aa (diff)
downloadUXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.gz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.lz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.tar.xz
UXP-f69729b0aa1d8cd1964994919ab30ce7c7d9f410.zip
Merge branch 'master' of https://github.com/MoonchildProductions/UXP
Diffstat (limited to 'application/palemoon/components/sessionstore/SessionStore.jsm')
-rw-r--r--application/palemoon/components/sessionstore/SessionStore.jsm8
1 files changed, 7 insertions, 1 deletions
diff --git a/application/palemoon/components/sessionstore/SessionStore.jsm b/application/palemoon/components/sessionstore/SessionStore.jsm
index f7c495be8..b8d126e21 100644
--- a/application/palemoon/components/sessionstore/SessionStore.jsm
+++ b/application/palemoon/components/sessionstore/SessionStore.jsm
@@ -1951,7 +1951,13 @@ var SessionStoreInternal = {
// userTypedValue.
if (browser.userTypedValue) {
tabData.userTypedValue = browser.userTypedValue;
- tabData.userTypedClear = browser.userTypedClear;
+ // We always used to keep track of the loading state as an integer, where
+ // '0' indicated the user had typed since the last load (or no load was
+ // ongoing), and any positive value indicated we had started a load since
+ // the last time the user typed in the URL bar. Mimic this to keep the
+ // session store representation in sync, even though we now represent this
+ // more explicitly:
+ tabData.userTypedClear = browser.didStartLoadSinceLastUserTyping() ? 1 : 0;
} else {
delete tabData.userTypedValue;
delete tabData.userTypedClear;