William Chen
d1af75e2b2
Bug 807034 - Fix WebIDL codegen for static readonly attributes. r=bz
2012-10-30 11:38:58 -07:00
Vendelin Ruzicka
f5b244c1ab
Bug 806184 - Can't use 'delete' method in WebIDL. r=bz
2012-10-31 13:36:20 +01: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
74736c6026
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript). r=bz.
...
Switch from using the interface objects from the Xrays compartment to wrapping
interface objects and interface prototype objects in Xrays. Make dom binding
Xrays deal with both instance objects and interface and interface prototype
objects.
2012-10-09 20:50:27 +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
Peter Van der Beken
b2aa62b694
Fix for bug 778152 (Content window does not have an XMLHttpRequest property when accessed via an Xray wrapper in a subscript) - rename ProtoOrIfaceArray. r=bz.
2012-10-09 20:50:27 +02:00
Bobby Holley
60fc9cb7db
Bug 797821 - Address Ms2ger's review comments. r=me
2012-10-25 17:01:09 +02:00
Bobby Holley
491fc4b110
Bug 797821 - Replace usage of XPCWrappedNativeScope::FindInJSObjectScope(ccx, obj) with GetObjectScope(obj). r=mrbkap
2012-10-25 17:01:08 +02:00
Boris Zbarsky
9dcdb067ae
Bug 804725. Use the right type name for interface arguments for binding example codegen. r=jst
2012-10-24 16:10:49 -04: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
be267542fa
Bug 798187 even more followup. Disable broken WebGL test, and update to Peter's review comments. r=peterv
2012-10-22 15:14:30 -04:00
Boris Zbarsky
ec8fbbcbed
Bug 798187 followup. Actually return our newly-created object from dictionary ToObject. r=peterv
2012-10-22 14:35:08 -04:00
Boris Zbarsky
0173fe62ec
Bug 798187 part 1. Add support for dictionary return values. r=peterv
2012-10-22 13:08:52 -04:00
Boris Zbarsky
8359177e11
Bug 798151. Support stringifier operations (but not yet attributes!) on non-proxy bindings, and fix Object.prototype.toString for proxy bindings. r=peterv
2012-10-22 13:08:52 -04:00
Boris Zbarsky
b1d20eedf6
Bug 801712 part 3. Make object return values faster by only doing the JS_WrapValue if needed. r=peterv
2012-10-22 13:08:52 -04:00
Boris Zbarsky
0aa2b783ae
Bug 802636. Add a test that makes sure that codegen and example generation agree with each other. r=jst
2012-10-17 21:17:16 -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
9942688c9d
Bug 796983 part 1. Switch nullable primitives to using a const Nullable. r=jst
2012-10-17 17:01:55 -04:00
Ehsan Akhgari
c5ad528a77
Merge mozilla-central into mozilla-inbound
2012-10-16 20:43:47 -04:00
Olli Pettay
b34aef8a32
Bug 797806 - Helper method to handle stringified JSON in C++, part2, r=khuey
2012-10-16 18:37:44 +03:00
Olli Pettay
2f72f31a9d
Bug 797806 - Helper method to handle stringified JSON in C++, r=khuey
2012-10-16 17:52:10 +03:00
Peter Van der Beken
bd9ee3a1da
Fix for bug 798264 (Split property tables). r=bz.
2012-10-09 20:50:05 +02:00
Peter Van der Beken
f8c638299a
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - fix CC traversal and wrapper preservation. r=bz.
2012-09-26 20:12:15 +02:00
Trevor Saunders
1c337c0474
Bug 742191 - Part d: Throw TypeErrors for Paris binding exceptions; r=bz
2012-10-16 14:06:10 -04:00
Boris Zbarsky
94e2400252
Bug 792890. Fix JS-wrapping of callback interfaces to just return the underlying JS object. r=peterv
...
There are several changes here:
1) When wrapping a callback interface object for JS, just extract the
underlying JSObject from inside it and hand that object out.
2) Flag callback interface descriptors as "not concrete" (only matters
for cases when they have constants on the interface object) and not
wrappercached (will catch bugs if someone tries to treat them as a
Gecko object).
3) Fix a preexisting bug in sequence wrapping where we'd try to
JS_DefineElement twice if we were wrapping a null value for a
sequence of nullable interface objects.
2012-10-10 15:57:57 -04:00
Boris Zbarsky
a265c27af7
Bug 792137. [TreatNonCallableAsNull] lives on the callback type now. r=peterv
2012-10-10 15:53:02 -04:00
Bobby Holley
351440d25e
Bug 761695 - Implement expando traps for ProxyXrayTraits DOMXrayTraits. r=peterv
...
For new DOM proxies, we could probably use the Xray expando machinery for the
regular expando object as well, and free up one of the reserved slots. That's
more than I want to bite off for the moment, though.
I also decided not to block on bug 760095 and just kick the problem of globals
with new binding down the road a little bit.
2012-10-05 18:59:23 +02:00
Peter Van der Beken
8eb9b454dc
Fix for bug 791774 (Hook DOM lists up to the new DOM bindings). r=bz.
2012-06-13 17:18:30 +02:00
Peter Van der Beken
c8e36e3c3c
Fix for bug 794959 (Use the right cast in GetAs* functions of union types in new DOM bindings). r=bz.
2012-09-26 16:17:46 +02:00
Peter Van der Beken
adfea5eaeb
Fix for bug 791347 (Support non-nsISupports refcounted natives and non-refcounted natives in new DOM bindings). r=bz/smaug.
2012-09-19 15:02:37 +02:00
Terrence Cole
e13b7397b1
Bug 791322 - Move Rooted to js:: namespace; r=billm
...
These should not be part of the public API.
2012-09-24 18:08:22 -07:00
Bill McCloskey
a9639201b2
Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett)
2012-09-03 16:42:17 -07:00
Bill McCloskey
d293598030
Bug 787856 - Convert js::GetObjectProto to support lazy protos (r=bhackett)
2012-09-03 16:42:10 -07:00
Kyle Huey
d29cd8b0f1
Bug 793025: Convert FileReaderSync to WebIDL bindings. r=bz
2012-09-20 19:47:47 -07:00
Boris Zbarsky
35f68b91c9
Bug 790975. Support sequences as dictionary members in WebIDL. r=peterv
2012-09-18 23:24:27 -04:00
Peter Van der Beken
ad6d086202
Fix for bug 791345 (Support non-wrappercached objects in proxy-based bindings). r=bz.
2012-09-17 11:44:59 +02:00
Peter Van der Beken
fa5b9d1c61
Fix for bug 768684 (Fix sequence<any> return type in WebIDL). r=bz.
2012-06-13 17:15:05 +02:00
Boris Zbarsky
d14e5db1fc
Bug 790273. Add support for [LenientThis] in WebIDL. r=peterv
2012-09-12 17:24:58 +01:00
Boris Zbarsky
cd63ad6e85
Bug 787554. Don't prefix WebIDL getters names with a Get if they look like simple member access on the C++ side. r=peterv
2012-09-11 20:08:24 +01:00
Boris Zbarsky
b4a1565db0
Bug 789636. Make getInterface on XHR and QueryInterface on all WebIDL objects be [ChromeOnly]. r=peterv
2012-09-11 20:08:24 +01:00
Boris Zbarsky
9798b7e333
Bug 790123. Make sure to not lose a single trailing newline in stripTrailingWhitespace. r=mats
2012-09-11 18:37:22 +01:00
Terrence Cole
4bb6f51dae
Bug 787580 - Root all jsval at the API surface; r=sfink sr=dmandelin
2012-09-04 16:40:12 -07:00
Ed Morley
e61bbce2d4
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-09-06 10:19:16 +01:00
Ms2ger
6e470a8615
Bug 763367 - Add support for [EnforceRange] and [Clamp]; r=bz
2012-09-06 09:25:03 +02:00
Ms2ger
9b5448458d
Bug 768793 - Remove DOMJSClass::mGetWrapperCacheVTableOffset; r=khuey
2012-09-06 09:14:49 +02:00
Ms2ger
62e3e2b557
Bug 788211 - Fix a few bugs in CGDOMJSProxyHandler_defineProperty; r=bz
2012-09-06 09:14:48 +02:00
Nathan Froyd
aa6b0cb9bb
Bug 774757 - don't generate static initializers with new bindings; r=bz
2012-08-29 17:16:23 -04:00
Boris Zbarsky
07abde2878
Bug 778044. Add a way to pref off Paris binding constructor objects. r=peterv
2012-09-05 13:37:28 -04:00
Boris Zbarsky
08e732ed64
Bug 788149. Don't use jsids in worker code in bindings, because those are runtime-specific and workers can run on multiple runtimes. r=peterv
2012-09-05 13:37:27 -04:00
Boris Zbarsky
32ce5b0e50
Bug 778150 part 2. Default methods to infallible. Allow annotation of fallible methods in WebIDL using [Throws]. r=peterv
...
[Throws] can either take no value, or can take MainThread or Workers if the
throwing behavior is only happening on main thread or in workers.
2012-09-05 09:21:33 -04:00