tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5cd7ee930b782de3bb80b9d424e6e05b8b106722
parent 330ab66d10425ffea1a5145f8e454c83f52205e4
Author: Cristina Horotan <chorotan@mozilla.com>
Date:   Thu, 18 Dec 2025 01:55:33 +0200

Revert "Bug 2005845 - Add a check to ensure that the spotlight is loaded from the about page. r=mconley" for causing bc failures on browser_preferences.js

This reverts commit a38fadbba8c4869b4fed6f9055d8733d3d0829bb.

Diffstat:
Mbrowser/components/backup/actors/BackupUIParent.sys.mjs | 14--------------
1 file changed, 0 insertions(+), 14 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") {