Commit Graph

436 Commits

Author SHA1 Message Date
sakshi
88d7bc82bd Bug 1197311 - Remove PR_snprintf calls in dom/ r=froydnj 2016-02-17 14:23:39 -05:00
Henry Chang
29eb5cf8c8 Bug 1241000 - Enable all wifi emulator test case. r=edgar 2016-01-25 22:55:00 +08:00
David Keeler
4db6ac86e6 bug 1239609 - audit nsNSSShutDownObject destructors for correctness r=Cykesiopka,sworkman 2016-01-22 14:49:39 -08:00
XiaoLeSun
9f8749f046 Bug 1223702 - Fix some errors about wifi direct. r=hchang 2015-11-11 01:28:00 +01:00
Tooru Fujisawa
8a3eb7d1bb Bug 1217093 - Remove for-each from dom/. r=smaug 2015-10-19 02:00:50 +09:00
Nathan Froyd
e4e2da55c9 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
2015-10-18 01:24:48 -04:00
Nathan Froyd
5254890206 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
304aa0c1ac Bug 1210370 - Close wpa_supplicant before we shutdown nsIWifiProxyService. r=mrbkap 2015-10-06 09:55:01 +08:00
Tooru Fujisawa
2fc4ba9b5c Bug 1207494 - Part 13: Remove use of expression closure from dom/wifi/. r=henry 2015-09-23 18:39:16 +09:00
Shu-yu Guo
45211869c8 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
b1c349fdfe 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
7adac3b56e 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
69d088e45f 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.
2015-08-27 20:44:53 -07:00
Jessica Jong
af7ff8b01c 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
111d383fc6 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
e1b03075a7 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez
01df2f691b Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
e6131fc8b8 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
2128198065 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Wes Kocher
59a1e174fe Merge b2ginbound to central, a=merge 2015-06-11 17:37:23 -07:00
Dimi Lee
75b46db438 Bug 1168959 - Memory-safety bugs in NetworkUtils.cpp generally. r=fabrice 2015-06-08 11:38:06 +08:00
Edgar Chen
fd7d72c0e4 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
a4286b5da3 Bug 1167466 - Prevent from previous failed DHCP callback interferring ongoing DHCP request. r=vchang. 2015-06-08 23:42:00 +02:00
hchang
ec7834c7a8 Bug 1167099 - Fix wifi tethering test case on KK emulator. r=vchang. 2015-05-26 03:09:00 +02:00
Henry Chang
0d59a32f87 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
e8c9c15716 Bug 1166274 - Part 2: Add test for wifi static ip. r=hchang 2015-02-04 23:26:11 +08:00
Edgar Chen
3596fe9e34 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
ad4aea9284 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-26 14:33:55 -04:00
Phil Ringnalda
7886a51923 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
eeb3ca1139 Bug 1119980 - Use 'snprintf' instead of 'sprintf' to avoid a warning on Lollipop-based builds. r=froydnj 2015-05-25 20:45:17 -04:00
Cervantes Yu
863a6aa860 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Andrea Marchesini
c4223f6e7b Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Ryan VanderMeulen
50e913e2aa Merge inbound to m-c. a=merge 2015-05-18 16:32:50 -04:00
Andrea Marchesini
54e2145f4a Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan 2015-05-18 14:52:26 +01:00
Amy Chung
1c31f00365 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
c979f253c0 Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight
5a5637e076 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
3039a64fc3 Bug 1130962 - Part 2: Let NetworkManager handle wifi http proxy. r=hchang 2015-04-24 15:34:25 +08:00
hchang
e55371407d Bug 1146248 - Stop previous DHCP request when requesting a new one. r=vchang 2015-03-24 11:11:51 +08:00
Chuck Lee
56ab8fd0de Bug 1084230 - Marionette test for WPA-EAP connection. r=hchang 2015-03-26 21:50:54 +08:00
Kai-Zhen Li
fc88b2e313 Backed out changeset cfdeb23e7296 (bug 1123680) for smoke-test failures. 2015-03-30 18:04:06 +08:00
Wes Kocher
9b4388ff25 Merge m-c to inbound a=merge 2015-03-27 17:31:19 -07:00
Vincent Chang
00ee683094 Bug 1133665 - [Flame][Wifi] The SSID that has set to be binded with MAC address is not hightlighted when user taps it. r=hchang 2015-03-25 17:45:59 +08:00
Amy Chung
8ce706d188 Bug 1123680 - Forget Wifi cause problems to reconnect on it immediately. r=hchang 2015-03-26 00:52:00 -04:00
Ehsan Akhgari
5cccea6f0f 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
7c16d0b8dd Bug 1145394 - Remove exec bit on js files (r=fabrice,gavin) 2015-03-20 11:57:38 -07:00
Chuck Lee
603fe4f6c9 Bug 1077330 - Marionette test for wifi certificate API. r=hchang, r=vchang 2014-10-17 17:43:21 +08:00
Chuck Lee
dfe19134f6 Bug 1049476 - 0003. Add EAP-TLS to wifi capabilities. r=hchang 2015-02-28 21:54:31 +08:00
Chuck Lee
615ab7befe Bug 1049476 - 0002. Support user certificate parameter in API. r=dkeeler r=vchang 2015-02-28 21:54:28 +08:00
Jessica Jong
1970ea01eb Bug 1109479 - move tethering related code out of NetworkManager. r=echen 2015-03-05 16:41:00 +08:00