Boris Zbarsky
500523a2eb
Bug 867863. Be a little more careful in GlobalObject initialization. r=peterv
2013-05-08 15:50:58 -04:00
Boris Zbarsky
141a28c2de
Bug 868102. Don't swallow exceptions from the XPCOM/XPConnect goop when setting up a js-implemented webidl object. r=mccr8
2013-05-07 22:34:56 -04:00
Bobby Holley
49c945ef93
Bug 868637 - Simplify DOM Bindings JSON parsing. r=bz
...
At this point we could really just hoist the JSAPI call, but it's just
cumbersome enough with all the casts that I don't really want to stick
it in the codegen.
2013-05-07 14:18:03 -07:00
Nathan Froyd
eaa42918b5
Bug 869073 - make WebIDL enums enum classes instead of plain enums; r=bz
2013-05-06 15:28:13 -04:00
Boris Zbarsky
bb7a688c02
Bug 868448. Fix the successCode in dictionary to-js conversions to actually work right, and document the requirements on successCode better. r=smaug
2013-05-06 08:31:01 -04:00
Boris Zbarsky
1821761af9
Bug 867844 part 1. Fix rooting hazards in LegacyCall. r=smaug
2013-05-06 08:30:40 -04:00
Cameron McCormack
b306c5df65
Bug 868805 - [LenientThis] attribute's setter should return undefined. r=bz
2013-05-06 12:36:38 +10:00
Phil Ringnalda
a8470efafb
Merge m-c to m-i
2013-05-05 12:17:07 -07:00
Ms2ger
879226f26a
Bug 868411 - Handlify js::GetObjectProto; r=bz
2013-05-05 09:03:14 +02:00
Boris Zbarsky
f874604be0
Bug 865785 part 2. Fix rooting issues in JS-implemented webidl. r=mccr8
2013-05-04 21:44:10 -04:00
Boris Zbarsky
0e0f326055
Bug 865785 part 1. Go back to passing a JSContext* to the constructors for JS-implemented interfaces. r=mccr8
2013-05-04 21:43:58 -04:00
Boris Zbarsky
ebd61c9a07
Bug 865969 part 9. Remaining miscellaneous rooting fixes in WebIDL bindings. r=ms2ger
2013-05-03 19:29:09 -04:00
Boris Zbarsky
e5f9f9f334
Bug 865969 part 8. Fix rooting hazards in CallbackObject. r=ms2ger
2013-05-03 19:29:09 -04:00
Boris Zbarsky
3d66d57468
Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug
2013-05-03 19:29:08 -04:00
Boris Zbarsky
5e59c22d4b
Bug 865969 part 5. Root the id argument of WebIDL DefineInterface methods. r=smaug
2013-05-03 19:29:08 -04:00
Boris Zbarsky
9cf58e9e56
Bug 865969 part 4. Pass handles to WebIDL dictionary init. r=smaug,terrence
2013-05-03 19:29:08 -04:00
Boris Zbarsky
21d4236164
Bug 865969 part 2. Better rooting in bindings for 'any' arguments. r=smaug
2013-05-03 19:29:07 -04:00
Boris Zbarsky
4c7cc8a91e
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
Peter Van der Beken
2f146c3949
Bug 820846 - Modify the ListBase IC to work with [OverrideBuiltins] bindings, codegen changes and make HTMLDocument OverrideBuiltins. r=bz.
2013-04-20 18:04:09 +02:00
Ehsan Akhgari
e3fcf0dbea
Backed out 3 changesets (bug 855971, bug 820846) because of browser-chrome test failures
...
Backed out changeset a2245b038bcc (bug 855971)
Backed out changeset 2a999f8ee317 (bug 820846)
Backed out changeset 6dba144500f3 (bug 820846)
2013-05-04 19:27:20 -04:00
Peter Van der Beken
47ed4524d2
Bug 820846 - Modify the ListBase IC to work with [OverrideBuiltins] bindings, codegen changes and make HTMLDocument OverrideBuiltins. r=bz.
2013-04-20 18:04:09 +02:00
David Zbarsky
5355766601
Bug 866450 Part 4: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Boris Zbarsky
ccbf9fa8ae
Bug 742206 part 3. Implement type conversions for Date in WebIDL. r=smaug
2013-05-02 14:38:20 -04:00
Boris Zbarsky
a0650bd764
Bug 742206 part 2. Implement WebIDL parser support for Date. r=smaug,khuey
2013-05-02 14:38:19 -04:00
Boris Zbarsky
62a41b889d
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
Aryeh Gregor
d9a5bc156c
Bug 866059 - Don't implicitly convert to already_AddRefed in Codegen.py; r=bz
2013-04-22 14:21:23 +03:00
Ed Morley
a6c109b8f9
Backed out changeset a1e877fa8d67 (bug 866450)
2013-05-02 11:57:07 +01:00
David Zbarsky
dea4b988b4
Bug 866450 Part 4: Fix rooting hazards under content/ and dom/ r=bz
2013-05-02 05:12:46 -04:00
Boris Zbarsky
ada762091c
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
b6ac7d7a7f
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
Kyle Huey
61d19c44a8
Bug 866918: Don't include WorkerPrivate.h in all the binding code. r=bz
2013-05-01 13:24:19 -07:00
Jim Blandy
62fa8b7821
Bug 862531: Replace BaseProxyHandler::obj_toString with className. r=jorendorff
2013-04-30 14:44:50 -07:00
Andrew McCreight
22e84e9e87
Bug 851639 - Allow JS implemented WebIDL to be registered on window.navigator. r=bz
2013-04-30 13:30:25 -07:00
Terrence Cole
9cde48c3ba
Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco
2013-04-16 16:20:44 -07:00
Boris Zbarsky
d7adc74c3f
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
71da6c6273
Bug 865975. Better rooting for the 'this', 'callable', and 'rval' values in WebIDL callbacks. r=bholley
2013-04-26 13:41:21 -04:00
Boris Zbarsky
eb3504f0a4
Bug 865964. Remove dead WrapCallbackInterface code. r=smaug
2013-04-26 13:41:21 -04:00
Boris Zbarsky
3d83f16a0f
Bug 865940. Remove AsMutable now that our binding stack variables aren't const. r=bholley
2013-04-25 22:46:18 -04:00
Boris Zbarsky
cd96f3b909
Bug 766583 part 7. Stop declaring variadic arguments as const on the stack in bindings code. r=smaug
2013-04-25 19:03:07 -04:00
Boris Zbarsky
e4da9b0d28
Bug 766583 part 6. Stop declaring unions as const on the stack in bindings code. r=smaug
2013-04-25 19:03:07 -04:00
Boris Zbarsky
22388d7bb0
Bug 766583 part 5. Stop declaring optional arguments as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
08300818e4
Bug 766583 part 4. Stop declaring strings as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
1620e7dc9f
Bug 766583 part 3. Stop declaring nullable things as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
ead9038e9a
Bug 766583 part 2. Stop declaring sequences as const on the stack in bindings code. r=smaug
2013-04-25 19:03:06 -04:00
Boris Zbarsky
4c5d3ac764
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
df2006c03b
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
Andrew McCreight
1273f4cdb6
Bug 865544 - Add support for nsIDOMGlobalPropertyInitializer to JS-implemented WebIDL. r=bz
2013-04-25 14:31:42 -07:00
Boris Zbarsky
f4f8bc3bc1
Bug 863898. Add support for dictionary arguments in JS-implemented WebIDL bindings. r=mccr8
2013-04-25 12:29:55 -04:00
Boris Zbarsky
257ae984ff
Bug 864727 part 7. Make the WebIDL binding Wrap methods take a handle for the scope object and use a Rooted for the parent. r=ms2ger
2013-04-25 12:29:55 -04:00
Boris Zbarsky
ebafdd1727
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