Граф коммитов

436 Коммитов

Автор SHA1 Сообщение Дата
sakshi 1af0b67296 Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Henry Chang 3cbae26500 Bug 1241000 - Enable all wifi emulator test case. r=edgar 2016-01-25 22:55:00 +08:00
David Keeler 263b6bd7fe bug 1239609 - audit nsNSSShutDownObject destructors for correctness r=Cykesiopka,sworkman
--HG--
extra : rebase_source : 3a20138211bfab811fb3adb2d7b0030a3b742b3b
2016-01-22 14:49:39 -08:00
XiaoLeSun b49a6b04bd Bug 1223702 - Fix some errors about wifi direct. r=hchang
--HG--
extra : rebase_source : 298c8978a88996aaa9a6cdcb1b5972c6d1668aa8
2015-11-11 01:28:00 +01:00
Tooru Fujisawa 24ab66bc98 Bug 1217093 - Remove for-each from dom/. r=smaug
--HG--
extra : commitid : DcjxshJqlKg
extra : rebase_source : 23bc9a985f1e6d13e13837e31bb9b88b9be24d55
2015-10-19 02:00:50 +09:00
Nathan Froyd 01583602a9 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nathan Froyd 583afa0965 Bug 1207245 - part 3 - switch all uses of mozilla::RefPtr<T> to nsRefPtr<T>; r=ehsan
This commit was generated using the following script, executed at the
top level of a typical source code checkout.

 # Don't modify select files in mfbt/ because it's not worth trying to
 # tease out the dependencies currently.
 #
 # Don't modify anything in media/gmp-clearkey/0.1/ because those files
 # use their own RefPtr, defined in their own RefCounted.h.
find . -name '*.cpp' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    grep -v 'mfbt/RefPtr.h' | \
    grep -v 'mfbt/nsRefPtr.h' | \
    grep -v 'mfbt/RefCounted.h' | \
    grep -v 'media/gmp-clearkey/0.1/' | \
    xargs perl -p -i -e '
 s/mozilla::RefPtr/nsRefPtr/g; # handle declarations in headers
 s/\bRefPtr</nsRefPtr</g; # handle local variables in functions
 s#mozilla/RefPtr.h#mozilla/nsRefPtr.h#; # handle #includes
 s#mfbt/RefPtr.h#mfbt/nsRefPtr.h#;       # handle strange #includes
'

 # |using mozilla::RefPtr;| is OK; |using nsRefPtr;| is invalid syntax.
find . -name '*.cpp' -o -name '*.mm' | xargs sed -i -e '/using nsRefPtr/d'

 # RefPtr.h used |byRef| for dealing with COM-style outparams.
 # nsRefPtr.h uses |getter_AddRefs|.
 # Fixup that mismatch.
find . -name '*.cpp' -o -name '*.h'| \
    xargs perl -p -i -e 's/byRef/getter_AddRefs/g'
2015-10-18 00:40:10 -04:00
hchang ea75f93420 Bug 1210370 - Close wpa_supplicant before we shutdown nsIWifiProxyService. r=mrbkap 2015-10-06 09:55:01 +08:00
Tooru Fujisawa b3fb4a4c03 Bug 1207494 - Part 13: Remove use of expression closure from dom/wifi/. r=henry
--HG--
extra : commitid : 1vzuJQOhUrA
extra : rebase_source : ee74a0e9f3b66bcdfa36f4b4ad1de86265283e79
2015-09-23 18:39:16 +09:00
Shu-yu Guo 64db2267cf Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Edgar Chen 20e08cfa9e Bug 1203037 - Disable Tethering/NFC marionette-webapi tests on emulator-x86-kk first. r=dimi,henry 2015-09-11 15:12:40 +08:00
Tim Huang bc034be4a8 Bug 1175057 - Fix the problem of the script timeout by ensuring it associates to the right ap. r=hchang 2015-09-03 19:29:00 +02:00
Nicholas Nethercote f44287005f Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Jessica Jong 928b9eed74 Bug 1167132 - Part 5: [NetworkManager] Move network information into a separate interface (Tethering). r=echen 2015-07-29 02:05:00 -04:00
Jessica Jong 637babbd6a Bug 1167132 - Part 3: [NetworkManager] Move network information into a separate interface (Wifi). r=hchang 2015-07-08 01:19:00 -04:00
Emanuel Hoogeveen 7d1e52f2ff Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez 258ad59e3f Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen 5f5c327690 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez 702a59d135 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj
--HG--
extra : rebase_source : 2ecbe6c1dd8a7ad8dc529b53349ad431cf1116c9
2015-06-24 14:11:00 -04:00
Wes Kocher 8127240e63 Merge b2ginbound to central, a=merge 2015-06-11 17:37:23 -07:00
Dimi Lee 4a8e2edd09 Bug 1168959 - Memory-safety bugs in NetworkUtils.cpp generally. r=fabrice
--HG--
extra : rebase_source : 8cc3567b977fe24af86c6a37b79b376b7b6ce094
2015-06-08 11:38:06 +08:00
Edgar Chen dfee639cdc Bug 1151726 - Disable failure tests, test_wifi_associate_WPA_EAP_{PEAP|TTLS|TLS}.js. r=henry 2015-04-07 14:49:48 +08:00
hchang 25d853b14b Bug 1167466 - Prevent from previous failed DHCP callback interferring ongoing DHCP request. r=vchang. 2015-06-08 23:42:00 +02:00
hchang 0923c52f45 Bug 1167099 - Fix wifi tethering test case on KK emulator. r=vchang. 2015-05-26 03:09:00 +02:00
Henry Chang 70e5300323 Bug 1166660 - Use custom hostapd for testing and restart the hostapd after re-enabling wifi. r=vchang.
There are a couple of reasons which make this test case failed on KK emulator.
The first one is the stock hostapd is no longer available for unknown reason
and the second one is that the the scan behavior is weird after re-enabling wifi.
There is no perfect solution for these two issue. For testing purpose,
we can use the custom hostapd instead of stock hostapd and restart the hostapd
after re-enabling wifi. The test coverage remains the same after applying
these changes.
2015-05-27 16:20:23 +08:00
Edgar Chen afec7fb545 Bug 1166274 - Part 2: Add test for wifi static ip. r=hchang 2015-02-04 23:26:11 +08:00
Edgar Chen 4a90a7d597 Bug 1166274 - Part 1: Handle the callback and IPC message of setStaticIpMode correctly. r=vchang 2015-02-13 16:03:49 +08:00
Botond Ballo 2e2a504271 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : source : 7468f9a3aa03520a29e138d4df431f0b5d90967c
2015-05-26 14:33:55 -04:00
Phil Ringnalda 49dd872168 Back out 3 changesets (bug 1119980) for emulator-l bustage
CLOSED TREE

