diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-04-28 16:23:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-28 16:23:20 +0200 |
commit | de057c7a5635e65f45ce47162d226b1ddf24e8aa (patch) | |
tree | 6572ebe84892595d3a94b22d73152328cf65d39b /application/palemoon/components | |
parent | bddefd4211ea893df4a5a86d40d4a16b608f42fc (diff) | |
parent | fd10ee105af74c5559c0021c2ada0997e943ac87 (diff) | |
download | UXP-de057c7a5635e65f45ce47162d226b1ddf24e8aa.tar UXP-de057c7a5635e65f45ce47162d226b1ddf24e8aa.tar.gz UXP-de057c7a5635e65f45ce47162d226b1ddf24e8aa.tar.lz UXP-de057c7a5635e65f45ce47162d226b1ddf24e8aa.tar.xz UXP-de057c7a5635e65f45ce47162d226b1ddf24e8aa.zip |
Merge pull request #282 from JustOff/PR_urlbarChangeTracker
[PALEMOON] Use `urlbarChangeTracker` instead of `userTypedClear` to track address bar changes
Diffstat (limited to 'application/palemoon/components')
-rw-r--r-- | application/palemoon/components/sessionstore/SessionStore.jsm | 8 |
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; |