Commit Graph

2450 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
05c118f45b merge mozilla-inbound to mozilla-central a=merge 2014-07-16 15:43:24 +02:00
Wes Kocher
e68fd2ac42 Merge m-c to b2g-inbound 2014-07-15 17:41:50 -07:00
Reuben Morais
88d02d081a Bug 1009645 - Address additional comments. r=bz
--HG--
extra : rebase_source : c6befdd143ad15751182af10f80b03c2f23eea4d
2014-07-15 16:15:28 -03:00
Carsten "Tomcat" Book
ec106e2806 merge mozilla-inbound to mozilla-central a=merge 2014-07-15 14:58:57 +02:00
Reuben Morais
caebcaf7e8 Bug 1009645 - Implement [FeatureDetectible] extended attribute and hook it up to navigator.getFeature. r=bz 2014-07-14 20:08:45 -03:00
Brian Birtles
7976ecebaf Bug 1032573 part 5 - Add GetAnimationPlayers to Element; r=bz
This patch adds the WebIDL definitions and implementation of
getAnimationPlayers on Element.

It does not include the full definition of AnimationPlayer but only readonly
versions of the currentTime and startTime attributes since these are easy
to implement and enable identifying the different animations that are returned
for the sake of testing.

Web Animations defines getAnimationPlayers as only returning the animations that
are either running or will run in the future (known as "current" animations).
This will likely change since it seems desirable to be able query animations
that have finished but are applying a forwards fill. For now, however, this
patch makes us only return animations that have not finished.

