Commit Graph

24949 Commits

Author SHA1 Message Date
Andrea Marchesini
98f8480b4f Bug 1046240 - Expose the principal for a blob URI for chrome-only js code. r=smaug 2014-08-13 08:29:00 -04:00
Brian Birtles
51fed648c3 Bug 1052147 - Initialize AnimationPlayer::mPlayState to running state; r=dbaron
The assertion in nsTimeStamp::operator >= occasionally fails due to a null RHS
timestamp when called from AnimationPlayer::GetCurrentTimeDuration, which, in
turn, is called from AnimationPlayer::SetSource.

The issue appears to be that we're not correctly initializing
AnimationPlayer.mPlayState. This value can be running (0) or paused (1) but we
only ever compare against the paused state (i.e. every other value is
effectively treated as running). If we don't initialize this we can end
up in the paused state but with mPauseStart not set to a valid (non-null)
TimeStamp. This creates an inconsistent state since we assume that when we're
paused mPauseStart is non-null, hence the assertion fails.

This gets tickled because, since bug 1040543, we call
AnimationPlayer::SetSource from nsAnimationManager::BuildAnimations *before* we
set mPlayState and mPauseStart.

This patch initializes mPlayState to the running state so we don't accidentally
end up in an inconsistent state.

It also removes some (now unnecessary) initialization of mPlayState and
mPauseStart from nsTransitionManager::ConsiderStartingTransition.

In future we could also consider reworking nsAnimationManager::BuildAnimations
so that we call SetSource on the new animation player *after* setting up its
play state. That may be more correct and would further avoid this problem but
may not be necessary since all that code is likely to change in the near future.
2014-08-13 18:21:45 +09:00
Jon Coppeard
a4a71fde44 Bug 1052388 - Rename JS_CallHeapFooTracer() functions to JS_CallFooTracer() r=terrence r=smaug 2014-08-13 10:05:22 +01:00
Alexandre Lissy
8fad0a23c3 Bug 1052435 - Fix handling of Notification with tag. r=mhenretty
This commit fixes two bugs. When sending two notifications with the same
tag, the NotificationDB this.byTag member was not properly updated. This
resulted in multiple notifications with the same tag being saved.
NotificationStorage's cache may hide this during the running session,
but on B2G the resend of notifications at reboot would expose the issue.
The second bug fixed is the test that makes sure we properly overwrite
notifications with the same tag in the database: the way we handled fake
notification object made them sharing the same ID. This, NotificationDB
would not even consider the tags and this lead to hiding the bug.
2014-08-12 10:15:00 -04:00
Szu-Yu Chen [:aknow]
aad3e91183 Bug 1051715 - Part 2: Also pass number in notifyDialSuccess. r=hsinyi 2014-08-12 23:51:00 -04:00
Szu-Yu Chen [:aknow]
478cb97c56 Bug 1051715 - Part 1: Add temporary clir test. r=hsinyi 2014-08-12 23:50:00 -04:00
Makoto Kato
05ecbcb18a Bug 1050660 - setInputMethodActive doesn't sometimes work when switching IME imminently after boot. r=fabrice 2014-08-12 11:50:30 +09:00
Garner Lee
f61c289d4c Bug 1050577: [NFC] Techlost not clearing peer appId correctly. r=allstars.chh 2014-08-11 16:03:35 -07:00
Ryan VanderMeulen
d7de573f64 Merge inbound to m-c. a=merge 2014-08-12 16:24:50 -04:00
Ed Morley
e067296409 Merge mozilla-central and b2g-inbound 2014-08-12 17:54:47 +01:00
Reuben Morais
aad1b5c650 Bug 1009645 - Follow up, disable mozTime test. 2014-08-12 13:50:12 -03:00
Ed Morley
bbebcef8bf Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-12 17:05:36 +01:00
Yoshi Huang
f28c154070 Bug 1052311 - B2G NFC: remove warnings from Nfc.js and NfcContentHelper.js. r=dimi 2014-08-12 17:04:51 +08:00
Jamin Liu
d3a304e7e3 Bug 1036234 - Implement pairing event handlers of BluetoothAdapter. r=btian, r=mrbkap
- EventHandler ondevicepaired;
- EventHandler ondeviceunpaired;
2014-08-12 16:30:42 +08:00
Jamin Liu
c92f96eaa6 Bug 1036233 - Implement pairing methods of Bluetooth API v2. r=btian, r=mrbkap
- Promise<void> pair(DOMString aAddress)
- Promise<void> unpair(DOMString aAddress)
- sequence<BluetoothDevice> getPairedDevices()
2014-08-12 16:30:36 +08:00
Jamin Liu
628526cbe7 Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian 2014-08-12 16:30:26 +08:00
Nigel Babu
654359f1ef Merge m-c to m-i 2014-08-12 12:20:36 +05:30
Alphan Chen
7348810bd4 Bug 1050720 - [DeviceStorage] Avoid to send the same status in two continuous storage-state-change event. r=dhylands 2014-08-11 23:31:00 -04:00
Nigel Babu
9858b7f9c4 Backed out changeset 2d0ebc1bc7d6 (bug 1036233) for build bustage ON A CLOSED TREE 2014-08-12 09:00:30 +05:30
Nigel Babu
c92019faa9 Backed out changeset c5d50f1bc995 (bug 1036233) for build bustage ON A CLOSED TREE 2014-08-12 09:00:20 +05:30
Nigel Babu
da90530683 Backed out changeset a471c7c73409 (bug 1036234) for build bustage on A CLOSED TREE 2014-08-12 09:00:08 +05:30
Jamin Liu
86709c14f4 Bug 1036234 - Implement pairing event handlers of BluetoothAdapter. r=btian, r=mrbkap
- EventHandler ondevicepaired;
- EventHandler ondeviceunpaired;
2014-08-12 10:49:59 +08:00
Jamin Liu
a33ca7691a Bug 1036233 - Implement pairing methods of Bluetooth API v2. r=btian, r=mrbkap
- Promise<void> pair(DOMString aAddress)
- Promise<void> unpair(DOMString aAddress)
- sequence<BluetoothDevice> getPairedDevices()
2014-08-12 10:49:53 +08:00
Jamin Liu
c6f4dbe265 Bug 1036233 - Initialize the data member of BluetoothDevice. r=btian 2014-08-12 10:49:43 +08:00
Bobby Holley
573baa0e7a Bug 1050049 - Implement bindToUntrustedContent attribute restriction. r=smaug 2014-08-11 20:06:55 -07:00
Bobby Holley
2157f88dfc Bug 1050049 - Whitelist bindings that we actually expect to use in content. r=smaug 2014-08-11 20:06:55 -07:00
Benoit Jacob
d4b463cdd8 Bug 777574 - Skip all quickCheckAPI tests on all linux/android/emulator slaves - r=kamidphish 2014-08-11 22:57:16 -04:00
Wes Kocher
b04134dbf2 Backed out changeset 49086e9caa4e (bug 1051114) for making Gaia-unit tests timeout on a CLOSED TREE 2014-08-11 15:27:58 -07:00
Yoshi Huang
1f36877080 Bug 1051754 - B2G NFC: Add marionette test for peer.sendFile. r=dimi
From 3cfb06874b6e838ad76e1817c7b69df81e0f802b Mon Sep 17 00:00:00 2001
---
 dom/nfc/tests/marionette/head.js                   | 20 +++++++--
 dom/nfc/tests/marionette/manifest.ini              |  1 +
 dom/nfc/tests/marionette/test_nfc_peer_sendFile.js | 49 ++++++++++++++++++++++
 3 files changed, 67 insertions(+), 3 deletions(-)
 create mode 100644 dom/nfc/tests/marionette/test_nfc_peer_sendFile.js
