Commit Graph

104 Commits

Author SHA1 Message Date
Kyle Huey
141e90d173 Back out Bug 827486 for PGO bustage. CLOSED TREE 2013-03-18 13:00:00 -07:00
Andrew McCreight
1a7f567c7e Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz 2013-03-18 10:19:42 -07:00
Andrew McCreight
ec2d6b7db9 Bug 827486, part 1: add JSImplementation extended attribute. r=bz 2013-03-18 10:19:41 -07:00
Phil Ringnalda
3be0b7fa5a Back out 2ea5f267af77:218356c595fc (bug 827486) for Windows builds dying with an obscure "MemoryError"
CLOSED TREE
2013-03-17 16:40:54 -07:00
Andrew McCreight
8a18928fa7 Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz 2013-03-17 09:56:13 -07:00
Andrew McCreight
3f71cd9e34 Bug 827486, part 1: add JSImplementation extended attribute. r=bz 2013-03-17 09:55:14 -07:00
Boris Zbarsky
d12e208620 Bug 843627 part 2. Implement the WebIDL API for <embed> and <applet>. r=peterv 2013-03-17 10:42:03 -04:00
Phil Ringnalda
9effe60dd2 Back out f408dd29944c:db5c280d1907 (bug 827486) for probably having needed a clobber
CLOSED TREE
2013-03-16 18:16:37 -07:00
Andrew McCreight
89e60d3597 Bug 827486, part 6 - generate headers and code for JS implemented WebIDL classes. r=bz 2013-03-16 16:22:23 -07:00
Andrew McCreight
7546d78767 Bug 827486, part 1: add JSImplementation extended attribute. r=bz 2013-03-16 16:22:22 -07:00
Boris Zbarsky
585c171c52 Bug 837339. Re-disallow nullable dictionary members inside dictionaries. r=khuey 2013-03-14 15:42:59 -04:00
Pranav Ravichandran
1d76bd6081 Bug 847928 - Element type of a WebIDL array must not be a sequence or dictionary type. r=bzbarsky 2013-03-06 13:06:23 -05:00
Boris Zbarsky
85ea82871f Bug 827158 part 8. Implement legacycaller support in WebIDL. r=peterv 2013-03-04 14:08:24 -05:00
Pranav Ravichandran
99b9471077 Bug 836816 - WebIDL parser should enforce spec restrictions on dictionary member types. r=bzbarsky 2013-02-27 09:55:56 -05:00
Kyle Huey
ae52a4b608 Bug 784812: Implement real dependencies for WebIDL bindings. r=bz,ted 2013-02-24 12:36:44 -08:00
Phil Ringnalda
ba896daee5 Back out cd8481cc4a32 (bug 784812) for make check failures 2013-02-24 14:10:48 -08:00
Kyle Huey
ed325b887e Bug 784812: Implement real dependencies for WebIDL bindings. r=bz,ted CLOSED TREE 2013-02-24 12:36:44 -08:00
Kyle Huey
298458b894 Backed out changeset a71766c2c85d 2013-02-24 12:33:36 -08:00
Kyle Huey
97ac18ed2f Bug 784812: Implement real dependencies for WebIDL bindings. r=bz,ted 2013-02-24 12:03:03 -08:00
Peter Van der Beken
715d9242cf Fix for bug 825628 (Implement NamedConstructor) - add codegen support for NamedConstructor. r=bz. 2013-01-22 11:51:15 +01:00
Boris Zbarsky
f6a2cf11df Bug 835417 part 2. Implement WebIDL parser and codegen support for marking things pure. r=peterv 2013-01-29 17:53:53 -05:00
Boris Zbarsky
b114ad6656 Bug 830099. Flag WebIDL dictionaries and callbacks with some information indicating whether we need main-thread and worker codegen for them and then use that information to skip unneccessary codegen. r=peterv 2013-01-28 23:30:17 -05:00
Phil Ringnalda
fe0ef5935d Back out c5238879470f and b3cabb259af7 (bug 830099) for bustage 2013-01-28 22:36:59 -08:00
Boris Zbarsky
f672cb83e8 Bug 830099. Flag WebIDL dictionaries and callbacks with some information indicating whether we need main-thread and worker codegen for them and then use that information to skip unneccessary codegen. r=peterv 2013-01-28 23:30:17 -05:00
Ehsan Akhgari
c6d201a911 Backed out changeset 32786d29daf8 (bug 830099) because of build bustage 2013-01-28 23:51:03 -05:00
Boris Zbarsky
f6e40ae061 Bug 830099. Flag WebIDL dictionaries and callbacks with some information indicating whether we need main-thread and worker codegen for them and then use that information to skip unneccessary codegen. r=peterv 2013-01-28 23:30:17 -05:00
Boris Zbarsky
0402b3aabe Bug 822470 part 4. Expose the concept of "single operation interface" in the WebIDL data model. r=peterv 2013-01-28 08:34:30 -05:00
William Chen
079fb5848c Bug 828532 - Removed 'prototype' as a reserved identifier in WebIDL. r=bz 2013-01-10 11:54:13 -08:00
Boris Zbarsky
de8eb984f0 Bug 824237. Add support for "partial interface" to WebIDL parser. r=khuey 2013-01-10 10:49:07 -05:00
Boris Zbarsky
434d56ef51 Bug 820665 part 1. More WebIDL spec updates to changes in how dictionaries work. r=khuey
Specifically, the following changes:

1) A union that includes a dictionary and is the last non-optional
   argument must actually be marked optional, just like a dictionary
   argument.
2) Disallow a union from containing both a nullable type and a dictionary.
3) Now all non-Date and non-RegExp objects can be used as dictionaries,
   including from overload resolution and union conversion.

We don't support dictionaries inside unions yet, or unions as
distinguishing args, so the spec changes to do with converting null to
dictionaries inside a union or picking the union overload if there is
a union containing a dictionary and null is the distinguishing arg
value are not relevant to us so far.
2013-01-03 14:03:00 -05:00
Boris Zbarsky
32e3ba8beb Bug 821580. Disallow [Unforgeable] on static attributes, per spec update. r=khuey 2013-01-02 22:03:25 -05:00
Boris Zbarsky
61b9141409 Bug 819845. Update WebIDL bindings to spec change: sequences/arrays are no longer distinguishable from dictionaries, and conversion to a sequence works on arbitrary objects. r=khuey 2013-01-02 22:03:25 -05:00
Boris Zbarsky
7a0166582b Bug 821438. Allow inheritance from interfaces with Unforgeable attributes. r=peterv 2012-12-14 14:10:50 -05:00
Boris Zbarsky
d624039f75 Bug 815502. Implement support for variadic arguments in WebIDL. r=peterv 2012-12-11 17:50:56 -05:00
Boris Zbarsky
d1ff3385a1 Bug 816846. Correctly call up to our superclass to resolve an identifier conflict. r=khuey 2012-12-10 14:28:02 -05:00
Benoit Jacob
daaa537cd4 Bug 816187 - make WebIDL accept nullable dictionary retvals; let getContextAttributes's retval be nullable - r=bz 2012-11-30 18:30:05 -05:00
Boris Zbarsky
ce826e9986 Bug 812783. Add support for flagging callbacks as worker-only. r=khuey 2012-11-29 11:14:40 -05:00
Eric Faust
1e7cd08cdd Bug 747289 - Part 1/2 - Update Paris bindings to expose DOM constants. r=bz 2012-11-28 16:28:36 -05:00
Boris Zbarsky
a5d77d8fc0 Bug 767933 part 1. Implement parser support for 'unrestricted float' and 'unrestricted double', and for the [LenientFloat] extended attribute. r=khuey 2012-11-27 15:32:05 -05:00
Boris Zbarsky
0e77c9690d Bug 779048 part 6. Handling of return values for callbacks. r=peterv 2012-11-09 07:43:58 -08:00
Boris Zbarsky
e50030c821 Bug 806033. Finish getting rid of stray [Infallible] annotation bits. r=khuey 2012-11-05 14:40:33 -05:00
Boris Zbarsky
723e843f4f Bug 804632. Allow certain reserved words as argument names in WebIDL. r=khuey 2012-11-05 14:40:32 -05:00
Boris Zbarsky
8a5c8d8abe Bug 804319. Implement parsing of the "stringifier;" shorthand. r=khuey 2012-11-05 14:40:32 -05:00
Ehsan Akhgari
4d939895c5 Bug 807697 - Enable integer to float type coercion in the Web IDL parser; r=bzbarsky 2012-11-01 12:30:21 -04:00
Peter Van der Beken
29377d8150 Fix for bug 763643 (Implement static operations and attributes for WebIDL). r=bz. 2012-10-19 09:34:28 +02:00
Peter Van der Beken
2603add13a Fix for bug 785277 (Implement PutForwards in the new DOM bindings). r=bz. 2012-08-13 14:20:49 +02:00
Boris Zbarsky
c31bc8e951 Bug 793267. Add support for [Unforgeable] in WebIDL. r=peterv
Unforgeable attributes are defined directly on the object, not on the
prototype.  So we keep them in a separate spec array and define them
during object creation as needed.

This means that we have to pass that separate spec array to the Xray
helpers, unfortunately, which somewhat complicates those.
2012-10-24 16:10:49 -04:00
Boris Zbarsky
fb766c1528 Bug 796983 part 2. Add a way to generate an example class declaration for a given WebIDL interface. r=jst
We mark constructors as static in the parser because they are.  This
allows us to just use the isStatic() for the IDLMember to mark our
declarations static.

To generate an example interface implementation, just "make
interfacename-example" in $objdir/dom/bindings.  This will place files
called interfacename-example.h and interfacename-example.cpp in that
directory.  For example, "make XMLHttpRequest-example" will get you
$objdir/dom/bindings/XMLHttpRequest-example.h and
$objdir/dom/bindings/XMLHttpRequest-example.cpp.

Attribute getters currently default to const methods, while setters
and operations default to non-const methods.
2012-10-17 17:01:55 -04:00
Boris Zbarsky
a265c27af7 Bug 792137. [TreatNonCallableAsNull] lives on the callback type now. r=peterv 2012-10-10 15:53:02 -04:00
Boris Zbarsky
ac8d1a8659 Bug 792980. Don't force consumers to list descriptors for interfaces that are using all teh defaults. r=peterv
The new setup is:

* Consequential interfaces with no explicit descriptor are still skipped.
* If no information is provided about an interface, an empty descriptor is
  assumed.
* If a list is provided and the only entry is a worker descriptor, an empty
  main-thread descriptor is assumed.
2012-10-01 08:56:31 -04:00