Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marius-wieschollek/passwords-webextension.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Filser <github-passwords-webextension@linux-email.de>2021-07-20 23:13:52 +0300
committerMartin Filser <github-passwords-webextension@linux-email.de>2021-07-20 23:28:58 +0300
commit5a56cf00c8fe3927fa9c10d5b97fa5b5611aaa2d (patch)
treebc79c63fc8ced27e517ee7e4781c10c21d2fd814
parentdd9ccae77eb4c853e2a626a3030db89144d3a846 (diff)
recommended passwords didn't always work
- sites like discord.com are sending every second a "tabs.onUpdated" event with the property "sharingState", and then TabManager._currentTab is overwritten and the password recommendations of discord loaded
-rw-r--r--src/js/Manager/TabManager.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/Manager/TabManager.js b/src/js/Manager/TabManager.js
index 692b6d8..a70a36d 100644
--- a/src/js/Manager/TabManager.js
+++ b/src/js/Manager/TabManager.js
@@ -29,6 +29,9 @@ class TabManager {
this._tabUpdate = new EventQueue();
this._updatedEvent = (tabId, changeInfo, tab) => {
+ if (changeInfo.sharingState) {
+ return;
+ }
this._updateTabInfo(tab)
.catch(ErrorManager.catch());
};