2014-08-11 18:26:52 +08:00
Fabrice Desré
1b2c3f60c8 Bug 1051114 - 400 MozInterAppMessagePort registered on frame message manager r=bent 2014-08-11 10:37:09 -07:00
Yoshi Huang
ae558038c0 Bug 1046554 - Part 2: update marionette tests. r=dimi
From d7dafea4dcff00edbe40ee0880ca71b804893622 Mon Sep 17 00:00:00 2001
---
 .../tests/marionette/test_nfc_error_messages.js    | 43 +---------------------
 dom/nfc/tests/marionette/test_nfc_peer.js          | 20 ++++++++--
 2 files changed, 17 insertions(+), 46 deletions(-)
2014-08-11 17:03:52 +08:00
Szu-Yu Chen [:aknow]
c0aa8ed457 Bug 1050696 - Refactor TelephonyService.dial. r=hsinyi 2014-08-11 02:48:00 -04:00
Martijn Wargers
174ea37131 Bug 1032878 - Fix for various failing mochitest-plain/-chrome tests. r=jmaher, r=akachkach, r=surkov, r=cpearce 2014-08-10 20:03:50 -07:00
Ed Morley
565f70db0c Merge mozilla-central and inbound 2014-08-12 17:56:08 +01:00
Ryan VanderMeulen
bbbbaa19d4 Backed out changeset 3200ed3305db (bug 1014023) for causing bug 1051164. 2014-08-12 12:44:09 -04:00
Morris Tseng
9dbdb73e4d Bug 1020802 - Pass collapsed and reason information to selectionchange event. r=ehsan, sr=smaug 2014-08-10 20:37:00 -04:00
Kershaw Chang
77d6dbec11 Bug 1020204 - Allow creating nested oop MozApp iframe. r=khuey, r=kanru 2014-08-13 02:18:00 -04:00
Robert O'Callahan
70c695fa57 Bug 1048752. Part 24: Rename and deCOM Set/GetCaretVisible. r=tn
--HG--
extra : rebase_source : 04249e9b22a62b8f2952515fa48f4ba3227e235e
2014-08-06 17:19:29 +12:00
Robert O'Callahan
9780343dd6 Bug 1048752. Part 17: Rename Get/SetCaretDOMSelection to Get/SetSelection. r=tn
The forward declaration of Selection in nsCaret.h will be used in later patches.

