Commit Graph

310867 Commits

Author SHA1 Message Date
Shawn Huang
e5335eeb68 Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou 2013-06-01 10:07:24 +08:00
Reuben Morais
e0755bb254 Backout f2d4762e07f9 for mochitest-other failures 2013-05-31 17:37:52 -07:00
Thomas Zimmermann
d50447986e Bug 830290: Don't block DBus while waiting for replies r=bent,qdot 2013-03-11 15:22:56 +01:00
Thomas Zimmermann
3fb8451dec Bug 830290: Replace calls to dbus_connection_send_with_reply_and_block r=bent,qdot
There is one call to dbus_connection_send_with_reply_and_block in
the Bluetooth code. This patch replaces the call by a call to the
helper function dbus_func_send_and_block, which executes the DBus
operation within the DBus thread.
2013-03-11 15:22:50 +01:00
Thomas Zimmermann
e747be0ff7 Bug 830290: Send blocking DBus messages from within DBus thread r=bent,qdot
The this commit moves the sending of blocking DBus messages to the
DBus thread. This allows us to avoid concurrency problems within the
DBus library, which is not explicitly thread-safe.

As a side note, I'd like to mention that blocking in distributed
systems simply doesn't work. The dbus library is especially broken
in this regard as it delays all unrelated messages until the reply
for the blocking request has been received. A future commit should
implement this functionality with an asyncronous call and make the
related thread wait for the reply.
2013-03-01 15:05:50 +01:00
Thomas Zimmermann
5bdf29ab6d Bug 830290: Replace dbus_connection_send by dbus_func_send r=bent,qdot
The Bluetooth system now uses dbus_func_send for sending DBus
messages where dbus_connection_send use used before. The former
function is similar to the latter one, but sends messages from
within the DBus thread; thus avoiding concurrency issues within
DBus.
2013-03-01 13:53:30 +01:00
Thomas Zimmermann
49b1e5406b Bug 830290: Execute DBus send operation in DBus thread r=bent,qdot
The DBus send operation simply sends a DBus message without further
processing of replies. If the sender is interested in a reply, the
respective serial number can be returned. In this case, the sending
operation (and only the sending) is serialized with the calling
thread.
2013-03-01 13:43:45 +01:00
Thomas Zimmermann
5c1a06a7d3 Bug 830290: Cleanup DBusConnectionSendWithReplyTask r=bent,qdot
The class DBusConnectionSendWithReplyTask has been renamed to
DBusConnectionSendWithReplyRunnable, which better fits its purpose. The
internal callback function and data has been move into the implementation
of DBusConnectionSendWithReplyRunnable. Additionally, there is now an
abstract base class for DBus send runnables. This class will become useful
for implementing send classes with different policies.
2013-03-01 12:49:57 +01:00
Thomas Zimmermann
04dc7482ea Bug 830290: Setup asyncronous DBus messages in DBus thread r=bent,qdot
This patch finally fixes bug 827888 were a message's reply was
received before the respective handler function could be installed.

The patch adds the class DBusConnectionSendWithReplyTask, which
asyncronously sends a DBus message and installs the reply's handler
function. The DBus utility functions for asyncronous messages create
an instance of this class and dispatch it to the DBus thread. This
intercepts the DBusPollTask, so no DBus replies can be received until
the dispatched DBusConnectionSendWithReplyTask has finished.
2013-01-28 10:15:31 +01:00
Thomas Zimmermann
09ba3f9b43 Bug 830290: Added dispatch function for DBus thread r=bent,qdot
The new function allows to schedule nsRunnables to an existing DBus
thread. This intercepts the running instance of DBusPollTask and
makes the DBus thread process the dispatched runnable. The intercepted
poll task automatically continues polling once all pending runnables
have been processed.
2013-01-14 11:50:27 +01:00
Thomas Zimmermann
6cb8692c1d Bug 830290: Use DBusPollTask r=bent,qdot
This patch replaces the DBus EventLoop function by an instance
of DBusPollTask. It also cleans up the initialization and shutdown
code of the DBusThread.
2013-01-14 11:50:25 +01:00
Thomas Zimmermann
da7a4cb48a Bug 830290: Added DBusPollTask r=bent,qdot
This patch adds class DBusPollTask. The DBusPollTask class is an
nsRunnable for receiving DBus messages. It is intended to run in
a separate thread that is dedicated to DBus only.

