Commit Graph

1071 Commits

Author SHA1 Message Date
Boris Zbarsky
9b823d6509 Bug 958887 part 3. Fix codegen support for IDL attribute names and methods with dashes in them. r=peterv 2014-09-19 22:58:27 -04:00
Jon Coppeard
64b91b1c09 Bug 650161 - Use the object moved hook to update the wrapper cache r=terrence r=bz r=bholley
* * *
Add exception for objectMoved hook as we do for finalize hook
2014-09-17 15:35:11 +01:00
Eric Faust
385660b12e Bug 966518 - Part 0: Make proxy callability into a trap, rather than a class check. (r=bholley, r=djvj, r=peterv) 2014-09-10 15:52:36 -07:00
Peter Van der Beken
bb194022b9 Bug 849567 - Automatically handle raw and already_AddRefed return values in Paris bindings and remove resultNotAddRefed, use overloaded functions and auto to select the right type to store return values. r=bz.
--HG--
extra : rebase_source : 50f86f20966fee33cfa039abc227ee2560640fd4
2014-08-28 00:43:56 +02:00
Peter Van der Beken
17de93a57d Bug 849567 - Automatically handle raw and already_AddRefed return values in Paris bindings and remove resultNotAddRefed, statically assert that we keep a strong reference to return values of NewObject methods. r=bz.
--HG--
extra : rebase_source : b0d62c7a8ecf73de3e24a9ab31ec2cae64174c24
2014-08-28 00:43:56 +02:00
Peter Van der Beken
41421a4284 Bug 849567 - Automatically handle raw and already_AddRefed return values in Paris bindings and remove resultNotAddRefed, use templatized class to hold strong or weak pointer depending on the return type. r=bz.
--HG--
extra : rebase_source : 243e9ea15e2f4c213aa8a17a97fbaf53520804ac
2014-08-28 00:43:56 +02:00
Ehsan Akhgari
28f0bef008 Bug 1065025 - Make the generated WebIDL ToJSON method const; r=baku 2014-09-09 14:00:22 -04:00
Chris Peterson
d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Boris Zbarsky
935648f51a Bug 1063889. Fix the handling of sequences of wrapper types in unions. r=khuey 2014-09-08 11:28:57 -04:00
Boris Zbarsky
3e0cc1e8d6 Back out bug 1063889 (rev 2f5df573f4a3) because windowsx.h defines GetFirstChild/GetNextSibling macros, so will make the world blow up if you include it anywhere near nsIDOMNode/nsINode. r=bustage 2014-09-08 12:25:17 -04:00
Boris Zbarsky
5f46861110 Bug 1063889. Fix the handling of sequences of wrapper types in unions. r=khuey 2014-09-08 11:28:57 -04:00
Boris Zbarsky
1f4c6b7396 Bug 1017424 part 8. Remove the annotation of Window as having XPConnect impls in codegen. r=peterv 2014-09-05 14:28:45 -04:00
Boris Zbarsky
d14c26daf5 Bug 1057541 part 3. Change codegen to support required dictionary members. r=khuey 2014-09-05 14:28:43 -04:00
Boris Zbarsky
16db1fc4c0 Bug 1057541 part 2. Add a way to ask an IDLArgument whether it guarantees that it will always have a value. r=khuey 2014-09-05 14:28:43 -04:00
Ehsan Akhgari
1b1d6ffebf Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku
--HG--
extra : rebase_source : c80c5f9d7ae28286513cdb52ad76b46c240bdd5d
2014-09-01 18:26:43 -04:00
Boris Zbarsky
3dc5b32864 Bug 908390 part 1. Make [Exposed] work correctly on jsonifiers and stringifiers and don't create an unforgeable toJSON just because we have a jsonifier. r=khuey 2014-08-29 19:50:05 -04:00
Nikhil Marathe
36bed62589 Bug 1048699 - Patch 2 - Indentation and proper include. r=bz
--HG--
extra : transplant_source : %A3%EC%04%97%A4%FC%17%2B%816k%CF%03%BF%8A%7F%A4%19%87%C7
2014-08-28 13:33:39 -07:00
Eric Faust
db3773210b Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj) 2014-08-28 13:47:16 -07:00
Nikhil Marathe
362c5a201f Bug 1048699 - Make Exposed=SpecificWorkerType work automatically. r=bz
--HG--
extra : rebase_source : 651bd062b015e2aa030b87a842bc7d63dccf349c
2014-08-27 10:17:36 -07:00
Boris Zbarsky
be14202b3d Bug 929609 part 2. Fix passing of typed arrays to JS-implemented WebIDL to actually work. r=peterv 2014-08-25 15:07:45 -04:00
Boris Zbarsky
30b87a2b87 Bug 929609 part 1. Rename "jsObjectsArePtr" to "typedArraysAreStructs" (and invert its meaning, of course), since that's what it's really used for nowadays. r=peterv 2013-09-30 10:30:06 -04:00
Andrew McCreight
8fd17e2a57 Bug 963382 - Fix misaddressed review comment. 2014-08-21 14:31:44 -07:00
Andrew McCreight
d306a5da23 Bug 1053920 - Define and use JSNativeArguments in Codegen.py. r=bz 2014-08-21 14:31:44 -07:00
Andrew McCreight
91d1b64fd1 Bug 963382, part 2 - Add chrome JS function for clearing cache. r=bz 2014-08-21 13:56:11 -07:00
Andrew McCreight
0c96173882 Bug 963382, part 1 - Split out MethodDefiner's JS implemented case into its own thing. r=bz 2014-08-21 13:56:11 -07:00
Roshan Vidyashankar
2d98c38825 Bug 1038993 - Add UnsafeInPrerendering extended attribute to WebIDL. r=peterv 2014-08-20 16:32:19 -07:00
Ms2ger
51b6bdd7a2 Bug 1056138 - Move checks for the PutForwards and Replaceable extended attributes into the WebIDL parser; r=bz
In fact, the WebIDL parser already checks for PutForwards, so the check in the
codegen was superfluous.
2014-08-20 17:31:39 +02:00
Bobby Holley
9b4a386a14 Bug 1036214 - Do a subsumes check on object and any parameters (and things containing them) to JS-implemented WebIDL. r=bz 2014-08-19 18:12:15 -07:00
Andrew McCreight
e2153edd1d Bug 1048659 - Return the union we construct in a JS callback. r=peterv 2014-08-19 08:41:26 -07:00
Bobby Holley
a87c8777d9 Bug 1052089 - Swap out the SafeJSContextGlobal for the new UnprivilegedJunkScope. r=billm 2014-08-18 10:57:30 -07:00
Bobby Holley
e70ddb7476 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592 Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Seth Fowler
0fd6e994ae Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
--HG--
extra : rebase_source : 7b6159b00b3bf4f919b30f1bccc8939cc04fe526
2014-08-13 15:39:41 -07:00
Jon Coppeard
511f6ef1c5 Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug 2014-08-13 10:05:22 +01:00
Jason Orendorff
56724afcf7 Bug 1041261, part 5 - In DOM bindings implemented as proxies, don't call a named getter/setter/deleter if the id is a symbol. r=peterv.
--HG--
extra : rebase_source : 0ec7dad0ed1364d07cf2a8731f7980ab4c89cf7f
2014-08-04 14:20:57 -05:00
Jason Orendorff
244b95dfbf Bug 1041261, part 4 - Use foundVar and resultVar to move a few declarations in DOM binding code. r=peterv.
Now the "bool found;" and "bool result;" declarations are added in the outermost scope where they're going to be used, rather than the scope of the method call that sets them. Until now, those have always been the same scope; part 5 will put an if-block around certain method calls, making these two different scopes.