--HG--
extra : rebase_source : d1b749adac983c04d3365bb6bfb76a50101beeb5
2014-08-06 17:19:27 +12:00
Robert O'Callahan
ae6a16193a Bug 1048752. Part 16: Move nsFrameSelection::HINT to CaretAssociationHint.h. r=tn
This patch started an attempt to remove nsFrameSelection.h from nsCaret.h
and metastasized into a rather large refactoring patch that removed it
from some other header files as well, and changed nsFrameSelection::HINT
into a global-scope enum with better names. I also converted bools
into CaretAssociationHint in a few places where that was appropriate,
but there are still some more places (GetChildFrameContainingOffset)
where bools need to be converted. I figured this patch was big enough already.

--HG--
extra : rebase_source : cc618ef60e707e1360644340a2648de389383da0
2014-08-06 17:19:27 +12:00
Robert O'Callahan
922821fdc8 Bug 1048752. Part 14: Split GetGeometry into a static and a non-static version. r=tn
GetGeometry is used in two different ways. Sometimes it's used to get
information about a particular caret. Sometimes it's used to get
information about a particular selection that's not associated with
a caret. Splitting GetGeometry into a non-static version for the former
and a static version for the latter makes this more clear. Also it saves
code since for the latter version we don't have to get an nsCaret first.

--HG--
extra : rebase_source : b7730dac56b308a82b79b175749234c9a92b6f59
2014-08-06 17:19:26 +12:00
Robert O'Callahan
7ea822125b Bug 1048752. Part 9: Remove nsCaret.h from nsDisplayList.h. r=tn
I got tired of slow build turnarounds every time I modified nsCaret.h.

--HG--
extra : rebase_source : 0c4598c4881ab8de0a636b08c70fb801bb912247
2014-08-06 17:19:25 +12:00
Bill McCloskey
163cfc3cc8 Bug 950745 - Back out assertions that are triggering too often 2014-08-15 16:16:42 -07:00
Catalin Badea
e92b05a6af Bug 853995 - Move plugin parameters array from nsPluginInstanceOwner to content. r=johns,jst 2014-08-15 14:24:40 -07:00
Henry Chang
d0ab56a9e8 Bug 1037380 - Add system message broadcast filter. r=fabrice 2014-08-06 10:58:22 +08:00
Jan Jongboom
7819db9f82 Bug 1026997 - Use nsISelectionPrivate to track selection changes in forms.js. r=yxl 2014-08-13 02:12:00 -04:00
Chris Lord
bf797a46b8 Bug 1051513 - Fix update of webapp activity registration. r=fabrice
Remove all old activities for a given manifest before re-registering new ones.
2014-08-11 23:21:44 +01:00
Wes Kocher
63a5782589 Merge m-c to inbound 2014-08-11 16:19:27 -07:00
Wes Kocher
0e8de3ce49 Backed out 4 changesets (bug 1032878) for probably introducing a leak, creating a CLOSED TREE
Backed out changeset 780c948d79f3 (bug 1032878)
Backed out changeset 0cfcc44660a8 (bug 1032878)
Backed out changeset 991f8d5da382 (bug 1032878)
Backed out changeset f54984be223e (bug 1032878)
2014-08-11 14:27:57 -07:00
Ryan VanderMeulen
552da54d71 Merge inbound to m-c. a=merge 2014-08-11 16:10:07 -04:00
Szu-Yu Chen [:aknow]
4f0650cc40 Bug 1051663 - Correct |this| in REQUEST_DIAL_EMERGENCY_CALL. r=hsinyi 2014-08-11 02:37:00 -04:00
Evelyn Hung
2de8fdc9d0 Bug 1044960 - Remove unnecessary lines from TabChild.cpp. r=kats 2014-08-07 22:10:00 -04:00
Dimi Lee
80c690d47a Bug 936367 - Support wifi hotspot enable API. r=vchang, r=ptheriault, sr=mrbkap 2014-08-11 17:13:25 +08:00
Yoshi Huang
6e2d19f6db Bug 1051738 - B2G NFC: typo in getNFCPeer. r=dimi
From bea6af520beedcc4547ce5c45c4d78faa63d5812 Mon Sep 17 00:00:00 2001
---
 dom/nfc/nsNfc.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