The Run function of the poll task resembles the DBus EventLoop
function, but allows to intercept execution in favor of other
nsRunnables. Afterwards the DBusPollTask continues.
2013-01-14 11:50:21 +01:00
Thomas Zimmermann
f3ddbbf1a5 Bug 830290: Cleanup DBus EventLoop function r=bent,qdot
We intent to run the DBus thread's EventLoop function as separate
nsRunnable, but the function also contains code for initializing
sockets that are used for internal communication.

With this patch the socket initialization has been moved to the
setup function. This reduces the EventLoop function to plain event
handling.
2013-01-14 11:50:18 +01:00
Reuben Morais
bfafcce223 Bug 877003 - Convert TestSettingsAPI.cpp to a mochitest-chrome. r=fabrice
--HG--
extra : rebase_source : c8807e7651ad1493008832345a74b82da4c6333c
2013-05-31 15:28:46 -07:00
Reuben Morais
f6d29f4c4c Bug 877777 - Take into consideration entire givenName/familyName array when sorting contacts. r=bent
--HG--
extra : rebase_source : b5752c08613314fd206caf73921538094d86e670
2013-05-31 15:28:00 -07:00
Reuben Morais
251b0bc864 Bug 874501 - Don't translate letters to numbers when finding contacts. r=bent
--HG--
extra : rebase_source : 5d5a6904aea2430c0521fa6ca3d898c5ce3ab6b2
2013-05-28 15:38:11 -07:00
Ryan VanderMeulen
9d7ad43da9 Merge m-c to birch. 2013-05-31 16:13:11 -04:00
Ehsan Akhgari
6ba7d30393 Backed out changeset cfca6afaaf9b (bug 865806) because it doesn't speak the secret phrase "nsIDocumentInlines.h" (on a CLOSED TREE, because that's how I roll) 2013-05-31 13:08:55 -04:00
Ryan VanderMeulen
0a561a4f36 Merge m-c to inbound. 2013-05-31 12:14:01 -04:00
Ryan VanderMeulen
32a90540f5 Backed out changeset 662f6427c909 (bug 872890) for debug bustage. 2013-05-31 12:12:41 -04:00
Ryan VanderMeulen
2251ba3bbf Merge birch to m-c. 2013-05-31 11:22:14 -04:00
Phil Ringnalda
4aec020413 Back out dc76402b8471 (bug 844288) on suspicion of breaking dep builds
CLOSED TREE
2013-05-31 07:39:56 -07:00
Justin Lebar
b6fbb8804e Bug 762329 - Add an extra check to browserElement_LoadEvents.js. r=vingtetun
A long time ago this check failed in-process, but it seems to work now.

--HG--
extra : rebase_source : 5eea1b1d16a616d32be6ad61a8e661645cdec959
2013-05-31 00:14:16 -04:00
Eric Chou
b61bb4e699 Bug 878005 - Send system message 'ATD>' to Gaia instead of sending 'BLDN' when receive 'ATD>' from headset, r=gyeh 2013-05-31 20:43:18 +08:00
Eric Chou
f458810e2e Bug 875677 - Modify the logic of sending 'callheld' indicator to fit HFP 1.6, r=gyeh
According to HFP spec 1.6, we should update callheld status very carefully when
the status of other calls are changed.
2013-05-31 21:49:42 +08:00
Ryan VanderMeulen
434bb7b8a2 Merge m-c to birch. 2013-05-31 12:14:41 -04:00
Alexandre Lissy
5975d90154 Bug 875390 - Add MMSC and/or MMS Proxy specific host routes via MMS APN. r=vyang
MMS sending has been failing because often the default network route was
not going through the MMS APN. This commit adds specific host route via
the correct network interface for either MMSC or MMS proxy depending on
the carrier information. We also perform DNS resolution to cope with
MMSC/proxy that are using FQDN.
2013-05-31 10:14:45 +02:00
Gregor Wagner
696c13ed02 Bug 872983 - event.settingValue in mozSettings.onsettingchange gives wrong value. r=fabrice 2013-05-31 11:42:10 -04:00
Shawn Huang
28747bf68d Bug 872890:Reset HFP call array when RIL reports NotifyError(), r=echou 2013-05-31 11:07:21 +08:00
Ehsan Akhgari
1809a9d7d2 Bug 865806 - Part 2: Prefer to look at <body> instead of <html> when determining whether the background color of a page is dark or not; r=roc
This seems to be a slightly better heuristic to follow the CSS Rendering code
in all cases, since the background color for the body element often overrides
that of the html element.

