gecko-dev/dom/bindings/test
Boris Zbarsky f771d7e529 Bug 1477923. Make WebIDL callbacks store a global in addition to the object that's used as a callback. r=mccr8
We want to be able to enter the Realm we were in when the callback was created
before calling it, but if the callback stores a cross-compartment wrapper we
don't really have a good way to find that Realm.  So we store it explicitly by
storing a global when the callback is created.

The changes to the constructor signatures to use JSObject* instead of
JS::Handle<JSObject*> are so we can avoid having to root the global for these
calls.  These changes make two of the constructors ambiguous when nullptr is
being passed for the first arg; this patch adds casts to disambiguate.
2018-08-03 17:11:39 -04:00
..
Makefile.in
TestBindingHeader.h Bug 1375829 part 5. Switch from using "jsonifier" syntax to the spec's "[Default] toJSON" syntax. r=qdot 2018-05-17 23:43:59 -04:00
TestCImplementedInterface.h Bug 1477923. Make WebIDL callbacks store a global in addition to the object that's used as a callback. r=mccr8 2018-08-03 17:11:39 -04:00
TestCodeGen.webidl Bug 1375829 part 5. Switch from using "jsonifier" syntax to the spec's "[Default] toJSON" syntax. r=qdot 2018-05-17 23:43:59 -04:00
TestDictionary.webidl
TestExampleGen.webidl Bug 1375829 part 5. Switch from using "jsonifier" syntax to the spec's "[Default] toJSON" syntax. r=qdot 2018-05-17 23:43:59 -04:00
TestFunctions.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -07:00
TestFunctions.h Bug 1465602 part 2. Fix the interaction of default toJSON with Func-controlled exposure that examines the object's global. r=qdot 2018-06-01 12:17:10 -04:00
TestInterfaceIterableDouble.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1473492 part 2. Disallow [Cached] on JS-implemented interfaces. r=mccr8 2018-07-06 11:43:12 -07:00
TestInterfaceJS.manifest
TestInterfaceJSMaplike.js Bug 1456035: Part 4 - Convert callers of XPCOMUtils.generateQI to ChromeUtils.generateQI. r=mccr8 2018-04-22 20:55:06 -07:00
TestInterfaceMaplike.cpp Bug 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1470325 - s/FooBinding/Foo_Binding/g - r=qdot 2018-06-26 17:05:01 -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 1473492 part 2. Disallow [Cached] on JS-implemented interfaces. r=mccr8 2018-07-06 11:43:12 -07:00
TestJSImplInheritanceGen.webidl
TestTypedef.webidl
chrome.ini Bug 1457051. The WebIDL isInstance should be a pure brand check, not an instanceof-like check. r=qdot 2018-04-26 01:38:07 -04:00
file_InstanceOf.html
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_proxies_via_xray.html
forOf_iframe.html
mochitest.ini Bug 1473492 part 1. Remove support for clearing cached attributes on JS-implemented webidl object. r=mccr8 2018-07-06 11:43:12 -07: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_ByteString.html
test_InstanceOf.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_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_bug1036214.html Bug 1473492 part 2. Disallow [Cached] on JS-implemented interfaces. r=mccr8 2018-07-06 11:43:12 -07:00
test_bug1041646.html
test_bug1123516_maplikesetlike.html
test_bug1123516_maplikesetlikechrome.xul 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_bug1123875.html
test_bug1287912.html
test_bug1457051.html Bug 1457051. The WebIDL isInstance should be a pure brand check, not an instanceof-like check. r=qdot 2018-04-26 01:38:07 -04:00
test_callback_across_document_open.html
test_callback_default_thisval.html
test_callback_exceptions.html
test_cloneAndImportNode.html
test_crossOriginWindowSymbolAccess.html
test_defineProperty.html
test_document_location_set_via_xray.html
test_document_location_via_xray_cached.html
test_domProxyArrayLengthGetter.html
test_dom_xrays.html Bug 1467870. When cloning Xray expando chains for an adopt into the Xray compartment, don't lose expandos. r=mrbkap 2018-06-14 19:06:43 -04:00
test_enums.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_exception_messages.html
test_exception_options_from_jsimplemented.html
test_exceptions_from_jsimplemented.html Bug 1446880: updated exception test to new setIdentityProvider API. r=jib 2018-04-04 20:47:46 -07:00
test_forOf.html
test_integers.html
test_interfaceName.html
test_interfaceToString.html
test_iterable.html Bug 1424160 part 3. Set up @@toStringTag on our synthesized iterator interfaces. r=qdot 2018-05-17 23:45:45 -04:00
test_jsimplemented_cross_realm_this.html Bug 1464374 part 2 - Pass JS::Realm* instead of JSCompartment* to CallSetup. r=bz,luke 2018-05-31 11:28:48 +02:00
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_namedNoIndexed.html
test_named_getter_enumerability.html
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 Bug 1465875 part 4. Eliminate random mentions of nsIDOMNSEditableElement. r=qdot 2018-06-01 22:35:23 -04:00
test_returnUnion.html
test_sequence_detection.html
test_sequence_wrapping.html
test_setWithNamedGetterNoNamedSetter.html
test_stringBindings.html
test_throwing_method_noDCE.html
test_toJSON.html Bug 1465602 part 2. Fix the interaction of default toJSON with Func-controlled exposure that examines the object's global. r=qdot 2018-06-01 12:17:10 -04:00
test_traceProtos.html
test_treat_non_object_as_null.html
test_unforgeablesonexpando.html
test_usvstring.html
test_worker_UnwrapArg.html