2014-08-11 17:19:11 +08:00
Yoshi Huang
0f1e3b3420 Bug 1049351 - [NFC] fix testPeerShouldThrow. r=dimi 2014-08-11 15:45:35 +08:00
Valentin Gosu
0bb663ecce Bug 1051109 - Define non-static method to jsonify interface attributes r=smaug 2014-08-11 01:17:50 +03:00
Jed Davis
66d1734f54 Bug 1043733 - Require sandboxing to load Gecko Media Plugins on Linux. r=jesup r=kang
Also refactors how sandbox support and disabling are handled, and allows
simulating a lack of sandbox support with an env var (for testing
without rebuilding a kernel).
2014-08-12 21:28:27 -07:00
Ryan VanderMeulen
b0e8e0344f Merge m-c to b2g-inbound. a=merge 2014-08-11 17:18:31 -04:00
Olli Pettay
f9c9c2b2db Bug 1050665 - Make returnMessage and returnNumber nullable. r=ehsan, r=smaug to make the commit hook happy
--HG--
extra : amend_source : 089934856605faebd8406c58d3fac94ced73fe46
2014-08-11 07:52:00 -04:00
Fabrice Desré
5d2c441691 Bug 1051114 - 400 MozInterAppMessagePort registered on frame message manager r=bent 2014-08-11 10:37:09 -07:00
Gijs Kruitbosch
c70585374d Bug 1053398 - save xbl bindtountrustedcontent to xul cache as a flag, r=bholley,smaug
--HG--
extra : rebase_source : d0d5d8e12ef36398c9c065f9e4efcac306844916
2014-08-13 23:45:36 +01:00
Seth Fowler
d9a982d9dc Bug 913586 (Part 4) - Update Maybe users in dom. r=bz
--HG--
extra : rebase_source : 7b6159b00b3bf4f919b30f1bccc8939cc04fe526
2014-08-13 15:39:41 -07:00
David Major
e1781611b1 Bug 1051858: Update UUIDs that should have been revved in bug 741295. r=smaug
--HG--
extra : rebase_source : ec9740e1a9794ae8d974f36a503e97fb2e4fc95e
2014-08-14 10:38:29 +12:00
Bobby Holley
8980f912bc Bug 1052042 - Move the pre-pop GC to AutoEntryScript. r=billm 2014-08-13 15:36:44 -07:00
Bobby Holley
66cb62b573 Bug 1052042 - Make AutoJSAPI MOZ_STACK_CLASS. r=billm
We're about to give AutoEntryScript (a subclass) a non-virtual destructor, which
is safe so long as these things are only stack-allocated.
2014-08-13 15:36:43 -07:00
Ed Morley
fe15d8f328 Merge mozilla-central and inbound 2014-08-13 17:03:24 +01:00
Ed Morley
f8cfdd662d Backed out changeset 1a2dcc132344 (bug 1022818) for B2G failures in test_scroll_behavior.html; CLOSED TREE 2014-08-13 16:31:11 +01:00
Ed Morley
f69a81b897 Backed out changeset d24b367f3ac4 (bug 1022818) 2014-08-13 16:30:50 +01:00
Andrea Marchesini
73a742002b Bug 1043106 - part 2 - StorageEvent should have the storageArea of the correct window, r=smaug 2014-08-13 15:55:44 +02:00
Bob Owen
30b9998991 Bug 1050795 Part 1: Replace nsCxPusher in WorkerRunnable::Run. r=bholley 2014-08-08 16:06:33 +01:00
Yoshi Huang
7694e3e977 Bug 1046554 - Part 1: B2G NFC: pass NFCPeerEvent in onpeerready. r=smaug, dimi 2014-07-31 17:11:04 +08:00
Ryan VanderMeulen
2dc6881d41 Bug 1047842 - Remove assertion annotations that are no longer needed. 2014-08-14 10:29:29 -04:00
Ed Morley
a112ccdf29 Backed out changeset e349895861e2 (bug 1036186) for xpcshell failures 2014-08-14 14:21:46 +01:00
Peter Van der Beken
61527bd1e0 Bug 1036186 - Reset Migration wizard no longer skips the first step to choose a browser. r=smaug.
--HG--
extra : rebase_source : 599d78a04a085304154e8231d5bd2239d025ab22
2014-08-08 15:03:29 +02:00
Aryeh Gregor
15ec3ba67b Bug 1053190 - Reduce unnecessary inclusion of nsINode.h in headers; r=ehsan 2014-08-18 17:44:50 +03:00
Aryeh Gregor
0b4a8e008c Bug 1052427 - Make nsContentUtils::ASCIIToLower/ASCIIToUpper infallible; r=smaug 2014-08-13 14:53:32 +03:00
Ed Morley
c17dda821c Merge mozilla-central and inbound 2014-08-18 15:32:03 +01:00
Yuan Xulei
ac55ed15d0 Bug 1043843 - Avoid accessing nsIDOMBlob from worker thread. r=dhylands
--HG--
extra : rebase_source : e5199d8023a59d19546c5d1739ac59cb78caf322
2014-08-18 12:00:06 +08:00
Martijn Wargers
b102096d4b Bug 1032878 - Fix for various failing mochitest-plain/-chrome tests. r=jmaher, r=akachkach, r=surkov, r=cpearce 2014-08-10 20:03:50 -07:00
William Chen
26ab77ee37 Bug 1029710 - Add null check for container in ShadowRoot::IsPooledNode. r=smaug 2014-08-11 11:26:52 -07:00
Ted Mielczarek
2382567568 bug 1049106 - always build gmp-fake. r=gps 2014-08-11 07:46:46 -04:00
Reuben Morais
9ef413e461 Bug 1009645 - Remove FeatureDetectible, add things with CheckPermissions or AvailableIn to the feature list instead. r=smaug 2014-07-24 16:57:02 -03:00
Kearwood (Kip) Gilbert
a646bb430e Bug 1022818 - Part 2: Implement Smooth Scrolling. r=bz
- Updated ScrollTo method in nsGlobalWindow to accept a
  mozilla::dom::ScrollOptions parameter to select between the instant
  and smooth MSD motion.
