Peter Van der Beken
a265b4162a
Fix for bug 774775 (XRayWrapper does not handle new bindings constants). r=bz.
...
--HG--
extra : rebase_source : fef985d0417c394ae5997b4450c7076005bdf870
2012-07-17 22:54:25 +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
Ehsan Akhgari
5a262d0761
Bug 749101 - Move window.performance to the new DOM bindings; r=bzbarsky
2012-07-16 21:42:18 -04: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
Boris Zbarsky
bd44efd679
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
0a1d212672
Bug 768537 part 1. Update parser support for dictionaries to spec changes. r=jlebar
...
There are several parts here:
1) Enforce the requirement that dictionary arguments not followed by a required argument are optional.
2) Make dictionaries no longer be distinguishable from nullable types.
3) Disallow dictionaries or unions containing dictionaries inside a nullable type.
4) Force optional dictionaries to have a default value of null so that codegen doesn't have to worry about dealing with
optional arguments that have no default value in the IDL but need to be treated as if they were null.
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
Boris Zbarsky
b6c4ae2de8
Bug 768537 part 2. Allow dictionaries to be initialized with null or undefined, and treat them as dictionaries in which everything has its default value. r=peterv
2012-07-17 12:18:53 -04:00
Boris Zbarsky
a550b8943d
Bug 768537 part 1. Update parser support for dictionaries to spec changes. r=jlebar
...
There are several parts here:
1) Enforce the requirement that dictionary arguments not followed by a required argument are optional.
2) Make dictionaries no longer be distinguishable from nullable types.
3) Disallow dictionaries or unions containing dictionaries inside a nullable type.
4) Force optional dictionaries to have a default value of null so that codegen doesn't have to worry about dealing with
optional arguments that have no default value in the IDL but need to be treated as if they were null.
2012-07-17 12:18:53 -04:00
Peter Van der Beken
629bad9698
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 26d0508b8a11d75164ae4b27af8c64e8845166f9
2012-07-16 16:52:59 +02:00
Ed Morley
c23835f558
Backout 29104ecddc3a (bug 769464) for crashtest assertions
2012-07-16 18:49:14 +01:00
Peter Van der Beken
f6f14ba82b
Fix for bug 769464 (Check mDOMObjectIsISupports when unwrapping). r=bz.
...
--HG--
extra : rebase_source : 1bdf15c06e0e1e89a877a0f74300bf212de5b60e
2012-07-16 16:52:59 +02:00
Peter Van der Beken
4b519aba5e
Fix for bug 762280 (Use nsContentUtils::PreserveWrapper for preserving expandos). r=bz.
...
--HG--
extra : rebase_source : cd426b3c3b987d8e39196e1dd1e468bc87e87f53
2012-07-16 16:52:53 +02:00
Boris Zbarsky
3e8ac4b134
Bug 757164. Move infallibility annotations into webidl. r=peterv
...
In this new setup, there are three new extended attributes: Infallible,
GetterInfallible, SetterInfallible. The first one applies to both methods and
attributes, while the last two apply only to attributes. Each one can be
either set with no value specified (in which case it applies both on main
thread and in workers) or can be set to MainThread or Workers to limit where it
applies.
If Infallible is set on an attribute, then GetterInfallible and
SetterInfallible will be ignored. So if you want to specify, for example, an
attribute that's infallible on the main thread and has an infallible getter in
workers, the right way to do that is [GetterInfallible,
SetterInfallible=MainThread].
2012-07-13 19:29:14 -04:00
Eric Faust
8144c1a6fd
Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett)
2012-07-11 20:55:19 -07:00
Ed Morley
c258987354
Backout 6bbf3f22bb5d (bug 753158), 38a703b244c2 (bug 753145), c9a5dfa1b07d (bug 767750), cd782fd66995 & 6cf7aa93994c (bug 765956), 0253f34f6bc2 & 41d5c8529748 (bug 771039),94f6bf99a4aa (bug 766447),fad7d06d7dd5 (bug 772303) for winxp pgo-only jsreftest failures (caused by fad7d06d7dd5) and the rest for conflicts, on a CLOSED TREE
2012-07-12 13:04:51 +01:00
Eric Faust
356d4133e7
Bug 766447 - Teach TI about the new DOM bindings. (r=bhackett)
2012-07-11 20:55:19 -07:00
Nathan Froyd
5b30baa4c3
Bug 370750 - consolidate mochitest files installation; r=glandium
...
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Boris Zbarsky
79f324124f
Bug 767352. Keep track of a method's overloads in a list of IDLMethodOverload objects. r=jlebar
2012-07-06 12:21:24 -04:00
Ehsan Akhgari
cabe04854b
Backout changeset 4313740f1adc (bug 725907 part 3) under the suspicion of breaking Linux32 mochitest-chrome without framepointers
2012-07-04 19:25:56 -04:00
Jason Orendorff
2b0768c375
Bug 725907 - for-of improvements, part 3: Implement .iterator() for arraylike DOM objects. r=bzbarsky.
...
--HG--
extra : rebase_source : 0820d3654318f217b8836a086234736d3aba3819
2012-07-03 16:34:56 -05:00
Siddharth Agarwal
22a11b0370
Bug 770189 - dom/bindings/parser/runtests.py invocations need to be un-native-commandified. r=khuey
2012-07-03 02:02:42 +05:30
Boris Zbarsky
62837584c4
Bug 768190. Don't allow [TreatNullAs] or [TreatUndefinedAs] on dictionary members. r=jlebar
2012-06-30 01:53:32 -04:00
Boris Zbarsky
a7c253d8cc
Bug 767546. Make the WebIDLError constructor take a list of locations. r=jlebar
2012-06-30 01:53:28 -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
fbfc3faf82
Fix for bug 768533 (Make mozilla::dom::Uint8ClampedArray::Create call JS_NewUint8ClampedArray). r=bz.
...
--HG--
extra : rebase_source : baaf7494f64a91a9315a6e1bed3f75239f8eab81
2012-06-27 11:24:46 +02:00
Peter Van der Beken
1d58234ea3
Fix for bug 768050 (Make TypedArray::Create take a wrapper cache and create JS objects in the compartment of the cache's wrapper). r=bz.
...
--HG--
extra : rebase_source : 3ec03b33913e14a113bf9283566a68fe3be5fe02
2012-06-25 18:37:46 +02:00
Boris Zbarsky
de9dc4a833
Bug 766796 followup to deal with lack of WebGL on Mac OS 10.5. No review.
2012-06-26 01:09:31 -04:00
Boris Zbarsky
9fa48b7247
Bug 766796. Make IDL conversions to 64-bit ints treat NaN and Infinity as 0 instead of whatever the compiler decides to do in that undefined-behavior case. r=peterv
2012-06-25 23:37:47 -04:00
Boris Zbarsky
642a039769
Bug 768085. Speed up WebIDL tests and make them more usable by pickling the datastructures Yacc produces for the grammar and shutting up the logging it does in the debug mode we force it into. r=khuey
2012-06-25 23:35:42 -04: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
Peter Van der Beken
2b749452b1
Fix for bug 765467 (Fix special operations in the WebIDL parser). r=khuey.
...
--HG--
extra : rebase_source : 4186629224c5e822473de1931604970106c721a6
2012-05-22 12:02:21 +02:00
Boris Zbarsky
2370b212ad
Bug 766853 followup to address review comment. No review other than the other review.
2012-06-22 16:21:44 -04:00
Boris Zbarsky
a8b32a58c9
Bug 766449. Use the fully namespaced class name to determine the default header name for bindings. r=peterv
2012-06-22 16:18:51 -04:00
Boris Zbarsky
abe2e98f40
Bug 766853. The two sides of an implements statement must both be non-callback interfaces. r=jlebar
2012-06-22 16:18:51 -04:00
Boris Zbarsky
63b0366493
Bug 766844. Non-callback interfaces must not inherit from callback interfaces. r=jlebar
2012-06-22 16:18:51 -04:00
Boris Zbarsky
85ad2a87de
Bug 742152. Move distinguishing index determination and verification of type-identity of preceding arguments out of codegen and into the WebIDL parser. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
8a229b6dcb
Bug 742213. isDistinguishableFrom should correctly check whether two interfaces can be implemented on the same object. r=jlebar
2012-06-22 16:18:50 -04:00
Boris Zbarsky
4df159829d
Bug 764456 part 1. Flag consequential interfaces in the WebIDL data model. r=khuey
2012-06-22 16:18:50 -04:00
Boris Zbarsky
96ff3a5504
Bug 763724. Detect cycles in the interface inheritance and implementation graph. r=jlebar
2012-06-21 12:29:11 -04:00
Boris Zbarsky
a441e94868
Bug 764698. Fix isDistinguishableFrom for dictionaries to work right. r=peterv
2012-06-21 12:29:11 -04:00
Boris Zbarsky
0524cf025e
Add a test for enum inside dictionary. No bug, no review.
2012-06-21 12:29:11 -04:00
Ed Morley
db2183d3d6
Merge mozilla-central to mozilla-inbound
2012-06-21 08:38:39 +01:00
Ms2ger
97a1f2bb20
Bug 766615 - Fix nullable WebIDL dictionaries; r=bz
2012-06-21 09:21:53 +02:00
Bobby Holley
2942dab9a8
Bug 765168 - Remove js context parameter from XHR.send call chain. r=smaug
2012-06-20 12:18:39 +02:00
Boris Zbarsky
e92190b4f8
Bug 763911. Add support for interface members of dictionaries. r=khuey
2012-06-19 12:09:37 -04:00
Boris Zbarsky
5b5084bf3e
Bug 764420. Fix ArrayBufferView unwrapping to allow DataViews. r=khuey
2012-06-19 12:08:39 -04: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
141e4d7466
Bug 746570. Get rid of bogus uses of rstrip() that are leaving random trailing spaces in the middle of our string. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
e9f438db41
Bug 764104. Avoid collisions with C++ reserved words by using initial-caps for WebIDL enum values. r=peterv
2012-06-15 16:25:51 -04:00
Boris Zbarsky
44edd4a058
Bug 750297 part 2. Switch WebGLUniformLocation to Paris bindings. r=peterv, bjacob
2012-06-15 16:25:51 -04: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
e6c84713a4
Bug 742153 part 4. Allow strings inside sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -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
59a359ee2f
Bug 742153 part 2. Rename isSequenceMember to isMember, since it will apply to both sequences and dictionaries. r=peterv
2012-06-12 10:22:05 -04:00
Boris Zbarsky
be706a770c
Bug 742153 part 1. Add support for dictionaries in the WebIDL parser. r=khuey
2012-06-12 10:22:05 -04:00
Bobby Holley
051ea1ec66
Bug 763341 - Handle wrappers in new dom binding QI. r=bz
...
The |ok| parent check goes away because it's ill-conceived. All it's really checking is that proxies are parented to the global, and it's impossible to port to SpecialPowers, because SpecialPowers will think that the proxy is parented to the SpecialPowers global. I don't think this check is very important, so I removed it.
2012-06-12 15:44:21 +02:00
Ed Morley
2840374911
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-06-12 10:36:42 +01:00
Kyle Huey
7c216602ee
Bug 763573: Don't export PrimitiveConversions.h. r=bz
2012-06-11 13:04:34 -07:00
Ryan VanderMeulen
b74e4a29db
Revert c39d36167b99 due to a horribly munged backout.
2012-06-10 19:44:50 -04:00
Ryan VanderMeulen
061d4c2616
Backout the bug 754202 backout due to orange.
2012-06-10 19:37:47 -04:00
Kyle Huey
308a325e8e
Bug 763212: Don't try to use native commands here. r=me
2012-06-10 16:03:23 -07:00
Boris Zbarsky
5240e21e79
Bug 761772. Add support for 'implements' in WebIDL. r=khuey
2012-06-11 18:21:35 -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
d550dd40f0
Bug 761882. Run the WebIDL parser tests during make check. r=khuey
2012-06-08 17:41:16 -04:00
Philipp von Weitershausen
9118053b0e
Bug 692677 - Relax same-origin XHR restrictions for privileged applications. r=sicking
...
--HG--
extra : rebase_source : 9e8e8cf2e03b6f3d148503d92630ee898bf835bb
2012-06-07 11:28:33 -07: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
c78d4b4f3d
Bug 742151. Fix the error reporting in the WebIDL parser to list correct line numbers. r=khuey
...
There are two changes here. One is to pass tracking=True to our parser. This makes it properly track positions
of all productions, not just of lexer tokens. The second is to properly count up our newlines in the lex data,
since the lexer seems to report the line number of the start of the lex data, which is always 1 in our case.
2012-06-04 21:30:03 -04:00
Boris Zbarsky
04c75ce948
Bug 760749. Make interface type constructor args work in WebIDL bindings. r=khuey
2012-06-04 21:30:00 -04:00
Peter Van der Beken
03bfb0f33a
Fix for bug 743666 (Add back deprecated XHR.onuploadprogress). r=bzbarsky
2012-06-04 21:29:56 -04:00
Boris Zbarsky
4cbedd5f28
Add a simple codegen test for constructors. No review, no bug, DONTBUILD
2012-06-01 21:26:20 -04:00
Boris Zbarsky
1ead997ef4
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Boris Zbarsky
19d2fed0a9
Backed out changeset f96e0f078b49 (bug 748266) because the test suite is bogus and we're failing a crashtest too.
2012-05-31 16:20:49 -04:00
Boris Zbarsky
1dbd12b802
Bug 748266. Switch the WebGL canvas context to new DOM bindings. r=peterv
2012-05-31 14:16:48 -04:00
Peter Van der Beken
60a324c031
Fix for bug 759275 (Specialize unwrapping to HTML elements in dom bindings). r=bz.
...
--HG--
extra : rebase_source : f676440e468c23e6c1e9458f6d75a615b9a6b8d7
2012-05-21 23:29:58 +02:00
Peter Van der Beken
898429489d
Fix for bug 759278 (Support binarynames for attributes too in new DOM bindings). r=bz.
...
--HG--
extra : rebase_source : 352a4d33db77dd80915700db335799bb8c19ac72
2012-05-18 23:25:47 +02:00
Boris Zbarsky
6f3f4d3c07
Add more tests for sequence and typed array codegen. No bug, no review.
2012-05-29 23:45:18 -04:00
Boris Zbarsky
6fff8fb638
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
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
709eedf246
Bug 743906 part 1. Improve test coverage for various interface arguments. 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
461b483752
Bug 750264. Give IDLType an operator!= so that codegen actually works correctly. r=khuey
2012-05-25 01:07:30 -04:00
Boris Zbarsky
8f33a1bf10
Bug 749864. Codegen for typed array and arraybuffer arguments. r=peterv
2012-05-25 01:07:03 -04:00
Kyle Huey
ddbc86fe7d
Update webidl-parser snapshot to pick up bug 742145.
2012-05-24 21:41:33 -07:00
Boris Zbarsky
307e4560f5
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
74e9ece65c
Bug 755080 part 3. Exercise castable interface types a bit. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
b0c8cdbf67
Bug 755080 part 2. Exercise integer types a bit. r=peterv
2012-05-23 12:44:48 -04:00
Boris Zbarsky
98e13332c0
Bug 755080 part 1. Add infrastructure for binding codegen tests. r=khuey,peterv
2012-05-23 12:44:48 -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
Peter Van der Beken
4105930580
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
e1b65e8001
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
03c93d5f62
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
1a4d916fec
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
5e88453bf6
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
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
f8aa8c3c5a
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
aeda1d5c01
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07: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
334d2e8e23
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
4e92fbde63
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
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
Ms2ger
2d03e06411
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
def1cc5c96
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
cc12555685
Alphabetize the interface list in Bindings.conf. r=peterv, no bug
2012-05-10 15:24:59 -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
Peter Van der Beken
278f1a51be
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
e6457109ef
Bug 739740 - Export libc constants to JS. r=khuey
2012-05-09 12:00:48 +02:00
Kyle Huey
499c602903
Update the WebIDL Parser to pick up Bug 753459. r=bz
2012-05-09 11:49:56 -07:00
Luke Wagner
57ad808df2
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
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
Boris Zbarsky
a6dfa5d203
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
768d21ac58
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
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
Peter Van der Beken
88f4933669
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
111e784c34
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
926ed983fc
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
7080045141
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
224115946f
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
596c0f27f3
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
1780bb4050
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
e6e85707ec
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
ecca2759ae
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
705298151f
Bug 747815. Use const strings for arguments in DOM bindings. r=peterv
2012-04-26 00:42:03 -04:00
Masatoshi Kimura
834ce504b5
Bug 744910 - Remove FileException from workers. r=bent
2012-04-24 19:50:00 -04:00
Matt Brubeck
c9d5f18376
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
c7d143b9fa
Merge mozilla-central into mozilla-inbound
2012-04-24 21:29:44 -04:00
Ehsan Akhgari
fec480dc6c
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Boris Zbarsky
0a042e6fc6
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
fbbe99b49c
Bug 742422. Make DOM prototypes more typeinference-friendly. r=peterv
2012-04-18 12:11:55 -04:00
Boris Zbarsky
a5ab67c0e3
Bug 742425. Remove the extra compartment-entering code we don't need. r=peterv
2012-04-18 12:11:33 -04:00
Boris Zbarsky
e515db8de5
Bug 742170. Use CGThings in CGCreateInterfaceObjectsMethod more. r=peterv
2012-04-18 12:10:48 -04:00
Boris Zbarsky
1d381b0df9
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
695a535538
Bug 745899. Make it easier to use Nullable for non-primitive types. r=peterv
2012-04-18 12:01:18 -04:00
Ms2ger
35284f64bb
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
b8ae2456b2
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
949f55309d
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Masatoshi Kimura
c7443b0f63
Bug 744910 - Remove FileException from workers. r=bent
2012-04-24 19:50:00 -04:00
Boris Zbarsky
1c058e0942
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
9836d7537b
Bug 741125: Update WebIDL parser.
2012-04-12 15:14:10 -07:00
Boris Zbarsky
5ec5cf5d06
Bug 742184. Use CGThings for whitespace munging in CGNativeToSupportsMethod. r=peterv
2012-04-10 12:40:12 -04:00
Boris Zbarsky
68e762ea1b
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
caf9a40207
Bug 742167. Give extendedAttribute() a better name. r=khuey
2012-04-10 12:40:12 -04:00
Kyle Huey
b39f35cd0c
Refix bug 741248. r=me
2012-04-09 13:48:44 -07:00
Takanori MATSUURA
ad43cf956c
Bug 737006 - Use internal ply only if needed. r=khuey
2012-04-06 14:06:52 -04:00
Ehsan Akhgari
ac25c078a1
Merge mozilla-inbound and mozilla-central
2012-04-05 13:41:51 -04:00
Ehsan Akhgari
47a6da0be5
Merge the last green PGO changeset from mozilla-inbound to mozilla-central
2012-04-05 13:40:53 -04:00
Boris Zbarsky
a555a8edf3
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
36621b41da
Bug 741248: Attempt a fix by twiddling the makefile a bit. r=me
2012-04-04 19:11:30 -07:00
Kyle Huey
84409b11f9
Backed out changeset 3a0940f90455
2012-04-04 13:42:12 -07:00
Kyle Huey
bc5e398ab0
Bug 741125: Update WebIDL parser.
2012-04-04 12:07:28 -07:00
Peter Van der Beken
09128a75d3
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
3a859b7a76
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
0fe26d128c
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