Commit Graph

463 Commits

Author SHA1 Message Date
Andrew McCreight
fed281470b 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
72d38a6835 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
e084f12c9a 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
ab60132384 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures 2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
238dcd01fc Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-07 10:56:00 +01:00
Nicholas Nethercote
84b71404df Bug 1237151 (part 3) - Remove ignored qualifiers in all remaining code. r=froydnj. 2016-01-05 17:08:45 -08:00
Shu-yu Guo
f2f1b10394 Bug 1220564 - Update chrome code uses of genexprs and legacy comprehensions. (r=billm) 2016-01-06 16:02:16 -08:00
Dave Townsend
fb1e757d42 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8 2015-11-30 13:05:00 -08:00
Phil Ringnalda
35b2b38740 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
2b7c6ac4d1 Bug 1216972 - OS.File AsyncShutdown for content processes. r=froydnj 2015-11-19 00:11:14 +01:00
Eduard Hanu
13c2ab4bb9 Bug 1218870 - Fix uses of typeof "foo" in OS.File. r=yoric 2015-10-31 16:14:00 +01:00
Valentin Gosu
efa26f326d Bug 1163028 - stop escaping [ and ] in toFileURI r=yoric 2015-11-02 13:54:59 +01:00
Florian Quèze
2a35fb528f Bug 1218882 - lz4.js should be usable outside of workers, r=Yoric. 2015-10-28 12:35:05 +01: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
David Rajchenbach-Teller
24d5b7d4f2 Bug 1208475 - Using a safer date for test_iter_dir;r=yoric 2015-09-29 15:53:40 +02:00
David Rajchenbach-Teller
406bf6c6d7 Bug 1208199 - test_osfile_async_setDates.js doesn't need to handle pending/finished state manually;r=yoric 2015-09-29 11:53:30 +02:00
Tooru Fujisawa
8400a47e1b Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Tooru Fujisawa
7e055fc962 Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs 2015-09-24 20:32:23 +09:00
Tooru Fujisawa
7c5be5da3e Backed out changeset 036615ba3257 (bug 1207498) for Linux pgo M(oth) failure 2015-09-27 23:42:50 +09:00
Tooru Fujisawa
7ee09dcdfe Backed out changeset 55b45f61cfd2 (bug 1207498) for Linux pgo M(oth) failure 2015-09-27 23:42:27 +09:00
Tooru Fujisawa
cf92e0a6fe Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Tooru Fujisawa
930055842c Bug 1207498 - Part 1: Remove use of expression closure from toolkit/components/, except tests. r=Gijs 2015-09-24 20:32:23 +09:00
Chris Peterson
dd2fcb9b7d 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
d230058e5d 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
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
Michael Layzell
f20336e5e1 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
b08c6bd7ba Bug 1000922 - Use nsMainThreadPtrHandle instead of already_AddRefed and forget for callbacks in NativeOSFileInternals.cpp r=jdm 2015-08-31 14:28:47 -07: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
Ryan VanderMeulen
2abdaa8e23 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
2225f3293c 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
47ed3a3675 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
f8e98ea39a Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Christoph Kerschbaumer
6c7838c166 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
67ea4c3082 Bug 1164822 - Add xpcshell test coverage for |OS.File.remove| ignoreAbsent flag. r=Yoric 2015-05-19 14:10:11 -07:00
Alessio Placitelli
22efce825e Bug 1164822 - Fix OS.File.remove not throwing with unexisting files. r=Yoric 2015-05-19 14:10:17 -07:00
ziyunfei
ec33d43a0e 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
a0f8e22ab0 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
f327b67310 Bug 1040285 - Single Quotes should not be encoded in the path r=mcmanus,annevk 2015-04-28 18:29:22 +03:00
Tooru Fujisawa
ed313fbcb9 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
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
Sebastian Hengst
09b323c52f 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
f08c42ab1d 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
8873726f67 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Mohamed Waleed
7efc7cb0bf 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
61df7f9898 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
Andrew Sutherland
31f1376e9e Backed out changeset 9110f18c19aa (bug 1125989) 2015-02-24 13:46:27 -05:00
Andrew Sutherland
b6795ba3ab 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-24 10:59:46 -05:00
Christoph Kerschbaumer
f73cc2b32f Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ - tests (r=gijs) 2015-02-11 08:51:35 -08:00
Phil Ringnalda
fa8083db86 Back out 35e75bce4db4 (bug 1087744) for xpcshell bustage
CLOSED TREE
2015-02-10 23:05:42 -08:00
Christoph Kerschbaumer
bfcde6c5ae Bug 1087744: Make JS callers of ios.newChannel call ios.newChannel2 in toolkit/ - tests (r=gijs) 2015-02-10 20:49:49 -08:00