Boris Zbarsky
e66bdfb7fb
Bug 895728 part 3. Fix overload resolution to work with the new boolean/numeric/string setup. r=khuey
2013-07-30 10:39:34 -07:00
David Zbarsky
7837d54bf0
Bug 865998: Implement WebIDL union return values r=bz
2013-07-26 11:25:54 -07:00
Mina Almasry
d23615e4a1
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
Boris Zbarsky
c3d0e79b5c
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Masatoshi Kimura
4296d91d31
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Ryan VanderMeulen
cc66360dac
Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE.
2013-07-22 18:18:17 -04:00
Boris Zbarsky
12fbb7f6ba
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Ed Morley
47d61f007a
Backed out changeset e12c6f7d6676 (bug 885107) on suspicion of causing bug 894952
2013-07-18 14:43:52 +01:00
Masatoshi Kimura
b51d5edeac
Bug 885107 - Fix testharness tests outside dom/imptests. r=dbaron
2013-07-17 20:26:23 +09:00
Trevor Saunders
82e5558b37
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Boris Zbarsky
70279e1221
Bug 884373. Align WebIDL handling of default parameters with ES6. r=khuey
2013-06-26 10:59:46 -04:00
Boris Zbarsky
8a5f1751d4
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
Ryan VanderMeulen
abc39cc023
Backed out 3 changesets (bug 883358) for Android mochitest-3 failures on a CLOSED TREE.
...
Backed out changeset 84b35dd1879d (bug 883358)
Backed out changeset b5e6522257cb (bug 883358)
Backed out changeset 757a3f2e5de6 (bug 883358)
2013-06-17 19:51:12 -04:00
Boris Zbarsky
0e37bdf3dc
Fix test fallout from bug 883358 so we can stop having a CLOSED TREE. No review.
2013-06-17 18:24:04 -04:00
Boris Zbarsky
2e6611eca0
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
James Kitchener
41dd9cfa20
Bug 796850 - Change XMLHttpRequest interface to support ByteString r=bz
2013-06-13 01:20:10 -04:00
James Kitchener
411a37e6e9
Bug 796850 - Implement Code Generation for Bytestring in WebIDL bindings r=bz
2013-06-13 01:18:35 -04:00
Boris Zbarsky
a1ca41876c
Bug 829248. Implement basic support for [TreatUndefinedAs=Missing] in WebIDL. r=khuey
...
This does not add support for [TreatUndefinedAs=Missing] in overloaded
methods, since it's not clear what that should really look like.
This also does not require that [TreatUndefinedAs=Missing] on an
argument force it on all later arguments, since it's not clear that we
want that long-term.
2013-06-05 20:51:21 -04:00
Ehsan Akhgari
917c82f714
Bug 861371 - Allow Web IDL enums to have names starting with a digit; r=bzbarsky
...
--HG--
extra : rebase_source : 5ebf235e9408bdfdfd37504e2f79c65978ccf51d
2013-06-03 17:54:46 -04:00
Mike Shal
994cfe0b6b
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Boris Zbarsky
0ba003deb7
Bug 874154. Make sure we don't end up with uninitialized JSObject* or JS::Value in dictionaries. r=ms2ger
2013-05-21 14:15:30 -04:00
Boris Zbarsky
e90b6bf83c
Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey
2013-05-09 13:05:33 -04:00
Reuben Morais
435764efee
Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz
...
--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255
2013-05-17 13:52:32 -07:00
Boris Zbarsky
903eab0e9d
Bug 868715 part 10. Create specializations of Optional for 'any' and 'object' types so that we can have those look like Optional<Handle<Value> > and Optional<Handle<JSObject*> > respectively. r=peterv,sfink
2013-05-16 12:36:56 -04:00
Boris Zbarsky
ee15d5debc
Bug 868715 part 9. Add tracing to WebIDL dictionary return values. r=peterv
2013-05-16 12:36:56 -04:00
Boris Zbarsky
ac41ff38fd
Bug 868715 part 7. Add tracing to dictionaries. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
070682bbbc
Bug 868715 part 6. Add the ability to trace sequence arguments. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
fa5496e7a4
Bug 868715 part 4. Use on-stack Rooted<JSObject*> for 'object' arguments in WebIDL bindings. r=peterv
2013-05-16 12:36:55 -04:00
Boris Zbarsky
f454222082
Bug 868715 part 3. Use on-stack Rooted<Value> for 'any' arguments in WebIDL bindings. r=peterv
2013-05-16 12:36:54 -04:00
Ryan VanderMeulen
1b533138b8
Backed out 6 changesets (bug 868996, bug 867903, bug 869014, bug 870219, bug 861587) for PGO bustage.
...
CLOSED TREE
2013-05-09 17:11:59 -04:00
Boris Zbarsky
bd9f9292cf
Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey
2013-05-09 13:05:33 -04:00
Andrew McCreight
bd6c7a1d67
Bug 851178 - Add support for JS-implemented WebIDL constructors with arguments. r=bz
2013-05-02 18:00:50 -07:00
Boris Zbarsky
859a9538b1
Bug 868448. Fix the successCode in dictionary to-js conversions to actually work right, and document the requirements on successCode better. r=smaug
2013-05-06 08:31:01 -04:00
Cameron McCormack
416ec8db14
Bug 868805 - [LenientThis] attribute's setter should return undefined. r=bz
2013-05-06 12:36:38 +10:00
Boris Zbarsky
bd5b3b40e8
Bug 865785 part 2. Fix rooting issues in JS-implemented webidl. r=mccr8
2013-05-04 21:44:10 -04:00
Boris Zbarsky
bb2222c08c
Bug 865969 part 2. Better rooting in bindings for 'any' arguments. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
4d5cf6450f
Bug 865969 part 1. Better rooting in bindings for 'object' arguments, as well as for worker interface arguments passed as JSObject*. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
8cce01ba03
Add test for bug 560072.
2013-05-02 14:38:20 -04:00
Boris Zbarsky
89ac81bbf5
Bug 742206 part 3. Implement type conversions for Date in WebIDL. r=smaug
2013-05-02 14:38:20 -04:00
Andrew McCreight
61027ffc0b
Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz
2013-04-30 13:30:25 -07:00
Boris Zbarsky
aa284f1a66
Bug 766583 part 6. Stop declaring unions as const on the stack in bindings code. r=smaug
2013-04-25 19:03:07 -04:00
Boris Zbarsky
a4e95d314b
Bug 766583 part 3. Stop declaring nullable things as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
9ba2beac5c
Bug 766583 part 1. Stop declaring dictionaries as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
7a5392b28d
Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
...
There are several changes here:
1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
effectively allow doing a const_cast without knowing the actual type being
templated over. I needed this because I do not in fact know that type in
the relevant code. I'm open to suggestions for a better name for this
method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Boris Zbarsky
3da96fa3de
Bug 863898. Add support for dictionary arguments in JS-implemented WebIDL bindings. r=mccr8
2013-04-25 12:29:55 -04:00
Boris Zbarsky
9c1973b5d2
Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger
2013-04-25 12:29:54 -04:00
Andrew McCreight
e8ee5e30f6
Bug 863880 - Take a less ad hoc approach to forward declarations in bindings generation. r=bz
2013-04-25 08:42:43 -07:00
Boris Zbarsky
de9b7862dc
Bug 731746 part 3. Change JS-implemented webidl codegen to always invoke the parent constructor if there is a parent interface. r=mccr8
2013-04-24 22:44:28 -04:00
Boris Zbarsky
2f17e61fc4
Bug 731746 part 2. Change JS-implemented webidl codegen to pass an nsPIDOMWindow, not an nsISupports, to the object constructor. r=mccr8
2013-04-24 22:44:27 -04:00
Boris Zbarsky
560478bb6b
Bug 843264. Allow returning sequences of non-primitive types from callback methods. r=mccr8
2013-04-24 14:59:14 -04:00