Boris Zbarsky
adaf4de7d2
Add more tests for sequence and typed array codegen. No bug, no review.
2012-05-29 23:45:18 -04:00
Boris Zbarsky
6785038c42
Bug 743906 part 3. Stop listing default values for optional arguments with no defaults, now that we're guaranteed to only examine such values if argc is big enough. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
f4767d734a
Bug 743906 part 2. Use Optional<> for optional arguments that don't have default values. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
61a96793d6
Bug 743906 part 1. Improve test coverage for various interface arguments. r=peterv
2012-05-29 23:45:18 -04:00
Boris Zbarsky
c678f9e315
Bug 755636 part 2. Add some tests (not exhaustive!) for sequence codegen and fix the bugs they uncover. r=peterv
2012-05-25 01:08:26 -04:00
Boris Zbarsky
52a20a9207
Bug 755636 part 1. Convert sequence argument codegen to dom::Sequence. r=peterv
2012-05-25 01:08:22 -04:00
Boris Zbarsky
78bc29d95f
Bug 750264. Give IDLType an operator!= so that codegen actually works correctly. r=khuey
2012-05-25 01:07:30 -04:00
Boris Zbarsky
4282e2d242
Bug 749864. Codegen for typed array and arraybuffer arguments. r=peterv
2012-05-25 01:07:03 -04:00
Kyle Huey
dccb34092f
Update webidl-parser snapshot to pick up bug 742145.
2012-05-24 21:41:33 -07:00
Boris Zbarsky
61f32ddabf
Bug 753642. Rip out the codegen for the Xray-related bits of worker bindings, since we don't have Xrays in workers. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
e55db2b828
Bug 755080 part 3. Exercise castable interface types a bit. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
b711131bec
Bug 755080 part 2. Exercise integer types a bit. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
e773b80a28
Bug 755080 part 1. Add infrastructure for binding codegen tests. r=khuey,peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
1e84000e3b
Bug 753522. Add support for controlling the existence of methods, properties, interface constants, etc with a pref. r=peterv
2012-05-23 12:44:48 -04:00
Peter Van der Beken
edd0f71b9b
Fix for bug 756257 (Replace xpc_qsDOMString with a conversion function in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 3f5ac89f72fade970f9f3505b93e51ac44ee7525
2012-05-18 23:25:46 +02:00
Peter Van der Beken
6556500061
Fix for bug 756256 (Add support for object arguments and return types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : ceffb38d662395c6aa8e02281fe6e07925fc2362
2012-04-26 23:44:28 +02:00
Peter Van der Beken
0286ef621c
Fix for bug 756251 (Pass extendedAttributes to CGCallGenerator). r=bz.
...
--HG--
extra : rebase_source : ceb7b4516b8ddfed63e2abada2cff5222f4f6973
2012-04-26 23:44:28 +02:00
Peter Van der Beken
4865f91951
Fix for bug 756231 (Remove NativeToSupports, replace with reinterpret_cast). r=bz.
...
--HG--
extra : rebase_source : b7a2e204b9db7457312af6179aa516f4849c7f92
2012-04-26 23:44:28 +02:00
Peter Van der Beken
889699aeee
Fix for bug 756225 (Make CGNamespace.build respect declareOnly). r=bz.
...
--HG--
extra : rebase_source : 77729639e018cef8aef04ecb3f3cc0f818cb560c
2012-04-26 23:44:28 +02:00
Peter Van der Beken
1196e09714
Fix for bug 741263 (Paris bindings constructors shouldn't abuse reserved identifiers). r=bz.
...
--HG--
extra : rebase_source : cec6a0ffc58f3d7d262dc9658d52aac424ec715a
2012-04-26 22:57:33 +02:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
c07eaa0e3e
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
9ae1966596
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
a863456144
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Ms2ger
5623a92079
Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley
2012-05-18 10:29:40 +02:00
Boris Zbarsky
dd04ca96d7
Bug 754457. Disallow copy-construction of ErrorResult, so it can only be passed by reference, not by value. r=peterv
2012-05-15 14:23:29 -04:00
Boris Zbarsky
f9c55c7598
Bug 748267 part 3. Codegen for sequence return values. r=peterv
...
The big block in getRetvalDeclarationForType is just direct cut/paste from CGCallGenerator plus the addition of the sequence case. The IDL parser changes were OKed by khuey; they're needed so that we don't have to worry about the ordering of sequence with conversions for strings and primitives.
2012-05-15 14:23:29 -04:00
Boris Zbarsky
2e5443afcb
Bug 748267 part 2. Implement codegen for dealing with sequence arguments. r=peterv
2012-05-15 14:23:29 -04:00
Boris Zbarsky
47ff20f5dc
Bug 748267 part 1. Refactor js-to-native conversion to make it not assume it's only happening on stack arguments. r=peterv
...
The changes in CastableObjectUnwrapper and CallbackObjectUnwrapper are
basically reindentation. Similar for the actual conversion changes for all the
non-interface types, though for those the actual declaration of the thing being
converted to has moved out, since we may not be converting onto the stack.
2012-05-15 14:23:29 -04:00
Ms2ger
8ffd5be09b
Bug 764539 - Stringify the prototype class in Paris bindings to "InterfacePrototype" instead of "Interface Prototype"; r=bz
2012-06-21 09:20:28 +02:00
Ms2ger
52f62c5641
Bug 765704 - Don't throw when setting XHR.responseType to an invalid value; r=bz
2012-06-21 09:11:07 +02:00
Boris Zbarsky
7461c7ed23
Alphabetize the interface list in Bindings.conf. r=peterv, no bug
2012-05-10 15:24:59 -04:00
Boris Zbarsky
414c2659a1
Bug 753518. Add an explicit way for GetParentObject to return an (nsISupports*,nsWrapperCache*) pair. r=peterv
2012-05-10 15:24:59 -04:00
Peter Van der Beken
e8ffd52b82
Fix for bug 752042 (Support running code after successful wrapping in Paris bindings). r=bz.
2012-04-26 23:44:24 +02:00
David Rajchenbach-Teller
50cef29c5b
Bug 739740 - Export libc constants to JS. r=khuey
2012-05-09 12:00:48 +02:00
Kyle Huey
f008076292
Update the WebIDL Parser to pick up Bug 753459. r=bz
2012-05-09 11:49:56 -07:00
Luke Wagner
d266538fea
Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
...
--HG--
extra : rebase_source : 036acbd046ff8b42f81e63933901b6aaaa595a76
2012-05-07 12:44:08 -07:00
Boris Zbarsky
90b5c814e8
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Phil Ringnalda
ce8665a6aa
Back out 1907bf7e6d7c (bug 749485) for build bustage
2012-05-05 20:33:59 -07:00
Boris Zbarsky
1833a29c14
Bug 749485. Switch new DOM bindings to using a struct for keeping track of failures for fallible methods. r=peterv,bent
...
ErrorResult is in a separate header file so it can be included from all over the
place without having to pull in mozilla/dom/Utils.h and all the xpconnect gunk
that needs.
2012-05-05 21:15:11 -04:00
Boris Zbarsky
2bed717c4f
Bug 748637. Refactor argument conversion to primitive values to make it easier to extend in the future. r=peterv
2012-05-04 12:38:48 -04:00
Boris Zbarsky
25cfe62d86
Bug 747827. Add some structs that can be used to represent typed arrays in DOM bindings. r=peterv
2012-05-04 12:36:56 -04:00
Ryan VanderMeulen
270738f819
Back out b5fd22efe23d (bug 739740) due to bustage. r=TryFTW
2012-05-03 18:51:14 -04:00
David Rajchenbach-Teller
256ca5f4b1
Bug 739740 - Export libc constants to JS. r=khuey,glandium
2012-04-30 12:14:38 +02:00
Peter Van der Beken
ed885d50a9
Fix for bug 741367 (Creating second XMLHttpRequest via Components.Constructor throws NS_ERROR_FAILURE): don't overwrite content-defined properties. r=bz.
...
--HG--
extra : rebase_source : f9c7fe34d4cde28cafea0536e305704e2dc04ff7
2012-04-27 09:57:09 +02:00
Peter Van der Beken
7eb62e9704
Fix for bug 742156 (Stringifying EventTarget throws): implement a toString method for interface objects. r=bz.
...
--HG--
extra : rebase_source : cd692b5231e4d183e0bbd368965e704ede54661f
2012-05-02 15:28:17 +02:00
Peter Van der Beken
25970d2711
Fix for bug 744772 (Trace the DOM interface object array). r=bz.
...
--HG--
extra : rebase_source : c9f27bed0eab0e6db03295050176ef986cf0b59b
2012-05-02 14:49:43 +02:00
Boris Zbarsky
577419e736
Bug 748983. Fix the instanceof behavior for new bindings in situations where we don't need a custom hasInstance hook. r=peterv
2012-05-03 00:35:38 -04:00
Boris Zbarsky
32c7f6e634
Bug 742217. Reduce the use of nested namespaces in our binding code. r=peterv,bent
...
In the new setup, all per-interface DOM binding files are exported into
mozilla/dom. General files not specific to an interface are also exported into
mozilla/dom.
In terms of namespaces, most things now live in mozilla::dom. Each interface
Foo that has generated code has a mozilla::dom::FooBinding namespace for said
generated code (and possibly a mozilla::bindings::FooBinding_workers if there's
separate codegen for workers).
IDL enums are a bit weird: since the name of the enum and the names of its
entries all end up in the same namespace, we still generate a C++ namespace
with the name of the IDL enum type with "Values" appended to it, with a
::valuelist inside for the actual C++ enum. We then typedef
EnumFooValues::valuelist to EnumFoo. That makes it a bit more difficult to
refer to the values, but means that values from different enums don't collide
with each other.
The enums with the proto and constructor IDs in them now live under the
mozilla::dom::prototypes and mozilla::dom::constructors namespaces respectively.
Again, this lets us deal sanely with the whole "enum value names are flattened
into the namespace the enum is in" deal.
The main benefit of this setup (and the reason "Binding" got appended to the
per-interface namespaces) is that this way "using mozilla::dom" should Just
Work for consumers and still allow C++ code to sanely use the IDL interface
names for concrete classes, which is fairly desirable.
--HG--
rename : dom/bindings/Utils.cpp => dom/bindings/BindingUtils.cpp
rename : dom/bindings/Utils.h => dom/bindings/BindingUtils.h
2012-05-03 00:35:38 -04:00
Kyle Huey
e69d4afe08
Sync webidl-parser to m-c to pick up Bug 742141. r=me a=me
2012-05-01 23:23:45 -04:00
Peter Van der Beken
7d387b6e1a
Fix for bug 741267 (UserScript's XMLHttpRequest is undefined in 20120401 nightly).
...
Pass two objects when creating a DOM interface object, the global used to cache
the DOM interface objects and a receiver object on which the named property is
that points to the DOM interface object.
--HG--
extra : rebase_source : b462393e7376fdb68f3b279ccd08b3ab25ac154a
2012-04-23 16:10:56 +02:00
Boris Zbarsky
8037497b41
Bug 747826. Return the value inside a Nullable by reference, not by value, so Nullable around some sort of complex type works sanely. r=peterv
2012-04-26 00:42:37 -04:00
Boris Zbarsky
b12a3e7927
Bug 747819. When wrapping non-prefable objects, don't generate a fallback-to-XPConnect codepath. r=peterv
2012-04-26 00:42:20 -04:00
Boris Zbarsky
e2ed0fe94a
Bug 747815. Use const strings for arguments in DOM bindings. r=peterv
2012-04-26 00:42:03 -04:00
Masatoshi Kimura
0452126e19
Bug 744910 - Remove FileException from workers. r=bent
2012-04-24 19:50:00 -04:00
Matt Brubeck
2993d5d45a
Back out a0bc511b1d75 (bug 744910) and c85d6a254baa (bug 673752) on suspicion of causing Win debug "make check" hangs
2012-04-24 20:47:13 -07:00
Ehsan Akhgari
a992263c77
Merge mozilla-central into mozilla-inbound
2012-04-24 21:29:44 -04:00
Ehsan Akhgari
06098487ea
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Boris Zbarsky
28bff92675
Bug 742197. Make unannotated non-nullable string arguments stringify null and undefined in the webidl bindings. r=peterv
2012-04-18 15:28:01 -04:00
Boris Zbarsky
1bf290b35e
Bug 742422. Make DOM prototypes more typeinference-friendly. r=peterv
2012-04-18 12:11:55 -04:00
Boris Zbarsky
a21ade7908
Bug 742425. Remove the extra compartment-entering code we don't need. r=peterv
2012-04-18 12:11:33 -04:00
Boris Zbarsky
b0927ddc59
Bug 742170. Use CGThings in CGCreateInterfaceObjectsMethod more. r=peterv
2012-04-18 12:10:48 -04:00
Boris Zbarsky
e6901a65af
Bug 742168. Refer to experimental bindings, not Paris bindings, in the pref code, since it will only control a subset of the Paris bindings. r=peterv
2012-04-18 12:02:04 -04:00
Boris Zbarsky
a804cbf55a
Bug 745899. Make it easier to use Nullable for non-primitive types. r=peterv
2012-04-18 12:01:18 -04:00
Ms2ger
1de8ab38d4
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
8299fe6b09
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
7164d44025
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Masatoshi Kimura
7a010701c4
Bug 744910 - Remove FileException from workers. r=bent
2012-04-24 19:50:00 -04:00
Boris Zbarsky
427126be53
Bug 743820. Update to the changes to WebIDL that made interfaces with indexed properties distinguishable from array and sequence. r=khuey
...
There are two parts to this change:
1) Sequences and arrays are now distinguishable from all non-callback interfaces.
2) To handle that change, overload resolution first tries to convert to the exact
interface, and only if that fails tries to convert things with indexed properties
to sequences or arrays.
2012-04-13 13:52:21 -04:00
Kyle Huey
4c09299fd0
Bug 741125: Update WebIDL parser.
2012-04-12 15:14:10 -07:00
Boris Zbarsky
271e803092
Bug 742184. Use CGThings for whitespace munging in CGNativeToSupportsMethod. r=peterv
2012-04-10 12:40:12 -04:00
Boris Zbarsky
bd8ddda62a
Bug 742200. Use JSVAL_VOID, not JSVAL_NULL, as the default value for optional arguments that are not specified. r=peterv
2012-04-10 12:40:12 -04:00
Boris Zbarsky
0744334b26
Bug 742167. Give extendedAttribute() a better name. r=khuey
2012-04-10 12:40:12 -04:00
Kyle Huey
14ec5a7315
Refix bug 741248. r=me
2012-04-09 13:48:44 -07:00
Takanori MATSUURA
6ba21f9576
Bug 737006 - Use internal ply only if needed. r=khuey
2012-04-06 14:06:52 -04:00
Ehsan Akhgari
b74a7df1cf
Merge mozilla-inbound and mozilla-central
2012-04-05 13:41:51 -04:00
Ehsan Akhgari
e130fd8945
Merge the last green PGO changeset from mozilla-inbound to mozilla-central
2012-04-05 13:40:53 -04:00
Boris Zbarsky
2d4ce165e0
Bug 742222. Make sure to JS_WrapValue values being returned for callback types and 'any' types. r=peterv
2012-04-05 13:14:54 -04:00
Kyle Huey
1b361b0c81
Bug 741248: Attempt a fix by twiddling the makefile a bit. r=me
2012-04-04 19:11:30 -07:00
Kyle Huey
64746c0dee
Backed out changeset 3a0940f90455
2012-04-04 13:42:12 -07:00
Kyle Huey
4a035a99ee
Bug 741125: Update WebIDL parser.
2012-04-04 12:07:28 -07:00
Peter Van der Beken
c2e642fbcc
Fix for bug 740069 (Generate JS bindings in C++ with a python script for DOM objects on the main thread and in workers. Infrastructure and new bindings for XMLHttpRequest). Patch by bent/bz/bholley/jst/khuey/peterv, r=bent/bz/bholley/jlebar/khuey/peterv/sicking/smaug.
...
--HG--
rename : js/xpconnect/tests/mochitest/test_bug462428.html => dom/bindings/test/test_lookupGetter.html
2012-03-30 21:42:20 -07:00
Igor Bukanov
83623b313c
Bug 737365 - stop using the cx during finalization, part 1.
...
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Tom Schuster
fef9c89dba
Bug 711843 - Update JSAPI for typed arrays, remove uses of jstypedarray.h outside the engine [r=Waldo,bz,Ms2ger,bholley,bjacob,philikon,evilpie,bent,yourmama] [a=mfinkle thanks to gkw]
2012-01-14 09:43:00 -08:00