Bug 1953575 - move gShareUtils to its own module, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,dao

Differential Revision: https://phabricator.services.mozilla.com/D241485
This commit is contained in:
Gijs Kruitbosch
2025-03-20 15:54:31 +00:00
parent 3d0d8aa9c3
commit fcab2ecd6a
8 changed files with 311 additions and 244 deletions

View File

@@ -113,12 +113,6 @@
UrlbarProviderOpenTabs:
"resource:///modules/UrlbarProviderOpenTabs.sys.mjs",
});
XPCOMUtils.defineLazyServiceGetters(this, {
MacSharingService: [
"@mozilla.org/widget/macsharingservice;1",
"nsIMacSharingService",
],
});
ChromeUtils.defineLazyGetter(this, "tabLocalization", () => {
return new Localization(
["browser/tabbrowser.ftl", "branding/brand.ftl"],
@@ -8867,7 +8861,7 @@ var TabContextMenu = {
PrivateBrowsingUtils.isWindowPrivate(window);
reopenInContainer.disabled = this.contextTab.hidden;
gShareUtils.updateShareURLMenuItem(
SharingUtils.updateShareURLMenuItem(
this.contextTab.linkedBrowser,
document.getElementById("context_sendTabToDevice")
);