Boris Zbarsky
c6070203fb
Bug 929609 part 2. Fix passing of typed arrays to JS-implemented WebIDL to actually work. r=peterv
2014-08-25 15:07:45 -04:00
Andrew McCreight
2ee3816f99
Bug 1048659 - Return the union we construct in a JS callback. r=peterv
2014-08-19 08:41:26 -07:00
Ben Kelly
89b4e69b9a
Bug 1025183
P5 Add tests for ScalarValueString. r=bz
2014-08-01 16:23:48 -04:00
Ben Kelly
767bba1db9
Revert bug 1025183
(revs 69373df15281, dd6d84edf08e, 728a5d18bcd9, 71babe0bc84b, c60f9054acf6) for bustage. r=me
2014-08-01 14:10:40 -04:00
Ben Kelly
8d3963af12
Bug 1025183
P5 Add tests for ScalarValueString. r=bz
2014-08-01 13:57:00 -04:00
Ms2ger
5e7f19500d
Bug 1034204
- Implement unforgeable methods; r=bz
2014-07-04 15:02:10 +02:00
Ben Kelly
3d655c8190
Bug 1029812 Make webidl Sequence and MozMap distinguishable. r=bz
2014-06-25 10:25:09 -07:00
Boris Zbarsky
089a4f6015
Bug 1027667. Allow MozMap in unions. r=peterv
2014-06-23 16:03:58 -04:00
Boris Zbarsky
ec84ae32a6
Bug 767924 part 4. Allow [] as a default value for sequences in unions. r=peterv
2014-06-23 16:03:58 -04:00
Boris Zbarsky
f802f5213f
Bug 767924 part 3. Allow sequences in unions. r=peterv
2014-06-23 16:03:57 -04:00
Boris Zbarsky
f83d03288d
Bug 1026080 part 2. Add binding codegen support for [] as a default value for sequence arguments and dictionary entries. r=khuey
2014-06-23 16:03:57 -04:00
Ben Kelly
7f3775f58d
Bug 1027256 P2 Add test case for ByteString union type. r=bz
2014-06-18 20:22:09 -04:00
Boris Zbarsky
68c240adc6
Bug 1007878 part 5. Implement callback codegen for MozMap. r=khuey
2014-05-23 17:32:39 -04:00
Wes Kocher
e453e97449
Backed out 5 changesets (bug 1007878) for b2g build bustage r=khuey
...
Backed out changeset ee3bb06075f7 (bug 1007878)
Backed out changeset ab3dd51be3cd (bug 1007878)
Backed out changeset aa53ba4e64b8 (bug 1007878)
Backed out changeset ff6fd8187ff3 (bug 1007878)
Backed out changeset d631378463ac (bug 1007878)
2014-05-23 15:10:51 -07:00
Boris Zbarsky
ef09975166
Bug 1007878 part 5. Implement callback codegen for MozMap. r=khuey
2014-05-23 17:32:39 -04:00
Boris Zbarsky
ac98569cac
Bug 985536. Go back to allowing optional any with no default value in WebIDL, but treat it as having a default value of undefined. r=khuey
2014-04-03 23:32:11 -04:00
Boris Zbarsky
ec87989351
Bug 983228. Add a sequence tracer for sequences of unions. r=baku
2014-03-14 14:51:22 -04:00
Boris Zbarsky
76e9977396
Bug 983264. Include callback headers in UnionTypes.h when a callback is used in a union. r=mccr8
2014-03-14 14:51:06 -04:00
Boris Zbarsky
4b181d6e57
Bug 970764. Remove support for non-optional "any" arguments values, since "any" needs to be able to include undefined anyway. Have "any" arguments and dictionary entries default to undefined unless the IDL explicitly says "= null". r=khuey
2014-02-19 10:13:38 -05:00
Boris Zbarsky
74a89ac0f7
Bug 965927. [StoreInSlot] and [Cached] getters should use the reflector as the scope obj when wrapping the return value. r=peterv
2014-02-06 21:08:29 -05:00
Boris Zbarsky
98d70e885a
Bug 963321 part 2. Add codegen support for [Cached] dictionary attributes. r=khuey
2014-02-05 13:38:16 -05:00
Boris Zbarsky
e223f9691c
Bug 949501. Make nullable unions that are isMember stop claiming to have a holder. r=dzbarsky
2013-12-18 11:20:43 -05:00
Boris Zbarsky
4ce8a99131
Bug 949682 part 1. Add a [Frozen] annotation on WebIDL attributes that have sequence types. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
b1c250a89f
Bug 947351. [Constant] things don't need a way to clear a cached value, since they're not supposed to change. r=peterv
2013-12-06 13:49:44 -05:00
Boris Zbarsky
0e8c9f6887
Bug 946909. For a [Cached] or [StoreInSlot] attribute with a setter, clear the cache on set. r=peterv
2013-12-05 16:31:04 -05:00
Boris Zbarsky
8eccd295bf
Bug 946898. Make sure to not accidentally store COWs in the slot for [Cached] properties. r=peterv
2013-12-05 16:07:33 -05:00
Boris Zbarsky
e330cbbc35
Bug 949271. Fix callback and JS-implemented codegen for sequence-of-union and variadic-union arguments. r=smaug
2013-12-12 16:11:56 -05:00
Boris Zbarsky
109a5700f1
Bug 945788. Add support for dictionary return values to example codegen and js-implemented codegen. r=smaug
2013-12-05 11:39:50 -05:00
Boris Zbarsky
2ccbfd5863
Bug 942631 part 4. Allow WebIDL attributes to return a sequence if it's cached. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
f916e39018
Bug 942631 part 1. Add support for a [Cached] WebIDL annotation. r=peterv
2013-12-04 08:02:17 -05:00
Boris Zbarsky
7690d94087
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
b4b08a6e79
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
c0b03f21a5
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
77ea872b8d
Bug 929512. Fix null default values for non-nullable unions containing a nullable type. r=dzbarsky, r=smaug pending
2013-10-28 00:33:15 -04:00
Peter Van der Beken
18359b69c9
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 80791f28acbf8e2cc21946b0d62bb8555b53fc99
2013-09-30 18:32:22 +02:00
Ed Morley
68a54dcb54
Backed out changeset 64a19bc0e198 (bug 922159) for compilation failures on a CLOSED TREE
2013-10-23 15:51:48 +01:00
Peter Van der Beken
985a143c28
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 2c09c54f42a111d27b0d57346ca7d80f440eca09
2013-09-30 18:32:22 +02:00
Ed Morley
b578555c28
Backed out changeset d8636e485e85 (bug 882541)
2013-10-14 17:30:49 +01:00
Ed Morley
225d596527
Backed out changeset 61092280cb2a (bug 882541)
2013-10-14 17:30:46 +01:00
Ed Morley
da83085a5c
Backed out changeset ccf11ae08ba2 (bug 882541)
2013-10-14 17:30:43 +01:00
Boris Zbarsky
316fae665f
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
97cf5fdfe4
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
093911dd1c
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
0eb0be4a04
Bug 918011 part 4. Support dictionaries in unions. r=smaug
2013-09-26 00:05:00 -04:00
Boris Zbarsky
5ffa4d1286
Bug 918011 part 2. Preprocess some of our test WebIDL files so we can have debug-only tests. r=khuey
2013-09-26 00:05:00 -04:00
Boris Zbarsky
b0ce18e505
Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
...
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting. It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing. TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing). Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.
The wrapping code for dictionary arguments to constructors is fixed to
actually work. This required adding GetAs* methods to union return
values that return references to the internal data.
The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Boris Zbarsky
84d48a8c9f
Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey
2013-09-09 22:10:45 -04:00
David Zbarsky
426663fc36
Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky
2013-08-29 23:29:38 -04:00
Boris Zbarsky
e077229d95
Bug 868799 part 3. Use RootedTypedArray in codegen. r=smaug
2013-08-29 00:30:05 -04:00
Boris Zbarsky
3a9063d67a
Bug 900898 part 4. Support typed arrays inside sequences and variadics. r=smaug
2013-08-05 13:40:02 -04:00