Backed out changeset 12ce98475c6e (bug 1119980)
Backed out changeset bdb8d05f8870 (bug 1119980)
Backed out changeset a68a18840492 (bug 1119980)
2015-05-25 18:48:51 -07:00
Botond Ballo 9934d127c1 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj
--HG--
extra : rebase_source : 4e915a12ba662ed45788238a5f0a45533888bd92
2015-05-25 20:45:17 -04:00
Cervantes Yu 55152ad9d9 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Andrea Marchesini 61b9bd0496 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Ryan VanderMeulen 7833fc8055 Merge inbound to m-c. a=merge 2015-05-18 16:32:50 -04:00
Andrea Marchesini 3aa189b5ff Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Amy Chung 45cf35521b Bug 1123680 - Disable network prior to updating it to prevent unexpectedly and incorrectly added network. r=hchang 2015-05-12 20:16:00 -04:00
Andrew McCreight 9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight da5ed6f5cd Bug 1152551, part 1 - Remove leading tabs in dom/. r=baku
Also, remove trailing whitespace in nsXMLContentSink.cpp
2015-05-03 15:32:33 -04:00
Jessica Jong 92da20d7a0 Bug 1130962 - Part 2: Let NetworkManager handle wifi http proxy. r=hchang 2015-04-24 15:34:25 +08:00
hchang 4e40745cfe Bug 1146248 - Stop previous DHCP request when requesting a new one. r=vchang 2015-03-24 11:11:51 +08:00
Chuck Lee 1f76cf9902 Bug 1084230 - Marionette test for WPA-EAP connection. r=hchang 2015-03-26 21:50:54 +08:00
Kai-Zhen Li 7244dbd153 Backed out changeset cfdeb23e7296 (bug 1123680) for smoke-test failures. 2015-03-30 18:04:06 +08:00
Wes Kocher 18a6da0131 Merge m-c to inbound a=merge
--HG--
extra : rebase_source : 31afc1b4de1d4c9d48057dbbe0d96e7c385bf2dc
2015-03-27 17:31:19 -07:00
Vincent Chang a5ac295af9 Bug 1133665 - [Flame][Wifi] The SSID that has set to be binded with MAC address is not hightlighted when user taps it. r=hchang
--HG--
extra : histedit_source : 945b7a99bee197fc1b8e813659fa142f8ced0de3
2015-03-25 17:45:59 +08:00
Amy Chung 392ca34c49 Bug 1123680 - Forget Wifi cause problems to reconnect on it immediately. r=hchang 2015-03-26 00:52:00 -04:00
Ehsan Akhgari 883849ee32 Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
This patch was automatically generated using the following script:

function convert() {
echo "Converting $1 to $2..."
find . \
       ! -wholename "*/.git*" \
       ! -wholename "obj-ff-dbg*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Bill McCloskey 2cbf53b22f Bug 1145394 - Remove exec bit on js files (r=fabrice,gavin) 2015-03-20 11:57:38 -07:00
Chuck Lee 620be45d20 Bug 1077330 - Marionette test for wifi certificate API. r=hchang, r=vchang 2014-10-17 17:43:21 +08:00
Chuck Lee f7df755828 Bug 1049476 - 0003. Add EAP-TLS to wifi capabilities. r=hchang 2015-02-28 21:54:31 +08:00
Chuck Lee eab88e6a0d Bug 1049476 - 0002. Support user certificate parameter in API. r=dkeeler r=vchang 2015-02-28 21:54:28 +08:00
Jessica Jong 513755713c Bug 1109479 - move tethering related code out of NetworkManager. r=echen 2015-03-05 16:41:00 +08:00