Граф коммитов

2259 Коммитов

Автор SHA1 Сообщение Дата
Boris Zbarsky 98f070ccaf Bug 994811 part 1. Add a ToJSValue overload for dictionary types. r=bholley 2014-04-11 22:20:52 -04:00
Boris Zbarsky 438ebc3f4e Bug 995047. Change out stack/exception APIs to hand out AString instead of AUTF8String for filename/functionname, so we end up with fewer string conversions in practice. r=smaug 2014-04-11 22:20:40 -04:00
Ehsan Akhgari 699e478381 Bug 886416 - Move SVGLength to WebIDL; r=bzbarsky 2014-04-11 17:26:29 -04:00
Ed Morley 23c2df160b Backed out changeset aac6762777be (bug 886416) for mochitest ABORTs; CLOSED TREE 2014-04-11 17:07:42 +01:00
Ehsan Akhgari b0f6353efa Bug 886416 - Move SVGLength to WebIDL; r=bzbarsky 2014-04-11 11:24:06 -04:00
Ryan VanderMeulen 7ba7f0e455 Merge m-c to inbound on a CLOSED TREE. 2014-04-10 22:16:50 -04:00
Ed Morley 43c3421651 Merge mozilla-central and b2g-inbound 2014-04-10 17:59:51 +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 5a6f899f61 Bug 993889 part 5. Remove the "creator" argument of the version of TypedArray::Create that takes a JSObject* creator. r=bholley 2014-04-10 00:58:42 -04:00
Boris Zbarsky 7523e50082 Bug 993889 part 4. Remove the scope argument of xpc_FastGetCachedWrapper. r=bholley 2014-04-10 00:58:42 -04:00
Mike Habicher e826a6be7c Bug 965420 - camera face-tracking, r=bz,dhylands 2014-04-09 11:52:10 -04:00
Boris Zbarsky c420001bda Bug 994793. Make the array bits of ToJSValue nicer. r=bholley 2014-04-10 14:57:42 -04:00
Boris Zbarsky 4ad64a690c Bug 994453 part 1. Factor out the to-JS conversions from Promise.h into mozilla::dom::ToJSValue methods. r=bholley
Apart from moving the methods, I made the following changes:

1)  Renamed them to ToJSValue.
2)  Inlined the boolean overload.
3)  Added overloads that take integer types.
4)  Changed the order of the aCx and aArgument arguments so aCx comes first.
5)  Renamed "abv" to "obj" in the typed array overload.
2014-04-10 14:57:07 -04:00
Ed Morley 18e2a8f432 Backed out changeset 02d0214c5e37 (bug 738196) 2014-04-10 15:47:57 +01:00
Ms2ger 165fd8f857 Bug 738196 - Part b: move StyleSheetList to WebIDL; r=bz 2014-04-10 13:24:26 +02:00
Boris Zbarsky 33e4783558 Bug 991742 part 10. Remove the "aScope" argument from the Promise ArgumentToJSValue() methods. r=bholley 2014-04-08 18:27:19 -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
Boris Zbarsky a7d33ad988 Bug 991742 part 2. Remove the "scope" argument of WrapNativeParentHelper/WrapNativeParentFallback/WrapNativeISupportsParent. r=bholley 2014-04-08 18:27:15 -04:00
Boris Zbarsky d7fa8f56be Bug 991742 part 1. Enter the compartment of the current wrapper before we try to reparent objects. r=bholley
This lets us preserve some invariants about our current compartment matching the scope we want to wrap into.
2014-04-08 18:27:15 -04:00
Peter Van der Beken b3dc774b85 Bug 983619 - Add Window.getInterface/QueryInterface to WebIDL, followup to deal with review comment. r=bz.
--HG--
extra : rebase_source : a0e0fa6d59c9edb9b346a5cb8b062144198a87c2
2014-04-08 20:39:38 +02:00
Andrea Marchesini 2029b0f60f Bug 974893 - Remove EnterCompartment and keep the global with the value in Promise, r=bz 2014-04-09 09:30:24 +01:00
Ed Morley 937b351273 Backed out changeset 7fa9564a2486 (bug 974893) for build failures 2014-04-09 09:08:39 +01:00
Andrea Marchesini 726b941dd1 Bug 974893 - Remove EnterCompartment and keep the global with the value in Promise, r=bz 2014-04-09 08:32:46 +01: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
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
Peter Van der Beken 65e4bfa394 Bug 983619 - Add Window.getInterface/QueryInterface to WebIDL. r=bz.
--HG--
extra : rebase_source : 4a4f368ba4f84e6e5104522181eb3043efd7ed38
2014-02-15 22:12:33 +01:00
Peter Van der Beken 9bbd30a4ac Bug 990158 - Make inner windows use their wrapper cache. r=bz.
--HG--
extra : rebase_source : bc040c75280bb45ae7ab0ed302130ff5d7178153
2013-11-09 11:20:22 +01:00
xKhorasan c23a5a9e44 Bug 859095 - URL property of document returned by XMLHttpRequest does not follow the spec. r=smaug 2013-09-25 06:56:52 +09: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
Boris Zbarsky 1da745b30f Bug 985536. Go back to allowing optional any with no default value in WebIDL, but treat it as having a default value of undefined. r=khuey 2014-04-03 23:32:11 -04: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
Masayuki Nakano d42c98a423 Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Masayuki Nakano abcc0ccd99 Bug 989214 Rename nsPaintRequest to mozilla::dom::PaintRequest r=smaug
--HG--
rename : dom/events/nsPaintRequest.cpp => dom/events/PaintRequest.cpp
rename : dom/events/nsPaintRequest.h => dom/events/PaintRequest.h
2014-04-03 13:18:37 +09:00
Mike Hommey cb1a0d7337 Bug 989522 - Remove LIBXUL_LIBRARY from the moz.build sandbox. r=mshal 2014-04-02 11:52:04 +09:00
Jason Orendorff def2eb96a3 Bug 984883 - Make Codegen.py easier to read. r=bz. 2014-04-01 11:11:44 -05:00
Masayuki Nakano 930436ef24 Bug 984269 Rename nsDOMEventTargetHelper to mozilla::DOMEventTargetHelper r=smaug
--HG--
rename : dom/events/nsDOMEventTargetHelper.cpp => dom/events/DOMEventTargetHelper.cpp
rename : dom/events/nsDOMEventTargetHelper.h => dom/events/DOMEventTargetHelper.h
2014-04-01 15:13:50 +09: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
Peter Van der Beken 4ceac82e81 Bug 988363 - Outerize when wrapping nsGlobalWindow. r=bz.
--HG--
extra : rebase_source : 68b2816295a8f37fa544d8c79317794e945f2f7e
2014-02-15 22:10:25 +01: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
Ed Morley 89dbe7f84e Backed out changeset 8059895497c1 (bug 988363) 2014-03-28 17:14:53 +00:00
Peter Van der Beken 753879f62c Bug 988363 - Outerize when wrapping nsGlobalWindow. r=bz. 2014-02-15 22:10:25 +01:00
Neil Rashbrook cf9b85f5a7 Bug 514280 Consistently declare and define IID accessors r=bsmedberg 2014-03-28 08:45:02 +00:00
Ehsan Akhgari b344638c9b Bug 983920 - Port window.sidebar and window.external to WebIDL; r=bzbarsky 2014-03-28 00:03:03 -04:00
John Shih 697caff053 Bug 960426 - Part 2: Modifications for IDL change. r=blassey 2014-03-05 11:54:55 +08: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
Bobby Holley 2ca3777187 Bug 958326 - Remove same-compartment security wrapper machinery. r=mrbkap 2014-03-26 10:59:20 -03: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
Ms2ger d7c5e3051b Bug 860731 - Part c: Move LockedFile to WebIDL; r=janv 2014-03-24 16:10:27 +01:00
Anvas 40e7bcc3c6 Bug 946897 - Report a more helpful error message when there is a name collision between an IDLExternalInterface and some other named IDL object. r=khuey 2014-03-22 00:25:40 -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 f40021934e Bug 983300 part 1. Disallow Promise as a return type for legacy callers and enforce all overloads for a method either returning promises or not returning promises. r=khuey 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
Robert O'Callahan 67b726752b Bug 917755. Part 4: Add DOMQuad implementation. r=jst
--HG--
extra : rebase_source : e74d516f27c004ecf5deea40fb397c2a8f5acfae
2013-09-20 22:21:04 +12:00
Robert O'Callahan 416a4278f9 Bug 917755. Part 3: Implement DOMRect per spec. r=jst
--HG--
extra : rebase_source : 46ef3a90763ceaea5bb43652e5c97e16667a9e7f
2013-09-20 22:21:03 +12:00
Robert O'Callahan 7adeaa75fa Bug 917755. Part 2: Implement DOMPoint. r=jst
DOMPointReadOnly is not currently used by anything but it's in the spec so we
might as well support it. It would be useful for adding "topLeft"-style APIs
to DOMRect.

