Commit Graph

179 Commits

Author SHA1 Message Date
Boris Zbarsky
0bc28e81b8 Bug 952365. Add a TreatNonObjectAsNull annotation for WebIDL callback functions and use it for event handlers, since web sites depend on assigning non-callable objects to them in some cases. r=peterv 2014-01-13 15:08:56 -05:00
Nikhil Marathe
fdba61883d Bug 957429 - Method parameters that are callbacks obey [TreatNonCallableAsNull] semantics. r=bz 2014-01-08 22:12:27 -08:00
Boris Zbarsky
ea8d385a26 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
fc8f65ba99 Bug 946564 part 2. Make window._content chromeonly and define it in WebIDL. r=peterv 2013-12-09 10:34:04 -05:00
Boris Zbarsky
1815e242b3 Bug 946067 part 1. Add support for WebIDL extended attributes to allow annotating allowed cross-origin access. r=peterv 2013-12-09 10:34:03 -05:00
Boris Zbarsky
21df6dd5cf 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
be8f33b2af 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
da56c38e0b Bug 942631 part 1. Add support for a [Cached] WebIDL annotation. r=peterv 2013-12-04 08:02:17 -05:00
Boris Zbarsky
4ffa18ba5a Bug 938355 part 2. Relax the restriction on [Pure] not mixing with [Throws] and annotate some more things as [Pure]. r=peterv 2013-12-02 09:50:34 -05:00
Boris Zbarsky
5cf0773f3d Bug 938294 part 1. Allow the [Pure] annotation on non-throwing DOM methods. r=peterv 2013-11-25 20:59:39 -05:00
Boris Zbarsky
7618cffabd Bug 935855 part 4. Codegen a function that updates all the members-in-reserved-slots values for an interface and call it when we finish wrapping an object. r=peterv 2013-11-25 20:59:38 -05:00
Boris Zbarsky
ddb0fa4d92 Bug 935855 part 3. Compute the right slot indices to use for members we want to store in slots and save then in the data model the WebIDL parser outputs. r=peterv 2013-11-25 20:59:38 -05:00
Boris Zbarsky
740b35f91a Bug 935855 part 2. Store isSlot information in jitinfo. r=peterv,efaust 2013-11-25 20:59:37 -05:00
Boris Zbarsky
60a3c87fe7 Bug 935855 part 1. Add a [StoreInSlot] WebIDL annotation to bindings. r=peterv 2013-11-25 20:59:34 -05:00
Peter Van der Beken
794b2d6bd9 Bug 938544 - Add support for a Chrome-only constructor in WebIDL. r=bz.
--HG--
extra : rebase_source : e36fef0090d57947ceae6c2fc11bea8b115423e4
2013-08-12 16:45:33 +02:00
Boris Zbarsky
44a1bbf863 Bug 936634. Drop support for [TreatUndefinedAs] in WebIDL. r=peterv 2013-11-17 00:10:18 -05:00
Reuben Morais
3a1212943a Bug 933054 - Allow the toJSON identifier to be used in WebIDL interfaces again. r=peterv
--HG--
extra : rebase_source : 83c7724f97d0b2ce709092f2aaf7e15e682c3d90
2013-11-01 14:01:00 -02:00
Boris Zbarsky
20b04d6057 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
a2f07bbb8a Bug 882541 part 1. Don't require all arguments after an optional argument to be optional. r=khuey 2013-10-11 12:28:23 -04:00
Boris Zbarsky
97c2bf7f74 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
70d1256549 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
ef2d7c5fe8 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
538eed5d23 Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
--HG--
extra : rebase_source : 2c09c54f42a111d27b0d57346ca7d80f440eca09
2013-09-30 18:32:22 +02:00
Tareq Khandaker
54c85e8f1c Bug 924397 - WebIDL parser doesn't specify file when encountering syntax error at end of file. r=jdm 2013-10-18 10:17:00 -04:00
Ed Morley
ed709a7977 Backed out changeset 877a227c502f (bug 882541) for causing bug 926305 2013-10-14 17:31:06 +01:00
Ed Morley
0f6d579260 Backed out changeset ccf11ae08ba2 (bug 882541) 2013-10-14 17:30:43 +01:00
Boris Zbarsky
ce891d2c00 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
0b96fd507b Bug 882541 part 1. Don't require all arguments after an optional argument to be optional. r=khuey 2013-10-11 12:28:23 -04:00
Andy Wingo
53ce73ba77 Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden 2013-10-03 13:37:57 +01:00
Olli Pettay
3b5f032268 Bug 637248, Make Event.isTrusted Unforgeable, r=bz
--HG--
extra : rebase_source : 3edd919c6dac839d6082c1c73de88f9ba2d22146
2013-09-28 13:27:29 +03:00
Boris Zbarsky
eff308009e Bug 918011 part 4. Support dictionaries in unions. r=smaug 2013-09-26 00:05:00 -04:00
Boris Zbarsky
c80929513e Bug 919603 part 1. Introduce support for the [Global] extended attribute. r=peterv 2013-09-25 14:38:30 -04:00
Ryan VanderMeulen
b2c316d8b2 Backed out 5 changesets (bug 905493, bug 920125, bug 919603) for mochitest orange on a CLOSED TREE.
Backed out changeset ccef656b2973 (bug 919603)
Backed out changeset 4b29ce0b2fff (bug 919603)
Backed out changeset b0a051ec55b7 (bug 919603)
Backed out changeset baa9a774aad1 (bug 920125)
Backed out changeset e03276bf4eaa (bug 905493)
2013-09-25 18:22:33 -04:00
Boris Zbarsky
3f8499abae Bug 919603 part 1. Introduce support for the [Global] extended attribute. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
283a0900a5 Bug 919705. Don't ever claim that jsImplemented things are single-operation interfaces. r=mccr8 2013-09-23 23:11:45 -04:00
Boris Zbarsky
4bcfb1058f 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
5c7becd069 Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky 2013-08-29 23:29:38 -04:00
Boris Zbarsky
68ca6691d8 Bug 909863. Add support for the [SameObject] extended attribute in WebIDL. r=khuey 2013-08-29 00:30:05 -04:00
Boris Zbarsky
2cb7f1d590 Bug 901116. Give a better error message if the same name is typedeffed twice in WebIDL. r=khuey
We could also switch typedefs to using IDLWrapperType, but this seems like a smaller and still-sane change.
2013-08-29 00:30:05 -04:00
Boris Zbarsky
0b30dee716 Bug 901285. Allow trailing comma in WebIDL enums. r=khuey 2013-08-05 13:40:32 -04:00
Boris Zbarsky
165344b12f Bug 900994. Add support for Func annotations on interface objects. r=smaug 2013-08-03 23:38:55 -04:00
Boris Zbarsky
036228ec9f Bug 892609. Implement support for [ArrayClass]. r=khuey 2013-07-30 22:28:30 -07:00
Ryan VanderMeulen
5079ebb23d Merge m-c to inbound. 2013-07-30 15:41:57 -04:00
Ryan VanderMeulen
55f1829235 Merge m-c to fx-team. 2013-07-30 13:12:26 -04:00
Mina Almasry
7d6b47172c Bug 897185 - toJSON only deals with attributes whose types are serializable. r=bz
Now jsonifiers only include serializable attributes in their returned object, as
per spec.
2013-07-30 10:04:04 -04:00
Boris Zbarsky
41d8dc6ef4 Bug 895728 part 2. Make booleans, numerics, and strings/enums all be distinguishable from each other. r=khuey 2013-07-30 10:39:34 -07:00
Boris Zbarsky
e86315b77e Bug 895728 part 1. Introduce "boolean" and "numeric" types, since those will be treated differently for purposes of distinguishability and overload resolution. r=khuey 2013-07-30 10:39:34 -07:00
Mina Almasry
6e0cc6d805 Bug 872377 - Restore "toJSON" to list of reserved webidl keywords. r=bz
This patch makes toJSON a reserved webidl keyword, and changes the implementation of mozRTCSessionDescription to use a jsonifier.
2013-07-29 12:39:18 -04:00
David Zbarsky
d170a8f396 Bug 865998: Implement WebIDL union return values r=bz 2013-07-26 11:25:54 -07:00
Mina Almasry
27f9b1cdb1 Bug 760851 - Add jsonifier WebIDL declaration and add toJSON to performance.timing. r=bz
This patch adds a jsonifier declaration to WebIDL's. The declaration adds an autogenerated method toJSON() on the given webidl. This patch also adds jsonifier and toJSON() to PerformanceTiming.webidl, and performance.timing, respectively.
2013-07-26 12:00:49 -04:00