commit b64f5ef676234b19c5a2a2686dd5b53db45b0c2d
parent 770dd787b82d5a78214829fd30fb229ef0f13e35
Author: Cristian Tuns <ctuns@mozilla.com>
Date: Thu, 18 Dec 2025 19:53:16 -0500
Revert "Bug 2005845 - Add a check to ensure that the spotlight is loaded from the about page. r=mconley" for causing bc failures in browser_sanitizeOnShutdown_migration.js
This reverts commit 8c22be6bad0c3176f55684dc1f542973d52efda8.
Diffstat:
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/browser/components/backup/actors/BackupUIParent.sys.mjs b/browser/components/backup/actors/BackupUIParent.sys.mjs
@@ -7,7 +7,6 @@ const lazy = {};
ChromeUtils.defineESModuleGetters(lazy, {
BackupService: "resource:///modules/backup/BackupService.sys.mjs",
ERRORS: "chrome://browser/content/backup/backup-constants.mjs",
- E10SUtils: "resource://gre/modules/E10SUtils.sys.mjs",
});
ChromeUtils.defineLazyGetter(lazy, "logConsole", function () {
@@ -122,19 +121,6 @@ export class BackupUIParent extends JSWindowActorParent {
* Returns either a success object, a file details object, or null.
*/
async receiveMessage(message) {
- // The backup spotlights can be embedded in less privileged content pages, so let's
- // make sure that any messages from content are coming from the privileged
- // about content process type
- if (
- !this.browsingContext.currentWindowGlobal.isInProcess &&
- this.browsingContext.currentRemoteType !=
- lazy.E10SUtils.PRIVILEGEDABOUT_REMOTE_TYPE
- ) {
- throw new Error(
- "BackupUIParent: received message from the wrong content process type."
- );
- }
-
if (message.name == "RequestState") {
this.sendState();
} else if (message.name == "TriggerCreateBackup") {
diff --git a/browser/components/profiles/tests/browser/browser_preferences.js b/browser/components/profiles/tests/browser/browser_preferences.js
@@ -343,8 +343,8 @@ add_task(async function testPrivacyInfoHiddenWhenDisabled() {
ok(!BrowserTestUtils.isVisible(profilesNote), "The profiles note is hidden");
- await SpecialPowers.popPrefEnv();
BrowserTestUtils.removeTab(gBrowser.selectedTab);
+ await SpecialPowers.popPrefEnv();
});
// If the user disables data collection, then re-enables data collection in