Name Description Size
data 34
head_e10s.js globals ExtensionTestUtils 215
head_native_messaging.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 4410
head_remote.js globals testEnv 232
head_sync.js exported withSyncContext 1781
head_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2876
head.js exported createHttpServer, cleanupDir, clearCache, promiseConsoleOutput, promiseQuotaManagerServiceReset, promiseQuotaManagerServiceClear, runWithPrefs, testEnv, withHandlingUserInput 7383
native_messaging.ini 377
test_csp_custom_policies.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2635
test_csp_validator.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3706
test_ext_activityLog.js 494
test_ext_adoption_with_xrays.js / 3495
test_ext_alarms_does_not_fire.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1040
test_ext_alarms_periodic.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1398
test_ext_alarms_replaces.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1728
test_ext_alarms.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 6527
test_ext_api_permissions.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1645
test_ext_background_api_injection.js 952
test_ext_background_early_shutdown.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 6610
test_ext_background_generated_load_events.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 751
test_ext_background_generated_reload.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 700
test_ext_background_global_history.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 685
test_ext_background_private_browsing.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1400
test_ext_background_runtime_connect_params.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2420
test_ext_background_sub_windows.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1268
test_ext_background_teardown.js 2536
test_ext_background_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2559
test_ext_background_window_properties.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1096
test_ext_brokenlinks.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1590
test_ext_browserSettings_homepage.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 935
test_ext_browserSettings.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 9461
test_ext_captivePortal_url.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 863
test_ext_captivePortal.js This duplicates the test from netwerk/test/unit/test_captive_portal_service.js however using an extension to gather the captive portal information. 3839
test_ext_content_security_policy.js Tests that content security policies for an add-on are actually applied to * documents that belong to it. This tests both the base policies and add-on specific policies, and ensures that the parsed policies applied to the document's principal match what was specified in the policy string. @param {object} [customCSP] 4988
test_ext_contentscript_about_blank_start.js 2166
test_ext_contentscript_api_injection.js 1824
test_ext_contentscript_async_loading.js 2268
test_ext_contentscript_canvas_tainting.js 3498
test_ext_contentscript_context_isolation.js globals exportFunction 4608
test_ext_contentscript_context.js eslint-disable mozilla/balanced-listeners 10385
test_ext_contentscript_create_iframe.js 4675
test_ext_contentscript_csp.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 10240
test_ext_contentscript_css.js 1230
test_ext_contentscript_exporthelpers.js globals exportFunction, precisePi, reportPi 2585
test_ext_contentscript_in_background.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1981
test_ext_contentscript_perf_observers.js 2208
test_ext_contentscript_restrictSchemes.js 1824
test_ext_contentscript_scriptCreated.js / 1585
test_ext_contentscript_teardown.js 2841
test_ext_contentscript_triggeringPrincipal.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 42439
test_ext_contentscript_xrays.js / 1474
test_ext_contentscript.js / 7474
test_ext_contentScripts_register.js /file_sample_registered_styles.html"]; browser.test.assertThrows( () => { browser.contentScripts.register({ matches, unknownParam: "unexpected property", }); }, /Unexpected property "unknownParam"/, "contentScripts.register throws on unexpected properties" ); let fileScript = await browser.contentScripts.register({ css: [{ file: "registered_ext_style.css" }], matches, runAt: "document_start", }); let textScript = await browser.contentScripts.register({ css: [{ code: cssCode }], matches, runAt: "document_start", }); browser.test.onMessage.addListener(async msg => { switch (msg) { case "unregister-text": await textScript.unregister().catch(err => { browser.test.fail( `Unexpected exception while unregistering text style: ${err}` ); }); await browser.test.assertRejects( textScript.unregister(), /Content script already unregistered/, "Got the expected rejection on calling script.unregister() multiple times" ); browser.test.sendMessage("unregister-text:done"); break; case "unregister-file": await fileScript.unregister().catch(err => { browser.test.fail( `Unexpected exception while unregistering url style: ${err}` ); }); await browser.test.assertRejects( fileScript.unregister(), /Content script already unregistered/, "Got the expected rejection on calling script.unregister() multiple times" ); browser.test.sendMessage("unregister-file:done"); break; default: browser.test.fail(`Unexpected test message received: ${msg}`); } }); browser.test.sendMessage("background_ready"); } let extension = ExtensionTestUtils.loadExtension({ manifest: { permissions: [ "http://localhost/ 17286
test_ext_contexts_gc.js / 8889
test_ext_contexts.js 5627
test_ext_contextual_identities.js 17467
test_ext_cookieBehaviors.js 19799
test_ext_cookies_samesite.js 3239
test_ext_debugging_utils.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 8011
test_ext_dns.js 3067
test_ext_downloads_download.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 17973
test_ext_downloads_misc.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 30676
test_ext_downloads_private.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 8299
test_ext_downloads_search.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 19809
test_ext_downloads_urlencoded.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 7173
test_ext_downloads.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1181
test_ext_error_location.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1341
test_ext_eventpage_warning.js 2380
test_ext_experiments.js globals browser 7600
test_ext_extension_content_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 4076
test_ext_extension_startup_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2300
test_ext_extension.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2447
test_ext_extensionPreferencesManager.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 18790
test_ext_extensionSettingsStore.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 26045
test_ext_geckoProfiler_control.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 7500
test_ext_geckoProfiler_schema.js 1606
test_ext_geturl.js 1710
test_ext_i18n_css.js / 5072
test_ext_i18n.js / 15704
test_ext_idle.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 7179
test_ext_incognito.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 8996
test_ext_indexedDB_principal.js 3451
test_ext_ipcBlob.js / 4436
test_ext_json_parser.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1032
test_ext_l10n.js 4443
test_ext_localStorage.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1398
test_ext_management_uninstall_self.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 4075
test_ext_management.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2271
test_ext_manifest_content_security_policy.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3717
test_ext_manifest_incognito.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1408
test_ext_manifest_minimum_chrome_version.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 419
test_ext_manifest_minimum_opera_version.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 417
test_ext_manifest_themes.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1058
test_ext_manifest.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2123
test_ext_MessageManagerProxy.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2962
test_ext_messaging_startup.js 7108
test_ext_native_messaging_perf.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3258
test_ext_native_messaging_unresponsive.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2044
test_ext_native_messaging.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 18838
test_ext_networkStatus.js 5343
test_ext_notifications_incognito.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3170
test_ext_notifications_unsupported.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1405
test_ext_onmessage_removelistener.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 903
test_ext_performance_counters.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2361
test_ext_permission_warnings.js ", "about:ugh", "about:*", "about:// 14163
test_ext_permission_xhr.js eslint-disable mozilla/balanced-listeners 6791
test_ext_permissions_uninstall.js 5012
test_ext_permissions.js 24589
test_ext_persistent_events.js global EventManager 16692
test_ext_privacy_disable.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 5302
test_ext_privacy_update.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 4333
test_ext_privacy.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 18828
test_ext_proxy_authorization_via_proxyinfo.js 3303
test_ext_proxy_config.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 14453
test_ext_proxy_onauthrequired.js 8621
test_ext_proxy_settings.js 2903
test_ext_proxy_socks.js globals TCPServerSocket 13888
test_ext_proxy_speculative.js 1305
test_ext_proxy_startup.js 4408
test_ext_redirects.js 17789
test_ext_runtime_connect_no_receiver.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 747
test_ext_runtime_getBrowserInfo.js 963
test_ext_runtime_getPlatformInfo.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 836
test_ext_runtime_id.js 1160
test_ext_runtime_onInstalled_and_onStartup.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 9529
test_ext_runtime_sendMessage_args.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3444
test_ext_runtime_sendMessage_errors.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2095
test_ext_runtime_sendMessage_no_receiver.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2176
test_ext_runtime_sendMessage_self.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1969
test_ext_runtime_sendMessage.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 8474
test_ext_same_site_cookies.js Description of the test: (1) We load an image from mochi.test which sets a same site cookie (2) We have the web extension perform an XHR request to mochi.test (3) We verify the web-extension can access the same-site cookie 3988
test_ext_sandbox_var.js 949
test_ext_schema.js 2185
test_ext_schemas_allowed_contexts.js 4921
test_ext_schemas_async.js 9181
test_ext_schemas_interactive.js globals ExtensionAPI 4324
test_ext_schemas_manifest_permissions.js 4807
test_ext_schemas_privileged.js 2283
test_ext_schemas_revoke.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 12279
test_ext_schemas_roots.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 5296
test_ext_schemas.js 50356
test_ext_shadowdom.js / 1623
test_ext_shutdown_cleanup.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 932
test_ext_simple.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1947
test_ext_startup_cache.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 3516
test_ext_startup_perf.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 1901
test_ext_startup_request_handler.js 1417
test_ext_startupData.js 1314
test_ext_storage_content.js Utility function to ensure that all supported APIs for getting are tested. @param {string} areaName either "local" or "sync" according to what we want to test @param {string} prop "key" to look up using the storage API @param {Object} value "value" to compare against 11047
test_ext_storage_idb_data_migration.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 22697
test_ext_storage_managed_policy.js 1520
test_ext_storage_managed.js 3501
test_ext_storage_quota_exceeded_errors.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2590
test_ext_storage_sync_crypto.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 3109
test_ext_storage_sync.js Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ 70279
test_ext_storage_tab.js 6985
test_ext_storage_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 7798
test_ext_storage.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 18161
test_ext_tab_teardown.js 3001
test_ext_telemetry.js 15464
test_ext_test_mock.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 2166
test_ext_test_wrapper.js 2035
test_ext_trustworthy_origin.js This test is asserting that moz-extension: URLs are recognized as trustworthy local origins 653
test_ext_unknown_permissions.js /", "chrome://favicon/", ], optional_permissions: ["chrome://favicon/", "https://example.com/"], }, }); let { messages } = await promiseConsoleOutput(() => extension.startup()); const { WebExtensionPolicy } = Cu.getGlobalForObject( ChromeUtils.import("resource://gre/modules/Extension.jsm", {}) ); let policy = WebExtensionPolicy.getByID(extension.id); Assert.deepEqual(Array.from(policy.permissions).sort(), [ "activeTab", "http:// 1598
test_ext_unlimitedStorage.js 4189
test_ext_unload_frame.js 7114
test_ext_userScripts_exports.js /file_sample.html"], scriptMetadata, }); if (messageListener) { browser.runtime.onMessage.addListener(messageListener); } browser.test.sendMessage("background-ready"); } function notifyFinish(failureReason) { browser.test.assertEq( undefined, failureReason, "should be completed without errors" ); browser.test.sendMessage("test_userScript_APIMethod:done"); } function assertTrue(val, message) { browser.test.assertTrue(val, message); if (!val) { browser.test.sendMessage("test_userScript_APIMethod:done"); throw message; } } let extension = ExtensionTestUtils.loadExtension({ manifest: { permissions: ["http://localhost/ 31588
test_ext_userScripts_telemetry.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 4920
test_ext_userScripts.js / 19129
test_ext_web_accessible_resources.js 4506
test_ext_webRequest_auth.js 12614
test_ext_webRequest_cached.js /file_sample.html?r=*"], }, ["blocking", "responseHeaders"] ); browser.webRequest.onResponseStarted.addListener( details => { let needle = details.fromCache ? testHeaders[1] : testHeaders[0]; let header = details.responseHeaders.filter(header => { browser.test.log(`header ${header.name} = ${header.value}`); return header.name == needle.name && header.value == needle.value; }); browser.test.assertEq( header.length, 1, "header exists with correct value" ); if (details.fromCache) { browser.test.sendMessage("from-cache"); } }, { urls: ["http://example.com/ 10047
test_ext_webRequest_filterResponseData.js 8154
test_ext_webRequest_host.js 2525
test_ext_webRequest_incognito.js 2453
test_ext_webRequest_permission.js globals content 4229
test_ext_webRequest_requestSize.js 1234
test_ext_webRequest_responseBody.js eslint-disable mozilla/no-arbitrary-setTimeout 16888
test_ext_webRequest_set_cookie.js Check that all the cookies described by `prefixes` are in the cookie jar. @param {Array.string} prefixes Zero or more prefixes, describing cookies that are expected to be set in the current cookie jar. Each prefix describes both a cookie name and corresponding value. For example, if the string "ext" is passed as an argument, then this function expects to see a cookie called "extcookie" and corresponding value of "extvalue". 10249
test_ext_webRequest_startup.js 5437
test_ext_webRequest_suspend.js 8039
test_ext_webRequest_urlclassification.js If this test fails, likely nsIClassifiedChannel has added or changed a CLASSIFIED_* flag. Those changes must be in sync with ChannelWrapper.webidl/cpp and the web_request.json schema file. 1128
test_ext_webRequest_userContextId.js 2102
test_ext_webRequest_webSocket.js 1481
test_ext_xhr_capabilities.js 1987
test_load_all_api_modules.js 4945
test_locale_converter.js 4087
test_locale_data.js 5447
test_MatchPattern.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 17236
test_native_manifests.js 12226
test_proxy_incognito.js eslint no-unused-vars: ["error", {"args": "none", "varsIgnorePattern": "^(FindProxyForURL)$"}] 3304
test_proxy_info_results.js 9915
test_proxy_listener.js 8299
test_proxy_userContextId.js 2168
test_WebExtensionContentScript.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 5447
test_WebExtensionPolicy.js -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- 9260
test_webRequest_ancestors.js 1972
test_webRequest_cookies.js 2481
test_webRequest_filtering.js 3142
xpcshell-common.ini 7864
xpcshell-content.ini 602
xpcshell-e10s.ini 261
xpcshell-remote.ini 454
xpcshell.ini 2761
.eslintrc.js 209