Skip to content

Commit

Permalink
123.0b5
Browse files Browse the repository at this point in the history
  • Loading branch information
bot committed Feb 1, 2024
1 parent a8318ba commit 4007dbe
Show file tree
Hide file tree
Showing 684 changed files with 16,704 additions and 13,305 deletions.
3 changes: 1 addition & 2 deletions firefox-src-part/browser/actors/ContentSearchParent.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ export let ContentSearch = {
data.healthReportKey,
{
selection: data.selection,
url: submission.uri,
}
);
},
Expand Down Expand Up @@ -557,7 +556,7 @@ export let ContentSearch = {
* Converts the engine's icon into an appropriate URL for display at
*/
async _getEngineIconURL(engine) {
let url = engine.getIconURLBySize(16, 16);
let url = engine.getIconURL();
if (!url) {
return SEARCH_ENGINE_PLACEHOLDER_ICON;
}
Expand Down
12 changes: 10 additions & 2 deletions firefox-src-part/browser/actors/LinkHandlerParent.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,15 @@ export class LinkHandlerParent extends JSWindowActorParent {
setIconFromLink(
gBrowser,
browser,
{ pageURL, originalURL, canUseForTab, expiration, iconURL, canStoreIcon }
{
pageURL,
originalURL,
canUseForTab,
expiration,
iconURL,
canStoreIcon,
beforePageShow,
}
) {
let tab = gBrowser.getTabForBrowser(browser);
if (!tab) {
Expand Down Expand Up @@ -150,7 +158,7 @@ export class LinkHandlerParent extends JSWindowActorParent {
}

if (canUseForTab) {
gBrowser.setIcon(tab, iconURL, originalURL);
gBrowser.setIcon(tab, iconURL, originalURL, null, beforePageShow);
}
}
}
27 changes: 10 additions & 17 deletions firefox-src-part/browser/actors/PluginParent.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,20 @@ export class PluginParent extends JSWindowActorParent {
buttons.push(submitButton);
}

// Add the "learn more" link.
let learnMoreLink = {
supportPage: "plugin-crashed-notificationbar",
label: lazy.gNavigatorBundle.GetStringFromName(
"crashedpluginsMessage.learnMore"
),
};
buttons.push(learnMoreLink);

let messageString = lazy.gNavigatorBundle.formatStringFromName(
"crashedpluginsMessage.title",
[report.pluginName]
);
notification = notificationBox.appendNotification(
notificationBox.appendNotification(
"plugin-crashed",
{
label: messageString,
Expand All @@ -191,21 +200,5 @@ export class PluginParent extends JSWindowActorParent {
},
buttons
);

// Add the "learn more" link.
let link = notification.ownerDocument.createXULElement("label", {
is: "text-link",
});
link.setAttribute(
"value",
lazy.gNavigatorBundle.GetStringFromName("crashedpluginsMessage.learnMore")
);
let crashurl = Services.urlFormatter.formatURLPref("app.support.baseURL");
crashurl += "plugin-crashed-notificationbar";
link.href = crashurl;
// Append a blank text node to make sure we don't put
// the link right next to the end of the message text.
notification.messageText.appendChild(new Text(" "));
notification.messageText.appendChild(link);
}
}
1 change: 1 addition & 0 deletions firefox-src-part/browser/actors/PromptParent.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ export class PromptParent extends JSWindowActorParent {

args.promptAborted = false;
args.openedWithTabDialog = true;
args.owningBrowsingContext = this.browsingContext;

// Convert args object to a prop bag for the dialog to consume.
let bag;
Expand Down
39 changes: 35 additions & 4 deletions firefox-src-part/browser/actors/ScreenshotsComponentChild.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ export class ScreenshotsComponentChild extends JSWindowActorChild {
#scrollTask;
#overlay;

static OVERLAY_EVENTS = [
"click",
"pointerdown",
"pointermove",
"pointerup",
"keyup",
"keydown",
];

get overlay() {
return this.#overlay;
}
Expand All @@ -41,10 +50,16 @@ export class ScreenshotsComponentChild extends JSWindowActorChild {

handleEvent(event) {
switch (event.type) {
case "click":
case "pointerdown":
case "pointermove":
case "pointerup":
case "keyup":
case "keydown":
if (event.key === "Escape") {
this.requestCancelScreenshot("escape");
if (!this.overlay?.initialized) {
return;
}
this.overlay.handleEvent(event);
break;
case "beforeunload":
this.requestCancelScreenshot("navigation");
Expand Down Expand Up @@ -191,6 +206,13 @@ export class ScreenshotsComponentChild extends JSWindowActorChild {
});
}

addOverlayEventListeners() {
let chromeEventHandler = this.docShell.chromeEventHandler;
for (let event of ScreenshotsComponentChild.OVERLAY_EVENTS) {
chromeEventHandler.addEventListener(event, this, true);
}
}

/**
* Wait until the document is ready and then show the screenshots overlay
*
Expand All @@ -208,24 +230,33 @@ export class ScreenshotsComponentChild extends JSWindowActorChild {
let overlay =
this.overlay ||
(this.#overlay = new lazy.ScreenshotsOverlay(this.document));
this.document.addEventListener("keydown", this);
this.document.ownerGlobal.addEventListener("beforeunload", this);
this.contentWindow.addEventListener("resize", this);
this.contentWindow.addEventListener("scroll", this);
this.contentWindow.addEventListener("visibilitychange", this);
this.addOverlayEventListeners();

overlay.initialize();
return true;
}

removeOverlayEventListeners() {
let chromeEventHandler = this.docShell.chromeEventHandler;
for (let event of ScreenshotsComponentChild.OVERLAY_EVENTS) {
chromeEventHandler.removeEventListener(event, this, true);
}
}

/**
* Removes event listeners and the screenshots overlay.
*/
endScreenshotsOverlay(options = {}) {
this.document.removeEventListener("keydown", this);
this.document.ownerGlobal.removeEventListener("beforeunload", this);
this.contentWindow.removeEventListener("resize", this);
this.contentWindow.removeEventListener("scroll", this);
this.contentWindow.removeEventListener("visibilitychange", this);
this.removeOverlayEventListeners();

this.overlay?.tearDown(options);
this.#resizeTask?.disarm();
this.#scrollTask?.disarm();
Expand Down
62 changes: 41 additions & 21 deletions firefox-src-part/browser/app/profile/firefox.js
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ pref("browser.urlbar.suggest.addons", true);
// mdn suggestions are turned on.
pref("browser.urlbar.suggest.mdn", true);

// If `browser.urlbar.yelp.featureGate` is true, this controls whether
// Yelp suggestions are turned on.
pref("browser.urlbar.suggest.yelp", true);

// The minimum prefix length of addons keyword the user must type to trigger
// the suggestion. 0 means the min length should be taken from Nimbus.
pref("browser.urlbar.addons.minKeywordLength", 0);
Expand Down Expand Up @@ -710,9 +714,6 @@ pref("browser.download.clearHistoryOnDelete", 0);
pref("browser.helperApps.showOpenOptionForPdfJS", true);
pref("browser.helperApps.showOpenOptionForViewableInternally", true);

// search engine removal URL
pref("browser.search.searchEngineRemoval", "https://support.mozilla.org/1/firefox/%VERSION%/%OS%/%LOCALE%/search-engine-removal");

// search engines URL
pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/firefox/search-engines/");

Expand Down Expand Up @@ -781,6 +782,14 @@ pref("browser.shopping.experience2023.survey.hasSeen", false);
// Number of PDP visits used to display shopping survey
pref("browser.shopping.experience2023.survey.pdpVisits", 0);

// Enables the auto-open feature for the shopping sidebar,
// including new callouts and settings UI changes
// (this is just the feature flag).
pref("browser.shopping.experience2023.autoOpen.enabled", true);

// Opens the shopping sidebar automatically when viewing a PDP.
pref("browser.shopping.experience2023.autoOpen.userEnabled", true);

// Enables the display of the Mozilla VPN banner in private browsing windows
pref("browser.privatebrowsing.vpnpromourl", "https://vpn.mozilla.org/?utm_source=firefox-browser&utm_medium=firefox-%CHANNEL%-browser&utm_campaign=private-browsing-vpn-link");

Expand Down Expand Up @@ -907,6 +916,10 @@ pref("browser.tabs.tooltipsShowPidAndActiveness", true);
pref("browser.tabs.tooltipsShowPidAndActiveness", false);
#endif

pref("browser.tabs.cardPreview.enabled", false);
pref("browser.tabs.cardPreview.delayMs", 1000);
pref("browser.tabs.cardPreview.showThumbnails", true);

pref("browser.tabs.firefox-view", true);
pref("browser.tabs.firefox-view-next", true);
pref("browser.tabs.firefox-view-newIcon", true);
Expand Down Expand Up @@ -1017,6 +1030,11 @@ pref("privacy.clearOnShutdown.sessions", true);
pref("privacy.clearOnShutdown.offlineApps", false);
pref("privacy.clearOnShutdown.siteSettings", false);
pref("privacy.clearOnShutdown.openWindows", false);
// Clear on shutdown prefs used in the new dialog
pref("privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true);
pref("privacy.clearOnShutdown_v2.cookiesAndStorage", true);
pref("privacy.clearOnShutdown_v2.cache", true);
pref("privacy.clearOnShutdown_v2.siteSettings", false);

pref("privacy.cpd.history", true);
pref("privacy.cpd.formdata", true);
Expand All @@ -1041,6 +1059,8 @@ pref("privacy.history.custom", false);
// 6 - Last 24 hours
pref("privacy.sanitize.timeSpan", 1);

pref("privacy.sanitize.useOldClearHistoryDialog", true);

pref("privacy.panicButton.enabled", true);

// Time until temporary permissions expire, in ms
Expand Down Expand Up @@ -1318,10 +1338,6 @@ pref("places.frecency.origins.alternative.featureGate", false);
// selects "Forget About This Site".
pref("places.forgetThisSite.clearByBaseDomain", true);

#ifdef NIGHTLY_BUILD
pref("places.experimental.useSingleQueueTransactionManager", true);
#endif

// Whether to warm up network connections for places: menus and places: toolbar.
pref("browser.places.speculativeConnect.enabled", true);

Expand Down Expand Up @@ -1560,13 +1576,18 @@ pref("services.sync.prefs.sync.permissions.default.image", true);
pref("services.sync.prefs.sync.pref.downloads.disable_button.edit_actions", true);
pref("services.sync.prefs.sync.pref.privacy.disable_button.cookie_exceptions", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.cache", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown_v2.cache", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.cookies", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown_v2.cookiesAndStorage", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.downloads", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown_v2.downloads", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.formdata", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.history", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown_v2.historyFormDataAndDownloads", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.offlineApps", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.sessions", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown.siteSettings", true);
pref("services.sync.prefs.sync.privacy.clearOnShutdown_v2.siteSettings", true);
pref("services.sync.prefs.sync.privacy.donottrackheader.enabled", true);
pref("services.sync.prefs.sync.privacy.globalprivacycontrol.enabled", true);
pref("services.sync.prefs.sync.privacy.sanitize.sanitizeOnShutdown", true);
Expand Down Expand Up @@ -1840,6 +1861,9 @@ pref("identity.fxaccounts.remote.root", "https://accounts.firefox.com/");
// The value of the context query parameter passed in fxa requests.
pref("identity.fxaccounts.contextParam", "fx_desktop_v3");

// Whether to use the oauth flow for desktop or not
pref("identity.fxaccounts.oauth.enabled", false);

// The remote URL of the FxA Profile Server
pref("identity.fxaccounts.remote.profile.uri", "https://profile.accounts.firefox.com/v1");

Expand Down Expand Up @@ -1948,10 +1972,6 @@ pref("toolkit.telemetry.updatePing.enabled", true);
// Enables sending 'bhr' pings when the browser hangs.
pref("toolkit.telemetry.bhrPing.enabled", true);

// Ping Centre Telemetry settings.
pref("browser.ping-centre.telemetry", true);
pref("browser.ping-centre.log", false);

// Enable GMP support in the addon manager.
pref("media.gmp-provider.enabled", true);

Expand Down Expand Up @@ -2071,8 +2091,7 @@ pref("browser.contentblocking.report.show_mobile_app", true);
pref("browser.send_to_device_locales", "de,en-GB,en-US,es-AR,es-CL,es-ES,es-MX,fr,id,pl,pt-BR,ru,zh-TW");

// Avoid advertising in certain regions. Comma separated string of two letter ISO 3166-1 country codes.
// We're currently blocking all of Ukraine (ua), but would prefer to block just Crimea (ua-43). Currently, the Mozilla Location Service APIs used by Region.sys.mjs only exposes the country, not the subdivision.
pref("browser.vpn_promo.disallowed_regions", "ae,by,cn,cu,iq,ir,kp,om,ru,sd,sy,tm,tr,ua");
pref("browser.vpn_promo.disallowed_regions", "ae,by,cn,cu,iq,ir,kp,om,ru,sd,sy,tm,tr");

// Default to enabling VPN promo messages to be shown when specified and allowed
pref("browser.vpn_promo.enabled", true);
Expand Down Expand Up @@ -2356,6 +2375,9 @@ pref("extensions.screenshots.disabled", false);
// Preference that determines whether Screenshots is opened as a dedicated browser component
pref("screenshots.browser.component.enabled", false);

// Preference that determines what button to focus
pref("screenshots.browser.component.last-saved-method", "download");

// DoH Rollout: whether to clear the mode value at shutdown.
pref("doh-rollout.clearModeOnShutdown", false);

Expand Down Expand Up @@ -2444,7 +2466,7 @@ pref("browser.toolbars.bookmarks.showInPrivateBrowsing", false);
// quick access to sign-in and manage your Firefox Account.
pref("identity.fxaccounts.toolbar.enabled", true);
pref("identity.fxaccounts.toolbar.accessed", false);
pref("identity.fxaccounts.toolbar.defaultVisible", false);
pref("identity.fxaccounts.toolbar.defaultVisible", true);
pref("identity.fxaccounts.toolbar.pxiToolbarEnabled", false);

// Check bundled omni JARs for corruption.
Expand Down Expand Up @@ -2870,9 +2892,9 @@ pref("browser.firefox-view.view-count", 0);
// Maximum number of rows to show on the "History" page.
pref("browser.firefox-view.max-history-rows", 300);
// Enables search functionality in Firefox View.
pref("browser.firefox-view.search.enabled", false);
pref("browser.firefox-view.search.enabled", true);
// Enables virtual list functionality in Firefox View.
pref("browser.firefox-view.virtual-list.enabled", false);
pref("browser.firefox-view.virtual-list.enabled", true);

// If the user has seen the pdf.js feature tour this value reflects the tour
// message id, the id of the last screen they saw, and whether they completed the tour
Expand All @@ -2891,6 +2913,9 @@ pref("browser.pdfjs.feature-tour", "{\"screen\":\"\",\"complete\":false}");
pref("cookiebanners.ui.desktop.enabled", false);
#endif

// When true, shows a one-time feature callout for cookie banner blocking.
pref("cookiebanners.ui.desktop.showCallout", false);

// Controls which variant of the cookie banner CFR the user is presented with.
pref("cookiebanners.ui.desktop.cfrVariant", 0);

Expand Down Expand Up @@ -2951,11 +2976,6 @@ pref("ui.new-webcompat-reporter.reason-dropdown", 0);
// performing the clear action.
pref("browser.privatebrowsing.resetPBM.showConfirmationDialog", true);

// bug 1858545: Temporary pref to enable a staged rollout of macOS attribution Telemetry
#ifdef XP_MACOSX
pref("browser.attribution.macos.enabled", false);
#endif

// the preferences related to the Nimbus experiment, to activate and deactivate
// the the entire rollout or deactivate only the OS prompt (see: bug 1864216)
pref("browser.mailto.dualPrompt", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@
/>
</panelview>

<panelview id="PanelUI-profiler" showheader="true">
<panelview id="PanelUI-profiler"
mainview-with-header="true"
has-customized-header="true">
<vbox id="PanelUI-profiler-header" animationready="false">
<hbox id="PanelUI-profiler-header-bar"
class="panel-header panel-header-with-additional-element panel-header-with-info-button">
Expand Down Expand Up @@ -718,7 +720,7 @@
</vbox>
</panelview>

<panelview id="PanelUI-whatsNew" class="PanelUI-subView" showheader="true">
<panelview id="PanelUI-whatsNew" class="PanelUI-subView" mainview-with-header="true">
<hbox id="PanelUI-whatsNew-title" class="panel-header">
<html:h1>
<html:span data-l10n-id="whatsnew-panel-header"></html:span>
Expand Down
Loading

0 comments on commit 4007dbe

Please sign in to comment.