Boris Zbarsky
57cd950edf
Bug 1000675. Don't always include nsContentUtils in example codegen, fix example header guards to not end with __, don't use fully-qualified names in argument types when those argument types are in the mozilla::dom namespace already, and include headers from mozilla/dom. r=jst
2014-04-26 21:49:59 -04:00
Birunthan Mohanathas
7ac92ae5ea
Bug 900903 - Part 2: Change uses of numbered macros in nsCycleCollectionParticipant.h to the variadic variants. r=smaug
2014-04-25 12:49:00 -04:00
Jason Orendorff
4740c9dea6
Bug 547140, part 4 - Remove flags argument from resolve hooks. r=Waldo.
2014-04-25 16:11:02 -05:00
Jason Orendorff
6e21c723d2
Bug 547140, part 2 - Remove flags argument from JS_GetPropertyDescriptor and friends. r=Waldo.
2014-04-25 16:11:01 -05:00
Jason Orendorff
9506ae5eab
Bug 987007, part 2a - Instead of generating identical DOMProxyHandler::set() methods for many interfaces, implement it in a common base class. r=bz.
...
--HG--
extra : rebase_source : 15e81591de2a7c07b34a23143b876feadc2d7a1e
2014-04-25 15:07:18 -05:00
Jason Orendorff
f66a185e68
Bug 987007, part 2 - Handle assignment to named and indexed setters without using JSRESOLVE_ASSIGNING. r=bz, r=bholley.
...
--HG--
extra : rebase_source : a26eb85a086a18219a4d423cd7ad49a92cfd2584
2014-04-25 15:07:18 -05:00
Jason Orendorff
1500a39683
Bug 987007, part 1 - Make CGProxyIndexed{Getter,Setter,PresenceChecker,Deleter} return finished C++ code with the type already in it (rather than a template to be filled in later). r=bz.
...
--HG--
extra : rebase_source : 019165a1081d442b9805eb11d9be2e37f860841a
2014-04-25 15:07:17 -05:00
Jason Orendorff
329ba549eb
Bug 987618 - More cosmetic changes in Codegen.py. r=bz.
...
--HG--
extra : rebase_source : 5f495765ffaf3f073cf63a78ea92e74ae16d3bae
2014-04-25 11:50:34 -05:00
Jason Orendorff
5a2d2f70bd
Bug 986492, part 3 - Address review comments from peterv on part 2. Remove bogus extra semicolons from Codegen.py output. Fix a spelling error.
...
--HG--
extra : rebase_source : 0230a4f9bef4690d7382e5982670ccad3f607d0b
2014-04-25 11:50:34 -05:00
Jason Orendorff
e3ac9c16f2
Bug 986492, part 2 - Use fill() and dedent() throughout Codegen.py. Change dedent() to strip an initial blank line from its argument, if present. r=peterv.
...
--HG--
extra : rebase_source : 41a423806998eeb90fc66bf3663ead5bacd2c64b
2014-04-25 11:50:34 -05:00
Terrence Cole
581c606391
Bug 959787 - Handlify JS_DefineProperty; r=Waldo, r=bz
...
--HG--
extra : rebase_source : 87991ed47ed071550af4e4125eea54a66fdb0071
2014-01-21 18:11:17 -08:00
Boris Zbarsky
9c3392475d
Bug 843840 part 2. Add a way to ask DOM proxies for only their enumerable property names, and use that in the enumerate hook. r=peterv
2014-04-15 22:58:44 -04:00
Boris Zbarsky
ad59a21b39
Bug 843840 part 1. Add a way to ask DOM proxies with a named getter whether a property is enumerable or not and use that information in getOwnPropertyDescriptor. r=peterv
2014-04-15 22:58:44 -04:00
Boris Zbarsky
275836e8fc
Bug 995546. Nix bogus GetParentObject methods on WebIDL objects without a wrapper cache. r=bholley
2014-04-15 22:58:43 -04:00
Peter Van der Beken
c5601a6449
Bug 993688 - Mark Window.document StoreInSlot. r=bz.
...
--HG--
extra : rebase_source : 016a4cfc9945dd83b6f14d9ce6cc12e2cb5d6fe0
2014-02-05 22:09:19 +01:00
Boris Zbarsky
e74e09a7f2
Bug 993889 part 6. Remove the "scope" argument of dom::WrapObject methods. r=bholley
2014-04-10 00:58:43 -04:00
Boris Zbarsky
feebd363fb
Bug 991742 part 9. Remove the "scope" argument of WrapNewBindingObject. r=bholley
2014-04-08 18:27:19 -04:00
Boris Zbarsky
79dab91ff6
Bug 991742 part 8. Remove the "aScope" argument of WebIDL/nsWrapperCache WrapObject() methods. r=bholley
...
This patch was mostly generated with the following command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e '/WrapObject(JSContext/ {; N; s/\(WrapObject(JSContext *\* *a\{0,1\}[Cc]x\),\n\{0,1\} *JS::Handle<JSObject\*> a\{0,1\}[sS]cope/\1/ ; }' -i ""
and then reverting the changes that made to
dom/bindings/BindingUtils.h, since those WrapObject methods are not
the ones we're trying to change here, plus a bunch of manual fixups
for cases that this command did not catch (including all the callsites
of WrapObject()).
2014-04-08 18:27:18 -04:00
Boris Zbarsky
d4bd64ee2c
Bug 991742 part 6. Remove the "aScope" argument of binding Wrap() methods. r=bholley
...
This patch was mostly generated with this command:
find . -name "*.h" -o -name "*.cpp" | xargs sed -e 's/Binding::Wrap(aCx, aScope, this/Binding::Wrap(aCx, this/' -e 's/Binding_workers::Wrap(aCx, aScope, this/Binding_workers::Wrap(aCx, this/' -e 's/Binding::Wrap(cx, scope, this/Binding::Wrap(cx, this/' -i ""
plus a few manual fixes to dom/bindings/Codegen.py, js/xpconnect/src/event_impl_gen.py, and a few C++ files that were not caught in the search-and-replace above.
2014-04-08 18:27:17 -04:00
Boris Zbarsky
6a65a2a903
Bug 991742 part 5. Remove use of the "aScope" argument in binding Wrap() methods. r=bholley
2014-04-08 18:27:16 -04:00
Boris Zbarsky
0bee3774d8
Bug 991742 part 4. Remove the "scope" argument of WrapCallThisObject(). r=bholley
2014-04-08 18:27:15 -04:00
Boris Zbarsky
237ee9760a
Bug 991742 part 3. Remove the "scope" argument of WrapNativeParent(). r=bholley
2014-04-08 18:27:15 -04:00
Peter Van der Beken
ff7b3636c3
Bug 993047 - Support outerizing and addProperty hooks on globals with WebIDL bindings. r=bz.
...
--HG--
extra : rebase_source : cc8f013525dca74a4d7926f3cbb301ac42aab406
2014-02-15 22:12:33 +01:00
Jason Orendorff
a6f8b84822
Bug 986492, part 1 - Add fill() convenience function to Codegen.py. r=peterv.
2014-04-04 17:03:11 -05:00
Eric Faust
edf5e61761
Bug 890686 - Implement JS_GlobalObjectTraceHook, and install it appropriately. (r=billm)
2014-04-04 16:58:08 -07:00
Olli Pettay
c30f51eb9e
Bug 991074 - Fix for "Assertion failure: JS_IsExceptionPending(cx), at ./EventListenerBinding.cpp:24". r=bz
2014-04-02 13:25:00 +02:00
Jason Orendorff
def2eb96a3
Bug 984883 - Make Codegen.py easier to read. r=bz.
2014-04-01 11:11:44 -05:00
Boris Zbarsky
2fe70bbcc4
Bug 958540 part 3. Switch the assignment operator on WebIDL unions to use SetAs*, not RawSetAs*, so you can use it to change the type of a union. r=dzbarsky
2014-04-01 01:58:27 -04:00
Boris Zbarsky
e6a9ef1012
Bug 958540 part 2. Rename the existing SetAs* methods on unions to RawSetAs* and add new SetAs* methods that ensure the right type for the union. r=dzbarsky
2014-04-01 01:58:27 -04:00
Boris Zbarsky
9701c614d0
Bug 958540 part 1. Factor out the uninit behavior of union structs into a separate method. r=dzbarsky
2014-04-01 01:58:27 -04:00
Boris Zbarsky
6b002b786e
Bug 987112. Remove the redundant and somewhat annoying parentObject argument to dictionary ToObject() methods. r=bholley
2014-03-29 01:45:10 -04:00
Nathan Froyd
9d5430fc7b
Bug 987457 - rename ProtoAndIfaceArray to ProtoAndIfaceCache; r=bz
2014-03-22 13:04:09 -04:00
Nathan Froyd
a9b5bcd756
Bug 948445 - use different caching schemes for ProtoAndIfaceArray depending on the global kind; r=bz
2013-12-10 16:04:55 -05:00
Boris Zbarsky
dfbb146c5c
Bug 987110. Disallow dictionary members that would shadow Object.prototype properties. r=bholley
2014-03-25 22:48:46 -04:00
Jeff Walden
85e409d130
Bug 985687 - Remove vestigial tinyid/shortid references, as well as the field in JSPropertySpec. Followup to bug 975069. r=luke
...
--HG--
extra : rebase_source : 9e4bd270925efb155dacb91470b617f169526824
2014-03-20 23:24:21 -07:00
Boris Zbarsky
25b6f9a6ac
Bug 983300 part 4. Convert exceptions in static methods returning promises into rejected promises. r=khuey,efaust
2014-03-21 12:18:24 -04:00
Boris Zbarsky
0421d9d17b
Bug 983300 part 3. Convert exceptions in specialized methods returning promises into rejected promises. r=khuey, efaust
2014-03-21 12:18:24 -04:00
Boris Zbarsky
a4309c8b4e
Bug 983300 part 2. Introduce a GenericPromiseReturningBindingMethod for methods that return Promise return value. r=khuey,bholley
...
This method effectively catches exceptions from GenericBindingMethod and converts them into rejected promises. This handles calls to Promise-returning APIs from everything except Ion fast paths.
2014-03-21 12:18:24 -04:00
Boris Zbarsky
7627aed509
Bug 983261. Improve example codegen for non-leaf and non-root interfaces. r=khuey
2014-03-20 23:19:43 -04:00
Boris Zbarsky
20d2acf564
Bug 976305. Use the callee, not the irrelevant this value, to figure out the GlobalObject for a static WebIDL method. r=bholley
2014-03-20 23:19:43 -04:00
Jeff Walden
6bb4464a03
Back out bug 985687, likely cause of js1_8_5/extensions/recursion.js cantankering. r=CLOSED TREE
2014-03-20 16:39:30 -07:00
Jeff Walden
b44fa4bf74
Bug 985687 - Remove vestigial tinyid/shortid references, as well as the field in JSPropertySpec. Followup to bug 975069. r=luke
...
--HG--
extra : rebase_source : 4a9d1d783e658648c4ff210760b38f8353631458
2014-03-11 12:03:56 -07:00
Birunthan Mohanathas
9a136a0702
Bug 984112 - Part 2: Use JS::CallArgs functions instead of JS_CALLEE in Codegen.py. r=bz
2014-03-19 13:05:04 -04:00
Peter Van der Beken
9950668d75
Bug 983620 - Remove the unused aScope argument from WrapGlobalObject. r=bz.
2014-02-05 22:09:18 +01:00
Boris Zbarsky
f64c8624be
Bug 983228. Add a sequence tracer for sequences of unions. r=baku
2014-03-14 14:51:22 -04:00
Boris Zbarsky
54faddbaf7
Bug 983264. Include callback headers in UnionTypes.h when a callback is used in a union. r=mccr8
2014-03-14 14:51:06 -04:00
Boris Zbarsky
0b309b77ef
Bug 983029. Make sure to observe stack discipline for Rooted when initializing a WebIDL union containing the 'object' type. r=khuey
2014-03-14 14:50:39 -04:00
Boris Zbarsky
7a8df8647d
Bug 981036 followup. Actually add the comment that was asked for. DONTBUILD
2014-03-10 21:38:04 -04:00
Boris Zbarsky
b5d04164e0
Bug 981036. Disallow calling DOM constructors as functions in non-release builds. r=bholley
2014-03-10 17:38:31 -04:00
Boris Zbarsky
b5f192bb49
Bug 874788. Allow WebIDL HTMLAllCollection to emulate undefined. r=peterv
2014-03-05 22:48:04 -05:00
Boris Zbarsky
720591b1f5
Bug 874787. Add support for legacycaller on proxy bindings. r=efaust,peterv
2014-03-05 22:48:03 -05:00
Masayuki Nakano
08a11f7934
Bug 975688 part.28 Rename nsDOMEvent to mozilla::dom::Event r=smaug
...
--HG--
rename : dom/events/nsDOMEvent.cpp => dom/events/Event.cpp
rename : dom/events/nsDOMEvent.h => dom/events/Event.h
2014-03-05 09:37:43 +09:00
Bobby Holley
dc243c34da
Bug 916644 - Disable invoking WebIDL constructors without |new| unless you have the system principal. r=bz
2014-03-04 10:05:08 -08:00
Jeff Walden
4fb5f39899
Bug 972132 - Convert JS::EmptyValueArray to JS::HandleValueArray::empty(). r=terrence
...
--HG--
extra : rebase_source : 58b87df07373a7811136682b128aea67f04446cd
2014-02-12 23:38:36 -08:00
Boris Zbarsky
86168712ad
Bug 952890 part 1. Make WebIDL sequence JS to C++ conversions use for-of iteration, not length/index gets. r=peterv
2014-02-14 10:46:09 -05:00
Andrea Marchesini
f90b5edc71
Bug 965860 - patch 7 - Console API in workers, r=khuey
2014-02-27 23:39:30 +00:00
Benjamin Bouvier
460c4df9b5
Bug 939843: Required changes in the rest of the tree; r=froydnj
...
--HG--
extra : rebase_source : 5757eb2b73755c8da08112b91b025a8fa860d7e8
2014-02-27 16:23:16 +01:00
Boris Zbarsky
b2f3c9e80a
Bug 974284. Do a better job of commoning up identical cases in overload resolution for WebIDL methods. r=khuey
2014-02-27 07:54:33 -05:00
Boris Zbarsky
693e95b137
Bug 962256 yet another part. Eliminate some unnecessary roots in HTMLDocumentBinding::DOMProxyHandler::get. r=bholley
2014-02-26 12:40:57 -05:00
Boris Zbarsky
5d9538ac63
Back out revision c35458a437cc (bug 976305) for breaking DataStore tests. r=orange
2014-02-25 18:52:21 -05:00
Boris Zbarsky
64d168c67b
Bug 976305. Use the callee, not the irrelevant this value, to figure out the GlobalObject for a static WebIDL method. r=bholley
2014-02-25 17:26:16 -05:00
Boris Zbarsky
ac935748b5
Bug 972312 part 1. Generate virtual As*Event functions on WebIDL events so that we can easily go from an nsDOMEvent to the relevant event subtype. r=smaug
2014-02-23 00:01:12 -05:00
Boris Zbarsky
7ee245a69d
Bug 970764. Remove support for non-optional "any" arguments values, since "any" needs to be able to include undefined anyway. Have "any" arguments and dictionary entries default to undefined unless the IDL explicitly says "= null". r=khuey
2014-02-19 10:13:38 -05:00
Bobby Holley
e5ad98ec72
Bug 968335 - Implement GetCallerPrincipalOverride. r=bz
2014-02-14 22:36:44 -08:00
Phil Ringnalda
4d898ac6fc
Back out 4fc776ee6852:6a0ebe4ddd01 (bug 968335) and e7d697004921 (bug 923904) for b2g emulator build bustage
...
CLOSED TREE
2014-02-14 18:35:30 -08:00
Bobby Holley
c0fe9cb542
Bug 968335 - Implement GetCallerPrincipalOverride. r=bz
2014-02-14 16:13:38 -08:00
Boris Zbarsky
5aacab2d55
Back out bug 952890, since the dependencies aren't fixed yet.
2014-02-14 10:50:19 -05:00
Boris Zbarsky
4ea2d8e2d5
Bug 952890 part 1. Make WebIDL sequence JS to C++ conversions use for-of iteration, not length/index gets. r=peterv
2014-02-14 10:46:09 -05:00
Jon Coppeard
735137fc57
Bug 959787 - Handlify arguments for Call APIs r=terrence r=bz
2014-02-13 15:33:04 +00:00
Jon Coppeard
d0e56d0b88
Bug 969812 - Convert JS_NewArrayObject to use HandleValueArray r=terrence r=bz
2014-02-12 10:50:46 +00:00
Nathan Froyd
2029b67932
Bug 970507 - mark generated DOMIfaceAndProtoJSClass instances as const; r=bz
2014-02-10 15:11:58 -05:00
Nathan Froyd
24631a473e
Bug 957175 - reduce relocations required by NamesOfInterfacesWithProtos; r=bz
2014-02-10 10:24:38 -05:00
Jon Coppeard
c3759c40ff
Bug 965830 - Convert use of JS_CallFunction and related APIs uses to HandleValueArray r=terrence r=smaug
2014-02-11 10:59:16 +00:00
Nathan Froyd
168d8c1c01
Bug 969022 - remove s*_ids static constructors by explicitly tracking id initialization state; r=bz
2014-02-06 15:05:30 -05:00
Boris Zbarsky
7abaa88b21
Bug 956806 part 2. Share generic getters/setters/methods across all bindings. r=peterv
2014-02-07 15:56:14 -05:00
Boris Zbarsky
0ff9131667
Bug 956806 part 1. Output a list of prototype names in PrototypeList.cpp. r=peterv
2014-02-07 15:50:23 -05:00
Boris Zbarsky
c0e5c60b65
Bug 965927. [StoreInSlot] and [Cached] getters should use the reflector as the scope obj when wrapping the return value. r=peterv
2014-02-06 21:08:29 -05:00
Boris Zbarsky
933eab0317
Bug 968665. Get rid of MainThreadDictionaryBase and the dictionary bits in DummyBinding, since we now codegen a single version of dictionaries for both mainthread and workers. r=khuey
2014-02-06 21:08:28 -05:00
Ehsan Akhgari
4a415b8dd7
Bug 968643 - Part 2: Remove the [PrefControlled] WebIDL annotation; r=bzbarsky
2014-02-06 13:28:35 -05:00
Boris Zbarsky
b58f2006a2
Bug 964875 part 1. Add a WebIDL ChromeWindow interface for use in instanceof once Window is on WebIDL bindings. r=peterv
2014-02-05 23:36:57 -05:00
Boris Zbarsky
bb0bc45763
Bug 967694. Don't generate Xray resolveOwnProperty/enumerateOwnProperties hooks on WebIDL Xrays for plugin-loading elements, because those elements really only want to have the hook called when they're being touched by script from the same website. r=bholley
2014-02-05 13:38:18 -05:00
Boris Zbarsky
024de5ef38
Bug 965094. Reconcile the behavior of the JSObject* argument for Func on interfaces and on interface members. r=bholley
2014-02-05 13:38:18 -05:00
Boris Zbarsky
a1296ea4d4
Bug 963380. Improve codegen for [Cached] and [StoreInSlot] attributes that have multiple wrapping paths to have less duplicated code. r=peterv
2014-02-05 13:38:17 -05:00
Boris Zbarsky
5f98263d40
Bug 958667 part 5. Hook up AvailableIn for interface members. r=peterv
2014-02-05 13:38:17 -05:00
Boris Zbarsky
4ecbf2387a
Bug 958667 part 4. Hook up an AvailableIn extended attribute for interfaces. r=peterv
2014-02-05 13:38:17 -05:00
Boris Zbarsky
e4850f6e76
Bug 958667 part 1. Make it possible to use multiple methods of disabling the visibility of a constructor at once, disabling it if any of them says it should be disabled. r=peterv
2014-02-05 13:38:16 -05:00
Boris Zbarsky
4061bda4b1
Bug 963388. Add support for nullable dictionary return values in callbacks and js-implemented bindings. r=peterv
2014-02-05 13:38:16 -05:00
Boris Zbarsky
d5d6e0f8f3
Bug 963321 part 2. Add codegen support for [Cached] dictionary attributes. r=khuey
2014-02-05 13:38:16 -05:00
Bobby Holley
8bf2c8aa3b
Bug 959013 - Create storage for declarative class bootstrapping information on js::Class. r=luke
2014-02-04 07:51:54 -08:00
Kyle Huey
1d5269baf5
Bug 958011: Fix worker object cycle collection to not rely on the JSObject being finalized, which is a bogus assumption. r=bent,mccr8
2014-02-02 10:08:50 -08:00
Kyle Huey
b5074bbbd6
Bug 966466: Rename thisObj to thisObjPtr so people will know what to pass in. r=bz
2014-02-02 10:08:46 -08:00
Jon Coppeard
4df3aa4450
Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz
2014-01-31 09:55:20 +00:00
Eric Faust
6635c05430
Bug 947487 - Part 2: Generate and use js::Class structs for DOM proxies. (r=bz)
2014-02-01 00:29:52 -08:00
Eric Faust
5bd518d6ef
Bug 947487 - Part 1: Convert DOMJSClass::mBase from JSClass to js::Class. (r=bz)
2014-02-01 00:29:50 -08:00
Nathan Froyd
335177a2c3
Bug 965634 - move nsString construction out of mozilla::dom::Register for a codesize win; r=bz
2014-01-30 14:53:49 -05:00
Carsten "Tomcat" Book
f4bc96a601
Backed out changeset e2c75ec7f3d4 (bug 959787) for breaking b2g builds on a CLOSED TREE
2014-01-31 12:11:23 +01:00
Jon Coppeard
ba27569312
Bug 959787 - Handlify JS_GetProperty and related APIs r=terrence r=bz
2014-01-31 09:55:20 +00:00
Boris Zbarsky
b819d8db86
Bug 965477. Enter the compartment of obj in ClearCached*Value in the StoreInSlot case. r=bholley
2014-01-29 22:33:50 -08:00
Boris Zbarsky
9363c07116
Bug 945416 part 6. Fix the resolve/enumerate hooks in WebIDL bindings in the [Global] case to handle standard classes. r=peterv
2014-01-29 22:33:33 -08:00
Boris Zbarsky
754f19089b
Bug 945416 part 2. When invoking a DoNewResolve hook on an Xray, make sure to first invoke it on the underlying object. r=bholley,peterv
2014-01-29 22:33:22 -08:00
Andrea Marchesini
8c3ee1c182
Bug 964892 - WebIDL 'assert' method should be implemented as '_assert_'. r=bz
2014-01-29 08:16:57 -05:00
Jon Coppeard
74da1a60c3
Bug 959787 - Handlify JS_Set* APIs r=terrence r=bz
2014-01-25 09:29:12 +00:00
Bobby Holley
048f4eae8c
Bug 957688 - Kill off checkAccess. r=mrbkap
2014-01-24 16:08:26 -08:00
Andrea Marchesini
2e079d8e5b
Bug 963560 - Fix compilation error on VS2013 for method called 'assert', r=bz
2014-01-24 15:45:24 +00:00
Boris Zbarsky
998668c1ff
Bug 958576 part 2. Move FakeDependentString to the binding_detail namespace. r=peterv
...
I took the opportunity to move away from the NonNull<nsAString> hack
we had for string arguments, since just passing in a
FakeDependentString works fine and callees are now less likely to
declare their arg as being of that type.
In the process of doing that, I ran into what looks like a substantive
bug in the "owning union with string default value" case: We were
doing mValue.mString.Value() without ever having constructed
mValue.mString!
2014-01-22 14:37:10 -05:00
Boris Zbarsky
bd16624e1c
Bug 958576 part 1. Create a binding_detail namespace and move AutoSequence to it. r=peterv
...
Note that we can't name this namespace "detail", because then we'd
have both ::mozilla::detail and ::mozilla::dom::detail namespaces in
the tree and various template name lookups that look for "detail::Foo"
would get confused, and the code would not compile. C++ strikes
again.
2014-01-22 14:37:10 -05:00
Wes Kocher
75665b3d7f
Backed out 2 changesets (bug 958576) for osx 10.8 m-oth bustage on a CLOSED TREE
...
Backed out changeset 2ec09c9a9df1 (bug 958576)
Backed out changeset 49bec226f30e (bug 958576)
2014-01-22 16:17:25 -08:00
Boris Zbarsky
3146ee0f7a
Bug 958576 part 2. Move FakeDependentString to the binding_detail namespace. r=peterv
...
I took the opportunity to move away from the NonNull<nsAString> hack
we had for string arguments, since just passing in a
FakeDependentString works fine and callees are now less likely to
declare their arg as being of that type.
In the process of doing that, I ran into what looks like a substantive
bug in the "owning union with string default value" case: We were
doing mValue.mString.Value() without ever having constructed
mValue.mString!
2014-01-22 14:37:10 -05:00
Boris Zbarsky
5052fd5d63
Bug 958576 part 1. Create a binding_detail namespace and move AutoSequence to it. r=peterv
...
Note that we can't name this namespace "detail", because then we'd
have both ::mozilla::detail and ::mozilla::dom::detail namespaces in
the tree and various template name lookups that look for "detail::Foo"
would get confused, and the code would not compile. C++ strikes
again.
2014-01-22 14:37:10 -05:00
Boris Zbarsky
787877e0b4
Bug 961208 part 2. Change the WebIDL DoNewResolve hook signature to take a JSPropertyDescriptor. r=bholley
2014-01-21 22:08:51 -05:00
Boris Zbarsky
96d02efb92
Bug 961208 part 1. When doing a DoNewResolve for Xrays, pass the Xray, not the underlying object, to DoNewResolve, in case people want to do permissions checks on the object. r=bholley
2014-01-21 22:08:49 -05:00
Terrence Cole
d902eeddc8
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 4; r=sfink,r=bz
...
--HG--
extra : rebase_source : 8e1ff566f47795cd82e3f4c0a6fa37b88e7847b4
2014-01-17 10:08:51 -08:00
Nathan Froyd
a04f403342
Bug 960109 - convert JSJitInfo fields to bitfields; r=bz,efaust
2014-01-16 16:30:35 -05:00
Nathan Froyd
5bb37307a5
Bug 960653 - part 1 - assert that we don't overflow JSJitInfo fields in bindings codegen; r=bz
2014-01-16 11:20:51 -05:00
Nathan Froyd
ceefc28116
Bug 952777 - part 5 - move JSJitInfo::argTypes to a separate JSTypedMethodJitInfo subclass; r=efaust,bz
2014-01-07 16:52:40 -05:00
Nathan Froyd
5800422e32
Bug 952777 - part 4 - move JSParallelNative into the union; r=efaust,bz
2014-01-07 14:54:07 -05:00
Nathan Froyd
8c0119e34b
Bug 952777 - part 3 - use bitfields for integer fields in JSJitInfo; r=efaust,bz
2014-01-07 13:55:06 -05:00
Nathan Froyd
bb1da45740
Bug 952777 - part 1 - reorder JSJitInfo slots to pack better; r=efaust,bz
2013-12-21 15:33:12 -05:00
Terrence Cole
6beccf2363
Bug 959787 - Handlify several JSAPI interfaces that can GC, Part 3; r=sfink
...
--HG--
extra : rebase_source : ace7b0fa6ba93acbf0ec8ecaeb68ffa287a33665
2014-01-16 09:48:58 -08:00
Nathan Froyd
021c7795c1
Backout 524be0420e79 and 4c39a7047e96:b3d04b01c319 (bug 952777) for build bustage that led to this CLOSED TREE
2014-01-15 19:51:28 -05:00
Nathan Froyd
0747cf92d2
Bug 952777 - part 5 - move JSJitInfo::argTypes to a separate JSTypedMethodJitInfo subclass; r=efaust,bz
2014-01-07 16:52:40 -05:00
Nathan Froyd
ada036e541
Bug 952777 - part 4 - move JSParallelNative into the union; r=efaust,bz
2014-01-07 14:54:07 -05:00
Nathan Froyd
0ce6927f43
Bug 952777 - part 3 - use bitfields for integer fields in JSJitInfo; r=efaust,bz
2014-01-07 13:55:06 -05:00
Nathan Froyd
952a5175bf
Bug 952777 - part 1 - reorder JSJitInfo slots to pack better; r=efaust,bz
2013-12-21 15:33:12 -05:00
Rick Eyre
194c47dcd0
Bug 882299 - Implement VTTCue::Line r=smaug,rillian,bz
2014-01-15 08:04:00 -08:00
Boris Zbarsky
9562a762e6
Bug 851891. Make stringifier attributes fail to codegen. r=khuey
2014-01-14 21:46:44 -05:00
Boris Zbarsky
ebedf6c389
Bug 959677. Fail codegen if a writable attribute is flagged PutForwards or Replaceable. r=smaug
2014-01-14 21:46:43 -05:00
Nathan Froyd
e51cd360e9
Bug 957730 - set JS values more directly in bindings code; r=bz
2014-01-08 14:35:39 -05:00
Nathan Froyd
6087eb63f6
Bug 958262 - reduce space required by JSPropertySpec; r=till,bz,Waldo
2014-01-10 12:11:31 -05:00
Boris Zbarsky
c99d5b8e9e
Bug 957929. Pass undefined, not null, as the this value to callbacks if no other value is provided. r=peterv
2014-01-13 15:08:57 -05:00
Boris Zbarsky
0bc28e81b8
Bug 952365. Add a TreatNonObjectAsNull annotation for WebIDL callback functions and use it for event handlers, since web sites depend on assigning non-callable objects to them in some cases. r=peterv
2014-01-13 15:08:56 -05:00
Nikhil Marathe
34af09eb87
Bug 957950 - Refactor tempRoot scope in WebIDL codegen. r=bz
2014-01-09 08:58:21 -08:00
Nikhil Marathe
fdba61883d
Bug 957429 - Method parameters that are callbacks obey [TreatNonCallableAsNull] semantics. r=bz
2014-01-08 22:12:27 -08:00
Ryan VanderMeulen
79c6767d01
Backed out changesets d8a6bde76293 and 0b28eaf5bde9 (bug 956806) for suspicion of making OSX 10.6 debug mochitest-bc even more orange prone than usual.
2014-01-08 15:34:24 -05:00
Boris Zbarsky
0b927c76d8
Bug 956806 part 2. Share generic getters/setters/methods across all bindings. r=peterv
2014-01-08 10:29:15 -05:00
Boris Zbarsky
aa6686aaf9
Bug 956806 part 1. Output a list of interface names in PrototypeList.cpp. r=peterv
2014-01-08 10:29:15 -05:00
Boris Zbarsky
b1083f6892
Bug 939581 part 3. Mark DOM calls as movable as needed and allow them to be CSE'd. r=efaust
2014-01-03 16:44:45 -05:00
Ehsan Akhgari
22ef961b40
Bug 927728 - Part 2: Stop using PRUnichar in our code generators; r=roc,bzbarsky
2014-01-04 10:02:43 -05:00
Masatoshi Kimura
40c3a61d7b
Bug 876238 - Convert DeviceAcceleration and DeviceRotationRate to WebIDL bindings. r=smaug
2014-01-02 07:52:47 +09:00
Boris Zbarsky
4a425922ba
Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky
2013-12-20 15:33:57 -05:00
Wes Kocher
900bc805d5
Backed out changeset 6532bf066bb4 (bug 882299)
2013-12-20 18:33:04 -08:00
Wes Kocher
29b8341103
Backed out changeset f84ac36ce832 (bug 952062) for osx debug m1 orange
2013-12-20 14:22:55 -08:00
Boris Zbarsky
7f2351d69a
Bug 952062. Fix union codegen to properly destroy the union members if conversion to them fails. r=dzbarsky
2013-12-20 15:33:57 -05:00
Boris Zbarsky
8ddd74e1a2
Bug 952375. Include headers for external interfaces in UnionConversions.h. r=dzbarsky
2013-12-20 14:28:18 -05:00
Rick Eyre
6688119fea
Bug 882299 - Implement VTTCue::Line. r=smaug, r=rillian
2013-12-16 14:35:01 -05:00
David Zbarsky
af0149116d
Bug 928953 - WebIDL headers should include the file for enums. r=bz
2013-12-20 11:37:48 -05:00
Boris Zbarsky
3fa148f89a
Bug 952073. Fix codegen to actually work correctly for the case of a nullable union dictionary member with no default value. r=dzbarsky
...
This fix just makes us take the normal Optional codepath for this case, since there is no weirdness here.
2013-12-19 23:30:38 -05:00
Boris Zbarsky
1348f22698
Bug 951875. Actually apply binarynames to JS-implemented codegen. r=mccr8
...
Actually, this applies them to all callbacks, but most callback interfaces don't have entries in Bindings.conf.
This removes the extra entry for TestJSImplInterface in Bindings.conf that was covering up this bug.
2013-12-19 00:45:13 -05:00
Boris Zbarsky
83bca7fa22
Bug 949501. Make nullable unions that are isMember stop claiming to have a holder. r=dzbarsky
2013-12-18 11:20:43 -05:00
Andrew McCreight
3f5f23664f
Bug 937818, part 0 - Root newly created objects in Bind across ADDREF. r=bz
2013-12-17 19:29:56 -08:00
Boris Zbarsky
41d378f132
Bug 950991. Root on-stack JSObject* and JS::Value return values. r=smaug
2013-12-17 17:09:16 -05:00
Boris Zbarsky
b1af932dc3
Bug 949940. Only enter the uncheckedObj compartment in a crossOriginGetter/Setter/Method around the UnwrapArg call that needs us to be in that compartment. r=peterv
2013-12-17 17:09:05 -05:00
Wes Kocher
51be634cd2
Backed out changeset ef0eeaec74a8 (bug 949183) on the theory that it somehow broke every single b2g test on a CLOSED TREE
2013-12-16 18:27:43 -08:00
Sean Stangl
59305924cb
Bug 949183 - Fix jsid static constructor explosion. r=Waldo
2013-12-16 14:40:05 -08:00
Boris Zbarsky
29ab0029d4
Bug 950728. Nicer error reporting when a callback argument is not wrappercached. r=smaug
2013-12-16 13:06:36 -05:00
Boris Zbarsky
957cfde95a
Bug 950657. Give WebIDL callbacks an operator== that does the right thing. r=smaug
2013-12-16 13:06:35 -05:00
Boris Zbarsky
ea8d385a26
Bug 949682 part 1. Add a [Frozen] annotation on WebIDL attributes that have sequence types. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
f687511020
Bug 949078. Provide information about which return value we're talking about when throwing a conversion failure exception for the return value of a call into a WebIDL callback. r=peterv
2013-12-16 13:06:35 -05:00
Boris Zbarsky
3073fb27e4
Bug 947351. [Constant] things don't need a way to clear a cached value, since they're not supposed to change. r=peterv
2013-12-06 13:49:44 -05:00
Boris Zbarsky
d6a7344f02
Bug 946909. For a [Cached] or [StoreInSlot] attribute with a setter, clear the cache on set. r=peterv
2013-12-05 16:31:04 -05:00
Boris Zbarsky
919ba9e509
Bug 946898. Make sure to not accidentally store COWs in the slot for [Cached] properties. r=peterv
2013-12-05 16:07:33 -05:00
Gregory Szorc
b47eeb6ab3
Bug 928195 - Part 4: Rewrite WebIDL build system integration; r=bz, r=glandium
...
WebIDL build system integration has been rewritten from the ground up.
Changes:
* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
favor of mozwebidl.py.
* Static .webidl files are now processed directly in their original location
and aren't copied to the object directory.
* Generated events <stem>.cpp files are now compiled into the unified
sources. Previously, only the <stem>Binding.cpp files were compiled
into unified sources.
* Exported .h files are now generated directly into their final location.
Previously, they were generated into the local directory then
installed in their final location.
* The list of globalgen-generated files now lives in Python and isn't
duplicated in 3 places.
* The make dependencies are much simpler as a result of using a single
command to perform all code generation. The auto-generated .pp file from
code generation sets up all dependencies necessary to reinvoke code
generation and Python takes care of dependency management.
--HG--
extra : rebase_source : e4918878274b22a412329c7cb18cc7138daf5dc6
2013-12-12 16:26:38 +09:00
Boris Zbarsky
f5f63077e2
Bug 949271. Fix callback and JS-implemented codegen for sequence-of-union and variadic-union arguments. r=smaug
2013-12-12 16:11:56 -05:00
Boris Zbarsky
ac153799bd
Bug 949264 part 3. Use aRetVal for the outparam return value for CGNativeMember. r=smaug
2013-12-12 16:11:55 -05:00
Boris Zbarsky
6f31ec040a
Bug 949264 part 2. Support union members in generated events. r=smaug
2013-12-12 16:11:55 -05:00
Boris Zbarsky
3e0c5f04f2
Bug 949264 part 1. Share more codegen between events and CGNativeMember. r=smaug
2013-12-12 16:11:55 -05:00
Steve Fink
80aa980365
Bug 937317 - Root around GC call GetIncumbentGlobal. r=bz
2013-12-11 17:51:58 -08:00
Bobby Holley
5bd2767e3a
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-11 17:51:58 -08:00
Bobby Holley
3b27d85d5f
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-11 17:51:57 -08:00
Boris Zbarsky
7dd61e1f0b
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
11675716d5
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
f9ef5c917a
Bug 946067 part 3. Adjust codegen to allow cross-origin this values based on WebIDL annotations. r=peterv
2013-12-09 10:34:04 -05:00
Boris Zbarsky
abefb320a5
Bug 946067 part 2. Generate Window's access checks in XPConnect based on WebIDL access annotations. r=bholley,peterv
2013-12-09 10:34:03 -05:00
Phil Ringnalda
cacf62c269
Back out 35371620801a:bf2019278b77 (bug 937317) for gaia-ui-test bustage and frequent timeouts in its own test
2013-12-07 11:08:56 -08:00
Bobby Holley
78f90c96fa
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-06 12:01:42 -08:00
Bobby Holley
d29d61de41
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-06 12:01:42 -08:00
Carsten "Tomcat" Book
25d7777933
Backed out changeset 1156b23f333f (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:42:07 +01:00
Carsten "Tomcat" Book
928b1a0621
Backed out changeset 767065f0560b (bug 937317) WinXP Build Bustage on a CLOSED TREE
2013-12-06 08:41:59 +01:00
Bobby Holley
cff106e954
Bug 937317 - When invoking a callback object, restore the incumbent script settings object from when the callback was created. r=bz
...
See the 'incumbent script' stuff in the WebIDL spec.
2013-12-05 21:34:17 -08:00
Bobby Holley
e23b983161
Bug 937317 - Pass the entire CallbackObject to CallSetup. r=bz
...
We need this so that we can grab the incumbent global that we stashed on the
CallbackObject.
2013-12-05 21:34:17 -08:00
Ryan VanderMeulen
5c07e15985
Backed out changesets 22770b30545b, 0809370fabdb, 4ef4764c1b55, and bfe768b87464 (bug 697343) due to Gaia UI test bustage.
...
CLOSED TREE
2013-12-05 16:19:47 -05:00
Boris Zbarsky
574377e72d
Bug 697343 - Add slice hook to DOM bindings like NodeList. r=peterv,bhackett
2013-12-02 11:32:22 -05:00
Tom Schuster
922370489e
Bug 697343 - Remove getElementIfPresent. r=Waldo
2013-12-05 20:07:24 +01:00
Boris Zbarsky
21df6dd5cf
Bug 945788. Add support for dictionary return values to example codegen and js-implemented codegen. r=smaug
2013-12-05 11:39:50 -05:00
Boris Zbarsky
34c58c980f
Bug 942631 part 7. Move INSTANCE_RESERVED_SLOTS into the C++, so it's closer to the things it depends on. r=peterv
2013-12-04 08:02:19 -05:00
Boris Zbarsky
1b79433e39
Bug 942631 part 6. Fix performance regression in the imagedata getter due to using MaybeWrapValue on a non-DOM object. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
7cea1234f6
Bug 942631 part 5. Add C++ API for clearing the cached value of a [Cached] property or regetting a [StoreInSlot] property. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
a55415242a
Bug 942631 part 3. Preserve the wrapper when caching things in its slots if we're an nsWrapperCache. r=peterv
2013-12-04 08:02:18 -05:00
Boris Zbarsky
3c9332eaf8
Bug 942631 part 2. Make getters for cached properties check and set the reserved slot as needed. r=peterv
2013-12-04 08:02:17 -05:00
Boris Zbarsky
4ffa18ba5a
Bug 938355 part 2. Relax the restriction on [Pure] not mixing with [Throws] and annotate some more things as [Pure]. r=peterv
2013-12-02 09:50:34 -05:00
Boris Zbarsky
69a8f7bb18
Bug 938355 part 1. Refactor jitinfo to separate out the concepts of side-effects and movability. r=efaust
2013-12-02 09:50:34 -05:00
Ms2ger
a4f80d66d9
Bug 935362 - Part b: Remove customTrace support; r=khuey
2013-11-28 15:03:15 +01:00
Ms2ger
5c3ce5df59
Bug 935362 - Part a: Remove nativeOwnership = 'worker' support; r=khuey
2013-11-28 15:03:15 +01:00
Andrew McCreight
ebd19c8e62
Bug 878447 - Don't include nsIDOMGlobalPropertyInitializer.h in generated DOM bindings. r=bz
2013-11-26 14:29:39 -05:00
Boris Zbarsky
3df9d7aaed
Bug 938294 part 2. Store information about argument types in jitinfo. r=peterv,efaust
2013-11-25 20:59:39 -05:00
Boris Zbarsky
5ff8a34707
Bug 935855 part 6. Add friend API exposing the max number of fixed slots, and some static asserts that we're not going past it. r=jorendorff
2013-11-25 20:59:38 -05:00
Boris Zbarsky
7618cffabd
Bug 935855 part 4. Codegen a function that updates all the members-in-reserved-slots values for an interface and call it when we finish wrapping an object. r=peterv
2013-11-25 20:59:38 -05:00
Boris Zbarsky
ddb0fa4d92
Bug 935855 part 3. Compute the right slot indices to use for members we want to store in slots and save then in the data model the WebIDL parser outputs. r=peterv
2013-11-25 20:59:38 -05:00
Boris Zbarsky
740b35f91a
Bug 935855 part 2. Store isSlot information in jitinfo. r=peterv,efaust
2013-11-25 20:59:37 -05:00
Boris Zbarsky
60a3c87fe7
Bug 935855 part 1. Add a [StoreInSlot] WebIDL annotation to bindings. r=peterv
2013-11-25 20:59:34 -05:00
Boris Zbarsky
cc88075602
Bug 941776. Fix up our includes a bit when a dictionary contains a dictionary from another .webidl file. r=smaug
2013-11-25 20:57:25 -05:00
Jan-Ivar Bruaroey
5e7893b429
Bug 933447 - Use new weakRef to JSImpl feature. r=smaug, r=mccr8, r=abr
2013-11-08 19:45:59 -05:00
Boris Zbarsky
ae8b4cf576
Bug 941437 part 1. Remove the unused cx argument from dom::UnwrapObject. r=smaug
2013-11-21 07:51:15 -05:00
Olli Pettay
0432fe5230
Bug 928535, Support WeakRef's from c++ to JSImplemented webidl objects, r=mccr8
...
--HG--
extra : rebase_source : 05736af7ab2d11b10e7e6e917b8647a58e2c2108
2013-11-20 23:42:16 +02:00
Peter Van der Beken
794b2d6bd9
Bug 938544 - Add support for a Chrome-only constructor in WebIDL. r=bz.
...
--HG--
extra : rebase_source : e36fef0090d57947ceae6c2fc11bea8b115423e4
2013-08-12 16:45:33 +02:00
Nathan Froyd
7b9a9d912c
Bug 940573 - make the global's ProtoAndIfaceArray an actual object; r=bz
2013-11-19 14:28:09 -05:00
Gregory Szorc
d39381a161
Backed out 4 changesets (c0e8f2c0465f::608c663f691f) (bug 928195) for landing prematurely
...
--HG--
extra : rebase_source : fa42534ef50a0373738349f17b2ca57510bdd6ac
2013-11-19 10:16:51 -08:00
Gregory Szorc
90980a53e9
Bug 928195 - Part 6: Rewrite WebIDL build system integration
...
WebIDL build system integration has been rewritten from the ground up.
Changes:
* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
favor of mozwebidl.py.
* Static .webidl files are now processed directly in their original location
and aren't copied to the object directory.
* Generated events <stem>.cpp files are now compiled into the unified
sources. Previously, only the <stem>Binding.cpp files were compiled
into unified sources.
* Exported .h files are now generated directly into their final location.
Previously, they were generated into the local directory then
installed in their final location.
* The list of globalgen-generated files now lives in Python and isn't
duplicated in 3 places.
* The make dependencies are much simpler as a result of using a single
command to perform all code generation. The auto-generated .pp file from
code generation sets up all dependencies necessary to reinvoke code
generation and Python takes care of dependency management.
--HG--
extra : rebase_source : bde37d7aab3bd224ca8611f3ba4aaf6311e2faab
2013-11-14 09:52:49 -08:00
Gregory Szorc
604163999d
Bug 928195 - Part 1: Remove trailing whitespace from Codegen.py; r=bz
...
--HG--
extra : rebase_source : 09a7ed7933ef3c6efac617d3300b709ac2b3f26e
2013-11-14 14:31:58 -08:00
Kyle Huey
facf7517b4
Bug 940071: Free the proto and iface cache for generated globals. r=bz
2013-11-19 14:05:42 +08:00
Boris Zbarsky
8b79e34549
Bug 938246. Don't try to tell the JIT that our booleans are 32-bit integers, when they're actually booleans. r=efaust
2013-11-17 00:10:19 -05:00
Boris Zbarsky
44a1bbf863
Bug 936634. Drop support for [TreatUndefinedAs] in WebIDL. r=peterv
2013-11-17 00:10:18 -05:00
Ms2ger
0fdc697b63
No bug - Fix some style issues in DOM code.
2013-11-11 09:04:41 +01:00
Kyle Huey
020d8b6c36
Bug 928312: Convert the worker global object and all remaining EventTargets to new DOM bindings. r=bent,peterv,smaug
2013-11-05 22:16:26 +08:00
Kyle Huey
e034802efa
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-11-05 22:16:24 +08:00
Andrew McCreight
b8de97a9a9
Bug 933966 - Fix reindentation in CGWrapper. r=bz
2013-11-01 16:48:35 -07:00
Reuben Morais
741f1170ee
Bug 929491 - Include dictionary and object types in union construction error messages. r=bz
2013-11-02 16:18:35 -02:00
Peter Van der Beken
0fb4099fa8
Bug 932320 - Use JS_DefineProperty for replaceable properties. r=bz.
...
--HG--
extra : rebase_source : 89afe3e605ca66914912e1718e1558c8e266be32
2013-10-08 17:51:03 +02:00
Peter Van der Beken
a4fe40c32e
Bug 932315 - Throw a different error when this-unwrapping fails for security reasons. r=bz.
...
--HG--
extra : rebase_source : a92639be64d8d591ea4c97955bc04e6047e0d027
2013-10-16 18:11:25 +02:00
Boris Zbarsky
7763b195d4
Bug 933087. Make sure we don't violate stack discipline for Rooted, even when playing Maybe<Rooted> games. r=khuey
2013-10-31 22:07:11 -04:00
Boris Zbarsky
45644e6916
Bug 932998. Don't try to codegen code that keeps alive objects with 'owned' nativeOwnership, since we have no way to do that. r=smaug
2013-10-31 22:07:11 -04:00
Boris Zbarsky
120ff6b66e
Bug 925737. Allow copy-constructing owning unions with safe enough members. r=peterv
2013-10-31 22:07:10 -04:00
Boris Zbarsky
20b04d6057
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
98d74fb3cb
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
9253bde16b
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
38d1832bb2
Bug 924402. When an object that can only be returned from [NewObject] methods is used in a dictionary, just skip generating a ToObject for that dictionary. r=peterv
2013-10-28 19:34:08 -04:00
Boris Zbarsky
97c2bf7f74
Bug 929512. Fix null default values for non-nullable unions containing a nullable type. r=dzbarsky, r=smaug pending
2013-10-28 00:33:15 -04:00
Peter Van der Beken
dfc2297bd8
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 7bde7ddfe297e189ffa678ca1d9c34000bc904ec
2013-10-08 17:51:42 +02:00
Tom Schuster
127ebf3721
Bug 930782 - Handlify JS_WrapValue. r=terrence
2013-10-26 18:19:05 +02:00
Ms2ger
7cd50d2f15
Backout changeset 2e466ccc7bd0 for devtools test failures.
2013-10-26 17:02:20 +02:00
Peter Van der Beken
e01445a2df
Bug 918345 - Turn on WebIDL binding generation for Window and hook it up to quickstubs. r=bz.
...
--HG--
extra : rebase_source : 673c08ef093339e6bfb1418366af5cc5fabe7c4d
2013-10-08 17:51:42 +02:00
Peter Van der Beken
24546ae68c
Bug 918351 - Support Replaceable WebIDL properties. r=bz.
...
--HG--
extra : rebase_source : 1b3ca397aa15641c1ee4c49912148d0a3bb5a640
2013-09-15 23:04:08 +02:00
Peter Van der Beken
70d1256549
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 80791f28acbf8e2cc21946b0d62bb8555b53fc99
2013-09-30 18:32:22 +02:00
Ed Morley
ef2d7c5fe8
Backed out changeset 64a19bc0e198 (bug 922159) for compilation failures on a CLOSED TREE
2013-10-23 15:51:48 +01:00
Ed Morley
6f61723ac5
Backed out changeset 7ba9be5d51df (bug 918351)
2013-10-23 15:51:24 +01:00
Peter Van der Beken
11a4bbcd00
Bug 918351 - Support Replaceable WebIDL properties. r=bz.
...
--HG--
extra : rebase_source : 8c87e06ddb168d76e300d71b4784d1fb508e398a
2013-09-15 23:04:08 +02:00
Peter Van der Beken
538eed5d23
Bug 922159 - Rename Creator WebIDL extended attribute to NewObject. r=bz.
...
--HG--
extra : rebase_source : 2c09c54f42a111d27b0d57346ca7d80f440eca09
2013-09-30 18:32:22 +02:00
Steve Fink
a484573cac
Bug 925916 - Add some handles to dom/bindings, r=bz
...
--HG--
extra : rebase_source : 2443d2b988dea432c4961e8b042b0288e1dc7016
2013-10-11 22:02:39 -07:00
Andy Wingo
42d8ea0ae4
Bug 919948 - Convert Array.prototype.@@iterator to use new iteration protocol. r=jorendorff
...
--HG--
extra : rebase_source : d67252851178e66e8d7ef82ef83edddf79535a4e
2013-10-17 12:10:02 +02:00
Tom Schuster
1faae39271
Bug 8844105 - Handlify JS_WrapObject. r=terrence
2013-10-15 20:02:23 -04:00
Ryan VanderMeulen
9abde8f9b2
Backed out 2 changesets (bug 915757, bug 919885) for frequent Android Armv6 mochitest-8 crashes.
...
Backed out changeset 04610078280c (bug 915757)
Backed out changeset db9190b3ce60 (bug 919885)
2013-10-14 14:38:54 -04:00
Ed Morley
c850e0a16b
Merge latest green inbound changeset and mozilla-central
2013-10-14 17:39:02 +01:00
Ed Morley
b0477b5369
Backed out changeset d8636e485e85 (bug 882541)
2013-10-14 17:30:49 +01:00
Ed Morley
3a77b8b1b1
Backed out changeset 61092280cb2a (bug 882541)
2013-10-14 17:30:46 +01:00
Ed Morley
0f6d579260
Backed out changeset ccf11ae08ba2 (bug 882541)
2013-10-14 17:30:43 +01:00
Kyle Huey
30ab732153
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-10-14 19:58:05 +08:00
Phil Ringnalda
5c6d197b06
Backed out 2 changesets (bug 915757, bug 919885) for xpcshell bustage
...
Backed out changeset 5d17d90b838d (bug 915757)
Backed out changeset 91495d3a91c8 (bug 919885)
2013-10-13 21:59:58 -07:00
Kyle Huey
93bec3955c
Bug 919885: Move Worker to WebIDL and thread-agnostic event dispatch. r=bent,bz
2013-10-14 11:10:43 +08:00
Boris Zbarsky
ce891d2c00
Bug 882541 part 4. Treat undefined as missing for optional WebIDL arguments. r=khuey,ms2ger
2013-10-11 12:28:24 -04:00
Boris Zbarsky
99d48a5894
Bug 882541 part 3. Rework the overload resolution algorithm to WebIDL spec changes in handling of optional arguments. r=khuey
...
The major changes are as follows:
1) The new algorithm no longer adjusts "argcount" based on the
interaction of trailing undefined and [TreatUndefinedAs=Missing]
arguments. We never implemented this; just asserted that we didn't
have to deal with this situation.
2) If the distinguishing argument is undefined and there is an
overload that has an optional argument at the distinguishing
argument index, that overload is selected.
2013-10-11 12:28:24 -04:00
Boris Zbarsky
57053bb972
Bug 882541 part 2. Fix a bug that crept in with overloading a string and a nullable number and then passing in null, due to the number conversion being conditional on the input type in that case. r=khuey
...
Also removes a footgun conversion operator on Nullable that was causing it to silently convert to int32_t.
2013-10-11 12:28:23 -04:00
Boris Zbarsky
0630264884
Bug 817194 followup to work around emergent namespace+template MSVC bugginess: it was seeing mozilla::dom::detail in TypeTraits.h because it looks at namespaces at template _instantiation_, not declaration. Or something. Leading, of course, to a CLOSED TREE.
2013-10-09 14:12:17 -04:00
Boris Zbarsky
e9898392f2
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Ed Morley
a4e9089af7
Backed out changeset 8fa0cbe4a54d (bug 817194) for build failures
2013-10-09 17:48:13 +01:00
Boris Zbarsky
dab154c98a
Bug 817194. Make WebIDL dictionary types sanely initialized by default; add a new Fast subclass to handle cases when we can skip the initialization safely. r=khuey
2013-10-09 12:05:22 -04:00
Andy Wingo
53ce73ba77
Bug 907077: Change for-of to conform to latest ES6 specification. r=jwalden
2013-10-03 13:37:57 +01:00
Boris Zbarsky
1838da77e2
Bug 921553. Fix some binding rooting hazards that have popped up. r=peterv
2013-09-30 10:29:10 -04:00
Kyle Huey
cb84165118
Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz
2013-09-30 12:15:37 +08:00
Kyle Huey
12f83a26b2
Back out bug 919457 for build bustage. r=me
2013-09-30 10:41:23 +08:00
Kyle Huey
42dfe0a70f
Bug 919457: Allow bindings specific to workers without the old-style worker ownership model. r=bz
2013-09-30 09:37:26 +08:00
Olli Pettay
3b5f032268
Bug 637248, Make Event.isTrusted Unforgeable, r=bz
...
--HG--
extra : rebase_source : 3edd919c6dac839d6082c1c73de88f9ba2d22146
2013-09-28 13:27:29 +03:00
Andy Wingo
c535958dc3
Bug 920433 - Improve API support for self-hosted functions. r=till, r=bz
2013-09-26 10:11:38 -04:00
Boris Zbarsky
eff308009e
Bug 918011 part 4. Support dictionaries in unions. r=smaug
2013-09-26 00:05:00 -04:00
Boris Zbarsky
27c2ab7119
Bug 918011 part 3. Get rid of isInOwningUnion: it's equivalent to another isMember value. r=smaug
2013-09-26 00:05:00 -04:00
Boris Zbarsky
db4d6d4736
Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv
2013-09-25 14:38:30 -04:00
Boris Zbarsky
016b4b01e2
Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv
2013-09-25 14:38:29 -04:00
Ryan VanderMeulen
b2c316d8b2
Backed out 5 changesets (bug 905493, bug 920125, bug 919603) for mochitest orange on a CLOSED TREE.
...
Backed out changeset ccef656b2973 (bug 919603)
Backed out changeset 4b29ce0b2fff (bug 919603)
Backed out changeset b0a051ec55b7 (bug 919603)
Backed out changeset baa9a774aad1 (bug 920125)
Backed out changeset e03276bf4eaa (bug 905493)
2013-09-25 18:22:33 -04:00
Boris Zbarsky
d7f8928b36
Bug 919603 part 2. Change this-handling in codegen to only do the special global object stuff on interfaces where it might matter. r=peterv
2013-09-25 14:38:30 -04:00
Boris Zbarsky
59c5157dca
Bug 905493. Fix setting document.location via an Xray to not enter the content compartment. r=peterv
2013-09-25 14:38:29 -04:00
Peter Van der Beken
d0b24c7ccf
Bug 920196 - Make QueryInterface opt-in for WebIDL interfaces. r=bz.
...
--HG--
extra : rebase_source : 4cf7f9dc90f234dd663da05f27c0dc9484c7c0e1
2013-09-24 21:37:53 +02:00
Jan Varga
43d3cafd1b
Bug 919268 - Add codegen for worker-only WebIDL callbacks. r=bz
2013-09-24 21:32:01 +02:00
Boris Zbarsky
2e9b983c1d
Bug 862627 part 2. Rip out some now-dead codegen code. r=smaug
2013-09-23 20:25:17 -04:00
Boris Zbarsky
48946a9621
Bug 862627 part 1. Switch EventListener to WebIDL codegen. r=smaug
2013-09-23 20:25:17 -04:00
Boris Zbarsky
1397956620
Bug 918450. Back out the fix for bug 911333, since trace hooks are in fact used in workers. r=khuey
2013-09-20 11:15:39 -04:00
Boris Zbarsky
7132b087bf
Bug 917958 part 2. Simplify our various typeNeedsCx stuff, now that it's the same on workers and mainthread. r=smaug
2013-09-20 01:07:10 -04:00
Boris Zbarsky
af9b6c1e3a
Bug 917958 part 1. Stop using JSObject* to represent WebIDL callback functions in workers. r=smaug
2013-09-20 01:07:03 -04:00
Boris Zbarsky
b81107f18b
Bug 917539. Move the JSCompartment argument to the end of the list for JS-implemented WebIDL, so C++ callers can call into it sanely too. r=peterv
2013-09-20 01:07:03 -04:00
Jon Coppeard
607c80c4e2
Bug 917295 - GC: Handlify public date APIs r=terrence r=bz
2013-09-19 08:54:01 +01:00
Vendelin Ruzicka
1a5e17abdb
Bug 917410: Add specializations of Optional for 'any' and 'object' types for callbacks in workers to bindings code. r=bz
2013-09-18 06:47:08 +02:00
Boris Zbarsky
7f755053b4
Bug 915971. Rename FooReturnValue unions to OwningFoo, because we use them for more than just return values. r=dzbarsky
2013-09-17 11:16:02 -04:00
Randell Jesup
edd0e485ab
Bug 882145: reland changesets bc4ee7cbd7bd and cf373e408a6b r=bz
2013-09-16 02:34:57 -04:00
Ryan VanderMeulen
45c4ca50e7
Backed out changesets bc4ee7cbd7bd and cf373e408a6b (bug 882145) for causing bug 916609. r=jsmith
2013-09-15 18:19:42 -04:00
Jan-Ivar Bruaroey
3ab140206b
Bug 882145: gUM constraints converted to webidl + gUMDevices() takes constraints. r=bz r=jesup
2013-09-14 00:48:39 -04:00
Boris Zbarsky
2319781bd9
Bug 915368. Give dictionaries copy constructors and assignment operators when it's safe. r=khuey
2013-09-13 13:21:59 -04:00
Boris Zbarsky
7f0a897989
Bug 915419. Add support for "object" types in owning unions (so union return values and unions in dictionaries and sequences. r=dzbarsky, smaug
...
Adds RootedUnion and NullableRootedUnion structs that are used on the
stack for union return values when the union needs rooting. It also
adds a TraceUnion method on union return values, which is called by
(Nullable)RootedUnion or by dictionary tracing. TraceUnion traces
typed array and object members of unions (the only things unions can
contain so far that might need tracing). Union return values are
changed to store raw JSObject* or typed array structs instead of
Rooted versions of both; the tracing is now handled via TraceUnion.
The wrapping code for dictionary arguments to constructors is fixed to
actually work. This required adding GetAs* methods to union return
values that return references to the internal data.
The SetToObject method is adjusted to actually work for union return
value structs and not assume it's being generated for a
union-conversion struct, and we now generate SetToObject methods as
needed for union return values.
2013-09-12 22:34:16 -04:00
Boris Zbarsky
3cf69f3a05
Bug 915100. Make sure to actually include the headers we need in UnionTypes.h. r=khuey
2013-09-11 23:19:07 -04:00
David Zbarsky
5e12eb5de7
Bug 856373 - WebIDL-ify Gamepad events r=smaug
2013-09-11 18:35:51 -04:00
Dan Gohman
a50084b38d
Bug 910823 - Constify static js::Class/JSClass instances. r=waldo
2013-09-11 05:49:05 -07:00
Olli Pettay
8b192e2bbe
Bug 900904 - Support webidl-only generated events, r=khuey,gps
...
--HG--
extra : rebase_source : cda37d1ae2ff9b969d081fe0ec103d4f07098a3b
2013-09-10 21:27:39 +03:00
Andrew McCreight
ed2bc0d289
Bug 911333 - Remove customTrace from bindings codegen. r=bz
2013-09-10 08:29:44 -07:00
Ms2ger
d9d7605e4f
Merge last PGO-green inbound changeset to m-c.
...
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/OwningNonNull.h
2013-09-10 10:13:12 +02:00
Ms2ger
d743825ce5
Bug 913923 - Part c: Stop including BindingUtils.h in UnionTypes.h; r=dzbarsky
2013-09-10 09:03:38 +02:00
Ms2ger
fd34744914
Bug 913923 - Part b: Move OwningNonNull into its own header; r=dzbarsky
...
--HG--
rename : dom/bindings/BindingUtils.h => dom/bindings/OwningNonNull.h
2013-09-10 09:03:37 +02:00
Ms2ger
31f1d9f15c
Bug 913923 - Part a: Move UnionMember into its own header; r=dzbarsky
2013-09-10 09:03:37 +02:00
Boris Zbarsky
9197a62b7c
Bug 914334. Change codegen to reflect EventListener as a WebIDL callback on workers. r=khuey
2013-09-09 22:10:45 -04:00
Boris Zbarsky
4bcfb1058f
Bug 912948 part 2. Add support for [Clamp] and [EnforceRange] on writable attributes. r=khuey
2013-09-09 22:10:45 -04:00
Boris Zbarsky
0ad10b4254
Bug 912948 part 1. Add support for [Clamp] and [EnforceRange] on dictionary members. r=khuey
2013-09-09 22:10:44 -04:00
Kyle Huey
bf7d0aa16a
Bug 911258: Part 5 - Use the unified exception handling mechanism on workers. r=bz
2013-09-08 20:29:21 -07:00
David Zbarsky
65e4f98211
Bug 767926 - Implement unions as member types of sequences or dictionaries for WebIDL r=bz
2013-09-09 14:39:17 -04:00
Peter Van der Beken
19de89f34e
Bug 905392 - Need way to throw web-console-visible exception-message from JS-implemented webidl object - bustage fix on a CLOSED TREE.
2013-09-06 15:27:25 +02:00