Commit Graph

1919 Commits

Author SHA1 Message Date
Siddartha Pothapragada
5c7ab7028c Bug 993896 - Fire success / error to dom requests based on status received from gonk. r=allstars.chh 2014-04-08 23:17:53 -07:00
Vicamo Yang
9d7ac97787 Bug 994601: fix undefined 'RequestSettingValue' and 'nsIRILNetworkInterface' in Flatfish build. r=kanru 2014-04-11 22:28:01 +08:00
Vicamo Yang
7c817ef026 Bug 977995 - remove mNetdWorker from SystemWorkerManager. r=khuey, f=vchang
There are multiple defects in NetworkWorker and the related parts
since the C++ rewrite.  1) NetworkService holds a reference to
NetworkWorker and never releases it.  It has to wait until the cycle
collector comes up to resolve their ownership loop and free
NetworkWorker manually.  However 2) nsINetworkWorker::shutdown is
never called, and that leaves everything living till the end,
inclusive of that gNetdConsumer in Netd.cpp.  3) when GC comes to free
NetworkWorker, it calls its parent destructor ~NetConsumer(), which
in turn calls ~RefCounted<NetdConsumer>().  Having a valid
gNetdConsumer in Netd.cpp follows its refCnt is not zero and this
triggers an assertion in ~RefCounted<NetdConsumer>().

