Commit Graph

795 Commits

Author SHA1 Message Date
Steve Fink
76e5f386d2 Bug 925916 - Add some handles to dom/bindings, r=bz
--HG--
extra : rebase_source : 2443d2b988dea432c4961e8b042b0288e1dc7016
2013-10-11 22:02:39 -07:00
Andy Wingo
c7fe19aa1f Bug 919948 - Convert Array.prototype.@@iterator to use new iteration protocol. r=jorendorff
--HG--
extra : rebase_source : d67252851178e66e8d7ef82ef83edddf79535a4e
2013-10-17 12:10:02 +02:00
Tom Schuster
a513788fdb Bug 8844105 - Handlify JS_WrapObject. r=terrence 2013-10-15 20:02:23 -04:00
Ryan VanderMeulen
e9e247b525 Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Ed Morley
75326b6657 Merge latest green inbound changeset and mozilla-central 2013-10-14 17:39:02 +01:00
Ed Morley
c7cd6440df Backed out changeset d8636e485e85 (bug 882541) 2013-10-14 17:30:49 +01:00
Ed Morley
a2b751decd Backed out changeset 61092280cb2a (bug 882541) 2013-10-14 17:30:46 +01:00
Ed Morley
566ebb2848 Backed out changeset ccf11ae08ba2 (bug 882541) 2013-10-14 17:30:43 +01:00
Kyle Huey
09462c8153 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-10-14 19:58:05 +08:00
Phil Ringnalda
7f4c6bd321 Backed out 2 changesets (bug 915757, bug 919885) for xpcshell bustage
Backed out changeset 5d17d90b838d (bug 915757)
Backed out changeset 91495d3a91c8 (bug 919885)
2013-10-13 21:59:58 -07:00
Kyle Huey
40ab109140 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-10-14 11:10:43 +08:00
Boris Zbarsky
cf941f0cb7 Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger 2013-10-11 12:28:24 -04:00
Boris Zbarsky
52f5e9cc62 Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
The major changes are as follows:

1) The new algorithm no longer adjusts "argcount" based on the
   interaction of trailing undefined and [TreatUndefinedAs=Missing]
   arguments.  We never implemented this; just asserted that we didn't
   have to deal with this situation.

2) If the distinguishing argument is undefined and there is an
   overload that has an optional argument at the distinguishing
   argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
