mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
3e5d710873
openLinkIn would really benefit from being split up a bit, and adding more globals to the browser window is icky. Also, the story for opening new tabs if you're not inside a window is a nightmare right now. Moving this code to a module is a first step to making that story nicer. I kept wrappers for all the functions I'm moving, and added the `window` as the first argument. In the future we can update these functions to support being called without a `window` ref. The one exception is getTopWin, where I updated the callers in this patch. I had to tweak the parameter detection of the different arguments supported by openUILinkIn because forwarding calls means arguments.length is always larger than 3... but then also removed it in the next commit. Differential Revision: https://phabricator.services.mozilla.com/D170210
165 lines
4.7 KiB
Python
165 lines
4.7 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# 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/.
|
|
|
|
with Files("**"):
|
|
BUG_COMPONENT = ("Firefox", "General")
|
|
|
|
with Files("test/browser/*Telemetry*"):
|
|
BUG_COMPONENT = ("Toolkit", "Telemetry")
|
|
|
|
with Files("test/browser/*ContentSearch*"):
|
|
BUG_COMPONENT = ("Firefox", "Search")
|
|
|
|
with Files("test/browser/*PermissionUI*"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("test/browser/*SitePermissions*"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("test/browser/browser_UnsubmittedCrashHandler.js"):
|
|
BUG_COMPONENT = ("Toolkit", "Crash Reporting")
|
|
|
|
with Files("test/browser/browser_taskbar_preview.js"):
|
|
BUG_COMPONENT = ("Firefox", "Shell Integration")
|
|
|
|
with Files("test/browser/browser_urlBar_zoom.js"):
|
|
BUG_COMPONENT = ("Firefox", "General")
|
|
|
|
with Files("test/unit/test_E10SUtils_nested_URIs.js"):
|
|
BUG_COMPONENT = ("Core", "Security: Process Sandboxing")
|
|
|
|
with Files("test/unit/test_LaterRun.js"):
|
|
BUG_COMPONENT = ("Firefox", "Tours")
|
|
|
|
with Files("test/unit/test_SitePermissions.js"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("AboutNewTab.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "New Tab Page")
|
|
|
|
with Files("AsyncTabSwitcher.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
|
|
|
|
with Files("NewTabPagePreloading.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
|
|
|
|
with Files("BrowserWindowTracker.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "General")
|
|
|
|
with Files("*Telemetry.jsm"):
|
|
BUG_COMPONENT = ("Toolkit", "Telemetry")
|
|
|
|
with Files("ContentCrashHandlers.jsm"):
|
|
BUG_COMPONENT = ("Toolkit", "Crash Reporting")
|
|
|
|
with Files("EveryWindow.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "General")
|
|
|
|
with Files("ExtensionsUI.jsm"):
|
|
BUG_COMPONENT = ("WebExtensions", "General")
|
|
|
|
with Files("FeatureCallout.sys.mjs"):
|
|
BUG_COMPONENT = ("Firefox", "Messaging System")
|
|
|
|
with Files("LaterRun.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Tours")
|
|
|
|
with Files("LiveBookmarkMigrator.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "General")
|
|
|
|
with Files("OpenInTabsUtils.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
|
|
|
|
with Files("PartnerLinkAttribution.sys.mjs"):
|
|
BUG_COMPONENT = ("Firefox", "Search")
|
|
|
|
with Files("PermissionUI.sys.mjs"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("ProcessHangMonitor.jsm"):
|
|
BUG_COMPONENT = ("Core", "DOM: Content Processes")
|
|
|
|
with Files("Sanitizer.sys.mjs"):
|
|
BUG_COMPONENT = ("Toolkit", "Data Sanitization")
|
|
|
|
with Files("SelectionChangedMenulist.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Settings UI")
|
|
|
|
with Files("SiteDataManager.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Settings UI")
|
|
|
|
with Files("SitePermissions.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("TabsList.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
|
|
|
|
with Files("TransientPrefs.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Settings UI")
|
|
|
|
with Files("WindowsJumpLists.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Shell Integration")
|
|
SCHEDULES.exclusive = ["windows"]
|
|
|
|
with Files("WindowsPreviewPerTab.jsm"):
|
|
BUG_COMPONENT = ("Core", "Widget: Win32")
|
|
SCHEDULES.exclusive = ["windows"]
|
|
|
|
with Files("webrtcUI.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Site Permissions")
|
|
|
|
with Files("ZoomUI.jsm"):
|
|
BUG_COMPONENT = ("Firefox", "Toolbars and Customization")
|
|
|
|
BROWSER_CHROME_MANIFESTS += [
|
|
"test/browser/browser.ini",
|
|
"test/browser/formValidation/browser.ini",
|
|
]
|
|
XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.ini"]
|
|
|
|
EXTRA_JS_MODULES += [
|
|
"AboutNewTab.jsm",
|
|
"AsyncTabSwitcher.jsm",
|
|
"BrowserUIUtils.jsm",
|
|
"BrowserUsageTelemetry.jsm",
|
|
"BrowserWindowTracker.jsm",
|
|
"ContentCrashHandlers.jsm",
|
|
"Discovery.jsm",
|
|
"EveryWindow.jsm",
|
|
"ExtensionsUI.jsm",
|
|
"FaviconLoader.jsm",
|
|
"FeatureCallout.sys.mjs",
|
|
"HomePage.jsm",
|
|
"LaterRun.jsm",
|
|
"NewTabPagePreloading.jsm",
|
|
"OpenInTabsUtils.jsm",
|
|
"PageActions.jsm",
|
|
"PartnerLinkAttribution.sys.mjs",
|
|
"PermissionUI.sys.mjs",
|
|
"PingCentre.jsm",
|
|
"ProcessHangMonitor.jsm",
|
|
"Sanitizer.sys.mjs",
|
|
"SelectionChangedMenulist.jsm",
|
|
"SiteDataManager.jsm",
|
|
"SitePermissions.jsm",
|
|
"TabsList.jsm",
|
|
"TabUnloader.jsm",
|
|
"TransientPrefs.jsm",
|
|
"URILoadingHelper.sys.mjs",
|
|
"webrtcUI.jsm",
|
|
"ZoomUI.jsm",
|
|
]
|
|
|
|
if CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows":
|
|
EXTRA_JS_MODULES += [
|
|
"WindowsJumpLists.jsm",
|
|
"WindowsPreviewPerTab.jsm",
|
|
]
|
|
|
|
EXTRA_JS_MODULES.backgroundtasks += [
|
|
"BackgroundTask_uninstall.sys.mjs",
|
|
]
|