commit 231dfc0be26610e9d79c954b9a317f6eb758b569
parent dd58ea232aa7f441015c1ea245c7bee9593f340f
Author: Thomas Wisniewski <twisniewski@mozilla.com>
Date: Fri, 9 Jan 2026 17:36:17 +0000
Bug 2009403 - add a null check to the changes in bug 2008932 to prevent a permafail; r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D278511
Diffstat:
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/browser/base/content/browser-trustPanel.js b/browser/base/content/browser-trustPanel.js
@@ -325,9 +325,13 @@ class TrustPanel {
}
async #updatePopup() {
- this.#host = BrowserUtils.formatURIForDisplay(this.#uri, {
- onlyBaseDomain: true,
- });
+ if (this.#uri) {
+ this.#host = BrowserUtils.formatURIForDisplay(this.#uri, {
+ onlyBaseDomain: true,
+ });
+ } else {
+ this.#host = "";
+ }
this.#popup.setAttribute(
"connection",
this.#isSecurePage() ? "secure" : "not-secure"