Ehsan Akhgari
dadc3abc1b
Bug 927728 - Part 2: Stop using PRUnichar in our code generators; r=roc,bzbarsky
2014-01-04 10:02:43 -05:00
Masatoshi Kimura
3f945da033
Bug 876238 - Convert DeviceAcceleration and DeviceRotationRate to WebIDL bindings. r=smaug
2014-01-02 07:52:47 +09:00
Boris Zbarsky
4026af40dd
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
d578056d58
Backed out changeset 6532bf066bb4 (bug 882299)
2013-12-20 18:33:04 -08:00
Wes Kocher
d59b41c684
Backed out changeset f84ac36ce832 (bug 952062) for osx debug m1 orange
2013-12-20 14:22:55 -08:00
Boris Zbarsky
0d2d6e5990
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
030fd2dea3
Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky
2013-12-20 14:28:18 -05:00
Rick Eyre
42f6a15b8f
Bug 882299 - Implement VTTCue::Line. r=smaug, r=rillian
2013-12-16 14:35:01 -05:00
David Zbarsky
f71defebb9
Bug 928953 - WebIDL headers should include the file for enums. r=bz
2013-12-20 11:37:48 -05:00
Boris Zbarsky
0daf8f86ed
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
2e73d4f93f
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
3b13ccd431
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
197a13c1ee
Bug 937818, part 0 - Root newly created objects in Bind across ADDREF. r=bz
2013-12-17 19:29:56 -08:00
Boris Zbarsky
6dd5c22d7e
Bug 950991. Root on-stack JSObject* and JS::Value return values. r=smaug
2013-12-17 17:09:16 -05:00
Boris Zbarsky
318ef16172
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
a8ec671341
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
0a79faf943
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Boris Zbarsky
208d5ee83c
Bug 950728. Nicer error reporting when a callback argument is not wrappercached. r=smaug
2013-12-16 13:06:36 -05:00
Boris Zbarsky
5636812c55
Bug 950657. Give WebIDL callbacks an operator== that does the right thing. r=smaug
2013-12-16 13:06:35 -05:00
Boris Zbarsky
45faf1e000
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
b4c8b829b5
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
9ac1e9476a
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
f59e02d893
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
dd8cca5c17
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
57e14ad346
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
0397ee7f4f
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
2415423fb6
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
62b0806505
Bug 949264 part 2. Support union members in generated events. r=smaug
2013-12-12 16:11:55 -05:00
Boris Zbarsky
e353700721
Bug 949264 part 1. Share more codegen between events and CGNativeMember. r=smaug
2013-12-12 16:11:55 -05:00
Steve Fink
be4b9213bd
Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz
2013-12-11 17:51:58 -08:00
Bobby Holley
904374035f
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
86e58bb574
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
ea590176b9
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
f24c8c5b90
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
b3607329f0
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
cf5a96ff48
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
e2e1627d17
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
0b02f5ecfa
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
6475f72863
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
0139af29f2
Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
22b9fc1982
Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:41:59 +01:00
Bobby Holley
8ca6ed8d97
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
8ed094280d
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
33d0976fb1
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
0c1c9fe5f9
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
24a3fda1a8
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
b291d17548
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
ff32aca614
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
7a906fe78a
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
Boris Zbarsky
bc7799238c
Bug 942631 part 5. Add C++ API for clearing the cached value of a [Cached] property or regetting a [StoreInSlot] property. r=peterv
2013-12-04 08:02:18 -05:00