gecko-dev/dom/bindings/test
Boris Zbarsky a6fdc48869 Bug 1436276. Bindings should create their return promises in the current compartment even when called over Xrays. r=bholley
These are cases that are implementing the "convert an exception to a Promise"
steps of the Web IDL spec.  Typically the exception is thrown in the current
compartment; the Promise returned should simply match that.  Otherwise we can
end up with a situation in which the promise doesn't actaully have access to
its rejection value, which will cause problems if someone uses then() on the
promise: the return value of the then() call will get a sanitized exception
instead of the real one.

We _could_ try to match the actual compartment of the exception, in theory.
But it's not clear why this would be preferable to using the current
compartment, even if there were cases in which the exception _doesn't_ match
the current compartment.  Which there likely are not.

MozReview-Commit-ID: Ac2BHIHxfvY

--HG--
rename : dom/promise/tests/test_promise_argument.html => dom/promise/tests/test_promise_retval.html
rename : dom/promise/tests/test_promise_argument_xrays.html => dom/promise/tests/test_promise_retval_xrays.html
2018-02-10 01:34:10 -05:00
..
chrome.ini Bug 1383876 - Part 4: Remove even more tests which no longer work, r=freesamael, r=smaug 2018-01-12 17:52:58 -05:00
file_barewordGetsWindow_frame1.html Bug 1366695: Convert dom/bindings/test/test_barewordGetsWindow.html to comply with new data: URI inheritance model. r=smaug 2017-08-03 21:00:41 +02:00
file_barewordGetsWindow_frame2.html Bug 1366695: Convert dom/bindings/test/test_barewordGetsWindow.html to comply with new data: URI inheritance model. r=smaug 2017-08-03 21:00:41 +02:00
file_bug775543.html
file_document_location_set_via_xray.html
file_dom_xrays.html
file_InstanceOf.html
file_proxies_via_xray.html
forOf_iframe.html
Makefile.in Bug 1335796 - Move WebIDL parser tests out of 'make check'; r=dustin,Ms2ger 2017-01-31 19:08:50 -05:00
mochitest.ini Bug 1424362. Change test_exceptionSanitization.html to not depend on feed: protocol bits, because those are going away. r=qdot 2017-12-08 22:01:16 -05:00
moz.build Bug 1424362. Change test_exceptionSanitization.html to not depend on feed: protocol bits, because those are going away. r=qdot 2017-12-08 22:01:16 -05:00
mozITestInterfaceJS.idl Bug 1424362. Change test_exceptionSanitization.html to not depend on feed: protocol bits, because those are going away. r=qdot 2017-12-08 22:01:16 -05:00
test_async_stacks.html Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_barewordGetsWindow.html Bug 1366695: Convert dom/bindings/test/test_barewordGetsWindow.html to comply with new data: URI inheritance model. r=smaug 2017-08-03 21:00:41 +02:00
test_bug560072.html Bug 1276438 part 4. Move the .body getter from HTMLDocument to Document. r=mystor 2018-01-26 00:53:34 -05:00
test_bug742191.html
test_bug759621.html
test_bug773326.html
test_bug775543.html
test_bug788369.html
test_bug852846.html
test_bug862092.html
test_bug963382.html
test_bug1036214.html Bug 1330699 part 10. Rename the MozMap C++ type to "record" and give it a template parameter for the key type. r=qdot 2017-02-15 00:01:35 -05:00
test_bug1041646.html
test_bug1123516_maplikesetlike.html
test_bug1123516_maplikesetlikechrome.xul Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_bug1123875.html
test_bug1287912.html
test_ByteString.html
test_callback_across_document_open.html
test_callback_default_thisval.html
test_callback_exceptions.html
test_cloneAndImportNode.html
test_crossOriginWindowSymbolAccess.html Bug 1335654 part 3. Implement actually throwing a SecurityError when cross-origin property accesses are denied. r=bholley 2017-02-02 12:48:49 -05:00
test_defineProperty.html
test_document_location_set_via_xray.html
test_document_location_via_xray_cached.html
test_dom_xrays.html Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
test_domProxyArrayLengthGetter.html
test_enums.html
test_exception_messages.html Bug 1336018 - Get rid of objectURLOptions dictionary in URL.createObjectURL, r=smaug 2017-02-03 08:28:52 +01:00
test_exception_options_from_jsimplemented.html
test_exceptions_from_jsimplemented.html
test_exceptionSanitization.html Bug 1424362. Change test_exceptionSanitization.html to not depend on feed: protocol bits, because those are going away. r=qdot 2017-12-08 22:01:16 -05:00
test_exceptionThrowing.html
test_forOf.html
test_InstanceOf.html
test_integers.html
test_interfaceName.html
test_interfaceToString.html
test_iterable.html
test_jsimplemented_eventhandler.html
test_jsimplemented_subclassing.html Bug 1400275. Ensure we create reflectors for JS-implemented webidl interfaces with the right prototype when those interfaces are subclassed. r=qdot 2017-09-15 23:45:06 -04:00
test_lenientThis.html
test_lookupGetter.html
test_named_getter_enumerability.html
test_namedNoIndexed.html
test_Object.prototype_props.html Bug 638054 - Remove or fix tests outside JS using watch/unwatch. r=bz,fitzgen 2017-10-24 20:48:14 +02:00
test_oom_reporting.html
test_primitive_this.html
test_promise_rejections_from_jsimplemented.html
test_proxies_via_xray.html
test_proxy_expandos.html Bug 1133423 - Optimize sets of expando properties and expando setter calls on DOM proxies. r=evilpie 2017-03-22 09:08:08 +01:00
test_queryInterface.html
test_returnUnion.html
test_sequence_detection.html
test_sequence_wrapping.html
test_setWithNamedGetterNoNamedSetter.html
test_stringBindings.html Bug 1334537. Make sure to clear out our external string cache if the length doesn't match, since our length no longer needs to match our stringbuffer. r=froydnj 2017-02-01 15:29:47 -05:00
test_throwing_method_noDCE.html
test_traceProtos.html
test_treat_non_object_as_null.html
test_unforgeablesonexpando.html
test_usvstring.html
test_worker_UnwrapArg.html
TestBindingHeader.h Bug 1424474 part 2. Add a way to request only non-system subject principals in webidl bindings. r=mystor 2017-12-20 17:43:18 -05:00
TestCImplementedInterface.h
TestCodeGen.webidl Bug 1383876 - Part 1: Remove GroupedSHistory and Prerendering logic from C++ code, r=freesamael, r=smaug 2018-01-12 17:52:52 -05:00
TestDictionary.webidl
TestExampleGen.webidl Bug 1424474 part 2. Add a way to request only non-system subject principals in webidl bindings. r=mystor 2017-12-20 17:43:18 -05:00
TestFunctions.cpp Bug 1436276. Bindings should create their return promises in the current compartment even when called over Xrays. r=bholley 2018-02-10 01:34:10 -05:00
TestFunctions.h Bug 1436276. Bindings should create their return promises in the current compartment even when called over Xrays. r=bholley 2018-02-10 01:34:10 -05:00
TestInterfaceIterableDouble.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceIterableDouble.h Bug 1417365 - Unified build issues in dom/bindings. r=baku 2017-10-26 11:12:44 +01:00
TestInterfaceIterableDoubleUnion.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceIterableDoubleUnion.h Bug 1417365 - Unified build issues in dom/bindings. r=baku 2017-10-26 11:12:44 +01:00
TestInterfaceIterableSingle.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceIterableSingle.h Bug 1417365 - Unified build issues in dom/bindings. r=baku 2017-10-26 11:12:44 +01:00
TestInterfaceJS.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
TestInterfaceJS.manifest
TestInterfaceJSMaplike.js Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian 2018-02-06 09:36:57 -08:00
TestInterfaceMaplike.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceMaplike.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceMaplikeObject.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceMaplikeObject.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceSetlike.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceSetlike.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceSetlikeNode.cpp Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestInterfaceSetlikeNode.h Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot 2017-10-26 15:08:41 -07:00
TestJSImplGen.webidl Bug 792059 - Add NeedsWindowsUndef extended attribute for constants; r=bz 2017-10-23 17:34:28 -07:00
TestJSImplInheritanceGen.webidl
TestTypedef.webidl