Commit Graph

432 Commits

Author SHA1 Message Date
Tooru Fujisawa
65663915d7 Bug 1217093 - Remove for-each from dom/. r=smaug 2015-10-19 02:00:50 +09:00
Nathan Froyd
9c5965b035 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
e504437747 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
6b5f0c2e9b Bug 1210370 - Close wpa_supplicant before we shutdown nsIWifiProxyService. r=mrbkap 2015-10-06 09:55:01 +08:00
Tooru Fujisawa
d889729574 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
d8faa01cea 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
1a0a4dc47f 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
a1eaddd634 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
10d95cca57 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
b57ec20991 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
01c12a916b 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
31c0c961cd Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Juan Gomez
21d73728f3 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-07-03 18:29:00 -07:00
Ryan VanderMeulen
55b2086097 Backed out changeset 8b4e4083639e (bug 1171931) for B2G debug emulator bustage. 2015-06-25 19:48:42 -04:00
Juan Gomez
98461fc4a4 Bug 1171931 - Refactor duplicated code using XRE_IsParent/ContentProcess. r=froydnj 2015-06-24 14:11:00 -04:00
Wes Kocher
a6112d78ee Merge b2ginbound to central, a=merge 2015-06-11 17:37:23 -07:00
Dimi Lee
5826d843ec Bug 1168959 - Memory-safety bugs in NetworkUtils.cpp generally. r=fabrice 2015-06-08 11:38:06 +08:00
Edgar Chen
5e549d7844 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
04abb6e68d Bug 1167466 - Prevent from previous failed DHCP callback interferring ongoing DHCP request. r=vchang. 2015-06-08 23:42:00 +02:00
hchang
111f796197 Bug 1167099 - Fix wifi tethering test case on KK emulator. r=vchang. 2015-05-26 03:09:00 +02:00
Henry Chang
ec4fc3822e 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
b0daaabf60 Bug 1166274 - Part 2: Add test for wifi static ip. r=hchang 2015-02-04 23:26:11 +08:00
Edgar Chen
e6637078b9 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
0fe06cffa0 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
f3d4dd7e09 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
9a8e8b29e8 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
a5bfba878f Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Andrea Marchesini
50ea75aa94 Bug 1166231 - Make nsIDOMBlob an empty interface, r=ehsan 2015-05-19 15:36:37 +01:00
Ryan VanderMeulen
41d95849b2 Merge inbound to m-c. a=merge 2015-05-18 16:32:50 -04:00
Andrea Marchesini
6ce7c91736 Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan 2015-05-18 14:52:26 +01:00
Amy Chung
67365b34ca 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
aeff7c99ee Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight
10aa3c7467 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
87435ae598 Bug 1130962 - Part 2: Let NetworkManager handle wifi http proxy. r=hchang 2015-04-24 15:34:25 +08:00
hchang
bf1618d862 Bug 1146248 - Stop previous DHCP request when requesting a new one. r=vchang 2015-03-24 11:11:51 +08:00
Chuck Lee
3a18565f92 Bug 1084230 - Marionette test for WPA-EAP connection. r=hchang 2015-03-26 21:50:54 +08:00
Kai-Zhen Li
dd1d1a977e Backed out changeset cfdeb23e7296 (bug 1123680) for smoke-test failures. 2015-03-30 18:04:06 +08:00
Wes Kocher
7549c12aa0 Merge m-c to inbound a=merge 2015-03-27 17:31:19 -07:00
Vincent Chang
4965445a22 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
8b55969bee Bug 1123680 - Forget Wifi cause problems to reconnect on it immediately. r=hchang 2015-03-26 00:52:00 -04:00
Ehsan Akhgari
33bb32f549 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
8fb0643e63 Bug 1145394 - Remove exec bit on js files (r=fabrice,gavin) 2015-03-20 11:57:38 -07:00
Chuck Lee
fcf21bcc98 Bug 1077330 - Marionette test for wifi certificate API. r=hchang, r=vchang 2014-10-17 17:43:21 +08:00
Chuck Lee
f5d9b82611 Bug 1049476 - 0003. Add EAP-TLS to wifi capabilities. r=hchang 2015-02-28 21:54:31 +08:00
Chuck Lee
9428f648b3 Bug 1049476 - 0002. Support user certificate parameter in API. r=dkeeler r=vchang 2015-02-28 21:54:28 +08:00
Jessica Jong
779f61523e Bug 1109479 - move tethering related code out of NetworkManager. r=echen 2015-03-05 16:41:00 +08:00
Chuck Lee
9be4530efe Bug 1012549 - 0003. Support delete PKCS12 certificate. r=vhcang r=dkeeler 2014-10-31 14:42:21 +08:00
Chuck Lee
206a424a9a Bug 1012549 - 0002. Support list PKCS12 certificate. r=vchang 2014-10-31 14:42:18 +08:00
Chuck Lee
ac8c6a4cd0 Bug 1012549 - 0001. Support import PKCS12 certificate. r=dkeeler r=vchang 2015-02-28 21:54:16 +08:00
Andrea Marchesini
b212600c95 Bug 1148527 - Indentation fix after bug 1145631, r=ehsan 2015-03-27 18:52:19 +00:00