mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-28 07:45:09 +00:00
39 lines
1.8 KiB
C++
39 lines
1.8 KiB
C++
diff --git a/browser/base/content/browser-siteIdentity.js b/browser/base/content/browser-siteIdentity.js
|
|
index 6d2052e060896bb5e91ba84c15bf14c969340935..6ceef1806e2d88cd7e2ebc867d633e9148f3b298 100644
|
|
--- a/browser/base/content/browser-siteIdentity.js
|
|
+++ b/browser/base/content/browser-siteIdentity.js
|
|
@@ -464,11 +464,6 @@ var gIdentityHandler = {
|
|
// avoid a pretty ugly transition. Also hide it even
|
|
// if the update resulted in no site data, to keep the
|
|
// illusion that clicking the button had an effect.
|
|
- let hidden = new Promise(c => {
|
|
- this._identityPopup.addEventListener("popuphidden", c, { once: true });
|
|
- });
|
|
- PanelMultiView.hidePopup(this._identityPopup);
|
|
- await hidden;
|
|
|
|
let baseDomain = SiteDataManager.getBaseDomainFromHost(this._uri.host);
|
|
if (SiteDataManager.promptSiteDataRemoval(window, [baseDomain])) {
|
|
@@ -847,7 +842,7 @@ var gIdentityHandler = {
|
|
// This is a secure internal Firefox page.
|
|
this._identityBox.className = "chromeUI";
|
|
let brandBundle = document.getElementById("bundle_brand");
|
|
- icon_label = brandBundle.getString("brandShorterName");
|
|
+ icon_label = brandBundle.getString("brandShortName");
|
|
} else if (this._pageExtensionPolicy) {
|
|
// This is a WebExtension page.
|
|
this._identityBox.className = "extensionPage";
|
|
@@ -1190,6 +1185,12 @@ var gIdentityHandler = {
|
|
}
|
|
}
|
|
|
|
+ if (connection == "chrome" || connection == "extension" || connection == "file") {
|
|
+ document.getElementById("identity-popup-mainView-panel-header").setAttribute("hidden", "true");
|
|
+ } else {
|
|
+ document.getElementById("identity-popup-mainView-panel-header").removeAttribute("hidden");
|
|
+ }
|
|
+
|
|
// Push the appropriate strings out to the UI.
|
|
document.l10n.setAttributes(
|
|
this._identityPopupMainViewHeaderLabel,
|