Ms2ger
d56528fce5
Bug 876602 - Move JS-implemented webidl construction code into C++; r=bz
2013-06-01 08:56:23 +02:00
Ms2ger
1602264ebc
Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz
2013-06-01 08:56:02 +02:00
Peter Van der Beken
86d520dcf2
Bug 874321 - Fix setting of expandos on Xrays for DOM bindings with named properties. r=bz.
...
--HG--
extra : rebase_source : 697545417d27696de05c0f22987e4cb187d226cd
2013-05-29 11:38:57 +02:00
Kyle Huey
fb465d209c
Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz
2013-05-30 11:15:31 +08:00
Boris Zbarsky
e9e2dca8a4
Bug 875622 part 2. Use handles in ConvertJSValueToString. r=smaug
2013-05-24 09:16:00 -04: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
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
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
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
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
1deabd3ea1
Bug 871177. Fix rooting hazard in IsNotDateOrRegexp. r=smaug
2013-05-15 21:46:44 -04:00
Terrence Cole
fd72fc252e
Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst
2013-03-28 13:37:22 -07:00
Boris Zbarsky
797571f64b
Bug 867863. Be a little more careful in GlobalObject initialization. r=peterv
2013-05-08 15:50:58 -04:00
Boris Zbarsky
49395eacab
Bug 869311. More rooting in dom/bindings and content/base. r=smaug
2013-05-07 22:34:56 -04:00
Boris Zbarsky
fecb6d841d
Bug 865969 part 9. Remaining miscellaneous rooting fixes in WebIDL bindings. r=ms2ger
2013-05-03 19:29:09 -04:00
Boris Zbarsky
6baed10459
Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug
2013-05-03 19:29:08 -04:00
Boris Zbarsky
964948a44a
Bug 865969 part 1. Better rooting in bindings for 'object' arguments, as well as for worker interface arguments passed as JSObject*. r=smaug
2013-05-03 19:29:07 -04:00
David Zbarsky
3f7cb5e49c
Bug 866450 Part 1: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:45 -04:00
Boris Zbarsky
b7ef07e12d
Bug 860841. Hook up the proto chain of a WebIDL interface object to the interface object of its nearest ancestor interface that has one, as if these were ES6 classes. r=peterv
2013-05-02 14:38:19 -04:00
Ed Morley
0e4101d53a
Backed out changeset ad10907da2d4 (bug 866450) for B2G build failures
2013-05-02 11:58:05 +01:00
David Zbarsky
350f4548ad
Bug 866450 Part 1: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:45 -04:00
Boris Zbarsky
8cc9072bea
Bug 861022 part 2. Root the global object in WebIDL prototype and interface object setup. r=peterv,terrence
2013-05-01 23:44:12 -04:00
Boris Zbarsky
2ca9989cd9
Bug 861022 part 1. Root the non-globals in WebIDL prototype and interface object setup. r=peterv,terrence
2013-05-01 23:44:11 -04:00
Boris Zbarsky
0c64b1ab00
Bug 865961. Root the scope argument of wrap-the-xpconnect-object helpers in WebIDL bindings. r=ms2ger
2013-04-29 17:33:42 -04:00
Boris Zbarsky
8e7bf52db8
Bug 717637. Stop using non-global parent objects for everything that's not an element, since having a mix of parent objects makes us fail shape guards in the JIT. r=peterv
2013-04-29 17:33:41 -04:00
Boris Zbarsky
e31b7dba18
Bug 865964. Remove dead WrapCallbackInterface code. r=smaug
2013-04-26 13:41:21 -04:00
Boris Zbarsky
d101739d3f
Bug 766583 part 1. Stop declaring dictionaries as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
7041704c76
Bug 861493. When passing arguments to an Xray for a WebIDL constructor, make sure to do the argument unwrapping before entering the content compartment. r=bholley,waldo
...
There are several changes here:
1) Adds some MutableThis methods to Optional, Nullable, and dictionaries to
effectively allow doing a const_cast without knowing the actual type being
templated over. I needed this because I do not in fact know that type in
the relevant code. I'm open to suggestions for a better name for this
method.
2) Adds some operator& to RootedJSValue to make it look more like a JS::Value,
and in particular so I can JS_WrapValue the thing in it.
3) Adds a Slot() method to NonNullLazyRootedObject, just like NonNull has.
4) Adds an operator& to LazyRootedObject to make it look more like JSObject* so
I can JS_WrapObject the thing in it.
5) Implements the actual rewrapping of the arguments into the content compartment.
6) Fixes a small preexisting bug in which we didn't look at named constructors
in getTypesFromDescriptor (this was causing my tests to not compile).
7) Changes Xrays to not enter the content compartment when calling a WebIDL
constructor.
8) Adds some friend API to report things as not being functions.
2013-04-25 19:03:05 -04:00
Boris Zbarsky
f75142b01d
Bug 864727 part 5. Make all the WrapObject methods take a handle for the scope object. r=ms2ger
2013-04-25 12:29:54 -04:00
Boris Zbarsky
a0ac3184fd
Bug 864727 part 4. Pass a handle for the scope object to all the various Wrap*Object stuff in BindingUtils. r=ms2ger
...
Note: The JS::Rooted in CGWrapWithCacheMethod is just there until we start passing a handle to Wrap().
2013-04-25 12:29:53 -04:00
Boris Zbarsky
8ae76979d7
Bug 864590. Assert that the object is not null when wrapping WebIDL objects. r=peterv
2013-04-24 14:59:15 -04:00
Peter Van der Beken
16af060454
Bug 852094 - Support Unforgeable on proxy-based DOM bindings. r=bz.
2012-12-20 10:56:11 +01:00
David Zbarsky
cda8f8b22e
Bug 857439 Followup: Add null-checks for WrapObject failing and assert that the JSObject took ownership if WrapObject succeeded r=bz
2013-04-19 18:18:31 -04:00
David Zbarsky
2fc3ae46ec
Bug 857439 Part 3: Make sure to delete owned interfaces if wrapping fails r=bz
2013-04-19 04:49:21 -04:00
Jon Coppeard
385efb584a
Bug 861281 - GC: Root the wrap object API r=terrence r=bholley
...
--HG--
extra : rebase_source : 1d3ed88299ad8e9ad6812fb41aa48f03cc7aabae
2013-04-15 18:32:55 +01:00
Jacek Szpot
8123bfdfc5
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-11 11:50:18 -07:00
Boris Zbarsky
3e0909e46e
Bug 688691. Warn when LenientThis actually causes us to not throw. r=ms2ger
2013-04-08 17:04:21 -04:00
Ryan VanderMeulen
9420af6638
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
ccadc1da47
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00
Boris Zbarsky
ee5b601b3a
Bug 855700. Make returning an nsIVariant from a WebIDL interface work. r=smaug
2013-04-03 22:22:16 -04:00
Boris Zbarsky
b78a02dc00
Bug 855582 part 2. Make the bindings' various spec arrays const, and make the jitinfo structs static. r=khuey
2013-04-02 20:20:38 -04:00
Boris Zbarsky
2cafde97ff
Bug 856833 part 3. Rip out no longer needed proxy-unwrapping code. r=waldo
2013-04-02 20:20:37 -04:00
Bobby Holley
9f6e03ced8
Bug 854480 - Remove old-style unwrapping from dom/bindings bindings. r=bz
2013-04-01 15:17:50 -07:00
Terrence Cole
16aae426b8
Bug 855145 - DeMACROize the JS tracing interfaces; r=billm,mccr8
...
--HG--
extra : rebase_source : 915c80052b4412f653033eb5fc4d4f96c5d49bd5
2013-03-26 15:10:34 -07:00
Boris Zbarsky
bbc8dd1639
Bug 854001 part 2. Remove a null check in bindings code that is no longer needed because workers no longer use a DOMJSClass for prototype objects. r=peterv,bent
2013-03-28 15:43:33 -04:00
Jon Coppeard
b9652b9f39
Bug 849273 - Investigate splitting the js and JS namespaces r=terrence
...
--HG--
extra : rebase_source : 2b131d0177f02e5f0e89398545481fcacbfde00f
2013-03-19 10:35:41 +00:00
Peter Van der Beken
c377be724c
Bug 812617 - Provide a JSBindingFinalized hook for the native classes using Web IDL bindings to know when their JS wrapper has been finalized; r=bzbarsky
...
--HG--
extra : rebase_source : bb5059a170f3c2f4aa977190fceea421b41b5e58
2013-03-17 21:47:12 -04:00