So, some obvious treatments here.  A) NetworkService should call
nsINetworkWorker::shutdown upon receiving a shutdown observer event
and release the reference to NetworkWorker.  B) NetworkWorker should
never be double ref-counted.  Move NetdConsumer implementation into a
separated class.
2014-04-11 22:27:55 +08:00
Andrea Marchesini
eaa3ff4eed Bug 987064 - Remove AudioChannelType. r=roc, r=mchen, r=bent 2014-04-10 18:39:20 +01:00
Ed Morley
310c9d9a41 Merge latest green b2g-inbound changeset and mozilla-central 2014-04-10 17:45:11 +01:00
Jessica Jong
9ce98e6211 Bug 961921 - Part 1: separate roaming preference for each client. r=hsinyi 2014-04-08 20:55:00 +02:00
Szu-Yu Chen [:aknow]
56ab53a7ec Bug 993255 - Part 3: Fix related test case. r=hsinyi 2014-04-10 02:06:00 +02:00
Szu-Yu Chen [:aknow]
28141d73a9 Bug 993255 - Part 2: Hangup pending outgoing call. r=hsinyi 2014-04-10 02:06:00 +02:00
Szu-Yu Chen [:aknow]
a3e0395827 Bug 993255 - Part 1: Refactor: extract removeVoiceCall. r=hsinyi 2014-04-10 02:05:00 +02:00
Yoshi Huang
7fb797dee0 Bug 993893 - B2G NFC: NfcManager APIs will also check nfc-write permission. r=dimi 2014-04-09 17:58:28 +08:00
Carsten "Tomcat" Book
7cd09aa69d merge b2g-inbound to mozilla-central 2014-04-09 14:27:34 +02:00
Edgar Chen
627ebb29a3 Bug 978027 - Part 3: Get icc app index only when the _isCdma flag is ready to use. r=allstars.chh 2014-04-07 16:57:45 +08:00
Edgar Chen
3567f2c50f Bug 978027 - Part 2: RIL implementation for prl version. r=allstars.chh 2014-04-07 15:29:04 +08:00
Boris Zbarsky
35fca5eeeb 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
56f44fdf10 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
Bevis Tseng
37c6e279dc Bug 990918 - Part 2: Add Xpcshell Test Case for setCellBroadcastSearchList(). r=htsai 2014-04-03 16:46:51 +08:00
Bevis Tseng
5e679ebe22 Bug 990918 - Part 1: Make RIL compatible for both new/old formats of ril.cellbroadcast.searchlist. r=htsai 2014-04-03 16:33:56 +08:00
Ryan VanderMeulen
55244323f3 Merge b2g-inbound to m-c. 2014-04-07 22:29:35 -04:00
Dimi Lee
c9fbadf21a Bug 989135 - [B2G][Component][Location] Having a quotation mark in the Wi-Fi hotspot password or SSID is not handled gracefully. r=vchang 2014-04-07 14:26:53 +08:00
Ryan VanderMeulen
620c42bcde Merge inbound to m-c. 2014-04-04 14:51:38 -04:00
Szu-Yu Chen [:aknow]
9557433410 Bug 990467 - Part 2: Add pending outgoing call. r=hsinyi 2014-04-04 08:18:17 -04:00
Szu-Yu Chen [:aknow]
59e0ad2af1 Bug 990467 - Part 1: Refactor: Extract function of adding new voice call. r=hsinyi 2014-04-04 08:17:59 -04:00
Masayuki Nakano
ff8b968574 Bug 990855 part.2 Remove dom/events from local includes of moz.build files r=smaug 2014-04-03 13:18:38 +09:00
Edgar Chen
bdd40d3fae Bug 990383 - Set default value of 'supportedNetworkTypes' as 'wcdma/gsm'. r=hsinyi 2014-04-01 15:11:36 +08:00
Nils Maier
a706ff0749 Bug 952997 - Fix OS.File large file support. r=yoric 2014-04-08 03:40:00 +02:00
snigdha
90f0f64d5b Bug 798033 - Headers should generally not do "using namespace" at file scope. r=jib, r=jmathies, r=rjesup, r=ekr, r=ncameron, r=blassey 2014-04-01 08:29:25 -04:00
Masayuki Nakano
54d409dfca 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
Phil Ringnalda
8b68d74cfd Merge b-i to m-c 2014-03-29 09:18:08 -07:00
Vicamo Yang
cdf964dedb Bug 978709 - 5/6: really add an IPV4V6 option. r=hsinyi 2014-03-29 15:18:26 +08:00
Edgar Chen
2fc8f9200b Bug 978709 - 4.h/6: NetworkInterfaceListService changes. r=vicamo 2014-03-29 15:18:25 +08:00
Jessica Jong
0cb92ca61e Bug 978709 - 4.e/6: nsIRILNetworkInterface changes. r=vicamo 2014-03-29 15:18:22 +08:00
Jessica Jong
723face563 Bug 978709 - 4.d/6: secondary routes changes to support IPv4v6. f=echen, r=vicamo 2014-03-29 15:18:20 +08:00
Jessica Jong
c8544cb2c2 Bug 978709 - 4.c/6: NetworkUtils changes to support IPv4v6. f=echen, r=vicamo 2014-03-29 15:18:19 +08:00
Jessica Jong
899fec8702 Bug 978709 - 4.b/6: NetworkService changes to support IPv4v6. f=echen r=vicamo 2014-03-29 15:18:18 +08:00
Jessica Jong
e7b797a003 Bug 978709 - 4.a/6: idl changes to support IPv4v6. f=echen r=vicamo 2014-03-29 15:18:17 +08:00
Vicamo Yang
42e98bca9c Bug 978709 - 3.b/6: support multiple addresses in ril_worker. r=hsinyi 2014-03-29 15:18:16 +08:00
Vicamo Yang
2651a589d5 Bug 978709 - 3.a/6: RIL_Data_Call_Response_v5 has also DNS server list. r=hsinyi 2014-03-29 15:18:15 +08:00
Vicamo Yang
e08eee5c24 Bug 978709 - 2.e/6: remove unused data call enumeration stuff. r=hsinyi 2014-03-29 15:18:14 +08:00
Vicamo Yang
c763a82d83 Bug 978709 - 2.d/6: don't throw in _deliverDataCallCallback loop. r=hsinyi 2014-03-29 15:18:13 +08:00
Vicamo Yang
3284f1c5d5 Bug 978709 - 2.c/6: completely remove nsIRILDataCallback. r=hsinyi 2014-03-29 15:18:12 +08:00
Vicamo Yang
ef958c57b3 Bug 978709 - 2.b/6: don't use nsIRILDataCallback in GonkGPSGeolocationProvider. r=kanru
nsIRILDataCallback has been abused in RadioInterfaceLayer.js and is
becoming an RIL internal utility.  Besides, nsIRILDataCallback has
also racing problem as described in bug 976897.  We should really use
NetworkManager observer events to replace the notification mechanism
here.
2014-03-29 15:18:11 +08:00
Vicamo Yang
8dd297dbbc Bug 978709 - 2.a/6: remove nsIRILDataCallback::receiveDataCallList. r=hsinyi
nsIRILDataCallback::receiveDataCallList has been obsoleted for a long
long time and all the existing classes that implement
nsIRILDataCallback leave the function body empty.  Since we're going
to change the object layout of a |datacall| JS object, removing
related but obsoleted functions saves us some time.
2014-03-29 15:18:10 +08:00
Vicamo Yang
3c86c42f4c Bug 978709 - 1/6: remove nsINetworkInterface::broadcast. r=hsinyi 2014-03-29 15:18:09 +08:00
Boris Zbarsky
d4a40b2bea Bug 987112. Remove the redundant and somewhat annoying parentObject argument to dictionary ToObject() methods. r=bholley 2014-03-29 01:45:10 -04:00
Wes Kocher
7d471d658b Merge b2g-inbound to m-c 2014-03-27 19:37:17 -07:00
Bevis Tseng
a33d1467f5 Bug 981077 - Part 3: Remove unused method of getClientIdByIccId(). r=vyang 2014-03-25 15:04:33 +08:00
Thomas Zimmermann
ea2c4302bc Bug 986440: Add missing field |number| for REQUEST_QUERY_CALL_FORWARD_STATUS, r=htsai
The field |number| is missing when REQUEST_QUERY_CALL_FORWARD_STATUS
gets invoked from RilContentHelper.js. This patch adds a test to the
function |queryCallForwardingStatus| for handling this case.