72d31f23db Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
292cd8ec2a Bug 817194 followup to work around emergent namespace+template MSVC bugginess: it was seeing mozilla::dom::detail in TypeTraits.h because it looks at namespaces at template _instantiation_, not declaration. Or something. Leading, of course, to a CLOSED TREE. 2013-10-09 14:12:17 -04:00
Boris Zbarsky
48ef79b3bb Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Ed Morley
2c635d5d0c Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures 2013-10-09 17:48:13 +01:00
Boris Zbarsky
cf8ba5ee47 Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey 2013-10-09 12:05:22 -04:00
Andy Wingo
cd02ba5f52 Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden 2013-10-03 13:37:57 +01:00
Boris Zbarsky
51daf6d4ad Bug 921553. Fix some binding rooting hazards that have popped up. r=peterv 2013-09-30 10:29:10 -04:00
Kyle Huey
d82944e686 Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz 2013-09-30 12:15:37 +08:00
Kyle Huey
067126c359 Back out bug 919457 for build bustage. r=me 2013-09-30 10:41:23 +08:00
Kyle Huey
b9565ad1bf Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz 2013-09-30 09:37:26 +08:00
Olli Pettay
bd0144e1cb Bug 637248, Make Event.isTrusted Unforgeable, r=bz
--HG--
extra : rebase_source : 3edd919c6dac839d6082c1c73de88f9ba2d22146
2013-09-28 13:27:29 +03:00
Andy Wingo
22c73af975 Bug 920433 - Improve API support for self-hosted functions. r=till, r=bz 2013-09-26 10:11:38 -04:00
Boris Zbarsky
c159cdefab Bug 918011 part 4. Support dictionaries in unions. r=smaug 2013-09-26 00:05:00 -04:00
Boris Zbarsky
8df84df9c2 Bug 918011 part 3. Get rid of isInOwningUnion: it's equivalent to another isMember value. r=smaug 2013-09-26 00:05:00 -04:00
Boris Zbarsky
191073b8c9 Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
a041761e19 Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv 2013-09-25 14:38:29 -04:00
Ryan VanderMeulen
72c8f599cd Backed out 5 changesets (bug 905493, bug 920125, bug 919603) for mochitest orange on a CLOSED TREE.
Backed out changeset ccef656b2973 (bug 919603)
Backed out changeset 4b29ce0b2fff (bug 919603)
Backed out changeset b0a051ec55b7 (bug 919603)
Backed out changeset baa9a774aad1 (bug 920125)
Backed out changeset e03276bf4eaa (bug 905493)
2013-09-25 18:22:33 -04:00
Boris Zbarsky
6201a817fb Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv 2013-09-25 14:38:30 -04:00
Boris Zbarsky
9ed67107a4 Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv 2013-09-25 14:38:29 -04:00
Peter Van der Beken
c996f76260 Bug 920196 - Make QueryInterface opt-in for WebIDL interfaces. r=bz.
--HG--
extra : rebase_source : 4cf7f9dc90f234dd663da05f27c0dc9484c7c0e1
2013-09-24 21:37:53 +02:00
Jan Varga
a05ab9bf62 Bug 919268 - Add codegen for worker-only WebIDL callbacks. r=bz 2013-09-24 21:32:01 +02:00
Boris Zbarsky
318d50cd70 Bug 862627 part 2. Rip out some now-dead codegen code. r=smaug 2013-09-23 20:25:17 -04:00
Boris Zbarsky
145b4483f7 Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug 2013-09-23 20:25:17 -04:00
Boris Zbarsky
e93e4f4ce6 Bug 918450. Back out the fix for bug 911333, since trace hooks are in fact used in workers. r=khuey 2013-09-20 11:15:39 -04:00
Boris Zbarsky
78891d8297 Bug 917958 part 2. Simplify our various typeNeedsCx stuff, now that it's the same on workers and mainthread. r=smaug 2013-09-20 01:07:10 -04:00
Boris Zbarsky
7370c94e13 Bug 917958 part 1. Stop using JSObject* to represent WebIDL callback functions in workers. r=smaug 2013-09-20 01:07:03 -04:00
Boris Zbarsky
14d8b1d3f9 Bug 917539. Move the JSCompartment argument to the end of the list for JS-implemented WebIDL, so C++ callers can call into it sanely too. r=peterv 2013-09-20 01:07:03 -04:00
Jon Coppeard
bc6335ade3 Bug 917295 - GC: Handlify public date APIs r=terrence r=bz 2013-09-19 08:54:01 +01:00
Vendelin Ruzicka
900efea232 Bug 917410: Add specializations of Optional for 'any' and 'object' types for callbacks in workers to bindings code. r=bz 2013-09-18 06:47:08 +02:00
Boris Zbarsky
ef66ca3e72 Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky 2013-09-17 11:16:02 -04:00
Randell Jesup
b9b7fe21d3 Bug 882145: reland changesets bc4ee7cbd7bd and cf373e408a6b r=bz 2013-09-16 02:34:57 -04:00
Ryan VanderMeulen
f1c45fb9f7 Backed out changesets bc4ee7cbd7bd and cf373e408a6b (bug 882145) for causing bug 916609. r=jsmith 2013-09-15 18:19:42 -04:00
Jan-Ivar Bruaroey
251d4428cf Bug 882145: gUM constraints converted to webidl + gUMDevices() takes constraints. r=bz r=jesup 2013-09-14 00:48:39 -04:00
Boris Zbarsky
88c79c7eb5 Bug 915368. Give dictionaries copy constructors and assignment operators when it's safe. r=khuey 2013-09-13 13:21:59 -04:00
Boris Zbarsky
81ea40a161 Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting.  It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing.  TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing).  Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.

The wrapping code for dictionary arguments to constructors is fixed to
actually work.  This required adding GetAs* methods to union return
values that return references to the internal data.

