Skip to content

Commit

Permalink
Merge pull request #685 from Floorp-Projects/upstream-esr115-20240116…
Browse files Browse the repository at this point in the history
…032046

Pull upstream
  • Loading branch information
surapunoyousei authored Jan 16, 2024
2 parents 10789e2 + d206233 commit e16fa9b
Show file tree
Hide file tree
Showing 72 changed files with 4,767 additions and 8,569 deletions.
2 changes: 2 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -4392,3 +4392,5 @@ bf2f656d025836975b7bf6aeb16901a037a01923 FIREFOX_115_2_0esr_RELEASE
8a02a7c43f1eddfd18926f0266d188b4f359c0aa FIREFOX_115_5_0esr_BUILD1
8a02a7c43f1eddfd18926f0266d188b4f359c0aa FIREFOX_115_5_0esr_RELEASE
aa9f02961b2bbb92e17fea5d6b8fd14c097baf72 FIREFOX_115_6_0esr_BUILD1
aa9f02961b2bbb92e17fea5d6b8fd14c097baf72 FIREFOX_115_6_0esr_RELEASE
980ec32f825b2f54c05d16057a6e60d5b62d2ee2 FIREFOX_115_7_0esr_BUILD1
2 changes: 1 addition & 1 deletion CLOBBER
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.

Merge day clobber 2023-11-20
Merge day clobber 2023-12-18
2 changes: 1 addition & 1 deletion accessible/base/NotificationController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@ void NotificationController::WillRefresh(mozilla::TimeStamp aTime) {
}

if (mDocument) {
mDocument->ClearMovedAccessibles();
mDocument->ClearMutationData();
}

if (ipc::ProcessChild::ExpectingShutdown()) {
Expand Down
7 changes: 4 additions & 3 deletions accessible/generic/DocAccessible.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,9 +1035,6 @@ void DocAccessible::ContentRemoved(nsIContent* aChildNode,
logging::MsgEnd();
}
#endif
// This one and content removal notification from layout may result in
// double processing of same subtrees. If it pops up in profiling, then
// consider reusing a document node cache to reject these notifications early.
ContentRemoved(aChildNode);
}

Expand Down Expand Up @@ -2165,6 +2162,10 @@ void DocAccessible::ContentRemoved(LocalAccessible* aChild) {
}

void DocAccessible::ContentRemoved(nsIContent* aContentNode) {
if (!mRemovedNodes.EnsureInserted(aContentNode)) {
return;
}

// If child node is not accessible then look for its accessible children.
LocalAccessible* acc = GetAccessible(aContentNode);
if (acc) {
Expand Down
9 changes: 6 additions & 3 deletions accessible/generic/DocAccessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,12 @@ class DocAccessible : public HyperTextAccessibleWrap,

/**
* Called from NotificationController after all mutation events have been
* processed to clear our data about Accessibles that were moved during this
* tick.
* processed to clear our data about mutations during this tick.
*/
void ClearMovedAccessibles() {
void ClearMutationData() {
mMovedAccessibles.Clear();
mInsertedAccessibles.Clear();
mRemovedNodes.Clear();
}

/**
Expand Down Expand Up @@ -815,6 +815,9 @@ class DocAccessible : public HyperTextAccessibleWrap,
// processes. This is needed to prevent insertions + moves of the same
// Accessible in the same tick from being tracked as moves.
nsTHashSet<RefPtr<LocalAccessible>> mInsertedAccessibles;
// A set of DOM nodes removed during this tick. This avoids a lot of pointless
// recursive DOM traversals.
nsTHashSet<nsIContent*> mRemovedNodes;
};

inline DocAccessible* LocalAccessible::AsDoc() {
Expand Down
1 change: 1 addition & 0 deletions browser/components/enterprisepolicies/Policies.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1695,6 +1695,7 @@ export var Policies = {
onBeforeAddons(manager, param) {
let allowedPrefixes = [
"accessibility.",
"alerts.",
"app.update.",
"browser.",
"datareporting.policy.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"use strict";

ChromeUtils.defineESModuleGetters(this, {
AppConstants: "resource://gre/modules/AppConstants.sys.mjs",
RemoteSettings: "resource://services-settings/remote-settings.sys.mjs",
TELEMETRY_SETTINGS_KEY: "resource:///modules/SearchSERPTelemetry.sys.mjs",
JsonSchema: "resource://gre/modules/JsonSchema.sys.mjs",
Expand Down Expand Up @@ -32,6 +33,17 @@ function isObject(value) {
* The section to check to see if an additionalProperties flag should be added.
*/
function disallowAdditionalProperties(section) {
// It is generally acceptable for new properties to be added to the
// configuration as older builds will ignore them.
//
// As a result, we only check for new properties on nightly builds, and this
// avoids us having to uplift schema changes. This also helps preserve the
// schemas as documentation of "what was supported in this version".
if (!AppConstants.NIGHTLY_BUILD) {
info("Skipping additional properties validation.");
return;
}

if (section.type == "object") {
section.additionalProperties = false;
}
Expand Down
2 changes: 1 addition & 1 deletion browser/config/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
115.6.0
115.7.0
2 changes: 1 addition & 1 deletion browser/config/version_display.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
11.7.1
11.8.0
15 changes: 11 additions & 4 deletions browser/locales/en-US/browser/newtab/asrouter.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,14 @@ fxa-sync-cfr-secondary = Remind me later
## Device Migration FxA Spotlight

device-migration-fxa-spotlight-header = Using an older device?
device-migration-fxa-spotlight-body = Back up your data to make sure you don’t lose important info like bookmarks and passwords — especially if you switch to a new device.
device-migration-fxa-spotlight-primary-button = How to back up my data
device-migration-fxa-spotlight-link = Remind me later
device-migration-fxa-spotlight-heavy-user-header = Don’t forget to back up your data
device-migration-fxa-spotlight-heavy-user-body = Make sure important info — like bookmarks and passwords — is updated and protected across all your devices.
device-migration-fxa-spotlight-heavy-user-primary-button = Get started
device-migration-fxa-spotlight-older-device-header = Peace of mind, from { -brand-product-name }
device-migration-fxa-spotlight-older-device-body = An account keeps your important info updated and protected on any device you connect.
device-migration-fxa-spotlight-older-device-primary-button = Create an account
device-migration-fxa-spotlight-getting-new-device-header-2 = New device in your future?
device-migration-fxa-spotlight-getting-new-device-body-2 = Follow a few simple steps to bring your bookmarks, history, and passwords with you when you get started on a new device.
device-migration-fxa-spotlight-getting-new-device-primary-button = How to back up my data
Loading

0 comments on commit e16fa9b

Please sign in to comment.