--HG--
extra : rebase_source : c56474a2023434ac3658c7771244c6380ca2a6e0
2014-03-27 10:35:30 +01:00
Thomas Zimmermann
2e711b04a9 Bug 986440: Check for |radioTech| in |voiceRegistrationState|, r=htsai
When starting up RIL, |radioTech| in |voiceRegistrationState| is not
defined before we received REQUEST_VOICE_REGISTRATION_STATE. This
patch adds an extra test to avoid the respective error message.

--HG--
extra : rebase_source : 19927ec9a3892606d81f3209ea470ce297d927d7
2014-03-27 10:35:24 +01:00
Thomas Zimmermann
a2623c2ab0 Bug 986440: Test for |options.rilMessageType| in REQUEST_GET_SMSC_ADDRESS handler, r=htsai
The response handler for REQUEST_GET_SMSC_ADDRESS expects the field
|rilMessageType| to be present in its options. This is not the case
if the request was generated from within ril_worker.js.

This patch handles this case by adding an extra test for the existance
of the field. The response handler will return without sending a reply
to the content helper. This is not a problem since the content handler
did not invoke the request anyway.

--HG--
extra : rebase_source : 211d5f4dc29dd99b745bc29d856c291175f156f1
2014-03-27 10:35:17 +01:00
Thomas Zimmermann
c217994116 Bug 986440: Return 'null' from RIL-worker function, r=htsai
One of the functions in ril_worker.js is supposed to return 'null'
on errors, but returns 'undefined' instead. This patch fixes the
problem.

