Commit Graph

719 Commits

Author SHA1 Message Date
Kyle Huey
a754cd2b5a Bug 928312: Convert the worker global object and all remaining EventTargets to new DOM bindings. r=bent,peterv,smaug 2013-11-05 22:16:26 +08:00
Kyle Huey
f8c3be104e Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-11-05 22:16:24 +08:00
Andrew McCreight
535833ef5d Bug 933966 - Fix reindentation in CGWrapper. r=bz 2013-11-01 16:48:35 -07:00
Reuben Morais
50740465ab Bug 929491 - Include dictionary and object types in union construction error messages. r=bz 2013-11-02 16:18:35 -02:00
Peter Van der Beken
3f0768ba00 Bug 932320 - Use JS_DefineProperty for replaceable properties. r=bz.
--HG--
extra : rebase_source : 89afe3e605ca66914912e1718e1558c8e266be32
2013-10-08 17:51:03 +02:00
Peter Van der Beken
a348044a35 Bug 932315 - Throw a different error when this-unwrapping fails for security reasons. r=bz.
--HG--
extra : rebase_source : a92639be64d8d591ea4c97955bc04e6047e0d027
2013-10-16 18:11:25 +02:00
Boris Zbarsky
792f1ad7f6 Bug 933087. Make sure we don't violate stack discipline for Rooted, even when playing Maybe<Rooted> games. r=khuey 2013-10-31 22:07:11 -04:00
Boris Zbarsky
6699bfa524 Bug 932998. Don't try to codegen code that keeps alive objects with 'owned' nativeOwnership, since we have no way to do that. r=smaug 2013-10-31 22:07:11 -04:00
Boris Zbarsky
dd5c49ee18 Bug 925737. Allow copy-constructing owning unions with safe enough members. r=peterv 2013-10-31 22:07:10 -04:00
Boris Zbarsky
7690d94087 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
b4b08a6e79 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
c0b03f21a5 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
70192ce8ff Bug 924402. When an object that can only be returned from [NewObject] methods is used in a dictionary, just skip generating a ToObject for that dictionary. r=peterv 2013-10-28 19:34:08 -04:00
Boris Zbarsky
77ea872b8d Bug 929512. Fix null default values for non-nullable unions containing a nullable type. r=dzbarsky, r=smaug pending 2013-10-28 00:33:15 -04:00
Peter Van der Beken
69e7c5ae55 Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Tom Schuster
ce701cf26f Bug 930782 - Handlify JS_WrapValue. r=terrence 2013-10-26 18:19:05 +02:00
Ms2ger
88bbf03777 Backout changeset 2e466ccc7bd0 for devtools test failures. 2013-10-26 17:02:20 +02:00
Peter Van der Beken
45ef6c1adc Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
--HG--
extra : rebase_source : 673c08ef093339e6bfb1418366af5cc5fabe7c4d
2013-10-08 17:51:42 +02:00
Peter Van der Beken
0a9c8db8f7 Bug 918351 - Support Replaceable WebIDL properties. r=bz.
--HG--
extra : rebase_source : 1b3ca397aa15641c1ee4c49912148d0a3bb5a640
2013-09-15 23:04:08 +02:00
Peter Van der Beken
18359b69c9 Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
--HG--
extra : rebase_source : 80791f28acbf8e2cc21946b0d62bb8555b53fc99
2013-09-30 18:32:22 +02:00
Ed Morley
68a54dcb54 Backed out changeset 64a19bc0e198 (bug 922159) for compilation failures on a CLOSED TREE 2013-10-23 15:51:48 +01:00
Ed Morley
050838bb2e Backed out changeset 7ba9be5d51df (bug 918351) 2013-10-23 15:51:24 +01:00
Peter Van der Beken
36133ae0ce Bug 918351 - Support Replaceable WebIDL properties. r=bz.
--HG--
extra : rebase_source : 8c87e06ddb168d76e300d71b4784d1fb508e398a
2013-09-15 23:04:08 +02:00
Peter Van der Beken
985a143c28 Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
--HG--
extra : rebase_source : 2c09c54f42a111d27b0d57346ca7d80f440eca09
2013-09-30 18:32:22 +02:00
Steve Fink
bb8984ec75 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
c9977b2ad9 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
f59a4cd93b Bug 8844105 - Handlify JS_WrapObject. r=terrence 2013-10-15 20:02:23 -04:00
Ryan VanderMeulen
a80b1ea22a 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
d9879cd4ec Merge latest green inbound changeset and mozilla-central 2013-10-14 17:39:02 +01:00
Ed Morley
b578555c28 Backed out changeset d8636e485e85 (bug 882541) 2013-10-14 17:30:49 +01:00
Ed Morley
225d596527 Backed out changeset 61092280cb2a (bug 882541) 2013-10-14 17:30:46 +01:00
Ed Morley
da83085a5c Backed out changeset ccf11ae08ba2 (bug 882541) 2013-10-14 17:30:43 +01:00
Kyle Huey
c3788e3653 Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-10-14 19:58:05 +08:00
Phil Ringnalda
95093a98d7 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
05cac7d21a Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz 2013-10-14 11:10:43 +08:00
Boris Zbarsky
316fae665f 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
97cf5fdfe4 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
093911dd1c 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
a6fb0b4a47 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
6195bac64d 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
b29a404ca7 Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures 2013-10-09 17:48:13 +01:00
Boris Zbarsky
cd528c76db 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
73cf8a0ea1 Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden 2013-10-03 13:37:57 +01:00
Boris Zbarsky
4bca1c4a80 Bug 921553. Fix some binding rooting hazards that have popped up. r=peterv 2013-09-30 10:29:10 -04:00
Kyle Huey
755922ca39 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
dba62ee6e2 Back out bug 919457 for build bustage. r=me 2013-09-30 10:41:23 +08:00
Kyle Huey
7fffb0ca44 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
d1f9e82bd1 Bug 637248, Make Event.isTrusted Unforgeable, r=bz
--HG--
extra : rebase_source : 3edd919c6dac839d6082c1c73de88f9ba2d22146
2013-09-28 13:27:29 +03:00
Andy Wingo
aef016cc4a Bug 920433 - Improve API support for self-hosted functions. r=till, r=bz 2013-09-26 10:11:38 -04:00
Boris Zbarsky
0eb0be4a04 Bug 918011 part 4. Support dictionaries in unions. r=smaug 2013-09-26 00:05:00 -04:00