Bug 1954435 - switch uitour to use moz-src, r=omc-reviewers,firefox-desktop-core-reviewers ,aminomancer,mconley

Differential Revision: https://phabricator.services.mozilla.com/D241795
This commit is contained in:
Gijs Kruitbosch
2025-03-17 22:26:21 +00:00
parent f536d37c73
commit e9de12e4df
7 changed files with 8 additions and 8 deletions

View File

@@ -91,7 +91,7 @@ ChromeUtils.defineESModuleGetters(this, {
TelemetryEnvironment: "resource://gre/modules/TelemetryEnvironment.sys.mjs", TelemetryEnvironment: "resource://gre/modules/TelemetryEnvironment.sys.mjs",
ToolbarContextMenu: "resource:///modules/ToolbarContextMenu.sys.mjs", ToolbarContextMenu: "resource:///modules/ToolbarContextMenu.sys.mjs",
TranslationsParent: "resource://gre/actors/TranslationsParent.sys.mjs", TranslationsParent: "resource://gre/actors/TranslationsParent.sys.mjs",
UITour: "resource:///modules/UITour.sys.mjs", UITour: "moz-src:///browser/components/uitour/UITour.sys.mjs",
UpdateUtils: "resource://gre/modules/UpdateUtils.sys.mjs", UpdateUtils: "resource://gre/modules/UpdateUtils.sys.mjs",
URILoadingHelper: "resource:///modules/URILoadingHelper.sys.mjs", URILoadingHelper: "resource:///modules/URILoadingHelper.sys.mjs",
UrlbarInput: "resource:///modules/UrlbarInput.sys.mjs", UrlbarInput: "resource:///modules/UrlbarInput.sys.mjs",

View File

@@ -924,10 +924,10 @@ let JSWINDOWACTORS = {
UITour: { UITour: {
parent: { parent: {
esModuleURI: "resource:///modules/UITourParent.sys.mjs", esModuleURI: "moz-src:///browser/components/uitour/UITourParent.sys.mjs",
}, },
child: { child: {
esModuleURI: "resource:///modules/UITourChild.sys.mjs", esModuleURI: "moz-src:///browser/components/uitour/UITourChild.sys.mjs",
events: { events: {
mozUITour: { wantUntrusted: true }, mozUITour: { wantUntrusted: true },
}, },

View File

@@ -17,7 +17,7 @@ let { UIState } = ChromeUtils.importESModule(
); );
ChromeUtils.defineESModuleGetters(this, { ChromeUtils.defineESModuleGetters(this, {
UITour: "resource:///modules/UITour.sys.mjs", UITour: "moz-src:///browser/components/uitour/UITour.sys.mjs",
}); });
const DECKINDEX_TABS = 0; const DECKINDEX_TABS = 0;

View File

@@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
import { UITour } from "resource:///modules/UITour.sys.mjs"; import { UITour } from "moz-src:///browser/components/uitour/UITour.sys.mjs";
export class UITourParent extends JSWindowActorParent { export class UITourParent extends JSWindowActorParent {
receiveMessage(message) { receiveMessage(message) {

View File

@@ -2,7 +2,7 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this # License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/. # file, You can obtain one at http://mozilla.org/MPL/2.0/.
EXTRA_JS_MODULES += ["UITour.sys.mjs", "UITourChild.sys.mjs", "UITourParent.sys.mjs"] MOZ_SRC_FILES += ["UITour.sys.mjs", "UITourChild.sys.mjs", "UITourParent.sys.mjs"]
BROWSER_CHROME_MANIFESTS += [ BROWSER_CHROME_MANIFESTS += [
"test/browser.toml", "test/browser.toml",

View File

@@ -4,7 +4,7 @@
/* global gTestTab:true, gContentAPI:true, tests:false */ /* global gTestTab:true, gContentAPI:true, tests:false */
ChromeUtils.defineESModuleGetters(this, { ChromeUtils.defineESModuleGetters(this, {
UITour: "resource:///modules/UITour.sys.mjs", UITour: "moz-src:///browser/components/uitour/UITour.sys.mjs",
}); });
const { PermissionTestUtils } = ChromeUtils.importESModule( const { PermissionTestUtils } = ChromeUtils.importESModule(

View File

@@ -24,7 +24,7 @@ ChromeUtils.defineESModuleGetters(lazy, {
// eslint-disable-next-line mozilla/no-browser-refs-in-toolkit // eslint-disable-next-line mozilla/no-browser-refs-in-toolkit
Spotlight: "resource:///modules/asrouter/Spotlight.sys.mjs", Spotlight: "resource:///modules/asrouter/Spotlight.sys.mjs",
UIState: "resource://services-sync/UIState.sys.mjs", UIState: "resource://services-sync/UIState.sys.mjs",
UITour: "resource:///modules/UITour.sys.mjs", UITour: "moz-src:///browser/components/uitour/UITour.sys.mjs",
}); });
export const SpecialMessageActions = { export const SpecialMessageActions = {