
This is an automated email from the git hooks/post-receive script. alexishan pushed a commit to annotated tag 2022.5.24 in repository https-everywhere. commit 2073e5305c7fb6f4d93eb110aef05bb8943f27e9 Author: Alexis <lxshancock@gmail.com> AuthorDate: Tue Mar 22 18:00:46 2022 -0700 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 --- chromium/background-scripts/background.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/chromium/background-scripts/background.js b/chromium/background-scripts/background.js index 78a9aca213..331e6dc224 100644 --- a/chromium/background-scripts/background.js +++ b/chromium/background-scripts/background.js @@ -938,6 +938,23 @@ chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { } }); +/** + * @description Notify users about extension sunsetting in January 2023 and instructions turn on HTTPS natively + * @link https://www.eff.org/deeplinks/2021/09/https-actually-everywhere + */ +chrome.runtime.onInstalled.addListener(async ({reason, temporary}) => { + if (temporary) return; + switch (reason) { + case "install": + case "update": + { + const url = "https://www.eff.org/https-everywhere/set-https-default-your-browser"; + await chrome.tabs.create({ active : false, url: url }); + } + break; + } +}); + /** * Clear any cache/ blacklist we have. */ -- To stop receiving notification emails like this one, please contact the administrator of this repository.