- Updated WebIDL binding boilerplate scrolling functions in nsGlobalWindow
  to pass the correct value of mozilla::dom::ScrollBehavior to the
  implementation and functions, activating smooth scrolling.
- These functions will need to be updated again to support the scroll-behavior
  CSS property in Bug 1010538.
2014-07-21 11:19:00 -04:00
Kearwood (Kip) Gilbert
8965e69815 Bug 1022818 - Part 1: Update webidl interfaces. r=bz
- Extended the Element and Window webidl interfaces as described in the
  CSSOM-View smooth-scrolling specification.
- The Element.scrollTop and Element.scrollLeft changes have been omitted
  until either WebIDL is extended to allow properties to have union datatypes
  that contain dictionaries or the CSSOM-View smooth-scroll specification
  is upddated.  This will not prevent the other interface changes from being
  useful.
- Implemented wrapper functions for the nsGlobalWindow to connect to the new
  WebIDL bindings.  The ScrollOptions parameters are ignored in this patch,
  and used in Part 3 of this patch series.
2014-07-21 11:04:00 -04:00
Andrea Marchesini
357e6de9ca Bug 1043106 - StorageEvent should have the storageArea of the correct window, r=smaug 2014-08-13 14:56:25 +02:00
Masayuki Nakano
3605e4b124 Bug 1052230 IMEContentObserver shouldn't flush pending notifications again during flushing notifications r=smaug 2014-08-13 20:25:14 +09:00
Ryan VanderMeulen
52228c61ed Merge m-c to inbound. a=merge 2014-08-12 16:30:38 -04:00
Bobby Holley
71e6510763 Bug 1052090 - Don't try to compute main-thread-ness until after we're done with cancel shenanigans. r=bkelly 2014-08-12 12:29:50 -07:00
Ed Morley
2d07117081 Merge mozilla-central and inbound 2014-08-15 17:35:20 +01:00
Sotaro Ikeda
0e78807c21 Bug 1036539 - Add async mode support to GonkNativeWindow r=mikeh,pchang 2014-08-15 07:41:33 -07:00
Tim Taubert
66e3ad7f14 Bug 1048133 - Check key algorithms before using them for encryption/signatures r=rbarnes a=abillings 2014-08-04 14:31:17 +02:00
Andrea Marchesini
fb92456e66 Bug 1036484 - empty 404 worker script should emit a 'error' event, r=khuey
--HG--
rename : dom/workers/test/test_404.html => dom/workers/test/test_bug1036484.html
2014-08-10 15:33:06 +02:00
Brian Birtles
813855dd9b Bug 1040543 part 11 - Make ElementPropertyTransition inherit from Animation instead of AnimationPlayer; r=bz
This patch changes the inheritance of ElementPropertyTransition so that it is
a subclass of Animation not AnimationPlayer.

The only thing special about ElementPropertyTransition is it stores some extra
state for reversing transitions and an extra ValuePortionFor convenience method.
This reversing behavior is implemented by the transition manager by creating
a new AnimationPlayer (i.e. it is *not* a property of the AnimationPlayer). As
a result this extra state can be pushed down to Animation which simplifies the
code significantly.

