Skip to content

Commit 45a7e2f

Browse files
committed
Consider wss: in secure protocol checks (thanks barbaz for reporting).
1 parent 21de293 commit 45a7e2f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/nscl

src/ui/popup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* NoScript - a Firefox extension for whitelist driven safe JavaScript execution
33
*
4-
* Copyright (C) 2005-2024 Giorgio Maone <https://maone.net>
4+
* Copyright (C) 2005-2026 Giorgio Maone <https://maone.net>
55
*
66
* SPDX-License-Identifier: GPL-3.0-or-later
77
*
@@ -445,7 +445,7 @@ addEventListener("unload", e => {
445445
} else {
446446
let domain = tld.getDomain(url.hostname);
447447
if (domain) {
448-
domain = url.protocol === "https:" ? Sites.secureDomainKey(domain) : domain;
448+
domain = Sites.isSecureProtocol(url.protocol) ? Sites.secureDomainKey(domain) : domain;
449449
} else {
450450
domain = url.protocol;
451451
}

0 commit comments

Comments
 (0)