--HG--
extra : rebase_source : 8df6b51b3305e91c7c7693128e70e3e928d44b27
2014-03-12 09:11:37 +08: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
Ryan VanderMeulen 069bec6611 Backed out 8 changesets (bug 917755) for bustage making inbound a CLOSED TREE.
Backed out changeset 98e31d225a5a (bug 917755)
Backed out changeset 43bceca43fb6 (bug 917755)
Backed out changeset 5117e3f594e7 (bug 917755)
Backed out changeset ada41f2f74b8 (bug 917755)
Backed out changeset 5272cfbd63f3 (bug 917755)
Backed out changeset f3bbd98021f7 (bug 917755)
Backed out changeset b049571a7cce (bug 917755)
Backed out changeset 472cb7738e14 (bug 917755)
2014-03-20 16:34:25 -04:00
Robert O'Callahan 9d59ab279c Bug 917755. Part 4: Add DOMQuad implementation. r=jst 2013-09-20 22:21:04 +12:00
Robert O'Callahan 13590066d3 Bug 917755. Part 3: Implement DOMRect per spec. r=jst 2013-09-20 22:21:03 +12:00
Robert O'Callahan df8181c63e Bug 917755. Part 2: Implement DOMPoint. r=jst
DOMPointReadOnly is not currently used by anything but it's in the spec so we
might as well support it. It would be useful for adding "topLeft"-style APIs
to DOMRect.
2014-03-12 09:11:37 +08: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
Birunthan Mohanathas e5a1edbddc Bug 984112 - Part 1: Use JS::CallArgs instead of JS_{ARGV,SET_RVAL,...}, `argc` in dom/. r=bz 2014-03-19 13:05:04 -04:00
Gregory Szorc dceae7622f Bug 983185 - Ensure adding a WebIDL file incurs code generation. r=glandium 2014-03-17 12:41:42 -07:00
Bobby Holley fbb9b62de8 Bug 825392 - Remove SOWs. r=bz 2014-03-19 13:35:45 -03:00
Bobby Holley 82090508be Bug 825392 - Generate anonymous content reflectors in the XBL scope. r=bz 2014-03-19 13:35:45 -03:00
Ehsan Akhgari 2566204ca3 Bug 866528 - Make nsIDOMActivityOptions a dictionary; r=bzbarsky 2014-03-18 00:38:36 -04:00
Carsten "Tomcat" Book d583b802a8 Backed out changeset 92e5d79ec57f (bug 917755) 2014-03-19 09:46:12 +01:00
Carsten "Tomcat" Book cf62801d4f Backed out changeset 3b41ab878fcd (bug 917755) 2014-03-19 09:46:09 +01:00
Carsten "Tomcat" Book 394bd4d67d Backed out changeset 8ad57cf09e75 (bug 917755) 2014-03-19 09:46:07 +01:00
Robert O'Callahan dce81f25da Bug 917755. Part 4: Add DOMQuad implementation. r=jst 2013-09-20 22:21:04 +12:00
Robert O'Callahan b94dc453d2 Bug 917755. Part 3: Implement DOMRect per spec. r=jst 2013-09-20 22:21:03 +12:00
Robert O'Callahan 7a5cc37fd9 Bug 917755. Part 2: Implement DOMPoint. r=jst
DOMPointReadOnly is not currently used by anything but it's in the spec so we
might as well support it. It would be useful for adding "topLeft"-style APIs
to DOMRect.
2014-03-12 09:11:37 +08:00
Ehsan Akhgari 6c58674421 Backed out changeset c0e333b0f7dc (bug 866528) on the suspicion that it has broken gaia unit tests again 2014-03-18 21:12:03 -04:00
Ehsan Akhgari a1a1f54752 Bug 866528 - Make nsIDOMActivityOptions a dictionary; r=bzbarsky 2014-03-18 00:38:36 -04:00
Rik Cabanier b97e98037d Bug 830734 - Implement Path primitives. r=roc 2014-03-18 08:03:06 -04:00
Phil Ringnalda 8b868c6da7 Back out a2e5b6d2f31a (bug 866528) for gaia-unit bustage 2014-03-17 22:53:54 -07:00
Ehsan Akhgari a373411a76 Bug 866528 - Make nsIDOMActivityOptions a dictionary; r=bzbarsky 2014-03-18 00:38:36 -04:00
Jonathan Watt aef65fd574 Bug 984278, part 1 - Rename SVGMatrix::Matrix and SVGTransform::Matrix to SVGMatrix::GetMatrix and SVGTransform::GetMatrix, respectively. r=dholbert 2014-03-18 10:41:35 +08:00
Peter Van der Beken f0dc19c509 Backout 8aca83520a91 (bug 983619) to fix orange/red on a CLOSED TREE. 2014-03-17 20:27:53 +01: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
Peter Van der Beken 0d26c9750b Bug 983619 - Add Window.getInterface/QueryInterface to WebIDL. r=bz. 2014-02-15 22:12:33 +01:00
Jon Coppeard bafb7ba32f Bug 959787 - Handlify some friend and debug APIs r=sfink r=bholley 2014-03-17 16:17:58 +00:00
Jan Varga 46850236f7 Bug 980275 - Merge DOMFileRequest and FileRequest. r=bent 2014-03-16 17:53:44 +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