--HG--
extra : rebase_source : df60ef4c2ef400caaeb16a4950c86f5ba4c31319
2014-08-05 09:10:29 -05:00
Jason Orendorff
84968c47b4 Bug 1041262, part 3 - Codegen scoping changes. r=peterv.
This changes CGProxyNamedPresenceChecker to permit declaring the `found` and/or `result` variables in an outer scope. The default is still to declare them in the innermost scope containing the method call.

--HG--
extra : rebase_source : 7060a9b6f829be0c2b86e701b09d7438798fb87c
2014-08-05 11:53:37 -05:00
Valentin Gosu
63ecb5dd80 Bug 1051109 - Define non-static method to jsonify interface attributes r=smaug 2014-08-11 01:17:50 +03:00
Valentin Gosu
36c8ad1406 Bug 1047848 - Part 1 - Change Codegen.py to jsonify parent interface attributes as well r=smaug 2014-08-08 12:09:35 +03:00
Boris Zbarsky
3545a68bc5 Bug 1048437. Allow dictionary members with '-' in the name. r=khuey 2014-08-04 15:02:58 -04:00
Peter Van der Beken
156b657ef5 Bug 1039187 - [Bluetooth] Bluetooth2 build fail. r=bz.
--HG--
extra : rebase_source : d3ce4805bcdfe5e12b230efee479ea8002d95e5f
2014-07-18 00:17:17 +02:00
Boris Zbarsky
8c3da312f1 Bug 1017988 part 11. Codegen the definition of interface objects on worker globals. r=khuey 2014-08-04 22:20:35 -04:00
Boris Zbarsky
26b26e1121 Bug 1017988 part 9. Don't codegen window-only things on worker descriptors. r=khuey 2014-08-04 22:20:34 -04:00
Boris Zbarsky
d1f4dba8b5 Bug 1017988 part 6. Implement support for [PrimaryGlobal]. r=khuey 2014-08-04 22:20:34 -04:00
Boris Zbarsky
b1c1e22da4 Bug 1043690 part 2. Change the codegen for DOM proxies to ignore named props when looking up property descriptors on [[Set]]. r=efaust 2014-08-01 23:37:14 -04:00
Ben Kelly
8d0e50e7d2 Bug 1025183 P3 Add ScalarValueString to webidl Codegen.py r=bz 2014-08-01 16:23:48 -04:00
Ben Kelly
93f746a2f6 Revert bug 1025183 (revs 69373df15281, dd6d84edf08e, 728a5d18bcd9, 71babe0bc84b, c60f9054acf6) for bustage. r=me 2014-08-01 14:10:40 -04:00
Ben Kelly
e072a1a235 Bug 1025183 P3 Add ScalarValueString to webidl Codegen.py r=bz 2014-08-01 13:56:59 -04:00
Szu-Yu Chen [:aknow]
7b5c656ac3 Bug 1035654 - Part 3: Generate cycle collection traverse/unlink for unions. r=bzbarsky 2014-08-01 03:20:00 -04:00