Commit Graph
140 Commits
Author SHA1 Message Date
Boris Zbarsky 8ae59f3159 Bug 1215559. Create separate iterator native types for one-type and two-type iterators, so we don't force the one-type case to implement GetKeyAtIndex. r=qdot 2015-10-16 15:54:51 -04:00
Boris Zbarsky bda5635c8d Back out revision 5985a4717758 (bug 1215559) because the Linux compiler is not happy with the template using bits 2015-10-16 16:16:36 -04:00
Boris Zbarsky 644922a333 Bug 1215559. Create separate iterator native types for one-type and two-type iterators, so we don't force the one-type case to implement GetKeyAtIndex. r=qdot 2015-10-16 15:54:51 -04:00
Kyle Machulis 8e5778c5fe Bug 1085293 - WebIDL Iterable Implementation and Tests; r=bz 2015-10-15 12:06:13 -07:00
Kyle Machulis bce8b386c3 Backout of 91e9d59af87e, 96acfd0d21cf (Bug 1085293) due to build bustage 2015-10-14 12:00:41 -07:00
Kyle Machulis f3473de26f Bug 1085293 - WebIDL Iterable Implementation and Tests; r=bz 2015-10-14 11:33:46 -07:00
Samy Dindane 6c5d0d5488 Bug 1142609 - Fix PEP 8 E7xx warnings in dom/bindings's Python code. r=peterv 2015-08-10 19:11:42 +02:00
Samy Dindane be60792c25 Bug 1142609 - Fix PEP 8 E3xx warnings in dom/bindings's Python code. r=peterv 2015-08-10 18:57:39 +02:00
Samy Dindane 009ad9fdb3 Bug 1142609 - Fix PEP 8 E2xx warnings in dom/bindings's Python code. r=peterv 2015-08-10 18:53:45 +02:00
Samy Dindane f85212ef99 Bug 1142609 - Fix PEP 8 E128 warnings in dom/bindings's Python code. r=peterv 2015-08-10 18:26:29 +02:00
Boris Zbarsky 7ec98a916e Bug 983301 part 2. Change Promise to not be distinguishable from any other type. r=peterv 2015-07-31 13:30:55 -04:00
Kan-Ru Chen 99340ed7d8 Bug 1179718 - Rename CheckPermissions to CheckAnyPermissions. r=bz 2015-07-17 11:07:53 +08:00
Kan-Ru Chen 76443cadaa Bug 1179718 - Add a CheckAllPermissions extended attribute to WebIDL. r=bz 2015-07-17 11:06:23 +08:00
Boris Zbarsky 34c4faa21f Bug 1176800 part 1. When getting all types, include the types Promises are parametrized over. r=peterv 2015-07-01 00:15:30 -04:00
Boris Zbarsky 7b39c98a8b Bug 1173829. Fix some compile issues in code generated by bindings codegen for non-concrete interfaces. r=peterv
Specifically, two issues:

1)  We didn't include the implementation header for a non-concrete empty
interface.  But if it has a parent we assert it's refcounted if and only if the
parent is refcounted, so need to see the class declaration.