The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Boris Zbarsky
83e0e3b10b Bug 915100. Make sure to actually include the headers we need in UnionTypes.h. r=khuey 2013-09-11 23:19:07 -04:00
David Zbarsky
e1c60f464d Bug 856373 - WebIDL-ify Gamepad events r=smaug 2013-09-11 18:35:51 -04:00
Dan Gohman
8b7074b6dc Bug 910823 - Constify static js::Class/JSClass instances. r=waldo 2013-09-11 05:49:05 -07:00
Olli Pettay
9a59871760 Bug 900904 - Support webidl-only generated events, r=khuey,gps
--HG--
extra : rebase_source : cda37d1ae2ff9b969d081fe0ec103d4f07098a3b
2013-09-10 21:27:39 +03:00
Andrew McCreight
4b379d5d4a Bug 911333 - Remove customTrace from bindings codegen. r=bz 2013-09-10 08:29:44 -07:00
Ms2ger
d26571cff4 Merge last PGO-green inbound changeset to m-c.
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/OwningNonNull.h
2013-09-10 10:13:12 +02:00
Ms2ger
91c313e902 Bug 913923 - Part c: Stop including BindingUtils.h in UnionTypes.h; r=dzbarsky 2013-09-10 09:03:38 +02:00
Ms2ger
1c16df3e56 Bug 913923 - Part b: Move OwningNonNull into its own header; r=dzbarsky
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/OwningNonNull.h
2013-09-10 09:03:37 +02:00
Ms2ger
eb01beb01a Bug 913923 - Part a: Move UnionMember into its own header; r=dzbarsky 2013-09-10 09:03:37 +02:00
Boris Zbarsky
79caa1e2e2 Bug 914334. Change codegen to reflect EventListener as a WebIDL callback on workers. r=khuey 2013-09-09 22:10:45 -04:00
Boris Zbarsky
ee67f31014 Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey 2013-09-09 22:10:45 -04:00
Boris Zbarsky
ea5f461f1b Bug 912948 part 1. Add support for [Clamp] and [EnforceRange] on dictionary members. r=khuey 2013-09-09 22:10:44 -04:00
Kyle Huey
27e346e22d Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz 2013-09-08 20:29:21 -07:00
David Zbarsky
495585d260 Bug 767926 - Implement unions as member types of sequences or dictionaries for WebIDL r=bz 2013-09-09 14:39:17 -04:00
Peter Van der Beken
bfe397843a Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object - bustage fix on a CLOSED TREE. 2013-09-06 15:27:25 +02:00
Peter Van der Beken
dcf5712030 Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object. r=bz. 2013-09-03 14:01:53 +02:00
Boris Zbarsky
2df33d9902 Bug 910795 part 2. Use the new Rebind() setup to avoid creating string copies for variadic string arguments. r=smaug 2013-09-04 16:43:12 -04:00
Boris Zbarsky
59c5d59f3d Bug 910220 part 3. Always generate a defineProperty hook for DOM proxies. r=peterv 2013-08-31 00:21:31 -04:00
Boris Zbarsky
62979a5a64 Bug 910220 part 2. Use the new API in codegen to only throw when needed. r=peterv 2013-08-31 00:21:28 -04:00
David Zbarsky
df9126512e Bug 903277. Support default values other than null for WebIDL unions. r=bzbarsky 2013-08-29 23:29:38 -04:00
Boris Zbarsky
84f9727c0b Bug 909863. Add support for the [SameObject] extended attribute in WebIDL. r=khuey 2013-08-29 00:30:05 -04:00
Boris Zbarsky
4b85e5c1ce Bug 868799 part 3. Use RootedTypedArray in codegen. r=smaug 2013-08-29 00:30:05 -04:00
Boris Zbarsky
1aa53527ae Bug 909639 part 4. Make previously-unconditional headers conditional. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
d1e08c5965 Bug 909639 part 3. Move our various conditional headers to the new bindingHeaders setup. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
724e752730 Bug 909639 part 2. Refactor our computation of whether we need the nsDOMQS header to make it easier to do similar other things. r=smaug 2013-08-28 00:14:56 -04:00
Boris Zbarsky
9251e1f63c Bug 909639 part 1. Refactor callForEachType to return a generator so we can use it more easily, and rename it to getAllTypes. r=smaug 2013-08-28 00:14:56 -04:00
Jeff Walden
8d060b4ef5 Bug 908898 - Move the JS_PS{G,GS,_END} macros from jsobj.h into jsapi.h for general use. r=jorendorff 2013-08-21 15:33:11 -07:00
Nathan Froyd
dace19ab2b Bug 909328 - make NativePropertyHook pointers resolvable at compile-time, rather than run-time; r=bz 2013-08-26 12:35:28 -04:00
Boris Zbarsky
ea46bf3d63 Bug 908837. Include a bit less stuff in binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Boris Zbarsky
f9dfbe132d Bug 908576 part 7. Move the various DOMProxyHandler classes into the binding implementation files. r=smaug 2013-08-23 22:42:42 -04:00
Boris Zbarsky
f80a9893ef Bug 908576 part 6. Expose just a NativePropertyHooks pointer, not the object itself, so we can forward-declare it in bindings headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
bb11190a02 Bug 908576 part 5. Make GetProtoObject and GetConstructorObject not inline so they don't force us to include PrototypeList.h in all binding headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
1b0c4c3b11 Bug 908576 part 4. Move all the PrototypeTraits bits into PrototypeList.h so they don't force us to include that header in all binding headers. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
a912d1fc13 Bug 908576 part 3. Get rid of PrototypeIDMap structs. r=smaug 2013-08-23 22:42:41 -04:00
Boris Zbarsky
98ea7295a7 Bug 908576 part 2. Move DOMClass/DOMJSClass declarations out of binding headers. r=smaug 2013-08-23 22:42:40 -04:00
Boris Zbarsky
3fcd503298 Bug 908576 part 1. Remove unused Is() method from proxy bindings. r=smaug 2013-08-23 22:42:40 -04:00
David Zbarsky
652adbc633 Bug 905542: IsNull/SetNull functions for nullable unions should have bodyInHeader=True to prevent compiler warnings r=Ms2ger 2013-08-23 13:56:20 -04:00
Kyle Huey
4fd557dbb9 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00
Kyle Huey
00fed9eba7 Back out Bug 887533 for test failures. 2013-08-22 23:40:32 -07:00
Kyle Huey
24e5819315 Bug 887533: Remove even more includes from dom/bindings. r=bz 2013-08-22 22:17:11 -07:00
Kyle Huey
8edf4de9ad Bug 903772: Part 4 - Harmonize main thread and worker dictionary implementations. r=peterv 2013-08-22 22:17:09 -07:00
Kyle Huey
de0ee30e74 Bug 903772: Part 3 - Refactor GlobalObject. r=peterv 2013-08-22 22:17:08 -07:00
Kyle Huey
822635ee88 Bug 903772: Part 2 - Fix codegen ctor return value handling. r=peterv 2013-08-22 22:17:07 -07:00
Kyle Huey
98cc114fd5 Bug 903772: Part 1 - Add an API for creating typed arrays that doesn't require the caller to be wrapper cached. r=peterv 2013-08-22 22:17:07 -07:00
Boris Zbarsky
3da3c1d677 Bug 907727. Make sure to properly forward gets to the expando object for DOM proxies. r=peterv 2013-08-22 09:46:27 -04:00
David Zbarsky
91a3fea017 Bug 883493: Make CGUnionConversionStruct use CGClass r=bz 2013-08-22 09:27:04 -04:00
Ms2ger
ce99c00e31 Bug 903778 - Move dom::Date into its own files; r=khuey 2013-08-22 08:30:38 +02:00
Jon Coppeard
11678aa48c Bug 903352 - Handlify remaining PropertyDescriptor APIs r=terrence r=bholley r=smaug 2013-08-12 12:09:14 +01:00
David Zbarsky
647dce3f88 Bug 883493: Make CGUnionStruct use CGClass r=bz DONTBUILD 2013-08-10 11:17:16 -04:00
David Zbarsky
beaeb93396 Backed out changeset 30bd1b29ac64 for having the wrong commit message DONTBUILD 2013-08-10 11:16:59 -04:00
David Zbarsky
9d435656ac * * *
Bug 883493: Make CGUnionStruct use CGClass r=bz
2013-08-10 11:14:23 -04:00
David Zbarsky
543854fd95 Bug 883493: Use CGSwitch to generate union structs r=bz 2013-08-10 11:14:22 -04:00
Peter Van der Beken
3256529063 Bug 895758. Make the global scope polluter a proxy. r=bzbarsky 2013-07-09 10:45:13 -04:00
David Zbarsky
ed4cefb0c9 Bug 883493: Switch CGUnionReturnValueStruct to use CGClass r=bz 2013-08-09 21:17:51 -04:00
Nathan Froyd
7123381e69 Bug 899652 - use JS::UndefinedValue instead of JSVAL_VOID to encourage constexpr-ness; r=bz 2013-07-29 16:32:44 -04:00
Terrence Cole
61b15c2fbb Bug 862115 - Use Rooted<JSPropertyDescriptor> in favor of JSPropertyDescriptor::AutoRooter r=terrence r=smaug r=bholley 2013-04-30 10:29:40 -07:00
Nicholas Nethercote
b756f6b258 Bug 898914 (part 1) - Remove JSBool.
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Boris Zbarsky
3c09e9975f Bug 897913 part 2. Allow touching interface objects via an Xray even if the page they're in can't touch them. r=bholley,smaug 2013-08-07 17:40:00 -04:00
Boris Zbarsky
3c03d65e5a Bug 902485. Disallow copy constructors and operator= on WebIDL union structs, because those wouldn't do what you think they should. r=dzbarsky 2013-08-07 17:40:00 -04:00
Boris Zbarsky
aeda9bac9f Bug 901816. Include Nullable and TypedArray headers in binding header files if we have dictionaries that have those as members. r=smaug 2013-08-07 17:40:00 -04:00
Nikhil Marathe
fed22f38c7 Bug 902257 - Include header file for Func attribute in WebIDL codegen. r=bz 2013-08-06 19:22:46 -07:00
Nicholas Nethercote
ba723f1034 Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Boris Zbarsky
659c773366 Bug 900898 part 4. Support typed arrays inside sequences and variadics. r=smaug 2013-08-05 13:40:02 -04:00
Boris Zbarsky
2145e0bf95 Bug 900898 part 3. Support typed arrays inside dictionaries. r=smaug 2013-08-05 13:40:01 -04:00
Boris Zbarsky
cad540afeb Bug 900898 part 2. Move to using Nullable<TypedArray> to represent possibly-null TypedArray structs. r=smaug 2013-08-05 13:40:01 -04:00
Jon Coppeard
71a6b47923 Bug 900986 - Convert JS_*Element API to use MutableHandleValue for out params r=terrence r=bholley r=smaug 2013-08-05 14:02:47 +01:00
Boris Zbarsky
f94d41c09f Bug 707564 followup. Update to new saner JSAPI, fixing merge bustage and ridding us of this pestilential CLOSED TREE. r=bustage 2013-08-04 00:11:30 -04:00
Boris Zbarsky
78a9c682d9 Bug 900994. Add support for Func annotations on interface objects. r=smaug 2013-08-03 23:38:55 -04:00
Boris Zbarsky
c8a7f5db48 Bug 707564 part 4. Teach WebIDL Xrays about the GetOwnProperties methods on WebIDL objects that have NewResolve. r=smaug 2013-08-03 23:38:55 -04:00
Boris Zbarsky
acdf381c53 Bug 707564 part 3. Give WebIDL bindings with NewResolve hooks Enumerate hooks as well, so enumerating them correctly resolves all the properties. r=smaug 2013-08-03 23:38:54 -04:00
Kyle Huey
7c45880c47 Bug 845545: Part 7 - Only set up XRay jsids on the main thread. r=bz 2013-08-03 16:55:41 -07:00
Kyle Huey
3e51fcc88e Bug 845545: Part 6 - Add a switch to force no QueryInterface function and use it for ImageData. r=bz 2013-08-03 16:55:40 -07:00
Kyle Huey
1de28ca9fd Bug 845545: Part 5 - Port ImageData to workers. r=mccr8,peterv,bent 2013-08-03 16:55:40 -07:00
Nikhil Marathe
be45be411a Bug 899904 - Include header for [NoInterfaceObject]s exposed on Navigator. r=khuey
--HG--
extra : rebase_source : 825404f9466f6fe582650e2397734822e9cfa9c1
2013-08-01 10:28:47 -07:00
Boris Zbarsky
a51cf4339b Bug 892609. Implement support for [ArrayClass]. r=khuey 2013-07-30 22:28:30 -07:00
Ryan VanderMeulen
1c2e96e8f9 Merge m-c to inbound. 2013-07-30 15:41:57 -04:00
Mina Almasry
a20effda55 Bug 897185 - toJSON only deals with attributes whose types are serializable. r=bz
Now jsonifiers only include serializable attributes in their returned object, as
per spec.
2013-07-30 10:04:04 -04:00
Jon Coppeard
8278efd42a Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Ehsan Akhgari
aa0b1f106f Bug 895322 - Part 3: Stop generating MOZ_STATIC_ASSERT in Web IDL bindings; r=Waldo
--HG--
extra : rebase_source : 5f48f54084623486fd3da0356711526597b90f5f
2013-07-19 14:39:20 -04:00
Boris Zbarsky
052e0c5524 Bug 895728 part 4. Fix unions to work with the new boolean/numeric/string setup. r=khuey 2013-07-30 10:39:35 -07:00
Boris Zbarsky
e66bdfb7fb Bug 895728 part 3. Fix overload resolution to work with the new boolean/numeric/string setup. r=khuey 2013-07-30 10:39:34 -07:00
Boris Zbarsky
f2749a768c Bug 895495 followup. Pass the needed second string to the exception message if the first argument of _create is not a Window. r=ms2ger 2013-07-28 10:50:35 -07:00
David Zbarsky
7837d54bf0 Bug 865998: Implement WebIDL union return values r=bz 2013-07-26 11:25:54 -07:00
Mina Almasry
d23615e4a1 Bug 760851 - Add jsonifier WebIDL declaration and add toJSON to performance.timing. r=bz
This patch adds a jsonifier declaration to WebIDL's. The declaration adds an autogenerated method toJSON() on the given webidl. This patch also adds jsonifier and toJSON() to PerformanceTiming.webidl, and performance.timing, respectively.
2013-07-26 12:00:49 -04:00
Carsten "Tomcat" Book
8c89deb65b Backed out changeset ae8d72538dee (bug 897484) for b2g bustage 2013-07-26 12:34:25 +02:00
Jon Coppeard
fc9b509d4f Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug 2013-07-26 10:00:38 +01:00
Peter Van der Beken
30b93d7d6b Bug 894448 part 2 - Remove nativeOwnership = 'nsisupports'. r=bzbarsky 2013-07-04 17:24:59 +02:00
Boris Zbarsky
cc0e521ed8 Bug 894448 part 1. Move IsChromeOrXBL to xpcpublic.h. r=bholley 2013-07-25 19:41:46 -07:00
Terrence Cole
7bde45b12a Bug 887563 - Convert CallArgs::operator[] to return a Handle; r=Waldo,bz
--HG--
extra : rebase_source : a06130820b34f6e1f5bc317e89c087cf0db9eeb8
2013-06-26 16:26:45 -07:00
Jon Coppeard
477e4df5c5 Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz 2013-07-25 13:57:00 +01:00
Boris Zbarsky
b8d369a614 Bug 895495. Add a faster way to create JS-implemented WebIDL objects from chrome. r=mccr8
This adds a Interface._create(targetWindow, chromeObj) static method
that lets a JS-implemented WebIDL object implementing Interface be
created in the window targetWindow using chromeObj as its JS
implementation.
2013-07-23 10:09:19 -04:00
Boris Zbarsky
c3d0e79b5c Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv 2013-07-22 08:15:43 -04:00
Jon Coppeard
3155328d9e Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz 2013-07-23 10:58:28 +01:00
Jon Coppeard
da4b383f2b Bug 891966 - 1 - Don't allow construction of Handle<T> from Heap<T> r=bz 2013-07-23 10:58:27 +01:00
Jon Coppeard
c561caee58 Bug 888338 - 6 - more browser post barriers r=mccr8 2013-07-23 10:58:27 +01:00
Ryan VanderMeulen
cc66360dac Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE. 2013-07-22 18:18:17 -04:00
Boris Zbarsky
12fbb7f6ba Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv 2013-07-22 08:15:43 -04:00
Boris Zbarsky
402fb273cc Bug 838146 followup: address missed review comments. r=bholley 2013-07-16 01:39:49 -04:00
Boris Zbarsky
145e2ef11a Bug 838146 part 9. Make Xrays play nice with WebIDL resolve hooks. r=bholley 2013-07-16 01:31:03 -04:00
Boris Zbarsky
8ecfecabac Bug 838146 part 1. Implement WebIDL API on Navigator for the parts that are specified or are in nsIDOMNavigator. r=smaug, sr=sicking 2013-07-12 10:35:35 -04:00
Ryan VanderMeulen
19fc888904 Backed out 9 changesets (bug 838146) for suspected B2G Mn orange on a CLOSED TREE.
Backed out changeset 955a14e3c181 (bug 838146)
Backed out changeset fddccc5fce6e (bug 838146)
Backed out changeset 7cddfebc261c (bug 838146)
Backed out changeset fd3a62dd3910 (bug 838146)
Backed out changeset f06b420e0dfa (bug 838146)
Backed out changeset e0c3d84965cf (bug 838146)
Backed out changeset d3b135e58350 (bug 838146)
Backed out changeset 1bc7f2167503 (bug 838146)
Backed out changeset 483fbc6878a8 (bug 838146)
2013-07-12 18:15:10 -04:00
Boris Zbarsky
1ba24d2399 Bug 892559. Don't use #pragma once in example codegen. r=smaug 2013-07-12 10:37:23 -04:00