Commit Graph

1160 Commits

Author SHA1 Message Date
Masatoshi Kimura
e7bdd24f89 Bug 875155 - Convert TimeEvent to WebIDL. r=smaug 2013-05-25 07:55:19 +09:00
Boris Zbarsky
d5daf7eeff Bug 875628. NewProxyObject should take a handle for the private value. r=till 2013-05-24 13:03:13 -04:00
Boris Zbarsky
e9e2dca8a4 Bug 875622 part 2. Use handles in ConvertJSValueToString. r=smaug 2013-05-24 09:16:00 -04:00
Boris Zbarsky
015e795d67 Bug 875622 part 1. Pass through mutable handles to all the various places where we have to work with JS::Value in codegen. r=smaug 2013-05-24 09:15:55 -04:00
Bobby Holley
1b2f22fe61 Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
2b2cd4e0b7 Bug 868130 - Remove the dependencies of the nsCxPusher machinery on nsContentUtils, use nsCxPusher in xpcshell, and privatize APIs. r=gabor
No more xpc::danger, for now. ;-)
2013-05-22 10:05:26 -06:00
Bobby Holley
ba05c93769 Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Boris Zbarsky
df4472c441 Bug 874154. Make sure we don't end up with uninitialized JSObject* or JS::Value in dictionaries. r=ms2ger 2013-05-21 14:15:30 -04:00
Boris Zbarsky
92fcdb83bf Bug 874105. Make CallSetup hold a Rooted to the object it's constructed with so we don't have to worry about it going gray while things like argument conversion for the call are in progress. r=mccr8 2013-05-21 14:15:29 -04:00
Bobby Holley
0bda6fb49c Bug 841312 - Remove the termination function API. r=bz
\o/
2013-05-21 11:45:56 -06:00
Boris Zbarsky
5958ab5dc6 Bug 867903. Speed up getDescriptors and some other obvious slow points in codegen. r=khuey 2013-05-09 13:06:48 -04:00
Boris Zbarsky
0550b4483a Bug 861587. Rejigger the WebIDL binding build system to do all binding codegen in a single python process while still using our dependency tracking for bindings to minimize the number of bindings we try to regenerate. r=khuey 2013-05-09 13:05:33 -04:00
Masatoshi Kimura
febdba954d Bug 873753 - Remove classinfo bits from WebIDL-bound events. r=smaug 2013-05-21 04:34:12 +09:00
Boris Zbarsky
2124ffdb96 Bug 865951. If the return value of a JS-implemented method or attribute is a JS-implemented interface and the returned object is not a DOM object, automatically wrap it up in an instance of that interface. r=mccr8
This does not invoke __init on the chrome object, since there are no
arguments to do it with anyway.  It also doesn't invoke init(), so
don't do this in cases in which the chrome-side object will need to
know its window.
2013-05-20 13:47:08 -04:00
Boris Zbarsky
810766595d Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Ms2ger
2750a39e8f Bug 868778 - Part c: Move DataChannel to WebIDL; r=mounir+jesup
--HG--
rename : content/base/public/nsIDOMDataChannel.idl => dom/webidl/DataChannel.webidl
2013-05-20 09:19:45 +02:00
Ms2ger
8bca342419 Bug 873417 - Part b: Use CGClass for CGDictionary; r=bz 2013-05-20 09:10:59 +02:00
Ms2ger
11bd01effd Bug 873417 - Part a: Cleanup and fix some bugs in CGClass; r=bz 2013-05-20 09:10:58 +02:00
Masatoshi Kimura
ffd5f17a14 Bug 871786 - Separate D2E KeyEvent constants and a method from KeyboardEvent. r=smaug, bz
--HG--
rename : dom/webidl/KeyboardEvent.webidl => dom/webidl/KeyEvent.webidl
2013-05-19 10:28:47 +09:00
Andrea Marchesini
0e20d68ea0 Bug 870856 - Convert DOMError to WebIDL. r=Ms2ger, r=bz 2013-05-18 13:52:06 -04:00
Reuben Morais
0745f908eb Bug 873684 - Improve error reporting when a value can't be converted to the expected type. r=bz
--HG--
extra : rebase_source : 3385999de823c9df659103239e62df8ffca5f15a
2013-05-17 21:14:18 -07:00
Boris Zbarsky
620839f027 Bug 868312 finale: finish rooting dom/ code. r=smaug 2013-05-17 21:48:25 -04:00
Boris Zbarsky
081b1f0e2e Bug 873337. Change the order of the decl and holder in js-to-native conversions to clean up the code some. Now the holder always comes after the decl. r=smaug 2013-05-17 21:48:25 -04:00
Reuben Morais
4d7c90ddd3 Bug 873647 - Teach codegen how to wrap Dates in constructors. r=bz
--HG--
extra : rebase_source : f4267f15b7076aacb47fb94e4173a05dac8de255
2013-05-17 13:52:32 -07:00
Nathan Froyd
f7bb31d430 Bug 873479 - fix BindingUtils.h to compile with GCC 4.4 in non-C++0x mode; r=bz 2013-05-17 10:44:19 -04:00
Nathan Froyd
3275d69d1a Bug 871578 - don't include AccessCheck.h in bindings unless necessary; r=bz 2013-05-13 11:32:41 -04:00
Nathan Froyd
5a9f4abbe5 Bug 871578 - don't include nsContentUtils.h in bindings unless necessary; r=bz 2013-05-13 10:07:08 -04:00
Jan-Ivar Bruaroey
879514b941 Bug 823512: Part 4: Workaround for lack of serializer support (bug 863402). r=bz 2013-05-15 01:07:49 -04:00
Jan-Ivar Bruaroey
9386baa685 Bug 823512: Part 2: Update PeerConnection to spec. states + DataChannel. r=bz,rjesup,ekr 2013-05-16 19:40:23 -04:00
Jan-Ivar Bruaroey
7921c9c1e4 Bug 823512: Rewrite PeerConnection in JS-implemented WebIDL r=bz,jesup 2013-05-07 20:55:21 -04:00
Ehsan Akhgari
a96e98f013 Bug 836599 - Part 9: Implement the DOM binding for OfflineAudioContext; r=roc 2013-05-16 19:30:41 -04:00
Max Li
27a234bfc8 Bug 767929 - Use Maybe instead of Optional for the holder object in new DOM binding code. r=bzbarsky 2013-05-12 15:18:37 -04:00
Boris Zbarsky
05015ca6da Bug 868715 part 10. Create specializations of Optional for 'any' and 'object' types so that we can have those look like Optional<Handle<Value> > and Optional<Handle<JSObject*> > respectively. r=peterv,sfink 2013-05-16 12:36:56 -04:00
Boris Zbarsky
42db4b4213 Bug 868715 part 9. Add tracing to WebIDL dictionary return values. r=peterv 2013-05-16 12:36:56 -04:00
Boris Zbarsky
4d021db1ca Bug 868715 part 8. Add tracing to WebIDL sequence return values. r=peterv 2013-05-16 12:36:56 -04:00
Boris Zbarsky
acedcb302c Bug 868715 part 7. Add tracing to dictionaries. r=peterv 2013-05-16 12:36:55 -04:00
Boris Zbarsky
e77d64048d Bug 868715 part 6. Add the ability to trace sequence arguments. r=peterv 2013-05-16 12:36:55 -04:00
Boris Zbarsky
6299c3cb16 Bug 868715 part 5. Give all dictionaries a single base class so we can tell when template arguments are dictionaries. r=peterv 2013-05-16 12:36:55 -04:00
Boris Zbarsky
44bd3f768a Bug 868715 part 4. Use on-stack Rooted<JSObject*> for 'object' arguments in WebIDL bindings. r=peterv 2013-05-16 12:36:55 -04:00
Boris Zbarsky
a0ca41113d Bug 868715 part 3. Use on-stack Rooted<Value> for 'any' arguments in WebIDL bindings. r=peterv 2013-05-16 12:36:54 -04:00
Boris Zbarsky
de073670c8 Bug 868715 part 2. Add the ability to request that the declType or holderType be constructed with a JSContext. r=peterv 2013-05-16 12:36:54 -04:00
Boris Zbarsky
55c89f0c10 Bug 868715 part 1. Change instantiateJSToNativeConversionTemplate to return an object, to make its return value more extensible. r=peterv 2013-05-16 12:36:54 -04:00
Boris Zbarsky
114a299902 Bug 869195. Make QueryInterface be exposed for both chrome and xbl scopes, not just in chrome. r=bholley,peterv 2013-05-14 14:24:48 -04:00
Olli Pettay
69d2df866b Bug 847594 - Paris binding for DataContainerEvent, r=peterv
--HG--
extra : rebase_source : ff4ad6b1b5a582c6e1b973fd1729aa2c6f7db314
2013-05-16 17:10:30 +03:00
Ted Mielczarek
47d7af59de bug 871712 - make MSVC PGO opt-in per-directory, and opt-in in the directories that matter. r=glandium 2013-05-16 09:33:26 -04:00
Boris Zbarsky
1deabd3ea1 Bug 871177. Fix rooting hazard in IsNotDateOrRegexp. r=smaug 2013-05-15 21:46:44 -04:00
Boris Zbarsky
67befd3575 Bug 872399. Don't codegen callback interfaces for worker descriptors. r=smaug 2013-05-15 21:46:44 -04:00
Nathan Froyd
556af50528 Bug 871011 - s/NULL/nullptr/ in bindings codegen; r=bz 2013-05-10 16:57:30 -04:00
Ryan VanderMeulen
a7737c8f7f Backed out 4 changesets (bug 869195, bug 870845, bug 872043, bug 862825) for mochitest b-c, mochitest-other, and xpcshell orange on a CLOSED TREE.
Backed out changeset 049889b25a79 (bug 869195)
Backed out changeset fc0bef5a2cfd (bug 862825)
Backed out changeset 267fe0d9c201 (bug 870845)
Backed out changeset 7b06b9d1acb2 (bug 872043)
2013-05-14 16:40:26 -04:00
Boris Zbarsky
5acfb67e4a Bug 869195. Make QueryInterface be exposed for both chrome and xbl scopes, not just in chrome. r=bholley,peterv 2013-05-14 14:24:48 -04:00