[DEFAULT]
scheme = "https"
support-files = [
  "MockAlertsService.js",
  "NotificationTest.js",
]
prefs = [
  "dom.webnotifications.actions.enabled=true",
]

["test_notification_basics.html"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Bug 1792790
]

["test_notification_browser_failure.html"]
support-files = ["notification_empty_sw.js"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Bug 1792790
]

["test_notification_cleanup.html"]
support-files = ["notification_empty_sw.js"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Bug 1792790
]

["test_notification_crossorigin_iframe.html"]
support-files = ["blank.html"]

["test_notification_crossorigin_iframe_nested_glean.html"]
support-files = ["blank.html"]

["test_notification_image.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = ["file_pink.gif"]

["test_notification_insecure_context.html"]
# This test needs to be run on HTTP (not HTTPS).
skip-if = [
  "http2",
  "http3",
]
scheme = "http"

["test_notification_permissions.html"]
support-files = ["blank.html"]

["test_notification_serviceworker_constructor_error.html"]
support-files = ["notification_constructor_error.js"]

["test_notification_serviceworker_get.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notification_get_sw.js",
  "notification/register.html",
]

["test_notification_serviceworker_openWindow.html"]
skip-if = [
  "http2",
  "http3",
  "xorigin", # JavaScript error: http://mochi.xorigin-test:8888/tests/SimpleTest/TestRunner.js, line 157: SecurityError: Permission denied to access property "wrappedJSObject" on cross-origin object
]
support-files = [
  "notification_openWindow.serviceworker.js",
  "file_notification_openWindow.html",
  "!/dom/serviceworkers/test/utils.js",
]
tags = "openwindow"

["test_notification_serviceworker_openWindow_nested.html"]
skip-if = [
  "condprof", # timed out
  "http2",
  "http3",
  "xorigin", # Bug 1792790
]
support-files = [
  "openWindow.serviceworker.js",
  "open_window/client.sjs",
  "redirect.sjs",
  "!/dom/serviceworkers/test/utils.js",
]
tags = "openwindow"

["test_notification_serviceworker_show.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notification_show_sw.js",
]

["test_notification_swr_worker_show.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notification_empty_sw.js",
  "notification_show_dedicated.js",
]

["test_notification_tag.html"]
skip-if = [
  "http2",
  "http3",
]
support-files = ["create_notification.html"]

["test_notification_worker.html"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Third-party notifications are forbidden
]
support-files = ["notification_worker.js"]

["test_notification_worker_child.html"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Third-party notifications are forbidden
]
support-files = [
  "notification_worker_child-child.js",
  "notification_worker_child-parent.js",
]

["test_notification_worker_click.html"]
skip-if = [
  "os == 'android'", # Bug 1948752, Notification.onshow/close are broken on Android
  "xorigin", # Third-party notifications are forbidden
]

["test_notification_worker_permission.html"]
support-files = ["notification_permission_worker.js"]

["test_notificationclick.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notificationclick.html",
  "notificationclick.serviceworker.js",
  "!/dom/serviceworkers/test/utils.js",
]

["test_notificationclick_focus.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notificationclick_focus.html",
  "notificationclick_focus.serviceworker.js",
  "!/dom/serviceworkers/test/utils.js",
]

["test_notificationclick_otherwindow.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "notificationclick-otherwindow.html",
  "notificationclick.serviceworker.js",
  "!/dom/serviceworkers/test/utils.js",
]

["test_notificationclose.html"]
skip-if = [
  "xorigin", # Bug 1792790
]
support-files = [
  "blank.html",
  "notificationclose.html",
  "notificationclose.serviceworker.js",
  "!/dom/serviceworkers/test/utils.js",
]
