Jon Coppeard
477e4df5c5
Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz
2013-07-25 13:57:00 +01:00
Boris Zbarsky
b8d369a614
Bug 895495. Add a faster way to create JS-implemented WebIDL objects from chrome. r=mccr8
...
This adds a Interface._create(targetWindow, chromeObj) static method
that lets a JS-implemented WebIDL object implementing Interface be
created in the window targetWindow using chromeObj as its JS
implementation.
2013-07-23 10:09:19 -04:00
Boris Zbarsky
c3d0e79b5c
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Jon Coppeard
3155328d9e
Bug 891966 - 2 - Comment calls to Handle::fromMarkedLocation r=bz
2013-07-23 10:58:28 +01:00
Jon Coppeard
da4b383f2b
Bug 891966 - 1 - Don't allow construction of Handle<T> from Heap<T> r=bz
2013-07-23 10:58:27 +01:00
Jon Coppeard
c561caee58
Bug 888338 - 6 - more browser post barriers r=mccr8
2013-07-23 10:58:27 +01:00
Ryan VanderMeulen
cc66360dac
Backed out changesets 0a196c0e9f96 (bug 895974) and 0d8aa14f5ed3 (bug 895009) for causing intermittent Linux32 mochitest-1 asserts on a CLOSED TREE.
2013-07-22 18:18:17 -04:00
Boris Zbarsky
12fbb7f6ba
Bug 895009. Don't pass in NonNull/OwningNonNull arguments to WebIDL binding consumers. r=peterv
2013-07-22 08:15:43 -04:00
Boris Zbarsky
402fb273cc
Bug 838146 followup: address missed review comments. r=bholley
2013-07-16 01:39:49 -04:00
Boris Zbarsky
145e2ef11a
Bug 838146 part 9. Make Xrays play nice with WebIDL resolve hooks. r=bholley
2013-07-16 01:31:03 -04:00
Boris Zbarsky
8ecfecabac
Bug 838146 part 1. Implement WebIDL API on Navigator for the parts that are specified or are in nsIDOMNavigator. r=smaug, sr=sicking
2013-07-12 10:35:35 -04:00
Ryan VanderMeulen
19fc888904
Backed out 9 changesets (bug 838146) for suspected B2G Mn orange on a CLOSED TREE.
...
Backed out changeset 955a14e3c181 (bug 838146)
Backed out changeset fddccc5fce6e (bug 838146)
Backed out changeset 7cddfebc261c (bug 838146)
Backed out changeset fd3a62dd3910 (bug 838146)
Backed out changeset f06b420e0dfa (bug 838146)
Backed out changeset e0c3d84965cf (bug 838146)
Backed out changeset d3b135e58350 (bug 838146)
Backed out changeset 1bc7f2167503 (bug 838146)
Backed out changeset 483fbc6878a8 (bug 838146)
2013-07-12 18:15:10 -04:00
Boris Zbarsky
1ba24d2399
Bug 892559. Don't use #pragma once in example codegen. r=smaug
2013-07-12 10:37:23 -04:00
Boris Zbarsky
ef364af836
Bug 838146 part 1. Implement WebIDL API on Navigator for the parts that are specified or are in nsIDOMNavigator. r=smaug, sr=sicking
2013-07-12 10:35:35 -04:00
Boris Zbarsky
f4b3a94323
Bug 891585. Don't JS_WrapValue same-compartment typed array return values in bindings code (e.g. ImageData.data). r=peterv
2013-07-11 11:58:29 -04:00
Masatoshi Kimura
5a1cf4ebae
Bug 885177 - Make window.ImageDocument ChromeOnly. r=bz
2013-07-11 08:15:30 +09:00
Kyle Huey
49b422d01c
Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff
2013-07-09 07:28:15 -07:00
Jan Varga
b31744c022
Bug 886755 - Include the correct binding header if a binding uses a WebIDL enumeration that's defined in a different .webidl file. r=bz
2013-07-09 15:54:47 +02:00
Justin Lebar
75c400493b
Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
...
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
This is a mechanical change made with sed. Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Ms2ger
ff63d2149b
Bug 884268 - Part b: Move nsContentUtils::PreserveWrapper to nsWrapperCache; r=smaug
2013-06-23 09:15:42 +02:00
Ms2ger
175929009b
Bug 883615 - Only include nsCxPusher.h in codegen when necessary; r=smaug
2013-06-23 09:14:46 +02:00
Jon Coppeard
4b40ce1453
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Bobby Holley
8bf9b466d1
Bug 884362 - Play Maybe<> games to root |temp| in the right circumstances. r=bz
2013-06-20 11:05:33 -07:00
Boris Zbarsky
256c17d070
Bug 883827. Make Optional<NonNull<T>> and Optional<OwningNonNull<T>> nicer to use by having their const Value() method return a T&. r=peterv
2013-06-19 14:48:43 -04: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
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
cfb1d312ce
Bug 882653 part 5. Improve WebIDL binding error reporting for overload resolution failures, unions, non-finite floats. r=smaug
2013-06-17 13:07:04 -04:00
Boris Zbarsky
8c0782e121
Bug 882653 part 4. Improve the WebIDL binding error reporting for the not-sequence, not-callable, not-dictionary, not-date, and invalid-enum-value cases. r=smaug
2013-06-17 13:07:03 -04:00
Boris Zbarsky
4728bf4f51
Bug 882653 part 3. Make the "does not implement interface" error reporting better in WebIDL bindings. r=smaug
2013-06-17 13:07:03 -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
Boris Zbarsky
4a83c172fc
Bug 882547. Treat undefined values in WebIDL dictionaries as missing. 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
Boris Zbarsky
738009a34f
Bug 880367 part 3. Add support for [ChromeOnly] on interface objects. r=smaug
2013-06-13 01:12:37 -04:00
Boris Zbarsky
5544291d84
Bug 880367 part 1. Change the "enabled" callback for WebIDL constructors to take a JSContext* and the object the constructor will be defined on. r=smaug,bholley
2013-06-13 01:12:26 -04:00
Ms2ger
da5fcc5a4d
Bug 860731 - Part a: Add 'extern' to the definition of EnumEntry tables; r=bz
2013-06-12 08:55:26 +02:00
Boris Zbarsky
af877c0a97
Bug 872669. Slightly speed up our named proxy gets by making use of the inline chars/length getters we can have when our id is an atom. r=waldo,peterv
2013-06-07 22:45:46 -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
Boris Zbarsky
c953830dd1
Bug 877281 part 4. Eliminate uses of ${valHandle} in binding conversions and make ${val} be a handle. r=peterv
2013-06-07 22:45:45 -04:00
Boris Zbarsky
5e4e46a051
Bug 877281 part 3. Rename valMutableHandle to mutableVal. r=peterv
2013-06-07 22:45:45 -04:00
Boris Zbarsky
089998b640
Bug 877281 part 2. Eliminate uses of ${valPtr} in bindings conversions. r=peterv
2013-06-07 22:45:45 -04:00
Boris Zbarsky
1cf3024899
Bug 877281 part 1. Convert WebIDL bindings to using something CallArgs-like. r=peterv,jandem
2013-06-07 22:45:44 -04:00
Boris Zbarsky
a1ca41876c
Bug 829248. Implement basic support for [TreatUndefinedAs=Missing] in WebIDL. r=khuey
...
This does not add support for [TreatUndefinedAs=Missing] in overloaded
methods, since it's not clear what that should really look like.
This also does not require that [TreatUndefinedAs=Missing] on an
argument force it on all later arguments, since it's not clear that we
want that long-term.
2013-06-05 20:51:21 -04:00
Bobby Holley
c10703b2f4
Bug 877261 - Stop taking a cx in XPCWrappedJS::GetNewOrUsed. r=Ms2ger
...
Some of these callers seem to be passing a ccx when they don't need to, but
let's just remove the param all together for consistency.
2013-06-04 21:11:19 -07:00
Ehsan Akhgari
917c82f714
Bug 861371 - Allow Web IDL enums to have names starting with a digit; r=bzbarsky
...
--HG--
extra : rebase_source : 5ebf235e9408bdfdfd37504e2f79c65978ccf51d
2013-06-03 17:54:46 -04:00
Ms2ger
1e339d398b
Bug 876602 - Move JS-implemented webidl construction code into C++; r=bz
2013-06-01 08:56:23 +02:00
Ms2ger
7c7b789273
Bug 876605 - Simplify the Init function of WebIDL dictionaries; r=smaug
2013-06-01 08:53:40 +02:00
Peter Van der Beken
27618bb68c
Bug 876080. Don't use 'nativeOwnership':'owned' for MediaList. r=bzbarsky
2013-05-31 11:27:05 -04:00