gecko-dev/js/xpconnect/tests/unit
Boris Zbarsky c912aa08f4 Bug 1617527. Remove the same-compartment checks when setting an exception on a JSContext r=sfink
The exception is not guaranteed to be in the context compartment anyway (e.g. changing the compartment does not wrap the exception), so there isn't much point checking it up front.  And the exception stack is always stored as an unwrapped object, so again there's no point checking it on set, since we just plan to UncheckedUnwrap it.

Differential Revision: https://phabricator.services.mozilla.com/D64004

--HG--
extra : moz-landing-system : lando
2020-02-26 21:17:15 +00:00
..
CatRegistrationComponents.manifest
bogus_element_type.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
bogus_exports_type.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
bug451678_subscript.js
component-blob.js Bug 1526382 - Part 2: Make nsIClassInfo use Array<nsIIDRef> for 'interfaces', r=mccr8 2019-02-13 21:42:08 +00:00
component-blob.manifest
component-file.js Bug 1526382 - Part 2: Make nsIClassInfo use Array<nsIIDRef> for 'interfaces', r=mccr8 2019-02-13 21:42:08 +00:00
component-file.manifest
component_import.js Bug 1526382 - Part 2: Make nsIClassInfo use Array<nsIIDRef> for 'interfaces', r=mccr8 2019-02-13 21:42:08 +00:00
component_import.manifest
environment_checkscript.jsm
environment_loadscript.jsm Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
environment_script.js
file_simple_script.js
head_ongc.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
head_watchdog.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
importer.jsm Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
recursive_importA.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
recursive_importB.jsm Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBOLS in JS modules, r=mccr8. 2018-02-23 20:50:01 +01:00
syntax_error.jsm
test_ComponentEnvironment.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_FrameScriptEnvironment.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_SubscriptLoaderEnvironment.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_SubscriptLoaderJSMEnvironment.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_SubscriptLoaderSandboxEnvironment.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_URLSearchParams.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_allowWaivers.js Bug 1458235 - Fix various cases where Assert.ok or Assert.equal have been called wrongly. r=Gijs 2018-05-01 22:15:43 +01:00
test_allowedDomains.js Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag 2018-03-28 22:46:22 -04:00
test_allowedDomainsXHR.js Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
test_attributes.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_blob.js Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
test_blob2.js Bug 1462964: Remove obsolete nsIDOMBlob interface. r=bz 2018-05-21 17:32:44 -07:00
test_bogus_files.js Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
test_bug267645.js Bug 267645 part 2. Sanitize exceptions from exported functions. r=xeonchen,bholley 2020-02-22 05:01:59 +00:00
test_bug408412.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug451678.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug604362.js Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
test_bug677864.js Bug 1477432 - Part 8: Remove test-only Components.classesById and Components.interfacesById, r=mccr8 2018-11-16 17:27:42 -05:00
test_bug711404.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug742444.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug778409.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug780370.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug809652.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug809674.js Bug 1475699 - Support invoking JS-implemented XPIDL methods/attributes marked as [implicit_jscontext]. r=mccr8 2018-07-17 18:11:03 +02:00
test_bug813901.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug845201.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug845862.js Bug 1491488 - Stop waiving the return value of the Sandbox constructor when wantXrays is false. r=kmag 2018-09-17 09:25:02 -07:00
test_bug849730.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug851895.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug853709.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug854558.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug856067.js Bug 1505511 - Part 3: Support WeakMap and WeakSet in Xray. r=bholley 2018-11-20 20:21:32 +09:00
test_bug867486.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug868675.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug872772.js Bug 1448735. Stop exposing Components in expanded principal sandboxes. r=kmag 2018-03-26 13:35:05 -04:00
test_bug885800.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug930091.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug976151.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1001094.js Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
test_bug1021312.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1033253.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1033920.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1033927.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1034262.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1081990.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1082450.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1110546.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1131707.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1150771.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1151385.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug1170311.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1244222.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_bug1617527.js Bug 1617527. Remove the same-compartment checks when setting an exception on a JSContext r=sfink 2020-02-26 21:17:15 +00:00
test_bug_442086.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_callFunctionWithAsyncStack.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_cenums.js Bug 1498059 - Tests for CEnums in XPIDL; r=nika,froydnj 2018-11-06 00:05:44 +00:00
test_compileScript.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_components.js Bug 1389581 part 1. Remove the DOM_OBJECT flag from various Components classinfo. r=kmag 2018-03-28 22:46:22 -04:00
test_crypto.js Bug 1333140 - Require SecureContext for WebCrypto r=bholley,keeler,baku 2020-02-11 09:25:09 +00:00
test_css.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_deepFreezeClone.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_defineModuleGetter.js Bug 1431533: Part 2 - Add ChromeUtils.defineModuleGetter helper. r=bz 2018-01-17 19:20:16 -08:00
test_exportFunction.js Bug 1458235 - Fix various cases where Assert.ok or Assert.equal have been called wrongly. r=Gijs 2018-05-01 22:15:43 +01:00
test_file.js Bug 1433175 - more aggressive scripted patch to replace remaining Components.classes, Components.interfaces, Components.utils and Components.results uses with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:35 +01:00
test_file2.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_fileReader.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_function_names.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_generateQI.js Bug 1477432 - Part 2: Avoid using nsIJSID in GenerateQI, and produce better diagnostics, r=kmag 2018-11-16 17:27:31 -05:00
test_getCallerLocation.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_getObjectPrincipal.js Bug 1517483 - Get rid of nsIScriptSecurityManager::IsSystemPrincipal r=bzbarsky 2019-03-24 20:36:25 +00:00
test_import.js Bug 1536744 - Fix test_import.js by calling nsIIOService.newURI instead of nsIResProtocolHandler.newURI r=baku 2019-05-28 13:51:18 +00:00
test_import_fail.js Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
test_isModuleLoaded.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_isProxy.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_js_memory_telemetry.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_js_weak_references.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_lazyproxy.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_localeCompare.js Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
test_messageChannel.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_nuke_sandbox.js Bug 1484466: Part 3a - Update remaining XPCOMUtils.generateQI callers to use ChromeUtils. r=mccr8 2018-08-18 12:44:57 -07:00
test_nuke_sandbox_event_listeners.js Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
test_nuke_webextension_wrappers.js Bug 1560455 - rename CodebasePrincipal to ContentPrincipal. r=ckerschb 2019-07-08 16:37:45 +00:00
test_onGarbageCollection-01.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_onGarbageCollection-02.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_onGarbageCollection-03.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_onGarbageCollection-04.js Bug 1564168 - [jsdbg2] Debugger.prototype.enabled should be removed. 2019-08-19 21:47:05 +00:00
test_onGarbageCollection-05.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_params.js Bug 1551124. Add support for optional Array arguments in xpconnect. r=nika 2019-05-13 19:51:57 +00:00
test_promise.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_recursive_import.js Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian 2018-01-29 15:20:18 -08:00
test_reflect_parse.js Bug 1421992 - script-generated patch to replace do_check_* functions with their Assert.* equivalents, rs=Gijs. 2017-12-21 11:08:17 +01:00
test_resolve_dead_promise.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_returncode.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_rewrap_dead_wrapper.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_rtcIdentityProvider.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_sandbox_DOMException.js Bug 267645 part 1. Add a way to ask for DOMException to be exposed in sandboxes. r=bholley 2020-02-22 04:56:52 +00:00
test_sandbox_atob.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_sandbox_metadata.js Bug 1445551: Part 4 - Remove compartment-per-addon. r=mccr8 2018-03-13 19:43:30 -07:00
test_sandbox_name.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_subScriptLoader.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_tearoffs.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_textDecoder.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_uawidget_scope.js Bug 1588356 - Store the underlying sandbox object instead of a wrapper to UAWidgetScopeMap; r=bholley 2019-10-25 23:34:29 +00:00
test_uninitialized_lexical.js Bug 1604429 - Check for the uninitialized-lexical MagicValue in the component loader. r=kmag 2019-12-18 19:02:01 +00:00
test_unload.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_url.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_want_components.js Bug 1433175 - remove by hands some variations of Cc,Ci,Cu definitions, r=Standard8. 2018-02-28 18:51:34 +01:00
test_watchdog_default.js Bug 1447856 - Make the watchdog tests actually wait for completion. r=arai 2018-07-07 07:20:50 +00:00
test_watchdog_disable.js Bug 1447856 - Make the watchdog tests actually wait for completion. r=arai 2018-07-07 07:20:50 +00:00
test_watchdog_enable.js Bug 1447856 - Make the watchdog tests actually wait for completion. r=arai 2018-07-07 07:20:50 +00:00
test_watchdog_hibernate.js Bug 1571656 - Use Assert.jsm numeric comparison functions in tests r=mixedpuppy,MattN 2019-11-18 13:03:58 +00:00
test_watchdog_toggle.js Bug 1447856 - Make the watchdog tests actually wait for completion. r=arai 2018-07-07 07:20:50 +00:00
test_weak_keys.js Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_wrapped_js_enumerator.js Bug 1489532: Check for nsISimpleEnumerator wrapper before searching existing tear-offs. r=mccr8 2018-09-07 15:17:56 -07:00
test_xpcomutils.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_xpcwn_tamperproof.js Bug 1491560 - Remove the XPCOM registration for nsCommandLine; r=mccr8 2018-09-15 12:16:39 -04:00
test_xray_SavedFrame-02.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_xray_SavedFrame.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_xray_instanceof.js Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku 2019-06-12 09:07:33 +00:00
test_xray_named_element_access.js Bug 1557887 - Part 6: Pass a storage principal to the rest of the call sites for createAboutBlankContentViewer(); r=baku 2019-06-12 09:07:33 +00:00
test_xray_regexp.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_xrayed_arguments.js Bug 1453057 - Make Xrays to Arguments objects work correctly. r=bzbarsky 2018-09-14 16:14:49 +00:00
test_xrayed_iterator.js Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
uninitialized_lexical.jsm Bug 1604429 - Check for the uninitialized-lexical MagicValue in the component loader. r=kmag 2019-12-18 19:02:01 +00:00
xpcshell.ini Bug 1617527. Remove the same-compartment checks when setting an exception on a JSContext r=sfink 2020-02-26 21:17:15 +00:00