Commit Graph

468 Commits

Author SHA1 Message Date
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
aleth
5f700307ff Bug 1232067 - Ensure the libc free() is used if the a.out free() is not available. r=yoric
--HG--
extra : rebase_source : 9545ddec5807d63fc2a002480db02c81f2324a72
2016-06-09 01:15:57 +02:00
Andrew McCreight
d6a6610b75 Bug 1270308 - Remove content-child-shutdown observer for OS.file. r=Yoric 2016-06-01 15:05:54 -07:00
Chris Peterson
8a9e2d2bd4 Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium 2016-05-14 00:54:55 -07:00
Kyle Huey
c73656947b Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj 2016-04-25 17:23:21 -07:00
Andrew McCreight
b80e656e9e Bug 1247679, part 3 - Replace NS_IMPL_CYCLE_COLLECTION_TRACE_JSVAL_MEMBER_CALLBACK with JS_MEMBER. r=smaug 2016-02-22 10:11:02 -08:00
ISHIKAWA, Chiaki
be2b50a7f8 Bug 1248252 - Improper outdated octal constant syntax in M-C tree. Use '0o' prefix. r=dao
Be warned. Do not attemp to change the .js "test" source code in ./js
They are meant to check

 - the outdated 0666 octal constant is still parsed correctly,
 - the outdated 0666 octal constant raises syntax error flag
   in strict mode, etc.

