Peter Van der Beken
6fe13563e7
Fix for bug 799465 (Add complete support for non-nsISupports objects in new DOM bindings) - allow non-nsISupports object to be parents. r=bz.
...
--HG--
extra : rebase_source : 00c805373f99213bee8b17b24fed3024b8ac4752
2012-10-09 20:50:26 +02:00
Boris Zbarsky
4e2b097bf2
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
Bobby Holley
9f982e86a6
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
225e9ed8d3
Fix for bug 791347 (Support non-nsISupports refcounted natives and non-refcounted natives in new DOM bindings). r=bz/smaug.
...
--HG--
extra : rebase_source : cd6d98461d7fa3a07fa1361b4d840448122b6655
2012-09-19 15:02:37 +02:00
Boris Zbarsky
7fcdacaf95
Bug 790273. Add support for [LenientThis] in WebIDL. r=peterv
2012-09-12 17:24:58 +01:00
Peter Van der Beken
bb71680e0a
Bug 753517 part 5. Enable the list IC for new DOM bindings too. r=bz.
2012-08-24 09:32:26 -07:00
Luke Wagner
ce71e55555
Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
...
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Peter Van der Beken
854457d901
Fix for bug 768692 (Move DOM list binding generation to the new DOM binding codegen). r=bzbarsky.
...
--HG--
extra : rebase_source : 651a0fac4c9a87ef1c0a9cd91588c6421fd050c4
2012-05-22 15:46:20 +02:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Boris Zbarsky
42210976c4
Bug 747287 - Part 3: Add callback interface to allow JIT to interrogate DOM. (r=peterv)
2012-08-07 22:26:18 -07:00
Ms2ger
b2e7e838fd
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
Ed Morley
4eb11bee72
Revert inbound to 3d5d1daa2505 to stop OS X M5 failures (backout not clean/could have been a bad merge) on a CLOSED TREE
2012-08-04 18:05:15 +01:00
Ms2ger
e8f42a2d03
Bug 774705 - Part b: Throw a TypeError when trying to construct an interface without a constructor; r=bz
2012-08-04 09:44:00 +02:00
Boris Zbarsky
43cfe7de05
Bug 771636 part 3. Implement default values for WebIDL strings. r=peterv
2012-07-31 00:22:23 -04:00
Peter Van der Beken
e6c18ed006
Fix for bug 774775 (XRayWrapper does not handle new bindings constants) - refactor code. r=bz.
...
--HG--
extra : rebase_source : 317d5942dde4427384320cb334f794f7fef37a2e
2012-07-18 13:52:07 +02:00
Ed Morley
a2bf606a9d
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-07-18 13:32:24 +01:00
Ms2ger
d900ce7ddd
Bug 765464 - Part c: Throw some TypeErrors; r=khuey
2012-07-18 12:36:08 +02:00
Boris Zbarsky
acc628da33
Bug 773519 followup to make this code deal with silly string consumers too. No review.
2012-07-17 13:20:40 -04:00
Boris Zbarsky
43ec97d865
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Ed Morley
57e533a7ae
Backout 9deb8edb5070 (bug 773519), ea5a243a60f1 & 0cad1e553bea (bug 768537) for compilation failures
2012-07-17 17:48:11 +01:00
Boris Zbarsky
0d00149778
Bug 773519. Speed up string argument conversion in DOM bindings by faking an XPCOM string. r=peterv
2012-07-17 12:18:53 -04:00
Peter Van der Beken
52a7369c47
Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz.
2012-06-13 17:14:15 +02:00
Matt Brubeck
250881f221
Back out 438c192e561b and d6f341e77b68 (bug 762652, bug 762654) on suspicion of breaking Windows PGO tests
2012-06-27 16:24:53 -07:00
Peter Van der Beken
61a79011e0
Fix for bug 762652 (Add the new DOM bindings API to CanvasRenderingContext2D). r=bz.
...
--HG--
extra : rebase_source : 8e7a2722aa1fb089baa6c1aa8604dcd0e91c1ff2
2012-06-13 17:14:15 +02:00
Peter Van der Beken
b6c85dca77
Fix for bug 756258 (Support union types in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 5352801a4eb5085f73a5b6e78aa238c5c9d44179
2012-05-18 23:25:47 +02:00
Ms2ger
def1cc5c96
Bug 765704 - Don't throw when setting XHR.responseType to an invalid value; r=bz
2012-06-21 09:11:07 +02:00
Peter Van der Beken
eeca8d5fd4
Fix for bug 762651 (Add wrappercache to CanvasRenderingContext2D). r=bz.
2012-06-04 21:41:51 +02:00
Bill McCloskey
fbd438fda7
Bug 765034 - Fix unusual DOM proto array case (r=bz)
2012-06-18 17:04:38 -07:00
Boris Zbarsky
80e043d181
Bug 750297 part 1. Add support for objects that do not have a wrapper cache in WebIDL bindings. r=peterv
2012-06-15 16:25:50 -04:00
Peter Van der Beken
c13ddebfa6
Fix for bug 760131 (Quickstub argument unwrapping fails for security-wrapped list proxy and paris binding objects). r=bz.
...
--HG--
extra : rebase_source : 945d58f3b73f25f05528e6c6d69745215cb4793a
2012-06-01 18:24:52 +02:00
Benoit Jacob
de4a33c534
Bug 763604 - Use typename for type parameters of template template parameters in BindingUtil.h - r=bz
2012-06-12 17:19:52 -04:00
Boris Zbarsky
3b19e0751d
Bug 742153 part 3. Implement codegen for dictionary arguments. r=peterv
...
Another implementation option would be to put all the dictionaries in a single
file and have a static global set of ids which works across all dictionaries
and is initialized once at startup or so. That would also handle cross-file
dictionary inheritance better.
One problem that remains is the fake descriptor business. At the moment this
does not allow interface types inside dictionaries. We could probably work
around this by either refactoring code to make it possible to get the declType
independently of the actual conversion template (whether because it lives in a
separate function or because the conversion template generator knows to just
return an empty string when the fake descriptor provirder is passed) or by
figuring out a way to pass an actual descriptor provider to dictionary codegen.
2012-06-12 10:22:05 -04:00
Boris Zbarsky
f2c8c366eb
Bug 761707 followup. Restore an assert that should not have gone away. r=ms2ger
2012-06-08 17:42:51 -04:00
Boris Zbarsky
31ccf86cf9
Bug 761707 part 2. Drop the vestigial jsclass argument to UnwrapDOMObject. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
e90ba0af0f
Bug 761707 part 1. Rip out the various infrastructure for allowing different slot indices on different DOMJSClass instances. r=bholley
2012-06-06 15:59:46 -04:00
Boris Zbarsky
4da2b3d7c1
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
6f97943e7a
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
86da6f4a01
Bug 755636 part 1. Convert sequence argument codegen to dom::Sequence. r=peterv
2012-05-25 01:08:22 -04:00
Boris Zbarsky
07d55e8274
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
9d914e1ea6
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
Ms2ger
5a68e74435
Bug 754968 - Part c: Make BindingUtils.h not require private xpconnect headers; r=bholley
2012-05-18 10:29:40 +02:00
Boris Zbarsky
4109586b27
Bug 748267 part 2. Implement codegen for dealing with sequence arguments. r=peterv
2012-05-15 14:23:29 -04:00
Boris Zbarsky
82f60b49c9
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
Boris Zbarsky
f9223bdfac
Bug 753518. Add an explicit way for GetParentObject to return an (nsISupports*,nsWrapperCache*) pair. r=peterv
2012-05-10 15:24:59 -04:00
David Rajchenbach-Teller
e6457109ef
Bug 739740 - Export libc constants to JS. r=khuey
2012-05-09 12:00:48 +02:00
Boris Zbarsky
fa88b9861d
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
d3adeb4433
Back out 1907bf7e6d7c (bug 749485) for build bustage
2012-05-05 20:33:59 -07:00
Boris Zbarsky
cc67ef4fb6
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
Ryan VanderMeulen
4392d08bb5
Back out b5fd22efe23d (bug 739740) due to bustage. r=TryFTW
2012-05-03 18:51:14 -04:00
David Rajchenbach-Teller
e67cd24a59
Bug 739740 - Export libc constants to JS. r=khuey,glandium
2012-04-30 12:14:38 +02:00