icecat: add release icecat-140.6.0-1gnu1 for ecne

This commit is contained in:
Ark74 2026-01-17 19:26:27 -06:00
parent 618c9f4145
commit 7d0f5dab3b
3382 changed files with 457689 additions and 569094 deletions

View file

@ -852,6 +852,13 @@ customElements.define(
BrowserAddonUI.openAddonsMgr(
"addons://detail/" + encodeURIComponent(addonId)
);
// The settings link element has its href set to "#" to be
// accessible with keyboard navigation, and so we call
// preventDefault to avoid the "#" href to be implicitly
// added to the browser chrome window url (See Bug 1983869
// for more details of the regression that the implicit
// change to the chrome window urls triggers).
event.preventDefault();
}
break;
}

View file

@ -389,7 +389,7 @@
<menuitem id="context-printframe"
data-l10n-id="main-context-menu-frame-print"
/>
<menuseparator/>
<menuseparator id="print-frame-sep"/>
<menuitem id="context-take-frame-screenshot"
data-l10n-id="main-context-menu-take-frame-screenshot"
/>

View file

@ -1953,10 +1953,13 @@ var XULBrowserWindow = {
if (url) {
url = Services.textToSubURI.unEscapeURIForUI(url);
// Encode bidirectional formatting characters.
// (RFC 3987 sections 3.2 and 4.1 paragraph 6)
/**
* Encode bidirectional formatting characters.
* @see https://url.spec.whatwg.org/#url-rendering-i18n
* @see https://www.unicode.org/reports/tr9/#Directional_Formatting_Characters
*/
url = url.replace(
/[\u200e\u200f\u202a\u202b\u202c\u202d\u202e]/g,
/[\u061c\u200e\u200f\u202a-\u202e\u2066-\u2069]/g,
encodeURIComponent
);

View file

@ -67,6 +67,13 @@ XPCOMUtils.defineLazyPreferenceGetter(
false
);
XPCOMUtils.defineLazyPreferenceGetter(
lazy,
"gPrintEnabled",
"print.enabled",
false
);
XPCOMUtils.defineLazyServiceGetter(
lazy,
"QueryStringStripper",
@ -838,7 +845,8 @@ export class nsContextMenu {
"context-print-selection",
!this.inAboutDevtoolsToolbox &&
this.isContentSelected &&
this.selectionInfo.isDocumentLevelSelection
this.selectionInfo.isDocumentLevelSelection &&
lazy.gPrintEnabled
);
var shouldShow = !(
@ -946,6 +954,8 @@ export class nsContextMenu {
this.showItem("context-openframeintab", !this.inSrcdocFrame);
this.showItem("context-openframe", !this.inSrcdocFrame);
this.showItem("context-bookmarkframe", !this.inSrcdocFrame);
this.showItem("context-printframe", lazy.gPrintEnabled);
this.showItem("print-frame-sep", lazy.gPrintEnabled);
// Hide menu entries for images, show otherwise
if (this.inFrame) {