gecko-dev/dom/bindings/test
Jan de Mooij 8d290159a6 Bug 1688616 part 2 - Check for large ArrayBuffer{View}s in WebIDL bindings. r=edgar,lth
The dom::TypedArray type currently represents its length as uint32_t. Changing
that to size_t/uint64_t would cause problems (truncation) for many 'Length()' callers.
Instead of requiring a length check for each of those call sites, for now check for
and reject large array buffers and views in the generated bindings.

Code and tests are based on the implementation of the [AllowShared] attribute.
Additional tests for the new JSAPIs will be added as part of bug 1674777.

Differential Revision: https://phabricator.services.mozilla.com/D102912
2021-01-31 07:33:41 +00:00
..
.eslintrc.js Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop 2020-03-07 10:09:44 +00:00
Makefile.in
TestBindingHeader.h Bug 1663365 - Move various Object-related functions to a new js/public/Object.h header. r=jandem 2020-09-08 22:55:38 +00:00
TestCImplementedInterface.h
TestCodeGen.webidl Bug 1630361 - Remove [NeedsWindowsUndef] attribute from webidl, r=peterv 2020-04-16 23:40:57 +00:00
TestDictionary.webidl
TestExampleGen.webidl Bug 1630361 - Remove [NeedsWindowsUndef] attribute from webidl, r=peterv 2020-04-16 23:40:57 +00:00
TestFunctions.cpp Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
TestFunctions.h Bug 1615741 - Make converting a buffer source follow the spec when a shared buffer is passed in; r=bzbarsky 2020-02-18 21:03:17 +00:00
TestInterfaceIterableDouble.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TestInterfaceIterableDouble.h Bug 1626584 - Make `dom/bindings` buildable outside of `unified-build` environment. r=froydnj 2020-04-01 14:24:09 +00:00
TestInterfaceIterableDoubleUnion.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TestInterfaceIterableDoubleUnion.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/bindings. r=smaug 2020-02-20 15:47:53 +00:00
TestInterfaceIterableSingle.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TestInterfaceIterableSingle.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/bindings. r=smaug 2020-02-20 15:47:53 +00:00
TestInterfaceJS.js Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski 2020-07-10 23:58:30 +00:00
TestInterfaceJS.manifest
TestInterfaceJSMaplike.js Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski 2020-07-10 23:58:30 +00:00
TestInterfaceMaplike.cpp Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceMaplike.h Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceMaplikeJSObject.cpp Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceMaplikeJSObject.h Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceMaplikeObject.cpp Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceMaplikeObject.h Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
TestInterfaceSetlike.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TestInterfaceSetlike.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/bindings. r=smaug 2020-02-20 15:47:53 +00:00
TestInterfaceSetlikeNode.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
TestInterfaceSetlikeNode.h Bug 1613985 - Use default for equivalent-to-default constructors/destructors in dom/bindings. r=smaug 2020-02-20 15:47:53 +00:00
TestJSImplGen.webidl Bug 1630361 - Remove [NeedsWindowsUndef] attribute from webidl, r=peterv 2020-04-16 23:40:57 +00:00
TestJSImplInheritanceGen.webidl Bug 1423562 part 3. Remove [PrimaryGlobal] and require explicit [Exposed] annotations on everything. r=edgar 2019-09-27 15:26:14 +00:00
TestTypedef.webidl
WrapperCachedNonISupportsTestInterface.cpp Bug 1674637 - Use nested namespaces in dom/ r=sg,andi 2020-11-04 17:04:01 +00:00
WrapperCachedNonISupportsTestInterface.h Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
chrome.ini Bug 1595908, replace .xul test files in dom/ to .xhtml r=smaug 2019-11-27 15:39:16 +00:00
file_InstanceOf.html
file_barewordGetsWindow_frame1.html Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
file_barewordGetsWindow_frame2.html Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +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 1688616 part 2 - Check for large ArrayBuffer{View}s in WebIDL bindings. r=edgar,lth 2021-01-31 07:33:41 +00:00
moz.build Bug 1677893 - CONFIG["CXX_TYPE"] is not a thing r=firefox-build-system-reviewers,andi,mhentges 2020-11-18 16:01:23 +00:00
mozITestInterfaceJS.idl
test_ByteString.html
test_InstanceOf.html
test_Object.prototype_props.html Bug 1565170 - Disable toSource/uneval in non-chrome code. r=jwalden,bzbarsky 2020-01-09 11:48:58 +00:00
test_async_stacks.html Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug 2020-06-14 02:41:45 +00:00
test_attributes_on_types.html Bug 1575425 - Part 3: Add support for [AllowShared]; r=bzbarsky,jwalden 2020-01-23 14:18:53 +00:00
test_barewordGetsWindow.html
test_bug560072.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_bug742191.html
test_bug759621.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_bug773326.html
test_bug775543.html
test_bug788369.html
test_bug852846.html
test_bug862092.html
test_bug1036214.html Bug 1482279 - Stop using Cu.forcePermissiveCOWs() in SpecialPowers. r=kmag 2020-05-31 03:41:03 +00:00
test_bug1041646.html
test_bug1123516_maplikesetlike.html Bug 1674783 - Implement the Get method for Maplike in webidl r=edgar,smaug 2021-01-05 23:19:26 +00:00
test_bug1123516_maplikesetlikechrome.xhtml Bug 1595908, replace .xul test files in dom/ to .xhtml r=smaug 2019-11-27 15:39:16 +00:00
test_bug1123875.html
test_bug1287912.html
test_bug1457051.html
test_callback_across_document_open.html
test_callback_default_thisval.html
test_callback_exceptions.html
test_cloneAndImportNode.html
test_crossOriginWindowSymbolAccess.html Bug 1575939 - Make test_crossOriginWindowSymbolAccess.html test the cross-process case. r=bzbarsky 2019-12-12 04:55:58 +00:00
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 1467970 - Unsupport cross docGroup adoption r=smaug 2019-09-14 00:09:44 +00:00
test_enums.html
test_exceptionSanitization.html
test_exceptionThrowing.html
test_exception_messages.html Bug 1618011 part 7. Switch most error messages used in bindings to having a method name prefix. r=peterv 2020-03-06 23:05:16 +00:00
test_exception_options_from_jsimplemented.html Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug 2020-06-14 02:41:45 +00:00
test_exceptions_from_jsimplemented.html
test_forOf.html
test_integers.html
test_interfaceName.html
test_interfaceToString.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_iterable.html
test_jsimplemented_cross_realm_this.html
test_jsimplemented_eventhandler.html
test_jsimplemented_subclassing.html
test_large_arraybuffers.html Bug 1688616 part 2 - Check for large ArrayBuffer{View}s in WebIDL bindings. r=edgar,lth 2021-01-31 07:33:41 +00:00
test_lenientThis.html
test_lookupGetter.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_namedNoIndexed.html
test_named_getter_enumerability.html
test_oom_reporting.html
test_prefOnConstructor.html Bug 1604340 - Allow [Pref] for WebIDL constructor r=bzbarsky 2019-12-21 00:46:20 +00:00
test_primitive_this.html
test_promise_rejections_from_jsimplemented.html Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug 2020-06-14 02:41:45 +00:00
test_proxies_via_xray.html
test_proxy_expandos.html
test_returnUnion.html
test_sequence_detection.html
test_sequence_wrapping.html
test_setWithNamedGetterNoNamedSetter.html
test_stringBindings.html Bug 1592771. Add tests for round-tripping of various external strings through bindings. r=mccr8 2019-10-30 22:09:15 +00:00
test_throwing_method_noDCE.html
test_toJSON.html
test_traceProtos.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_treat_non_object_as_null.html Bug 1644863 - fix trailing whitespace in cross-tree tests, r=emilio,marionette-reviewers,whimboo 2020-06-17 22:45:31 +00:00
test_unforgeablesonexpando.html
test_usvstring.html
test_worker_UnwrapArg.html