In future if we implement KeyframeEffect as a separate object we may be able to
push transition-specific state down to KeyframeEffect instead.
2014-08-10 17:06:52 +10:00
Brian Birtles
435e24f424 Bug 1040543 part 10 - Move mIsLastNotification from AnimationPlayer to Animation; r=bz
In this fourth step of dividing functionality between AnimationPlayer and
Animation, we move the mIsLastNotification and related methods/enums from
AnimationPlayer to Animation.

It is somewhat unclear where this belongs. This member is used to determine
which event to send for CSS Animations. The thinking behind moving this to
Animation is that if an animation that has already dispatched its animationstart
event was transferred to a new animation player with a similar current time then
I think it is expected that such an animation would *not* dispatch another
animationstart event. That suggests that event-state is a property of the
Animation not the AnimationPlayer.

Obviously, this needs to be defined somewhere (namely, the CSS Animations <->
Web Animations integration spec likely to become "CSS Animations Level 4"). Once
that behavior is agreed upon, if AnimationPlayer proves to be the more suitable
home for this member then it should be relatively straightforward to move the
member back at that time.
2014-08-10 17:06:51 +10:00
Brian Birtles
7cc2fe6201 Bug 1040543 part 9 - Move IsFinishedTransition from AnimationPlayer to Animation; r=bz
As the third step in dividing functionality between AnimationPlayer and
Animation this patch moves the mIsFinishedTransition member and related methods
from AnimationPlayer to Animation.

At the same time we rename SetFinishedTransition to SetIsFinishedTransition.
2014-08-10 17:06:51 +10:00
Brian Birtles
eee37dc2bd Bug 1040543 part 8 - Move timing parameters from AnimationPlayer to Animation; r=bz
As the second step in dividing functionality between AnimationPlayer and
Animation, this patch moves the AnimationTiming member from AnimationPlayer to
Animation.

Most of this patch is simply moving code around. However, one significant
functional difference is that Animation::GetLocalTime() uses the mParentTime
member which is set when the Animation is updated by the player it is attached
to.

Other less significant differences are:

* AnimationPlayer::GetLocalTime is renamed to GetCurrentTimeDuration
  In Web Animations, animation players have a (writeable) "current time" and
  animations have a (read-only) "local time".
  We would call the method simply "GetCurrentTime" (instead of
  "GetCurrentTimeDuration") but GetCurrentTime is the name of the method used in
  the content-facing API where it returns a double.

* "IsCurrent" is defined on both AnimationPlayer and Animation with the version
  in AnimationPlayer serving mostly as a convenience shortcut to the version on
  Animation.

* Animation::GetComputedTiming (previously on AnimationPlayer) now makes the
  timing parameter optional since most of the time it is not needed.
2014-08-10 17:06:50 +10:00
Brian Birtles
a66a1ea7b5 Bug 1040543 part 7 - Move keyframe properties from AnimationPlayer to Animation; r=bz
As the first step in dividing the functionality currently contained in
AnimationPlayer between AnimationPlayer and Animation this patch moves the set
of keyframe properties to the Animation.

These properties are returned from the Animation by a couple of Properties()
methods that provide direct access to the member variable. In future it is
anticipated that the non-const version will be replaced with an appropriate
setter function. This will likely happen when we implement a separate
KeyframeEffect object as defined by the Web Animations API.

With regards to error checking, nsAnimationManager checks the result of
AnimationPlayer::GetSource() and handles the case where it is nullptr.
nsTransitionManager, however, simply asserts that GetSource() is never null much
like it also asserts that there is only one property with one segment in the
animation. Eventually this code should be made more generic which will probably
happen in bug 999927.
2014-08-10 17:06:49 +10:00
Brian Birtles
9403f55c91 Bug 1040543 part 5 - Pass down time from AnimationPlayer to Animation; r=bz
This patch makes AnimationPlayers pass their current time down to the Animation
they are playing.