--HG--
extra : rebase_source : 0f0c1cc06fb4bcb6fe034ab3c88890b351a6cad6
2014-03-27 10:35:09 +01:00
Yoshi Huang
c6f6c3646f Bug 987595 - B2G NFC: onpeerready isn't called. r=dimi 2014-03-25 19:14:41 +08:00
Ehsan Akhgari
af614574f6 Bug 986980 - Remove the classinfo from WifiGeoCoordsObject and WifiGeoPositionObject; r=bzbarsky
These objects are not exposed to Web content, so they don't need the
classinfo.
2014-03-24 23:39:23 -04:00
Doug Turner
308efc43ed Bug 987019 - Shutdown Wifi scanning after geolocation request has completed. r=kanru 2014-03-24 12:40:42 -07:00
Doug Turner
1b505adf19 Bug 977725 - MLS Geolocation seeding GONK GPS Provider. r=kanru 2014-03-22 00:42:55 -07:00
John Shih
54a51887c3 Bug 960426 - Part 4: Support Network Information API in Fifrefox OS. r=vchang 2014-03-17 14:33:48 +08:00
Doug Turner
ab6130fd89 Bug 989692 - Add GPS Debugging Logging. r=kchen 2014-03-24 21:58:18 -07:00
Neil Rashbrook
a8a5decf6f Bug 514280 Only use nsCOMPtr for interfaces r=bsmedberg 2014-04-03 23:06:26 +01:00
Vivien Nicolas
b2e05b2a68 Bug 985735 - dom/system/gonk/NetworkService.js: WARNING: no preprocessor directives found. r=gwagner 2014-03-20 13:01:34 +08:00
Jessica Jong
bae45ed494 Bug 984327 - Part 2: Modify test cases for dun. r=vicamo 2014-03-19 08:39:00 -04:00
Jessica Jong
6552af2779 Bug 984327 - Part 1: Include dun apn type in isNetworkTypeSecondaryMobile(...) and elsewhere. r=vicamo 2014-03-19 08:39:00 -04:00
Wes Kocher
01bb0237bc Merge inbound to m-c 2014-03-18 14:15:03 -07:00
Doug Turner
29bdc30869 Bug 928217 - Remove IsCoreLocationAvailable() method because it does the wrong thing. r=smichaud@pobox.com 2014-03-16 19:54:04 -07:00
Shawn Ku
216568d9b9 Bug 977433 - Part 1: RIL patch - B2G RIL: Handling LTE signal strength. r=HsinYi 2014-03-18 10:28:17 +08:00
Yoshi Huang
328762f66a Bug 933678 - B2G NFC: Add exposedProps for those objects passed to Gaia. r=dimi 2014-02-20 18:13:40 +08:00
Bevis Tseng
55a682ebe0 Bug 945089 - Part 2: Revice deprecated test cases. r=vyang 2014-03-05 16:47:37 +08:00
Bevis Tseng
ac783a7b2f Bug 945089 - Part 1.2: Move SMS concatenation logic from ril_worker.js to RadioInterfaceLayer.js. r=vyang 2014-03-13 01:27:00 +09:00
David Rajchenbach-Teller
f239dd5dfa Bug 961665 - Native implementation of OS.File.read, native bits. r=froydnj, r=bz, r=paolo 2014-03-14 10:13:26 -04:00
Edgar Chen
bec6eb2377 Bug 946589 - Remove 'ril.radio.preferredNetworkType' setting handler. r=hsinyi 2014-02-12 20:58:11 +08:00
Edgar Chen
1a9331e5f8 Bug 980826 - Part 2: Add xpcshell tests for updateContactFieldType2() for the case that the recordId in IAP is 0xff. r=allstars.chh 2014-03-11 14:03:25 +08:00
Edgar Chen
e16b35f2a3 Bug 980826 - Part 1: updateContactFieldType2() doesn't trigger either onsuccess or onerror callback in some case. r=allstars.chh 2014-03-11 11:20:26 +08:00
Bevis Tseng
2c55576445 Bug 976897 - Define new notification between NetworkManager and outer modules to prevent the race condition of setting routes and using network interface. r=vyang. 2014-03-10 12:36:42 +09:00
Thomas Zimmermann
f21e0f75d3 Bug 982126: Set session ID in NFC messages, r=allstars.chh 2014-03-11 15:23:30 +01:00
Ryan VanderMeulen
638c17a5bb Merge b2g-inbound to m-c. 2014-03-08 01:23:46 -08:00
Vicamo Yang
01f8ef8bf5 Bug 957917 - 1/2: B2G RIL - read PDP type from APN settings. r=hsinyi 2014-03-11 22:17:57 +08:00
Doug Turner
305efbc7f9 Bug 977120 - Enable NetworkGeolocationProvider to collect cellular tower data on Firefox OS. r=jdm 2014-03-10 16:10:15 +00:00
Doug Turner
d9090c7201 Bug 978593 - refactor and cleanup NetworkLocationProvider. Prep work to enable celluar support. r=jdm 2014-03-01 23:46:02 -08:00
Ryan VanderMeulen
fee54ff24f Backed out changesets a7ea2d51414d and 901717199390 (bug 957917) for causing bug 980375. 2014-03-06 16:30:35 -05:00
Shawn Ku
11e6563a1e Bug 976491 - Add test case. r=Yoshi 2014-03-06 09:53:40 +08:00
Shawn Ku
a8e522d859 Bug 976491 - B2G RIL: Don't throw exception when running readICCID for some CMCC cards. r=Yoshi 2014-03-06 09:52:44 +08:00
Hsin-Yi Tsai
eb357af8b7 Bug 980236 - [B2G] [RIL] test_ril_worker_icc.js fails with DEBUG = true. r=allstars.chh 2014-03-06 18:05:38 +08:00
Bevis Tseng
345798baec Bug 977920 - Retrieve iccId without checking prototype of IccInfo. r=vyang 2014-03-05 11:10:46 +08:00
Bevis Tseng
07ae6b7a7c Bug 974820 - Part 2: Add error handling of sending/receiving SMS/MMS when device storage is full. r=vyang 2014-02-20 12:21:11 +08:00
Vicamo Yang
f988ed247e Bug 957917 - 1/2: B2G RIL - read PDP type from APN settings. r=hsinyi 2014-03-05 10:37:42 +08:00
Alan Huang
dbb6bb4e64 Bug 971612 - Implement "mount" and "unmount" API for device storage. r=dhylands 2014-03-04 19:24:19 +08:00
Ed Morley
a96a5e92b0 Merge latest green b2g-inbound changeset and mozilla-central 2014-03-03 14:45:43 +00:00
Yoshi Huang
45695d8615 Bug 977440 - B2G RIL: add xpcshell tests for the processICCIOError. r=vicamo
From e13745bd7ccd720f66d75c75259af7fd7f4e6014 Mon Sep 17 00:00:00 2001
---
 dom/system/gonk/tests/test_ril_worker_icc.js |   24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)
