# 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("AboutNewTab*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "New Tab Page")

with Files("AboutPrivateBrowsing*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Private Browsing")

with Files("AboutProtections*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Protections UI")

with Files("AboutReader*.sys.mjs"):
    BUG_COMPONENT = ("Toolkit", "Reader Mode")

with Files("AboutTabCrashed*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Session Restore")

with Files("BlockedSite*.sys.mjs"):
    BUG_COMPONENT = ("Toolkit", "Safe Browsing")

with Files("BrowserProcessChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "General")

with Files("BrowserTabChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "General")

with Files("ClickHandler*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Tabbed Browser")

with Files("ContentSearch*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Search")

with Files("ContextMenu*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Menus")

with Files("DecoderDoctor*.sys.mjs"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("DOMFullscreen*.sys.mjs"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

with Files("EncryptedMedia*.sys.mjs"):
    BUG_COMPONENT = ("Core", "Audio/Video: Playback")

with Files("FormValidation*.sys.mjs"):
    BUG_COMPONENT = ("Core", "DOM: Core & HTML")

with Files("LightweightThemeChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Theme")

with Files("LinkHandler*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Tabbed Browser")

with Files("PageInfo*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Page Info Window")

with Files("PageStyle*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Menus")

with Files("Plugin*.sys.mjs"):
    BUG_COMPONENT = ("Core", "Audio/Video: GMP")

with Files("PointerLock*.sys.mjs"):
    BUG_COMPONENT = ("Core", "DOM: UI Events & Focus Handling")

with Files("PromptParent.sys.mjs"):
    BUG_COMPONENT = ("Toolkit", "Content Prompts")

with Files("RefreshBlocker*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Security")

with Files("ScreenshotsComponentChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Screenshots")

with Files("SearchSERPTelemetry*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Search")

with Files("SpeechDispatcher*.sys.mjs"):
    BUG_COMPONENT = ("Core", "Web Speech")

with Files("SwitchDocumentDirectionChild.sys.mjs"):
    BUG_COMPONENT = ("Core", "Internationalization")

with Files("Urlbar*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Address Bar")

with Files("TLSCertificateBindingChild.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Security")

with Files("WebRTC*.sys.mjs"):
    BUG_COMPONENT = ("Firefox", "Site Permissions")

FINAL_TARGET_FILES.actors += [
    "AboutNewTabChild.sys.mjs",
    "AboutNewTabParent.sys.mjs",
    "AboutPrivateBrowsingChild.sys.mjs",
    "AboutPrivateBrowsingParent.sys.mjs",
    "AboutProtectionsChild.sys.mjs",
    "AboutProtectionsParent.sys.mjs",
    "AboutReaderChild.sys.mjs",
    "AboutReaderParent.sys.mjs",
    "AboutTabCrashedChild.sys.mjs",
    "AboutTabCrashedParent.sys.mjs",
    "BlockedSiteChild.sys.mjs",
    "BlockedSiteParent.sys.mjs",
    "BrowserProcessChild.sys.mjs",
    "BrowserTabChild.sys.mjs",
    "ClickHandlerChild.sys.mjs",
    "ClickHandlerParent.sys.mjs",
    "ContentSearchChild.sys.mjs",
    "ContentSearchParent.sys.mjs",
    "ContextMenuChild.sys.mjs",
    "ContextMenuParent.sys.mjs",
    "DecoderDoctorChild.sys.mjs",
    "DecoderDoctorParent.sys.mjs",
    "DOMFullscreenChild.sys.mjs",
    "DOMFullscreenParent.sys.mjs",
    "EncryptedMediaChild.sys.mjs",
    "EncryptedMediaParent.sys.mjs",
    "FormValidationChild.sys.mjs",
    "FormValidationParent.sys.mjs",
    "LightweightThemeChild.sys.mjs",
    "LinkHandlerChild.sys.mjs",
    "LinkHandlerParent.sys.mjs",
    "PageInfoChild.sys.mjs",
    "PageInfoPreviewChild.sys.mjs",
    "PageStyleChild.sys.mjs",
    "PageStyleParent.sys.mjs",
    "PluginChild.sys.mjs",
    "PluginParent.sys.mjs",
    "PointerLockChild.sys.mjs",
    "PointerLockParent.sys.mjs",
    "PromptParent.sys.mjs",
    "RefreshBlockerChild.sys.mjs",
    "RefreshBlockerParent.sys.mjs",
    "ScreenshotsComponentChild.sys.mjs",
    "SearchSERPTelemetryChild.sys.mjs",
    "SearchSERPTelemetryParent.sys.mjs",
    "SpeechDispatcherChild.sys.mjs",
    "SpeechDispatcherParent.sys.mjs",
    "SwitchDocumentDirectionChild.sys.mjs",
    "ThemePickerChild.sys.mjs",
    "ThemePickerParent.sys.mjs",
    "UrlbarChild.sys.mjs",
    "UrlbarParent.sys.mjs",
    "WebRTCChild.sys.mjs",
    "WebRTCParent.sys.mjs",
]

BROWSER_CHROME_MANIFESTS += [
    "test/browser/browser.toml",
]
