Boris Zbarsky
062268a773
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
f9834a5efc
Bug 851178 - Add support for JS-implemented WebIDL constructors with arguments. r=bz
2013-05-02 18:00:50 -07:00
Boris Zbarsky
0545ed52a1
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
496feec5db
Bug 868805 - [LenientThis] attribute's setter should return undefined. r=bz
2013-05-06 12:36:38 +10:00
Boris Zbarsky
b0f0481c81
Bug 865785 part 2. Fix rooting issues in JS-implemented webidl. r=mccr8
2013-05-04 21:44:10 -04:00
Boris Zbarsky
155848b4d3
Bug 865969 part 2. Better rooting in bindings for 'any' arguments. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
6e1db48b4d
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
95d647cc40
Add test for bug 560072.
2013-05-02 14:38:20 -04:00
Boris Zbarsky
6b5485ab22
Bug 742206 part 3. Implement type conversions for Date in WebIDL. r=smaug
2013-05-02 14:38:20 -04:00
Andrew McCreight
18efb67705
Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz
2013-04-30 13:30:25 -07:00
Boris Zbarsky
3cb984ef8b
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
38276f8d99
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
eb318bbb88
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
1ffcf1ad91
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
92c3c727a2
Bug 863898. Add support for dictionary arguments in JS-implemented WebIDL bindings. r=mccr8
2013-04-25 12:29:55 -04:00
Boris Zbarsky
b834439797
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
14a0aa1894
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
45135ea107
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
529764fe78
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
d7b1013b15
Bug 843264. Allow returning sequences of non-primitive types from callback methods. r=mccr8
2013-04-24 14:59:14 -04:00
Boris Zbarsky
2693eed75f
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
269a1f1f10
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
e086f4c1c6
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
238dddc9f6
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
78dad25bc3
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
0a02b10ae4
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
3876235aea
Bug 859894: Reland on this CLOSED TREE with a CLOBBER.
2013-04-09 15:39:44 -07:00
Kyle Huey
55b22ee953
Back out bug 859894 to open this CLOSED TREE.
2013-04-09 15:33:05 -07:00
Kyle Huey
b009035d00
Bug 859894: Switch dom/bindings off of mddepend.pl. r=ted
2013-04-09 15:11:43 -07:00
Boris Zbarsky
33622efb8b
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
b6f5bb741b
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
48d68f9676
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
f9536eed2b
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
60943bc7bb
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
f9be62fa75
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
72a717a860
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
43628a7867
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
334c0800cf
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
df5fd49632
Bug 852846. Make .style [PutForwards=cssText]. r=ms2ger
2013-03-20 12:22:25 -04:00
Mike Shal
7ecea60097
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Andrew McCreight
23b2de3bc0
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-18 16:08:50 -07:00
Kyle Huey
5a7ceaeb53
Back out Bug 827486 for PGO bustage. CLOSED TREE
2013-03-18 13:00:00 -07:00
Andrew McCreight
c05787362b
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-18 10:19:42 -07:00
Phil Ringnalda
8d356d6b0e
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
2f241cd167
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-17 09:58:10 -07:00
Phil Ringnalda
e9aaf10590
Back out f408dd29944c:db5c280d1907 (bug 827486) for probably having needed a clobber
...
CLOSED TREE
2013-03-16 18:16:37 -07:00
Andrew McCreight
50dabe9de0
Bug 827486, part 7 - add basic code gen test. r=bz
2013-03-16 16:22:23 -07:00
David Zbarsky
2eed062df0
Bug 842201 - SVGUnitTypes interface object is not being instantiated r=bz
2013-03-13 14:07:49 -04:00
Ms2ger
34912e5df7
Bug 831879 - Disable "maybe used uninitialized" warnings in dom/bindings; r=khuey
2013-03-10 08:58:21 +01:00
Boris Zbarsky
22feb10e39
Bug 847119. Fix the "did the DOM call throw?" test in IonMonkey to check the return value correctly. r=jandem
2013-03-05 13:41:24 -05:00