Since all Animations need from their players is their time, this avoids adding
a pointer back to their AnimationPlayer.
2014-08-10 17:06:48 +10:00
Brian Birtles
fd89e49012 Bug 1040543 part 4 - Create Animation objects and set on AnimationPlayer; r=bz 2014-08-10 17:06:47 +10:00
Brian Birtles
ff9dbee0c4 Bug 1040543 part 3 - Add Animation interface; r=bz
This patch adds the Animation interface and adds a 'source' attribute to
AnimationPlayer that refers to this class.
2014-08-10 17:06:46 +10:00
Brian Birtles
b1759d304e Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Tim Taubert
5da25e9f64 Bug 1050318 - Split WebCrypto tests into multiple files to prevent timeouts r=rbarnes 2014-08-07 22:24:52 +02:00
Tim Taubert
e7329e4114 Bug 1050785 - RSA-OAEP encrypt/decrypt should accept strings as AlgorithmIdentifiers r=rbarnes 2014-08-08 16:45:08 +02:00
Ryan VanderMeulen
db9cc2a062 Merge inbound to m-c. a=merge 2014-08-09 11:19:46 -04:00
Sylvestre Ledru
ac9d156829 Bug 1050715 - Update the description of the various tests targed proposed by './mach help' r=jmaher
--HG--
extra : rebase_source : 29019a02711ffce5c148787517051855259b6446
2014-08-09 15:37:29 +02:00
Jessica Jong
6558f5c791 Bug 1043114 - Part 4: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkUtils). r=edgar 2014-08-08 02:32:00 -04:00
Jessica Jong
7ebf40f279 Bug 1043114 - Part 3.2: Remove unused NetworkParams and refine comments. r=edgar, r=smaug 2014-08-08 02:30:00 -04:00
Ryan VanderMeulen
5602683c06 Backed out changeset db69c702369d (bug 1035454) for suspicion of causing e10s leaks.
CLOSED TREE
2014-08-08 23:27:28 -04:00
Nils Ohlmeier [:drno]
79969fc125 Bug 1050851 - Add long running steeplechase tests from the sunny day QA lab environment. r=gmealer 2014-08-08 10:57:00 -04:00
Bob Owen
957fbf204c Bug 1047509 - Part 3: Replace nsCxPusher in nsJSNPRuntime.cpp nsJSObjWrapper::NP_SetProperty. r=bholley 2014-08-08 13:22:53 +01:00
Bob Owen
4a75912507 Bug 1047509 - Part 2: Replace nsCxPusher in nsJSNPRuntime.cpp nsJSObjWrapper::NP_GetProperty. r=bholley 2014-08-08 13:21:07 +01:00
Bob Owen
528ff6e9ce Bug 1047509 - Part 1: Replace nsCxPusher in nsJSNPRuntime.cpp doInvoke. r=bholley 2014-08-08 09:01:45 +01:00
Nils Ohlmeier [:drno]
17c2154380 Bug 1049684 - Fix SDP verification to be able to run on steeplechase environment. r=bwc 2014-08-06 14:53:00 -04:00
Jessica Jong
2bf95b6e3d Bug 1043114 - Part 3.1: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkService). r=edgar 2014-08-06 01:51:00 -04:00
Jessica Jong
92c60f8f82 Bug 1043114 - Part 2: Unify add/removeHostRoute and add/removeHostRouteWithResolve (NetworkManager). r=edgar 2014-08-06 01:46:00 -04:00
Jessica Jong
1b4bb1dd95 Bug 1043114 - Part 1: Unify add/removeHostRoute and add/removeHostRouteWithResolve (idl). f=vchang, r=edgar 2014-08-06 01:45:00 -04:00
Wes Kocher
ea2ca055ae Merge m-c to inbound on a CLOSED TREE 2014-08-08 14:15:34 -07:00
Kyle Huey
78c0ad791e Bug 1050509: Shut down the KeyStore socket during system shutdown to avoid leaks. r=tdz 2014-08-08 11:11:36 -07:00
Ryan VanderMeulen
9380b64ae7 Backed out changeset 05e4c47f1e98 (bug 1036186) for Mulet mochitest bustage.
CLOSED TREE
2014-08-08 13:29:28 -04:00
Kartikaya Gupta
a349c28e19 Bug 1045824 - Use nsIntRect for passing around a value that is not in app units. r=smaug 2014-08-08 13:23:50 -04:00
Ryan VanderMeulen
9e2f44994c Merge b2g-inbound to m-c. a=merge 2014-08-08 11:29:48 -04:00
Gabriele Svelto
6e564c383b Bug 1050067 - Correctly provide the service code when requesting an IMEI number. r=hsinyi 2014-08-07 23:01:42 +02:00
Chuck Lee
8855b9da2d Bug 1047294 - Fix potential Javascript Error. r=vchang 2014-08-07 18:00:23 +08:00
John Lu [:mnjul]
b8e95616ff Bug 1043828 - Switching IMEs doesn't always work after switching to 3rd-party keyboard and back. r=yxl 2014-08-07 14:44:46 +08:00
Chuck Lee
88877c4e89 Bug 930355 - 0002. Implement wifi enable API. r=vchang 2014-08-07 17:19:31 +08:00
Chuck Lee
c2b49d7c52 Bug 930355 - 0001. WebIDL Change - Add API to set wifi enable. r=mrbkap 2014-08-07 17:19:28 +08:00
Vicamo Yang
d154baf8a2 Bug 1048098: remove redundant flushPermissions, flushPrefEnv from tearing down procedure. r=btian, r=echen 2014-08-08 18:28:58 +08:00
Yoshi Huang
f8b65ea9b6 Bug 1050692 - [NFC] B2G NFC: peer.sendNDEF always return Bad Session ID. r=dimi 2014-08-08 17:22:28 +08:00
Jocelyn Liu
c8da47a765 Bug 1050494: Clear sBluetoothThread in BluetoothDBusService on shutdown to fix memory leak. r=shuang 2014-08-08 16:22:32 +08:00
Thomas Zimmermann
ca0a369d25 Bug 1048770: Rename |ConnectResultHandler| to |ConnectSocketResultHandler| (under bluetooth2/), r=btian
The linker mixes up |ConnectResultHandler| from BluetoothSocket.cpp
and BluetoothHfpManager.cpp. Consequently one of them gets removed
when linking libxul.so.