--HG--
extra : rebase_source : 6c0dba10c1ac4f08914632179e15c13c2ff271aa
2013-05-30 22:23:49 -04:00
Scott Johnson
72fa85e0c2 Bug 730559: Limit the number of columns during layout of column sets to prevent hang. [r=mats]
In nsRuleNode, when we parse a number of columns from a CSS style sheet, we enforce
a rule that the number of columns cannot exceed 1000. This patch simply enforces
the same rule when we decide that the column count will be generated based on
the available width (e.g. the column-count property has a value of 'auto').
2013-05-31 10:51:43 -05:00
Ryan VanderMeulen
be9264d563 Merge m-c to birch.
--HG--
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
2013-05-30 20:52:56 -04:00
Justin Lebar
3646531b35 Bug 874065 - On B2G, dmp memory reports to /data/local/tmp/memory-reports, and make that directory have 0777 permissions. r=dhylands 2013-05-30 20:50:36 -04:00
Ryan VanderMeulen
6cc0b1afaa Merge inbound to m-c.
--HG--
rename : gfx/layers/TestTiledLayerBuffer.cpp => gfx/tests/gtest/TestTiledLayerBuffer.cpp
2013-05-30 20:50:16 -04:00
Ryan VanderMeulen
cfc31e6187 Merge fx-team to m-c. 2013-05-30 20:49:40 -04:00
Fabrice Desré
84d37d2abb Bug 877869 - Fix typo in indexedbHelper.jsm r=bent 2013-05-30 16:19:22 -07:00
Alexandre Poirot
4389ebbade Bug 874459 - Set a valid window icon for desktop on Mac; r=myk
--HG--
extra : amend_source : 19a58dfe68f8ff349ebf8858dc8e0fb27ef51b02
2013-05-30 15:56:34 -07:00
Ehsan Akhgari
5aabd1ebc1 Bug 863754 - Make mach run and mach debug pass -foreground by default on Mac; r=ted
DONTBUILD since this is NPOTB.
2013-05-30 14:50:11 -04:00
Victor Porof
ab3fe89186 Bug 873225 - Totals for displayed file sizes, r=rcampbell 2013-05-30 21:46:36 +03:00
Andreas Gal
6d58341677 Bug 876099 - re-enable 3gp support in web content r=roc, a=gal 2013-05-30 10:52:58 -07:00
Fabrice Desré
1aef500b5f Bug 852720 - Allow packaged apps to have an origin r=ferjm 2013-05-30 10:34:27 -07:00
Justin Lebar
d4ddb9c7aa Bug 870675 - Add a test for bug 870480. r=vingtetun
We now run test_HighPriority while holding the CPU and high-priority wake locks.  This tests exactly the problem caused by bug 870480.
2013-05-30 12:59:24 -04:00
Alexandre Poirot
5a8eadd448 Bug 865207 - Move webapps actor from /b2g/chrome/content to /toolkit/devtools/apps/. r=fabrice, r=dcamp
--HG--
rename : dom/apps/tests/unit/data/app.zip => toolkit/devtools/apps/tests/unit/data/app.zip
rename : dom/apps/tests/unit/test_webappsActor.js => toolkit/devtools/apps/tests/unit/test_webappsActor.js
rename : b2g/chrome/content/dbg-webapps-actors.js => toolkit/devtools/server/actors/webapps.js
2013-05-30 12:08:15 -04:00
Ryan VanderMeulen
a7dc2abee0 Merge m-c to fx-team. 2013-05-30 11:47:17 -04:00
Ryan VanderMeulen
d6dbd572c6 Merge m-c to birch. 2013-05-30 11:44:00 -04:00
Mihai Sucan
37d0e77cbe Bug 877199 - Browser console's window title temporarily says 'Web Console' before changing to 'Browser console'; r=robcee 2013-05-30 18:08:14 +03:00
Nikhil Marathe
53bcdd2ae0 Bug 876935 - Millisecond calculation in AlarmService. r=gene 2013-05-30 08:08:07 -07:00
Eric Chou
fe8af01a74 Bug 877087 - Clear mDsFile after the OPP connection is dropped, r=gyeh 2013-05-30 15:00:06 +08:00
Gina Yeh
9fe0c5b821 Backed out changeset 8cdcc0221c0f for build bustage DONTBUILD 2013-05-30 10:50:19 +08:00
Ryan VanderMeulen
61505342f9 Merge m-c to fx-team. 2013-05-29 22:47:38 -04:00