[DEFAULT]
support-files = [
  "head.js",
  "subtst_contextmenu_webext.html",
  "test_contextmenu_links.html",
  "subtst_contextmenu.html",
  "subtst_contextmenu_input.html",
  "subtst_contextmenu_add_search_engine.html",
  "subtst_contextmenu_xul.xhtml",
  "ctxmenu-image.png",
  "../general/head.js",
  "../general/audio.ogg",
  "../../../../../toolkit/components/pdfjs/test/file_pdfjs_test.pdf",
  "contextmenu_common.js",
  "file_bug1798178.html",
  "bug1798178.sjs",
]
tags = "os_integration"

["browser_bug1798178.js"]

["browser_contextmenu.js"]
support-files = [ "../general/video.webm"  ]
tags = "fullscreen"
skip-if = [
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
  "os == 'mac' && os_version == '10.15' && arch == 'x86_64' && opt", # Bug 1853186
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64' && opt", # Bug 1853186
]

["browser_contextmenu_add_search_engine.js"]
support-files = ["subtst_contextmenu_add_search_engine.html"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'", # disabled on Linux due to bug 513558
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'", # disabled on Linux due to bug 513558
]

["browser_contextmenu_badiframe.js"]
https_first_disabled = true
skip-if = [
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
  "os == 'win'", # Bug 1719856
]

["browser_contextmenu_blocked_image_protocols.js"]
support-files = ["file_blocked_image_protocols.html"]

["browser_contextmenu_bookmark_link_text.js"]
skip-if = [
  "os == 'mac' && os_version == '15.30' && arch == 'aarch64'", # Bug 2019466
]

["browser_contextmenu_chrome_images.js"]

["browser_contextmenu_contenteditable.js"]

["browser_contextmenu_cross_boundary_selection.js"]

["browser_contextmenu_iframe.js"]
support-files = ["test_contextmenu_iframe.html"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_contextmenu_input.js"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
]

["browser_contextmenu_inspect.js"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_contextmenu_linkopen.js"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_contextmenu_loadblobinnewtab.js"]
support-files = ["browser_contextmenu_loadblobinnewtab.html"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_contextmenu_plaintextlinks.js"]
skip-if = [
  "a11y_checks", # Bugs 1858041 and 1835079 for causing intermittent crashes
]

["browser_contextmenu_save_blocked.js"]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_contextmenu_share_linux.js"]
support-files = ["browser_contextmenu_shareurl.html"]
run-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
]

["browser_contextmenu_share_macosx.js"]
https_first_disabled = true
support-files = ["browser_contextmenu_shareurl.html"]
run-if = [
  "os == 'mac'",
]

["browser_contextmenu_share_win.js"]
https_first_disabled = true
support-files = ["browser_contextmenu_shareurl.html"]
run-if = [
  "os == 'win'",
]

["browser_contextmenu_spellcheck.js"]
https_first_disabled = true
skip-if = [
  "debug", # bug 1798233 - this trips assertions that seem harmless in opt and unlikely to occur in practical use.
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland'",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11'",
]

["browser_contextmenu_touch.js"]
skip-if = [
  "true", # Bug 1424433, disable due to very high frequency failure rate also on Windows 10
]

["browser_copy_canvas_image.js"]
skip-if = [
  "headless", # HeadlessClipboard only supports text/plain and text/html
]

["browser_copy_image_link.js"]
support-files = [
  "doggy.png",
  "firebird.png",
  "firebird.png^headers^",
]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_copy_link_to_highlight.js"]

["browser_copy_link_to_highlight_viewsource.js"]

["browser_save_image.js"]

["browser_strip_on_share_link.js"]

["browser_strip_on_share_nested_link.js"]

["browser_utilityOverlay.js"]
https_first_disabled = true
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]

["browser_utilityOverlayPrincipal.js"]
https_first_disabled = true

["browser_view_image.js"]
support-files = [
  "test_view_image_revoked_cached_blob.html",
  "test_view_image_inline_svg.html",
]
skip-if = [
  "os == 'linux' && os_version == '22.04' && arch == 'x86_64' && display == 'wayland' && socketprocess_networking",
  "os == 'linux' && os_version == '24.04' && arch == 'x86_64' && display == 'x11' && socketprocess_networking",
]
