Commit Graph

1262 Commits

Author SHA1 Message Date
Boris Zbarsky
d100e03ac5 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
87ad293241 Bug 1063889. Fix the handling of sequences of wrapper types in unions. r=khuey 2014-09-08 11:28:57 -04:00
Boris Zbarsky
9acbebb22e 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
85f88dfd82 Bug 1057541 part 3. Change codegen to support required dictionary members. r=khuey 2014-09-05 14:28:43 -04:00
Boris Zbarsky
2a174c16e4 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
99fed18e00 Bug 1061023 - Fix more bad implicit constructors in DOM; r=baku 2014-09-01 18:26:43 -04:00
Boris Zbarsky
f691eff490 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
40de8af2a0 Bug 1048699 - Patch 2 - Indentation and proper include. r=bz 2014-08-28 13:33:39 -07:00
Eric Faust
e24e711dc5 Bug 1027425 - Make all Proxy handler constructors use MOZ_CONSTEXPR. (r=bz, r=froydnj) 2014-08-28 13:47:16 -07:00
Nikhil Marathe
abe21a25f0 Bug 1048699 - Make Exposed=SpecificWorkerType work automatically. r=bz 2014-08-27 10:17:36 -07:00
Boris Zbarsky
7dba4770c1 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
adc7695737 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
5f44271814 Bug 963382 - Fix misaddressed review comment. 2014-08-21 14:31:44 -07:00
Andrew McCreight
4ae8c467a1 Bug 1053920 - Define and use JSNativeArguments in Codegen.py. r=bz 2014-08-21 14:31:44 -07:00
Andrew McCreight
35fa30eb12 Bug 963382, part 2 - Add chrome JS function for clearing cache. r=bz 2014-08-21 13:56:11 -07:00
Andrew McCreight
3e52ae6d7a 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
8f59ee2b1f Bug 1038993 - Add UnsafeInPrerendering extended attribute to WebIDL. r=peterv 2014-08-20 16:32:19 -07:00
Ms2ger
5505d3c469 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
0ed84b86fe 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
cbe743b7bc Bug 1048659 - Return the union we construct in a JS callback. r=peterv 2014-08-19 08:41:26 -07:00
Bobby Holley
a827258b08 Bug 1052089 - Swap out the SafeJSContextGlobal for the new UnprivilegedJunkScope. r=billm 2014-08-18 10:57:30 -07:00
Bobby Holley
b2b763cb29 Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
df43fcf12d Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage. 2014-08-14 17:23:10 -04:00
Bobby Holley
10dec58cfc Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor 2014-08-14 12:54:34 -07:00
Seth Fowler
ea2c64d748 Bug 913586 (Part 4) - Update Maybe users in dom. r=bz 2014-08-13 15:39:41 -07:00
Jon Coppeard
04b6fb5783 Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug 2014-08-13 10:05:22 +01:00
Jason Orendorff
812bdf9394 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. 2014-08-04 14:20:57 -05:00
Jason Orendorff
a4b288aa30 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.
2014-08-05 09:10:29 -05:00
Jason Orendorff
f5459f593b 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.
2014-08-05 11:53:37 -05:00
Valentin Gosu
d2b9212958 Bug 1051109 - Define non-static method to jsonify interface attributes r=smaug 2014-08-11 01:17:50 +03:00
Valentin Gosu
e8777d3534 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
d3c5b2fdad Bug 1048437. Allow dictionary members with '-' in the name. r=khuey 2014-08-04 15:02:58 -04:00
Peter Van der Beken
f8d8d1e217 Bug 1039187 - [Bluetooth] Bluetooth2 build fail. r=bz. 2014-07-18 00:17:17 +02:00
Boris Zbarsky
8ea1a10a50 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
f0660bb291 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
e34e739bb8 Bug 1017988 part 6. Implement support for [PrimaryGlobal]. r=khuey 2014-08-04 22:20:34 -04:00
Boris Zbarsky
8ac66c86d8 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
1d256a6d22 Bug 1025183 P3 Add ScalarValueString to webidl Codegen.py r=bz 2014-08-01 16:23:48 -04:00
Ben Kelly
1138f72ca4 Revert bug 1025183 (revs 69373df15281, dd6d84edf08e, 728a5d18bcd9, 71babe0bc84b, c60f9054acf6) for bustage. r=me 2014-08-01 14:10:40 -04:00
Ben Kelly
aeffb24a32 Bug 1025183 P3 Add ScalarValueString to webidl Codegen.py r=bz 2014-08-01 13:56:59 -04:00
Szu-Yu Chen [:aknow]
3343232af2 Bug 1035654 - Part 3: Generate cycle collection traverse/unlink for unions. r=bzbarsky 2014-08-01 03:20:00 -04:00
Ed Morley
ea80c6e486 Backed out changeset 01c51cb8d8bd (bug 1025183) 2014-08-01 10:27:32 +01:00
Boris Zbarsky
5eb56aafbf Bug 1038399. Add a ToJSON method to Web IDL dictionaries. r=bholley 2014-07-31 23:50:19 -04:00
Ben Kelly
bdffe5ec33 Bug 1025183 P3 Add ScalarValueString to webidl Codegen.py r=bz 2014-07-31 19:40:12 -04:00
Terrence Cole
0f739c9482 Bug 1024250; r=bz 2014-07-17 14:18:04 -07:00
Boris Zbarsky
d9044e7cd5 Bug 1021066. Make named setters work even for non-overridebuiltins bindings over Xrays. r=bholley,jorendorff 2014-07-23 01:06:33 -04:00
Reuben Morais
b768afa7e3 Bug 1009645 - Implement [FeatureDetectible] extended attribute and hook it up to navigator.getFeature. r=bz 2014-07-14 20:08:45 -03:00
Boris Zbarsky
4e4dc0cd0d Bug 832014 part 6. Make it possible to specify that only a particular interface that implements a given consequential interface gets cross-origin-settable behavior for a particular property. r=bholley 2014-07-11 19:32:14 -04:00
Boris Zbarsky
c8dc4bec96 Bug 832014 part 2. Add codegen support for [Unforgeable] interfaces. r=peterv 2014-07-11 19:30:27 -04:00
Benoit Jacob
df7477c0c6 Bug 1035394 - Fix dangerous public destructors in dom/events - r=smaug 2014-07-08 17:23:17 -04:00