This patch also removes an assertion in ElementAnimation::GetLocalTime that
would fail if called on a finished transition. This assertion is no longer
necessary since an earlier patch in this series removed the overloading of
the animation start time that meant calling this on a finished transition
was unsafe. Furthermore, this assertion, if it were not removed, would fail
if script holds onto a transition and queries its start time after it
completed.
2014-07-16 09:02:31 +09:00
Boris Zbarsky
538e69f63d Bug 857648 part 4. Add a formattedStack attribute on nsIStackFrame. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
c685ec72ad Bug 857648 part 3. Switch from using JS::DescribeStack to JS::CaptureCurrentStack for producing JSStackFrames. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
aee6256f21 Bug 857648 part 2. Split JSStackFrame into a generic class and a JS-specific class. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
1f19de6028 Bug 857648 part 1. Remove unnecessary code that tries to filter out non-JS stack frames from a known-JS-only stack. r=khuey 2014-07-04 01:25:15 -04:00
Jan de Mooij
29b2d13e94 Bug 1034689 part 2 - Add AssignJSFlatString and use it. r=bz,terrence 2014-07-12 09:43:06 +02:00
Carsten "Tomcat" Book
6a8a6f930e Merge mozilla-central to mozilla-inbound 2014-07-15 16:17:15 +02:00
Jan de Mooij
06ee91fb7b Bug 1037613 - rm js_GetLocalizedErrorMessage, localeGetErrorMessage callback. r=jorendorff 2014-07-15 15:14:38 +02:00
Jan de Mooij
601f2700c9 Bug 1037869 - Fix remaining Latin1 string issues. r=terrence
--HG--
extra : rebase_source : b6fc9024f1a6c7eb9169b6c8c906916b4b1c197e
2014-07-14 22:19:36 +02:00
Boris Zbarsky
13b4ac0823 Bug 832014 part 8. Switch Location to WebIDL bindings. r=peterv,bholley 2014-07-11 19:32:46 -04:00
Boris Zbarsky
296f475579 Bug 832014 part 7. Fix Xray support for unforgeable methods. r=peterv 2014-07-11 19:32:16 -04:00
Boris Zbarsky
7769b8f593 Bug 832014 part 6. Make it possible to specify that only a particular interface that implements a given consequential interface gets cross-origin-settable behavior for a particular property. r=bholley 2014-07-11 19:32:14 -04:00
Boris Zbarsky
d88c077ec5 Bug 832014 part 3. Start using nsLocation for the Location interface in bindings. r=peterv 2014-07-11 19:30:27 -04:00
Boris Zbarsky
11d5cdb1c8 Bug 832014 part 2. Add codegen support for [Unforgeable] interfaces. r=peterv 2014-07-11 19:30:27 -04:00
Boris Zbarsky
2c178b67e0 Bug 832014 part 1. Add parser support for an [Unforgeable] annotation on WebIDL interfaces. r=peterv 2014-07-11 19:30:26 -04:00
Bill McCloskey
b5f325eeda Bug 1029248 - Clean up CPOW unwrapping (r=mrbkap) 2014-07-10 16:47:04 -07:00
Ben Tian
54bee84d86 Bug 1027504 - Implement BluetoothClassOfDevice, r=bz, r=echou 2014-07-10 14:42:10 +08:00
Benoit Jacob
758777907f Bug 1035394 - Fix dangerous public destructors in dom/events - r=smaug 2014-07-08 17:23:17 -04:00
Bobby Holley
b3a9b29482 Bug 1033927 - Drop support for custom [object XrayWrapper [object ClassName]] stringification. r=peterv 2014-07-07 13:11:24 -07:00
Jan de Mooij
f3876da607 Bug 1034191 - Make nsDependentJSString users work with Latin1 strings and nursery-allocated strings. r=bz 2014-07-05 17:30:54 +02:00
Ms2ger
5e7f19500d Bug 1034204 - Implement unforgeable methods; r=bz 2014-07-04 15:02:10 +02:00
Carsten "Tomcat" Book
2b96ad9a31 Backed out changeset 97708994eae6 (bug 857648) 2014-07-04 08:23:37 +02:00
Carsten "Tomcat" Book
362be5f5ca Backed out changeset b617c11c9476 (bug 857648) 2014-07-04 08:23:35 +02:00
Carsten "Tomcat" Book
0860f3621e Backed out changeset 04b06ee60ebf (bug 857648) 2014-07-04 08:23:34 +02:00
Carsten "Tomcat" Book
4c088305f3 Backed out changeset e4dd7f8cf275 (bug 857648) 2014-07-04 08:23:32 +02:00
Boris Zbarsky
b4fdd35537 Bug 857648 part 4. Add a formattedStack attribute on nsIStackFrame. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
dd908642fb Bug 857648 part 3. Switch from using JS::DescribeStack to JS::CaptureCurrentStack for producing JSStackFrames. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
d38c157620 Bug 857648 part 2. Split JSStackFrame into a generic class and a JS-specific class. r=khuey 2014-07-04 01:25:16 -04:00
Boris Zbarsky
f00b467362 Bug 857648 part 1. Remove unnecessary code that tries to filter out non-JS stack frames from a known-JS-only stack. r=khuey 2014-07-04 01:25:15 -04:00
Ryan VanderMeulen
2ab343d76c Backed out changesets 4a19dcbc7e7a and 4907115e02e3 (bug 1029248) for non-unified bustage.
CLOSED TREE
2014-07-03 13:19:29 -04:00
Bill McCloskey
c6d95353ef Bug 1029248 - Add helpers to simplify CPOW unwrapping (r=mrbkap) 2014-07-03 09:48:21 -07:00
Bobby Holley
268db82b97 Bug 1032317 - Make CompartmentPrivate and XPCWrappedNativeScope accessors infallible. r=gabor 2014-07-03 09:40:52 -07:00
Bobby Holley
66eabb813a Bug 1032317 - Remove XPCWrappedNativeScope::GetNewOrUsed. r=gabor 2014-07-03 09:40:52 -07:00
Jan de Mooij
b5ea9e5fa4 Bug 1032726 part 6 - Some followup changes. r=bz 2014-07-03 13:05:03 +02:00
Jan de Mooij
1043d3cf9c Bug 1032726 part 5 - Make new DOM bindings work with Latin1 strings. r=bz 2014-07-03 10:03:56 +02:00
Boris Zbarsky
0ddb61e498 Bug 1033100. Fix event codegen to compile when an event has a sequence-of-non-null-interface-type member. r=smaug 2014-07-02 15:16:43 -04:00
Bob Owen
0ac4ef8e6d Bug 1030707 - Part 8: Replace AutoCxPusher in WorkerPrivateParent<Derived>::DispatchMessageEventToMessagePort. r=bholley 2014-07-02 11:26:49 +01:00
Jan de Mooij
23294e95c6 Bug 1032726 part 3 - Make FindEnumStringIndex work with Latin1 strings. r=bz,terrence
--HG--
extra : rebase_source : dd266d1453f926438eec533502d75e2a7de37795
2014-07-02 15:45:04 +02:00
Jan de Mooij
7ee62a47c5 Bug 1032726 part 2 - Make GetArrayIndexFromId work with Latin1 strings. r=bz,terrence
--HG--
extra : rebase_source : b6f8fe3df3946dfe05f5467c22c4fb157b6dcbf2
2014-07-02 15:45:02 +02:00
Carsten "Tomcat" Book
d6c884a0d2 Merge mozilla-central to mozilla-inbound 2014-07-02 15:09:37 +02:00
Carsten "Tomcat" Book
fb3b76b37b merge b2g-inbound to mozilla-central a=merge
--HG--
extra : amend_source : 7fa8699b38befea0f21f1b84a1c998efb03f614e
2014-07-02 15:05:32 +02:00
Ben Tian
77541ae68e Bug 1006314 - Patch 1/3: Revise BluetoothAdapter2.webidl and add BluetoothDiscoveryHandle.webidl, r=bz 2014-07-02 11:16:26 +08:00
Boris Zbarsky
5118eea016 Bug 966471. Add some facilities for examining the state of a promise via a PromiseDebugging utility namespace. r=nsm,peterv 2014-07-02 00:19:48 -04:00
Steve Fink
331764b88b Bug 1022773 - Return value rooting for dom/, r=bz
--HG--
extra : rebase_source : 24732cd3aff732c5c3d3eb8e19ee8a95f588ebd7
2014-06-25 15:35:36 -07:00
Kyle Huey
a422390560 Bug 1031051: Part 13 - Support ToJSValue()ing CallbackObjects and nsTArrays of raw pointers. r=bz
Without special handling CallbackObject subclasses will fall into the "nsISupports but not nsWrapperCache" case which goes through an XPConnect wrapping path that has no idea how to cope with a CallbackObject.  We need both the CallbackObject overload and the EnableIf bit in the template because the template will bind to the subclass and thus be preferred to the CallbackObject overload which requires an implicit conversion to the base class.

Before this patch nsTArray<T*> will eventually try to ToJSValue a T* which will select the boolean overload.  Thanks C++!  The new template overload that takes a T and attempts to dereference it will be preferred because it can bind to the type directly and does not require the implicit (and terrible!) conversion to bool.  This template is written in terms of T and not T* so we can test to see if T is a pointer type (and not merely something that can be coerced to a T*, such as a T[N]).
2014-06-30 16:02:03 -07:00