Commit Graph

24840 Commits

Author SHA1 Message Date
Jim Blandy
d934112710 Bug 971673: Ensure mozilla::dom::ScriptSettingsStackEntry is only used as a base class: make its constructor protected. r=bholley 2014-08-14 16:23:15 -07:00
Ryan VanderMeulen
4892c12aa0 Merge inbound to m-c. a=merge 2014-08-14 16:21:22 -04:00
Ed Morley
8e433ac98d Backed out changeset 52fc270e59ad (bug 1051754) for intermittent test failures 2014-08-14 17:40:04 +01:00
David Keeler
843f8bbee8 bug 1030963 - remove non-standard window.crypto functions/properties r=jst r=briansmith r=glandium 2014-08-14 09:38:42 -07:00
Thomas Zimmermann
fae10bf968 Bug 1048915: Cleanup |BluetoothServiceBluedroid| and related functions, r=shuang
This patch removes unsued code from |BluetoothServiceBluedroid|, related
functions, and cleans up the file. It

 * removes callbacks,
 * removes callback helper tasks,
 * removes helper functions, and
 * cleans up global variables.
2014-08-14 18:12:52 +02:00
Thomas Zimmermann
8547aeba35 Bug 1048915: Integrate helper runnables into notification methods, r=shuang
Bluedroid callbacks were usually called on a separate thread that
was specific to this task. So Gecko's Bluetooth Core contained a
number of runnables for executing callback operations on the main
thread.

Since all notifications always run on the main thread, the extra
runnables are not required any longer. This patch integrates them
into the notification methods where possible.
2014-08-14 18:12:52 +02:00
Thomas Zimmermann
6131bf3961 Bug 1048915: Use Bluetooth Core notifications, r=shuang
This patch connects backend and Gecko side of the notification
code. Gecko will now receive notifications instead of Bluedroid
callbacks.
2014-08-14 18:12:52 +02:00
Thomas Zimmermann
4c463fc757 Bug 1048915: Implement Bluetooth Core notifications, r=shuang
This patch adds the Gecko-side of the Core notifications. The current
implementation of the notification methods has been copied from the
repsective Bluedroid callback methods, with only minor changes to adapt
them to Gecko data types.
2014-08-14 18:12:51 +02:00
Thomas Zimmermann
77156aef84 Bug 1048915: Add Bluetooth Core notifications, r=shuang
A notification is a callback from the Bluetooth backend to inform
Gecko about a event. Bluedroid uses function pointers for this, but
in Gecko we use method calls instead.

Gecko implements notification handlers for the Bluetooth backend. The
backend converts incomming events to Gecko types and forwards them to
the registered notification handler.
2014-08-14 18:12:51 +02:00
Thomas Zimmermann
3a1603152f Bug 1048915: Add infrastructure for Bluetooth notifications, r=shuang
This patch adds some runnable classes for running class methods on
the main thread. This is the base of the upcomming notification
mechanism for Bluetooth.
2014-08-14 18:12:51 +02:00
Tyler Smith
1733611a3b Bug 1048595 Provide valid default ServiceWorker.state value to avoid crashing. r=bkelly 2014-08-14 11:35:21 -04:00
Szu-Yu Chen [:aknow]
8552ad7429 Bug 1053094 - Part 2: Fix. r=hsinyi 2014-08-14 03:55:00 -04:00
Szu-Yu Chen [:aknow]
ac80a4bb97 Bug 1053094 - Part 1: Add test case. r=hsinyi 2014-08-14 03:55:00 -04:00
Morris Tseng
06f4fdde96 Bug 1052246 - Send correct rect information for selectionchange event. r=fabrice 2014-08-13 19:29:00 -04:00
Shawn Ku
bb0ede414b Bug 1046649 - Part 2: Test patch - B2G RIL: Need to handle wild char for EF_OPL. r=Edgar 2014-08-13 16:54:55 +08:00
Shawn Ku
db2cef7220 Bug 1046649 - Part 1: RIL patch - B2G RIL: Need to handle wild char for EF_OPL. v3. r=Edgar 2014-08-13 17:00:52 +08:00
Ed Morley
1135c32aec Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-14 08:42:29 +01:00
Jamin Liu
22c8f01856 Bug 1043180 - Write a marionette test for Bluetooth pairing based on Bluetooth API v2. r=btian 2014-08-14 11:34:22 +08:00
Jamin Liu
a722811aa2 Bug 1036234 - Fix the follow-up errors from implementation of pairing event handlers. r=btian 2014-08-14 11:34:10 +08:00
Ryan VanderMeulen
11585b0a0d Merge m-c to fx-team. a=merge 2014-08-13 15:32:14 -04:00
Ryan VanderMeulen
a746fa8cec Merge inbound to m-c. a=merge 2014-08-13 15:30:49 -04:00
Ed Morley
12beb129a1 Merge mozilla-central and b2g-inbound 2014-08-13 17:02:34 +01:00
Ed Morley
9992f03145 Merge latest green b2g-inbound changeset and mozilla-central; a=merge 2014-08-13 16:28:32 +01:00
Makoto Kato
92149f5d45 Backed out changeset 5b8f52a76065 (bug 1050660) due to mochitest-2 failure on Linux 2014-08-13 16:33:37 +09:00
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