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