Commit Graph

209 Commits

Author SHA1 Message Date
Reuben Morais
66ea77e992 Bug 1009645 - Address additional comments. r=bz
--HG--
extra : rebase_source : c6befdd143ad15751182af10f80b03c2f23eea4d
2014-07-15 16:15:28 -03:00
Reuben Morais
92fc628721 Bug 1009645 - Implement [FeatureDetectible] extended attribute and hook it up to navigator.getFeature. r=bz 2014-07-14 20:08:45 -03:00
Boris Zbarsky
12589bea78 Bug 832014 part 6. Make it possible to specify that only a particular interface that implements a given consequential interface gets cross-origin-settable behavior for a particular property. r=bholley 2014-07-11 19:32:14 -04:00
Boris Zbarsky
ee5c456d8a Bug 832014 part 1. Add parser support for an [Unforgeable] annotation on WebIDL interfaces. r=peterv 2014-07-11 19:30:26 -04:00
Ms2ger
b3fdf22d45 Bug 1034204 - Implement unforgeable methods; r=bz 2014-07-04 15:02:10 +02:00
Kyle Huey
898ad2ecb6 Bug 1031051: Part 1 - Allow codegenerating an InitFooEvent method for legacy event types. r=smaug,bz 2014-06-30 16:00:31 -07:00
Ben Kelly
5c8f0e057b Bug 1029812 Make webidl Sequence and MozMap distinguishable. r=bz 2014-06-25 10:25:09 -07:00
Boris Zbarsky
f45428ce7c 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
ebe88d39c2 Bug 1026080 part 1. Add WebIDL parser support for [] as a default value for sequence arguments and dictionary entries. r=khuey 2014-06-23 16:03:56 -04:00
Boris Zbarsky
eaf8eb1b2a Bug 1026706. Stop pickling our yacc grammar in the WebIDL parser, because now it's apparently faster to recreate it than to unpickle it. r=khuey 2014-06-23 16:03:56 -04:00
Reuben Morais
24b03739fb Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz 2014-05-25 15:31:07 -03:00
Fabrice Desré
bed5c8c262 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
ac85b83f82 Bug 952486 - Add a CheckPermissions extended attribute to WebIDL. r=bz 2014-05-25 15:31:07 -03:00
Boris Zbarsky
67e904587e Bug 1007878 part 1. Add parsing of MozMap to the WebIDL parser. r=khuey 2014-05-23 17:32:38 -04:00
Wes Kocher
b1b2b3a291 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
0bf9253cf1 Bug 1007878 part 1. Add parsing of MozMap to the WebIDL parser. r=khuey 2014-05-23 17:32:38 -04:00
Ting-Yu Lin
a4da8b744e Bug 879917 - part 2: Emit useful message on dictionary name collisions. r=bz 2014-05-05 21:50:00 +02:00
Ting-Yu Lin
733a5f0b2e Bug 879917 - part 1: Strip trailing whitespaces in WebIDL.py. r=bz 2014-05-05 21:24:00 +02:00
Boris Zbarsky
ea7478fa08 Bug 997285 part 2. Add [ExceptionClass] support to WebIDL. r=peterv 2014-05-05 16:01:57 -04:00
Wes Kocher
16c59c13d3 Backed out 4 changesets (bug 997285) for mochitest-2,3 and dt3 bustages on a CLOSED TREE r=bz
Backed out changeset 1bc5b733beac (bug 997285)
Backed out changeset ec145c86be71 (bug 997285)
Backed out changeset c0b8aef8b570 (bug 997285)
Backed out changeset 477094180dff (bug 997285)
2014-05-05 14:14:11 -07:00
Boris Zbarsky
80ad02a4b4 Bug 997285 part 2. Add [ExceptionClass] support to WebIDL. r=peterv 2014-05-05 16:01:57 -04:00
Boris Zbarsky
e10e715648 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
Anvas
4f44593e24 Bug 946897 - Report a more helpful error message when there is a name collision between an IDLExternalInterface and some other named IDL object. r=khuey 2014-03-22 00:25:40 -04:00
Boris Zbarsky
4b7f853a76 Bug 983300 part 2. Introduce a GenericPromiseReturningBindingMethod for methods that return Promise return value. r=khuey,bholley
This method effectively catches exceptions from GenericBindingMethod and converts them into rejected promises.  This handles calls to Promise-returning APIs from everything except Ion fast paths.
2014-03-21 12:18:24 -04:00
Boris Zbarsky
7a7054f72d Bug 983300 part 1. Disallow Promise as a return type for legacy callers and enforce all overloads for a method either returning promises or not returning promises. r=khuey 2014-03-21 12:18:24 -04:00
Boris Zbarsky
2166b04394 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
Ehsan Akhgari
17afb3cc47 Bug 968643 - Part 2: Remove the [PrefControlled] WebIDL annotation; r=bzbarsky 2014-02-06 13:28:35 -05:00
Boris Zbarsky
d3c7b3b9dd Bug 958667 part 4. Hook up an AvailableIn extended attribute for interfaces. r=peterv 2014-02-05 13:38:17 -05:00
Boris Zbarsky
8ad668ddf4 Bug 963321 part 1. Add WebIDL parser support for having [Cached] dictionary attributes. r=khuey
We don't know at handleExtendedAttribute time what the identifier will
map to, so have to do the check that [Frozen] is not being misused
later.
2014-02-05 13:38:15 -05:00
Andrea Marchesini
c19e1d8813 Bug 620935 - __noSuchMethod__ support for WebIDL r=bz 2014-01-26 12:35:10 +00:00
Boris Zbarsky
661130813a 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
3ccadc5848 Bug 957429 - Method parameters that are callbacks obey [TreatNonCallableAsNull] semantics. r=bz 2014-01-08 22:12:27 -08:00
Boris Zbarsky
45faf1e000 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
20c9fd1207 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
9a5afd7034 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
b291d17548 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
83ab298b53 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
52853729f6 Bug 942631 part 1. Add support for a [Cached] WebIDL annotation. r=peterv 2013-12-04 08:02:17 -05:00
Boris Zbarsky
05c9acd84a 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
e0a7f40ce6 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
0530bd2b6f 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
32434c276b 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
83e5da85cc Bug 935855 part 2. Store isSlot information in jitinfo. r=peterv,efaust 2013-11-25 20:59:37 -05:00
Boris Zbarsky
a68924fda0 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
fb3f5ea859 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
6d1df233c8 Bug 936634. Drop support for [TreatUndefinedAs] in WebIDL. r=peterv 2013-11-17 00:10:18 -05:00
Reuben Morais
2ebfdbe861 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
4eb56cc9c3 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
09065fc560 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
2eadd266c9 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