Skip to content
This repository was archived by the owner on Nov 6, 2023. It is now read-only.

Commit 2073e53

Browse files
authored
Sunset: Notifiy Users About HTTPS Only in their Browser Settings (#20184)
* Update translations. * Add User Instrcutions for HTTPS Only in Browser Capability - Background tab on install or update * Fix lint comments
1 parent 7b3882b commit 2073e53

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

chromium/background-scripts/background.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -938,6 +938,23 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) {
938938
}
939939
});
940940

941+
/**
942+
* @description Notify users about extension sunsetting in January 2023 and instructions turn on HTTPS natively
943+
* @link https://www.eff.org/deeplinks/2021/09/https-actually-everywhere
944+
*/
945+
chrome.runtime.onInstalled.addListener(async ({reason, temporary}) => {
946+
if (temporary) return;
947+
switch (reason) {
948+
case "install":
949+
case "update":
950+
{
951+
const url = "https://www.eff.org/https-everywhere/set-https-default-your-browser";
952+
await chrome.tabs.create({ active : false, url: url });
953+
}
954+
break;
955+
}
956+
});
957+
941958
/**
942959
* Clear any cache/ blacklist we have.
943960
*/

0 commit comments

Comments
 (0)