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
Boris Zbarsky
18e59668bd
Bug 863386. Add support for nullable enum arguments and return values. r=mccr8
...
This incidentally fixes bug 843355
2013-04-19 23:04:19 -04:00
Peter Van der Beken
7c90dee12e
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 3eef5382c32927ac321db47003a974768cbdaf6e
2013-04-16 19:02:57 +02:00
Olli Pettay
b1ddad7f2c
Bug 863094 - Infinity/-Infinity/NaN defaults for unrestricted types, r=bz
...
--HG--
extra : rebase_source : c2495008be9b084656222e6a0773c72d5224e9cc
2013-04-18 19:58:01 +03:00
Olli Pettay
568cea39db
Bug 862991 - If dictionary member needs cx, so should dictionary itself, r=bz
...
--HG--
extra : rebase_source : a495d79df021e896d3b7695a7d11da8d52559c28
2013-04-17 23:40:54 +03:00
Ryan VanderMeulen
3b5b1e9f13
Backed out changeset 409285b3f69c (bug 862092) for mochitest-2 failures on a CLOSED TREE.
2013-04-17 11:48:34 -04:00
Peter Van der Beken
d80727e491
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 1905aa3aa956a599e9ce1de8866f7dc58feb73be
2013-04-16 19:02:57 +02:00
Kyle Huey
7cc06acbc5
Bug 859894: Reland on this CLOSED TREE with a CLOBBER.
2013-04-09 15:39:44 -07:00
Kyle Huey
33b6a6d614
Back out bug 859894 to open this CLOSED TREE.
2013-04-09 15:33:05 -07:00
Kyle Huey
3e1a12c496
Bug 859894: Switch dom/bindings off of mddepend.pl. r=ted
2013-04-09 15:11:43 -07:00
Boris Zbarsky
6d1fe7f08a
Bug 856819 part 2. Sort js-implemented interfaces in a given file so that the declarations in C++ come in the right order. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
0bbbeb9739
Bug 856841. Don't pass in an implicit JSContext based on argument or return value types for JS-implemented interfaces. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
d1d7bbfca7
Bug 852219 part 6. Handle cases when the C++ class we want to actually inherit from is not the one that the WebIDL interface is mapped to. r=mccr8
2013-04-03 22:22:16 -04:00
Boris Zbarsky
c4a0a2468f
Bug 852219 part 5. Add tests for JS-implemented interfaces inheriting from other interfaces. r=mccr8
2013-04-03 22:22:15 -04:00
Boris Zbarsky
1f72f2ad4e
Bug 856215. Fix conversion of sequences of sequences to JS to not screw up its indexing. r=khuey
2013-04-02 20:20:38 -04:00
Boris Zbarsky
436faf79ed
Bug 841429. Fix callback codegen for optional arguments with default values. r=mccr8
...
The change to enum wrapping is just to fix an indentation bug I ran into while reading the generated code for some of these test methods.
2013-04-01 17:17:17 -04:00
Kyle Machulis
5aa83c3e11
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
c79ccc0693
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
a59d40f143
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Boris Zbarsky
e7da54689a
Bug 852846. Make .style [PutForwards=cssText]. r=ms2ger
2013-03-20 12:22:25 -04:00
Mike Shal
9680b82df6
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Andrew McCreight
90585f34e5
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-18 16:08:50 -07:00
Kyle Huey
75a0778ab2
Back out Bug 827486 for PGO bustage. CLOSED TREE
2013-03-18 13:00:00 -07:00
Andrew McCreight
5b6aea0c17
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-18 10:19:42 -07:00