2014-02-27 15:35:45 +08:00
Chuck Lee
b4e63d4f53 Bug 975813 - Support IPv6 in Network Manager. r=vicamo,fabrice 2014-02-28 20:24:35 +08:00
Jessica Jong
4025634f1f Bug 960865 - Part 5: add dun connection timer and reference count. r=vchang 2014-02-28 18:05:10 +08:00
Jessica Jong
fdff1b130f Bug 960865 - Part 4: dun support implementation in NetworkManager. r=vchang 2014-02-28 18:05:06 +08:00
Jessica Jong
5938501a14 Bug 960865 - Part 3: modify nat command to support setting rules for secondary routing table. r=vchang 2014-02-28 18:05:02 +08:00
Jessica Jong
688c8cab8b Bug 960865 - Part 2: handle dun apn type in RadioInterfaceLayer. r=hsinyi 2014-02-28 18:04:59 +08:00
Jessica Jong
948ed046c8 Bug 960865 - Part 1: add dun apn type constant in idls. r=vchang 2014-02-28 18:04:55 +08:00
Ryan VanderMeulen
48d69f19f8 Merge inbound to m-c. 2014-02-27 16:55:18 -05:00
Kai-Zhen Li
d0d48dfbc5 Bug 976944 - Update softap parameters for kk. r=vchang 2014-02-26 14:41:42 +08:00
Doug Turner
30f8efaa69 Bug 977454 - export network location provider on b2g. r=khuey 2014-02-25 16:06:01 -08:00
Brian Smith
fd8c0bbe41 Backout cset 4c4041cfc095 (bug 977454), a a=bustage 2014-02-28 22:14:05 -08:00
Doug Turner
7153db0857 Bug 977454 - export network location provider on b2g. r=khuey 2014-02-25 16:06:01 -08:00
Edgar Chen
d2d3b8ca0d Bug 961571 - Part 4: Add test case for data connection. r=hsinyi 2014-02-26 07:11:00 +08:00
Edgar Chen
de0c8e87ce Bug 961571 - Part 3: Handle ims apn type in NetworkManager. r=hsinyi 2014-02-26 00:08:00 +08:00
Edgar Chen
e16d5ab15b Bug 961571 - Part 2: Handle ims apn type in RILNetworkInterface. r=hsinyi 2014-02-26 00:08:00 +08:00