summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-04-28 14:41:28 +0300
committerJustOff <Off.Just.Off@gmail.com>2018-04-28 14:41:28 +0300
commitfd10ee105af74c5559c0021c2ada0997e943ac87 (patch)
treec59a9fdd7b5e4443584c6c68e108308c73fd2935 /application/palemoon/components
parent46a069ec79c9342dc1bb1c2f1b450dad412aeb3f (diff)
downloadUXP-fd10ee105af74c5559c0021c2ada0997e943ac87.tar
UXP-fd10ee105af74c5559c0021c2ada0997e943ac87.tar.gz
UXP-fd10ee105af74c5559c0021c2ada0997e943ac87.tar.lz
UXP-fd10ee105af74c5559c0021c2ada0997e943ac87.tar.xz
UXP-fd10ee105af74c5559c0021c2ada0997e943ac87.zip
Use `urlbarChangeTracker` instead of `userTypedClear` to track address bar changes
Diffstat (limited to 'application/palemoon/components')
-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;