This patch works around the problem by renaming |ConnectResultHandler|
in BluetoothSocket.cpp to |ConnectSocketResultHandler|.
2014-08-08 09:58:18 +02:00
Thomas Zimmermann
280f80389e Bug 1048770: Fix member types of |BluetoothInterfaceRunnable{1,3}<>| (under bluetooth2/), r=btian
When sending a |BluetoothInterfaceRunnable3<>| to the main thread,
in the case of BluetoothSocketResultHandler, the connect and accept
operations transfer string objects by reference from the I/O thread.
When the reference is accessed, the actual string might be removed
already.

The patch fixes the problem by storing the strings as value in the
runnable object.
2014-08-08 09:58:17 +02:00
Thomas Zimmermann
7a7fa414f1 Bug 1050299: Wrap BlutoothInterface array initializaton in preprocessor macro, r=shuang
This patch fixes array initialization in the |Convert| functions of
|BluetoothInterface|. Designated initializers are not supported by
all compilers, so we wrap them into a macro and only used them when
possible.
2014-08-07 16:51:14 +02:00
Edgar Chen
3ef9dde1e1 Bug 1048581 - Part 2: MobileConnection shouldn't be shutdown if JS still keeps a ref to it. r=smaug 2014-08-07 12:21:29 +08:00
Paul Kerr [:pkerr]
cbeab37526 Bug 1049583 - Allow sub-domain wildcard on ScreenSharing domain whitelist patterns. r=ethanhugg, r=mt 2014-08-07 15:12:26 -07:00
Kershaw Chang
d36554005c Bug 1041425 - Enable fast-path dispatch when sending touch event to nested oop iframe. r=smaug 2014-08-08 00:34:00 -04:00
Nicholas Nethercote
8c60d14a1a Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Edgar Chen
d61aa45d56 Bug 1048581 - Part 1: Voice() and Data() won't need to check mProvider is valid or not. r=smaug 2014-08-06 15:35:34 +08:00
Ryan VanderMeulen
7aaaba8729 Merge m-c to b2g-inbound. a=merge
CLOSED TREE
2014-08-07 17:49:02 -04:00
Ryan VanderMeulen
abeb9e4b41 Backed out changeset 8b44017765ac (bug 1045975) for Windows non-unified bustage.
CLOSED TREE
2014-08-07 15:13:54 -04:00
Ryan VanderMeulen
21df928d61 Bug 1041369 - Bump expected assertions up to 3 max. 2014-08-07 13:13:01 -04:00
Ed Morley
19d99e1f85 Merge mozilla-central and b2g-inbound 2014-08-07 14:40:54 +01:00
Ed Morley
3d69769157 Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-07 14:12:54 +01:00
Thomas Zimmermann
5af38c1d79 Bug 992206: Cleanup interface of |BluetoothSocket|, r=shuang
This patch cleans up the interface of Bluedroid's |BluetoothScoket|
to look more similar the interface of |UnixSocketConsumer|, from
which it descends.
2014-08-07 11:37:50 +02:00
Thomas Zimmermann
c61a5628ae Bug 992206: Use |SocketIOShutdownTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:50 +02:00
Thomas Zimmermann
d4ab8f302f Bug 992206: Use |SocketIOSendTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
2a84992441 Bug 992206: Use |SocketIOTask| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
731665fb89 Bug 992206: Use |SocketIOBase| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
83d04e76a6 Bug 992206: Use |SocketIODeleteInstanceRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:49 +02:00
Thomas Zimmermann
9388876f6f Bug 992206: Use |SocketIORequestClosingRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:48 +02:00
Thomas Zimmermann
16d792817c Bug 992206: Use |SocketIOReceiveRunnable| for Bluetooth sockets, r=shuang 2014-08-07 11:37:48 +02:00