2)  We were getting the parent proto in all cases in CreateInterfaceObjects.
But parent may not have a proto at all if it has no concrete descendants.  So
this patch switches to getting the parent proto only if we have a proto ourselves.
2015-06-17 13:42:06 -04:00
Boris Zbarsky 978f557416 Bug 913053. Split up IDLTypedef and IDLTypedefType, and likewise for IDLCallback vs IDLCallbackType, so it's clearer whether we're operating on types or objects represented by those types. r=khuey 2015-05-13 22:19:22 -04:00
Boris Zbarsky 0b5579d9dc Bug 1157588. Produce a better error message when someone tries to pass a mixin as an argument. r=peterv 2015-04-28 12:25:55 -04:00
Boris Zbarsky b21ea40fde Bug 928336. Make defining unforgeable properties on objects faster by just copying them from an unforgeable holder object. r=peterv 2015-03-03 21:01:58 -05:00
Boris Zbarsky 65fece0eae Bug 1135810. Add more explicit checks for whether a descriptor wants Xrays or not instead of assuming that Xrays are desired if and only if descriptor.workers is false. r=peterv 2015-02-26 09:40:08 -05:00
Boris Zbarsky 0780c698de Bug 1135803. Take out the bits that try to handle interface types mapping to JSObject* in worker descriptors, since we never do that anymore. r=smaug 2015-02-24 16:04:22 -05:00
Boris Zbarsky fe5c589f75 Bug 1127501. Treat external interfaces as only being exposed in Window in Web IDL bindings. r=peterv 2015-02-09 11:42:27 -05:00
Peter Van der Beken b85243559a Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz. 2014-11-01 15:25:55 +01:00
Peter Van der Beken d199d2dc86 Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz. 2014-11-01 15:22:21 +01:00
Boris Zbarsky 5d2decb789 Bug 1113827 part 1. Automatically mark Web IDL [NewObject] methods that return a JS type as fallible. r=peterv 2015-01-12 11:52:21 -05:00
Carsten "Tomcat" Book 0d9ba960a8 Backed out 12 changesets (bug 1096328) for M11 and M5 Test failures on a CLOSED TREE
Backed out changeset 12dd1ad43923 (bug 1096328)
Backed out changeset 4a067de94f22 (bug 1096328)
Backed out changeset 676112a4f092 (bug 1096328)
Backed out changeset e2e64e751ece (bug 1096328)
Backed out changeset 9ed945e9a8a5 (bug 1096328)
Backed out changeset 47be69b84be5 (bug 1096328)
Backed out changeset d6e68ba4846d (bug 1096328)
Backed out changeset 899d8cd8c4e8 (bug 1096328)
Backed out changeset 55c831086864 (bug 1096328)
Backed out changeset 6005fd357342 (bug 1096328)
Backed out changeset 0f330a5dd346 (bug 1096328)
Backed out changeset c37e10cff765 (bug 1096328)
2015-01-12 14:48:15 +01:00
Peter Van der Beken 06d901c59f Bug 1096328 - Remove nativeOwnership from Bindings.conf, remove the now unused nativeOwnership property. r=bz. 2014-11-01 15:25:55 +01:00
Peter Van der Beken 3d53b43677 Bug 1096328 - Remove nativeOwnership from Bindings.conf, don't condition wrapperCache on having a refcounted type. r=bz. 2014-11-01 15:22:21 +01:00
Olli Pettay f68577a031 Bug 1119652, create mozilla::dom::Event::As*Event automatically for all the codegen'ed Events and annotate As*Event with MOZ_OVERRIDE in the codegen, r=bz 2015-01-10 13:46:41 +02:00
Boris Zbarsky d3ab8780bb Bug 1081241. Things that aren't exposed in Window shouldn't show up in RegisterBindings at all. r=smaug 2014-11-16 15:01:32 -05:00
Tom Schuster c913a24c50 Bug 993026 - Rename NewResolve to Resolve in browser. r=bz 2014-11-08 01:07:12 +01:00
Peter Van der Beken 91b7ab2dba Bug 1068740 - Consider putting union types in the binding files where they're used. r=bz. 2014-10-01 20:43:26 +02:00
Boris Zbarsky 8ad20d5190 Bug 1083591. Support stringifiers and jsonifiers on non-concrete Web IDL interfaces as well, since they make sense there. r=peterv 2014-10-19 22:26:20 -04:00
Boris Zbarsky 09af2f4714 Bug 1073124 part 2. Define Exposed=System things in BackstagePass::NewResolve as needed. r=bholley 2014-10-17 11:30:19 -04:00
Peter Van der Beken 04afe66975 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, calculate parent prototype names in one place. r=bz. 2014-09-09 15:19:09 +02:00
Peter Van der Beken 2e07413cc3 Bug 787070 - Expandos on the xray of DOM prototypes should have effect on xrays of DOM nodes, annotate Window as having named properties. r=bz. 2014-09-05 22:36:32 +02:00
Boris Zbarsky c53d3eaac9 Bug 1071615. Make codegen fail when "A implements B" appears on a Web IDL file different from the file A is defined in. r=khuey 2014-09-24 09:11:29 -04:00
Boris Zbarsky 04b7d62311 Bug 958887 part 1. Add support for doing BinaryName annotations in IDL. r=peterv 2014-09-19 22:58:26 -04:00
Peter Van der Beken 3588a0e748 Bug 849567 - Automatically handle raw and already_AddRefed return values in Paris bindings and remove resultNotAddRefed, use overloaded functions and auto to select the right type to store return values. r=bz. 2014-08-28 00:43:56 +02:00
Boris Zbarsky 68f0815df7 Bug 921453. Don't allow conditional-exposure annotations on an interface that has no interface object, since they make no sense there. r=khuey 2014-08-29 19:50:04 -04:00
Nikhil Marathe 40de8af2a0 Bug 1048699 - Patch 2 - Indentation and proper include. r=bz 2014-08-28 13:33:39 -07:00
Nikhil Marathe abe21a25f0 Bug 1048699 - Make Exposed=SpecificWorkerType work automatically. r=bz 2014-08-27 10:17:36 -07:00
Reuben Morais f037a3c785 Bug 1009645 - Remove FeatureDetectible, add things with CheckPermissions or AvailableIn to the feature list instead. r=smaug 2014-07-24 16:57:02 -03:00
Boris Zbarsky 8ea1a10a50 Bug 1017988 part 11. Codegen the definition of interface objects on worker globals. r=khuey 2014-08-04 22:20:35 -04:00
Boris Zbarsky e34e739bb8 Bug 1017988 part 6. Implement support for [PrimaryGlobal]. r=khuey 2014-08-04 22:20:34 -04:00
Reuben Morais b768afa7e3 Bug 1009645 - Implement [FeatureDetectible] extended attribute and hook it up to navigator.getFeature. r=bz 2014-07-14 20:08:45 -03:00
Nathan Froyd 5d3f5a0c46 Bug 1019705 - replace binaryNames accesses with binaryNameFor; r=bz 2014-06-03 12:20:16 -04:00
Reuben Morais 2d48305b9f Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz 2014-05-25 15:31:07 -03:00
Fabrice Desré e5f8ec9184 Bug 952486 - backout for breaking all device and emulator builds (keeping dom reviewer to land the backout...) r=bz 2014-05-26 12:11:52 -07:00
Reuben Morais 567a90fb0a Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz 2014-05-25 15:31:07 -03:00
Boris Zbarsky 7a02fedecc Bug 1000675. Don't always include nsContentUtils in example codegen, fix example header guards to not end with __, don't use fully-qualified names in argument types when those argument types are in the mozilla::dom namespace already, and include headers from mozilla/dom. r=jst 2014-04-26 21:49:59 -04:00