So leave them alone.
2016-02-15 08:57:00 +01:00
Aidin Gharibnavaz
686438c658 Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Carsten "Tomcat" Book
5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Nicholas Nethercote
ec89bbf7f2 Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Shu-yu Guo
1768759efb Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Dave Townsend
86f03db916 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8
--HG--
extra : commitid : CKT2WDkxE4k
extra : rebase_source : 0be50c483317355b1e9af5985d53e85604748432
extra : histedit_source : 65d203f57ebd38b8c130e5db9aaa8ae3f507e7ac
2015-11-30 13:05:00 -08:00
Phil Ringnalda
c86db83adf Bug 1208199 - Skip test_osfile_async_setDates.js on b2g debug, where it fails constantly 2015-12-09 18:40:57 -08:00
David Rajchenbach-Teller
a775946746 Bug 1216972 - OS.File AsyncShutdown for content processes. r=froydnj
--HG--
extra : amend_source : 3c491f00ff06c12c710eefcd29fd0b6975bc07f7
extra : transplant_source : %95%E6%5Bet%5E%88%A57%1E%A2N%82%EE%8C%D6%C7X%B2%1D
2015-11-19 00:11:14 +01:00
Eduard Hanu
efe035ded3 Bug 1218870 - Fix uses of typeof "foo" in OS.File. r=yoric 2015-10-31 16:14:00 +01:00
Valentin Gosu
39e3e75879 Bug 1163028 - stop escaping [ and ] in toFileURI r=yoric 2015-11-02 13:54:59 +01:00
Florian Quèze
8f9f3cce67 Bug 1218882 - lz4.js should be usable outside of workers, r=Yoric.
--HG--
rename : toolkit/components/workerlz4/lz4.cpp => toolkit/components/lz4/lz4.cpp
rename : toolkit/components/workerlz4/lz4.js => toolkit/components/lz4/lz4.js
rename : toolkit/components/workerlz4/lz4_internal.js => toolkit/components/lz4/lz4_internal.js
rename : toolkit/components/workerlz4/moz.build => toolkit/components/lz4/moz.build
rename : toolkit/components/workerlz4/tests/xpcshell/data/chrome.manifest => toolkit/components/lz4/tests/xpcshell/data/chrome.manifest
rename : toolkit/components/workerlz4/tests/xpcshell/data/compression.lz => toolkit/components/lz4/tests/xpcshell/data/compression.lz
rename : toolkit/components/workerlz4/tests/xpcshell/data/worker_lz4.js => toolkit/components/lz4/tests/xpcshell/data/worker_lz4.js
rename : toolkit/components/workerlz4/tests/xpcshell/test_lz4.js => toolkit/components/lz4/tests/xpcshell/test_lz4.js
rename : toolkit/components/workerlz4/tests/xpcshell/xpcshell.ini => toolkit/components/lz4/tests/xpcshell/xpcshell.ini
2015-10-28 12:35:05 +01: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
David Rajchenbach-Teller
af0fdd13e3 Bug 1208475 - Using a safer date for test_iter_dir;r=yoric
--HG--
extra : transplant_source : %7B%04%8E%3D%8FQ%E01%8EI%B2%DD%5C%7C%FF%F8%F4G%1C%FE
2015-09-29 15:53:40 +02:00
David Rajchenbach-Teller
dafb3000c9 Bug 1208199 - test_osfile_async_setDates.js doesn't need to handle pending/finished state manually;r=yoric
--HG--
extra : transplant_source : %3C%D9%92Fw-%1E%B3%C6B%15Zgc%0Ex%04%DA%7F%9D
2015-09-29 11:53:30 +02:00
Tooru Fujisawa
3f9809017c Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs
--HG--
extra : commitid : J57uE7zSSsN
extra : rebase_source : b81cb1977b5beb9abc7cf132cd70648f406eb8ed
2015-09-24 20:36:01 +09:00
Tooru Fujisawa
accd89d4fd Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 5yrVqfOUmEG
extra : rebase_source : e2ec30261bd76c1966b0e61fd7e08c2924f270b0
2015-09-24 20:32:23 +09:00
Tooru Fujisawa
e5f587574b Backed out changeset 036615ba3257 (bug 1207498) for Linux pgo M(oth) failure
--HG--
extra : commitid : 4RedbQZ6Rzu
2015-09-27 23:42:50 +09:00
Tooru Fujisawa
816c72630a Backed out changeset 55b45f61cfd2 (bug 1207498) for Linux pgo M(oth) failure
--HG--
extra : commitid : 5g4QL4KrAot
2015-09-27 23:42:27 +09:00
Tooru Fujisawa
41ec522633 Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs
--HG--
extra : commitid : 1xymr2vWeyn
extra : rebase_source : 286757f28e8e392760d216f1b8bd25925ffe43b7
2015-09-24 20:36:01 +09:00
Tooru Fujisawa
b92d75e47c Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs
--HG--
extra : commitid : 2Gx1wpjvr9w
extra : rebase_source : 0a378fd51f45d3fe71430ad8a37a79a8862bfa76
2015-09-24 20:32:23 +09:00
Chris Peterson
71920a9550 Bug 1207030 - Enable -Wshadow flag in more directories that have no -Wshadow warnings. r=glandium 2015-09-22 21:39:03 -07:00
Georg Fritzsche
274a1f794e Bug 1204834 - OS.File.writeAtomic should have the path argument in its closure. r=yoric 2015-09-15 17:17:00 +07: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
Michael Layzell
0097c41e01 Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan 2015-09-12 16:53:33 -04:00
Chris Manchester
baa38d5d62 Bug 1000922 - Use nsMainThreadPtrHandle instead of already_AddRefed and forget for callbacks in NativeOSFileInternals.cpp r=jdm
--HG--
extra : commitid : C07ABGMwgs1
2015-08-31 14:28:47 -07: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
Ryan VanderMeulen
72cacbae1b Bug 1197986 - Request a longer timeout for tests that started timing out after increasing the number of B2G debug xpcshell chunks from 2 to 4. 2015-08-25 20:56:16 -04:00
Ryan VanderMeulen
d01fa354cb Bug 1197986 - Request a longer timeout for tests that started timing out after increasing the number of B2G debug xpcshell chunks from 2 to 4. 2015-08-25 18:31:35 -04:00
Birunthan Mohanathas
a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Geoff Brown
52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Christoph Kerschbaumer
3a846e95d6 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Alessio Placitelli
de418f9f22 Bug 1164822 - Add xpcshell test coverage for |OS.File.remove| ignoreAbsent flag. r=Yoric 2015-05-19 14:10:11 -07:00
Alessio Placitelli
505181a2f7 Bug 1164822 - Fix OS.File.remove not throwing with unexisting files. r=Yoric 2015-05-19 14:10:17 -07:00
ziyunfei
e1db0f779e Bug 1102219 - Part 4: Replace String.prototype.contains with String.prototype.includes in chrome code. r=till 2015-04-30 00:32:05 +09:00
Valentin Gosu
8452755ec9 Bug 1040285 - Single Quotes in HTTP request-uri Are Incorrectly Encoded as %27 r=MattN 2015-04-28 18:29:34 +03:00
Valentin Gosu
b6ae7d5d90 Bug 1040285 - Single Quotes should not be encoded in the path r=mcmanus,annevk 2015-04-28 18:29:22 +03:00
Tooru Fujisawa
cf2e4ba315 Bug 891107 - Part 1: Show information about value, type, function, and argument number in type conversion error messages in js-ctypes. r=jorendorff 2015-04-23 13:41:10 +09: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
Sebastian Hengst
394a2dd441 Bug 1143470 - Add BUG_COMPONENT to moz.build files in toolkit and xulrunner. r=gavin 2015-03-15 19:36:24 +01:00
Ganesh Sahukari
4b15c2aa09 Bug 1022816 - OS.File will now be able to change the readOnly, hidden, and system file attributes on Windows. r=paolo 2015-03-13 15:51:53 +00:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Mohamed Waleed
ac0e27511a Bug 1106938 - When OS.File stores information on calls for AsyncShutdown, also store the Task.stack. r=yoric 2015-03-10 05:26:00 -04:00
Andrew Sutherland
1adc0f5ef7 Bug 1125989 - Avoid OS.File request lossage during worker shutdown, r=yoric
OS.File requests like OS.File.stat would potentially be lost on b2g during
auto-shutdown/auto-killing of the worker thread. This patch corrects the
queue management so races with killing are not possible. A test is added that
fails without the fix and passes with it. See the comments in the test and
test for further details. Also, the bug is nice.
2015-02-25 00:43:13 -05:00