Ms2ger
ff63d2149b
Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug
2013-06-23 09:15:42 +02:00
Jon Coppeard
4b40ce1453
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Terrence Cole
0ae404a1ee
Bug 884410 - Handlify the JS_TransplantObject interfaces; r=jonco
...
--HG--
extra : rebase_source : f1c2adc7380e5806ce6b4fce5bb41f9400b9e1b1
2013-06-13 17:09:55 -07:00
Jon Coppeard
c56ed4c7b6
Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz
2013-06-19 11:32:27 +01:00
Boris Zbarsky
8a5f1751d4
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
Ryan VanderMeulen
abc39cc023
Backed out 3 changesets (bug 883358) for Android mochitest-3 failures on a CLOSED TREE.
...
Backed out changeset 84b35dd1879d (bug 883358)
Backed out changeset b5e6522257cb (bug 883358)
Backed out changeset 757a3f2e5de6 (bug 883358)
2013-06-17 19:51:12 -04:00
Boris Zbarsky
0e37bdf3dc
Fix test fallout from bug 883358 so we can stop having a CLOSED TREE. No review.
2013-06-17 18:24:04 -04:00
Boris Zbarsky
2e6611eca0
Bug 883358 part 2. Use the new information in bindings error reporting. r=smaug
2013-06-17 16:31:13 -04:00
Boris Zbarsky
fc06188f5d
Bug 882653 part 2. Make the "not an object" error reporting better in WebIDL bindings. r=smaug
...
This also adds infrastructure to generally indicate to the
js-to-native conversion exactly what is being converted.
2013-06-17 13:07:03 -04:00
Boris Zbarsky
c6981c480d
Bug 882653 part 1. Improve error reporting for bogus this objects in WebIDL bindings. r=smaug
2013-06-17 13:07:03 -04:00
James Kitchener
411a37e6e9
Bug 796850 - Implement Code Generation for Bytestring in WebIDL bindings r=bz
2013-06-13 01:18:35 -04:00
Andrea Marchesini
66dc1ae9ec
Bug 856410 - Implement futures - Part 0: ErrorResult::StealJSException. r=bz
2013-06-11 21:41:21 -04:00
Boris Zbarsky
6a7b47964f
Bug 877281 part 6. Replace ${jsvalPtr} with a MutableHandle ${jsvalHandle}. r=peterv
...
It's a little unfortunate that we need both ${jsvalHandle} and
${jsvalRef}, but the only other option is to consistently have a
MutableHandle in this code. If the thing we have to work with is a
Rooted, that means doing JS::MutableHandle<JS::Value>(&myRooted) as
the thing to substitute for ${jsvalHandle}. Just using "&myRooted"
doesn't work, because things like "&myRooted.set()" or
"&myRooted.address()" fail, even if parenthesized as
"(&myRooted).set()", because &myRooted is actually a Rooted*, not a
MutableHandle.
We could go the JS::MutableHandle<JS::Value>(&myRooted) route if
desired; it would primarily uglify dictionary and sequence to-js
conversions. With the setup in this patch, ideally it looks pretty
idiomatic except for the use of .set() instead of operator= on Rooted.
2013-06-07 22:45:46 -04:00
Bobby Holley
868b75c7e1
Bug 877261 - Stop using XPCCallContext for XPCConvert. r=Ms2ger
2013-06-04 21:11:19 -07:00
Ms2ger
1e339d398b
Bug 876602 - Move JS-implemented webidl construction code into C++; r=bz
2013-06-01 08:56:23 +02:00
Ms2ger
c1c1a92c3b
Bug 876604 - Outparamdel UnwrapDOMObjectToISupports; r=bz
2013-06-01 08:56:02 +02:00
Peter Van der Beken
44c790a6fb
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
3cc4ccd2f5
Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz
2013-05-30 11:15:31 +08:00
Boris Zbarsky
e1d7ebf663
Bug 876805. Fix unsafe reference gc hazards in dom/ code. r=smaug
2013-05-29 16:16:04 -04:00
Jon Coppeard
6fec5f0632
Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug
2013-05-29 09:29:39 +01:00
Ed Morley
ebb42781a7
Backed out changeset 7acdb79e4d71 (bug 876639)
2013-05-29 12:09:10 +01:00
Jon Coppeard
a5f7aee9a5
Bug 876639 - Address unsafe references from JS_ParseJSON() - Fix browser r=smaug
2013-05-29 09:29:39 +01:00
Boris Zbarsky
0307d91885
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
Nathan Froyd
eba34f22d7
Bug 858131 - rewrite FloatingPoint.h to be C++-only instead of C-compatible C++; r+original-author=Waldo
2013-05-01 16:55:13 -04:00
Boris Zbarsky
299d72713e
Bug 867863. Be a little more careful in GlobalObject initialization. r=peterv
2013-05-08 15:50:58 -04:00
Boris Zbarsky
4f17ea0254
Bug 869311. More rooting in dom/bindings and content/base. r=smaug
2013-05-07 22:34:56 -04:00
Bobby Holley
609401db48
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
Sankha Narayan Guria
7f0c4baace
Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley
2013-05-06 09:04:17 -04:00
Ms2ger
634a0652fb
Bug 868411 - Handlify js::GetObjectProto; r=bz
2013-05-05 09:03:14 +02:00
Boris Zbarsky
fba1502aa7
Bug 865969 part 6. Fix rooting hazards in BindingUtils.cpp. r=smaug
2013-05-03 19:29:08 -04:00
Boris Zbarsky
0c03ae1518
Bug 742206 part 1. Introduce a simple mozilla::dom::Date for use in WebIDL bindings. r=smaug
2013-05-02 14:38:19 -04:00
Boris Zbarsky
d0cb8316ab
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
Boris Zbarsky
583e53379d
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
e418358f16
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
Jim Blandy
7b5a4624a3
Bug 862531: Replace BaseProxyHandler::obj_toString with className. r=jorendorff
2013-04-30 14:44:50 -07:00
Boris Zbarsky
15316b1400
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
e9fca1d653
Bug 865964. Remove dead WrapCallbackInterface code. r=smaug
2013-04-26 13:41:21 -04:00
Peter Van der Beken
7c90dee12e
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 3eef5382c32927ac321db47003a974768cbdaf6e
2013-04-16 19:02:57 +02:00
Bobby Holley
629d0d4121
Bug 860438 - Straightforward cases. r=gabor
2013-04-18 11:36:03 -04:00
Ryan VanderMeulen
3b5b1e9f13
Backed out changeset 409285b3f69c (bug 862092) for mochitest-2 failures on a CLOSED TREE.
2013-04-17 11:48:34 -04:00
Peter Van der Beken
d80727e491
Bug 862092 - "Assertion failure: target->isNative() == obj->isNative()" adopting a <select>. r=bz.
...
--HG--
extra : rebase_source : 1905aa3aa956a599e9ce1de8866f7dc58feb73be
2013-04-16 19:02:57 +02:00
Jon Coppeard
1f1c0e6af9
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
Joshua Cranmer
45e3447406
Bug 856108 - Port static analyses to clang, part 2b: use MOZ_STACK_CLASS in dom. r=Ms2ger
2013-04-11 22:20:18 -05:00
Jacek Szpot
514f40e52a
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-11 11:50:18 -07:00
Boris Zbarsky
d5740592e1
Bug 860473 part 3. Root ErrorResult::ThrowJSException. r=evilpie,smaug
2013-04-11 14:31:06 -04:00
Boris Zbarsky
4cf80a8cde
Bug 860473 part 1. Root WebIDL dictionary ParseJSON. r=evilpie, smaug
2013-04-11 14:31:05 -04:00
Boris Zbarsky
081e372b68
Bug 856428. Don't try to root an uninitialized value. r=peterv
2013-04-08 17:05:22 -04:00
Boris Zbarsky
ecc404d587
Bug 688691. Warn when LenientThis actually causes us to not throw. r=ms2ger
2013-04-08 17:04:21 -04:00
Ryan VanderMeulen
24a4c17eff
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
8ce12e971c
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00