Boris Zbarsky
4f07bfa379
Bug 939581 part 3. Mark DOM calls as movable as needed and allow them to be CSE'd. r=efaust
2014-01-03 16:44:45 -05:00
Ehsan Akhgari
7efbcd733a
Bug 927728 - Part 2: Stop using PRUnichar in our code generators; r=roc,bzbarsky
2014-01-04 10:02:43 -05:00
Masatoshi Kimura
9de4f301b4
Bug 876238 - Convert DeviceAcceleration and DeviceRotationRate to WebIDL bindings. r=smaug
2014-01-02 07:52:47 +09:00
Boris Zbarsky
e88b4f4fd5
Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky
2013-12-20 15:33:57 -05:00
Wes Kocher
58a13fe0cb
Backed out changeset 6532bf066bb4 (bug 882299)
2013-12-20 18:33:04 -08:00
Wes Kocher
97de048349
Backed out changeset f84ac36ce832 (bug 952062) for osx debug m1 orange
2013-12-20 14:22:55 -08:00
Boris Zbarsky
e7903fc5dc
Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky
2013-12-20 15:33:57 -05:00
Boris Zbarsky
03f1fef9b8
Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky
2013-12-20 14:28:18 -05:00
Rick Eyre
68a00515c1
Bug 882299 - Implement VTTCue::Line. r=smaug, r=rillian
2013-12-16 14:35:01 -05:00
David Zbarsky
35d4903547
Bug 928953 - WebIDL headers should include the file for enums. r=bz
2013-12-20 11:37:48 -05:00
Boris Zbarsky
81be6fc98a
Bug 952073. Fix codegen to actually work correctly for the case of a nullable union dictionary member with no default value. r=dzbarsky
...
This fix just makes us take the normal Optional codepath for this case, since there is no weirdness here.
2013-12-19 23:30:38 -05:00
Boris Zbarsky
086791016f
Bug 951875. Actually apply binarynames to JS-implemented codegen. r=mccr8
...
Actually, this applies them to all callbacks, but most callback interfaces don't have entries in Bindings.conf.
This removes the extra entry for TestJSImplInterface in Bindings.conf that was covering up this bug.
2013-12-19 00:45:13 -05:00
Boris Zbarsky
e223f9691c
Bug 949501. Make nullable unions that are isMember stop claiming to have a holder. r=dzbarsky
2013-12-18 11:20:43 -05:00
Andrew McCreight
87a54e8894
Bug 937818, part 0 - Root newly created objects in Bind across ADDREF. r=bz
2013-12-17 19:29:56 -08:00
Boris Zbarsky
761ae28352
Bug 950991. Root on-stack JSObject* and JS::Value return values. r=smaug
2013-12-17 17:09:16 -05:00
Boris Zbarsky
b08989ef7e
Bug 949940. Only enter the uncheckedObj compartment in a crossOriginGetter/Setter/Method around the UnwrapArg call that needs us to be in that compartment. r=peterv
2013-12-17 17:09:05 -05:00
Wes Kocher
34a2e0d974
Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE
2013-12-16 18:27:43 -08:00
Sean Stangl
d081b211ae
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Boris Zbarsky
e9530d84b7
Bug 950728. Nicer error reporting when a callback argument is not wrappercached. r=smaug
2013-12-16 13:06:36 -05:00
Boris Zbarsky
3a662740ef
Bug 950657. Give WebIDL callbacks an operator== that does the right thing. r=smaug
2013-12-16 13:06:35 -05:00
Boris Zbarsky
4ce8a99131
Bug 949682 part 1. Add a [Frozen] annotation on WebIDL attributes that have sequence types. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
d9a2362c8e
Bug 949078. Provide information about which return value we're talking about when throwing a conversion failure exception for the return value of a call into a WebIDL callback. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
b1c250a89f
Bug 947351. [Constant] things don't need a way to clear a cached value, since they're not supposed to change. r=peterv
2013-12-06 13:49:44 -05:00
Boris Zbarsky
0e8c9f6887
Bug 946909. For a [Cached] or [StoreInSlot] attribute with a setter, clear the cache on set. r=peterv
2013-12-05 16:31:04 -05:00
Boris Zbarsky
8eccd295bf
Bug 946898. Make sure to not accidentally store COWs in the slot for [Cached] properties. r=peterv
2013-12-05 16:07:33 -05:00
Gregory Szorc
d53d3b5e5e
Bug 928195 - Part 4: Rewrite WebIDL build system integration; r=bz, r=glandium
...
WebIDL build system integration has been rewritten from the ground up.
Changes:
* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
favor of mozwebidl.py.
* Static .webidl files are now processed directly in their original location
and aren't copied to the object directory.
* Generated events <stem>.cpp files are now compiled into the unified
sources. Previously, only the <stem>Binding.cpp files were compiled
into unified sources.
* Exported .h files are now generated directly into their final location.
Previously, they were generated into the local directory then
installed in their final location.
* The list of globalgen-generated files now lives in Python and isn't
duplicated in 3 places.
* The make dependencies are much simpler as a result of using a single
command to perform all code generation. The auto-generated .pp file from
code generation sets up all dependencies necessary to reinvoke code
generation and Python takes care of dependency management.
--HG--
extra : rebase_source : e4918878274b22a412329c7cb18cc7138daf5dc6
2013-12-12 16:26:38 +09:00
Boris Zbarsky
e330cbbc35
Bug 949271. Fix callback and JS-implemented codegen for sequence-of-union and variadic-union arguments. r=smaug
2013-12-12 16:11:56 -05:00
Boris Zbarsky
8b72627c9d
Bug 949264 part 3. Use aRetVal for the outparam return value for CGNativeMember. r=smaug
2013-12-12 16:11:55 -05:00
Boris Zbarsky
2069fcca32
Bug 949264 part 2. Support union members in generated events. r=smaug
2013-12-12 16:11:55 -05:00
Boris Zbarsky
36f9f0caa0
Bug 949264 part 1. Share more codegen between events and CGNativeMember. r=smaug
2013-12-12 16:11:55 -05:00
Steve Fink
aabce3a3e5
Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz
2013-12-11 17:51:58 -08:00
Bobby Holley
7f8af296c3
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-11 17:51:58 -08:00
Bobby Holley
61de78ecb2
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-11 17:51:57 -08:00
Boris Zbarsky
2c468e084a
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
aa96007c5a
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
bb9192847a
Bug 946067 part 3. Adjust codegen to allow cross-origin this values based on WebIDL annotations. r=peterv
2013-12-09 10:34:04 -05:00
Boris Zbarsky
849cdbd771
Bug 946067 part 2. Generate Window's access checks in XPConnect based on WebIDL access annotations. r=bholley,peterv
2013-12-09 10:34:03 -05:00
Phil Ringnalda
d1ba8751f2
Back out 35371620801a:bf2019278b77 (bug 937317) for gaia-ui-test bustage and frequent timeouts in its own test
2013-12-07 11:08:56 -08:00
Bobby Holley
b548f86f52
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Bobby Holley
9a98dbf586
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-06 12:01:42 -08:00
Carsten "Tomcat" Book
4fb73f42d6
Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
8797042644
Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:41:59 +01:00
Bobby Holley
2e847fca05
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-05 21:34:17 -08:00
Bobby Holley
3cb3d78d8b
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-05 21:34:17 -08:00
Ryan VanderMeulen
ee16665294
Backed out changesets 22770b30545b, 0809370fabdb, 4ef4764c1b55, and bfe768b87464 (bug 697343) due to Gaia UI test bustage.
...
CLOSED TREE
2013-12-05 16:19:47 -05:00
Boris Zbarsky
d9fddbe1ad
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
b053653c80
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
109a5700f1
Bug 945788. Add support for dictionary return values to example codegen and js-implemented codegen. r=smaug
2013-12-05 11:39:50 -05:00
Boris Zbarsky
373e688e4f
Bug 942631 part 7. Move INSTANCE_RESERVED_SLOTS into the C++, so it's closer to the things it depends on. r=peterv
2013-12-04 08:02:19 -05:00
Boris Zbarsky
6e8c13b735
Bug 942631 part 6. Fix performance regression in the imagedata getter due to using MaybeWrapValue on a non-DOM object. r=peterv
2013-12-04 08:02:18 -05:00