Commit Graph

542 Commits

Author SHA1 Message Date
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
Andrew McCreight
f144d8e7c4 Bug 1063569 - Enable devicestorage test_dirs.html. r=dhylands 2016-02-03 08:30:15 -08:00
Kyle Huey
94f653c385 Bug 1241764: Replace nsPIDOMWindow with nsPIDOMWindowInner/Outer. r=mrbkap,smaug 2016-01-30 09:05:36 -08:00
Bill McCloskey
8916b1d998 Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm) 2016-01-28 20:56:37 -08:00
Dave Hylands
d6a379cf52 Bug 1232506: Make dom/devicestorage really work with e10s. r=alchen 2015-12-18 17:17:46 -08:00
Carsten "Tomcat" Book
3cfcb8966a Backed out changeset 0f2a62a45b00 (bug 1232506) for causing a talos perma failure 2015-12-21 13:00:59 +01:00
Dave Hylands
23de1257ea Bug 1232506: Make dom/devicestorage really work with e10s. r=alchen 2015-12-18 17:17:46 -08:00
Andrew McCreight
1e0a8fd2e2 Bug 1222522, part 2 - Inline devicestorage_cleanup() in dom/devicestorage/ tests. r=dhylands 2015-11-20 09:18:22 -08:00
Andrew McCreight
a653efc2fb Bug 1222522, part 1 - Make most dom/devicestorage/ tests work with e10s. r=dhylands
These tests use devicestorage_setup() in devicestorage_common() to do
two things:

a) Set up preferences using pushPrefEnv().

b) Delete a special directory for testing device storage things, to
make sure it is empty. This requires running a chrome script and
waiting for it to finish.

Actually converting the individual tests requires wrapping up the
rest of the test inside a giant function.

This patch also removes the non-e10s ipc tests, because the other
changes break them. They should not be needed any more, as with this
patch we will be running devicestorage tests on e10s and b2g.
2015-11-20 09:18:22 -08:00
Xidorn Quan
7ddd4c664c Bug 1186750 part 11 - Convert all usage of Dispatch/NS_DispatchToMainThread in dom/devicestorage to pass in either already_AddRefed or raw pointer. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
3dc5d34675 Bug 1186750 part 10 - Simplify code in DeviceStorageRequestParent::Dispatch. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
5908b57d86 Bug 1186750 part 9 - Use already_AddRefed&& to initialize mFile of device storage requests. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
306516d167 Bug 1186750 part 8 - Convert DeviceStorageUsedSpaceCache::Dispatch to use already_AddRef&&. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
3808902eed Bug 1186750 part 7 - Convert DispatchToOwningThread and DispatchOrAbandon to take already_AddRefed&&. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
ae6e78a933 Bug 1186750 part 6 - Remove unused and unimplemented method nsDOMDeviceStorage::StorePermission. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
e4ecee9d0d Bug 1186750 part 5 - Convert nsDOMDeviceStorage::CheckPermission to take already_AddRefed&&. r=dhylands 2015-11-20 18:47:49 +11:00
Xidorn Quan
7551e6da75 Bug 1186750 part 4 - Clear runnable list in DeviceStorageRequestParent when being destroyed. r=dhylands 2015-11-19 16:10:42 +11:00
Xidorn Quan
1e45a2ade2 Bug 1186750 part 3 - Abstract CancelableFileEvent in DeviceStorageReqeustParent and use already_AddRefed&& for passing DeviceStorageFile parameter. r=dhylands 2015-11-19 16:10:42 +11:00
Xidorn Quan
472b0d70de Bug 1186750 part 2 - Remove some unused member fields in events in DeviceStorageRequestParent. r=dhylands 2015-11-19 16:10:42 +11:00
Xidorn Quan
3f0073c274 Bug 1186750 part 1 - Inlinize trivial constructors and destructors of events in DeviceStorageRequestParent. r=dhylands 2015-11-19 16:10:42 +11:00
Andrew McCreight
d2e69db4ef Bug 1222562, part 2 - Add some comments about failing tests. r=mrbkap 2015-11-10 13:10:23 -08:00
sgiles
09a3f1565f Bug 1174228 - Set up TYPE_APP for navigator.getDeviceStorage for B2GDroid r=dhylands 2015-11-06 05:55:40 +00:00
Gregor Wagner
81a213c732 Bug 1222478 - Enable more mulet tests. r=gerard-majax 2015-11-06 20:01:45 +01:00
Birunthan Mohanathas
94998cf5fe Bug 1219392 - Capitalize mozilla::unused to avoid conflicts. r=froydnj 2015-11-02 07:53:26 +02:00
Andrew Osmond
0aee4fedd1 Bug 1215644 - Use child process volume service cache for available and storage status requests. r=dhylands 2015-10-21 01:55:24 -04: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
Dave Hylands
23f6a72c71 Bug 1205028 - Don't tell MTP server about files that it added/modified. r=alchen
With this patch, we introduce mtp-watcher-notify, used to tell device storage
about new files added by MTP, and mtp-watcher-update, used to tell MTP about
device storage changes.

By using 2 new messages, rather than trying to reuse file-watcher-notify and
file-watcher-update, we prevent update "loops".
2015-10-13 15:35:11 -07:00
Carsten "Tomcat" Book
d7f143eaad Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst
cd93f441eb Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Shu-yu Guo
f0cdd04e91 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Wes Kocher
0f57602049 Merge b2ginbound to central, a=merge CLOSED TREE 2015-09-23 13:18:17 -07:00
Andrew Osmond
10180a1c87 Bug 1196315 - Ensure MIME service is only accessed on the main thread. r=dhylands 2015-09-16 12:18:25 -04: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
Gabriele Svelto
a3e7937e84 Bug 1204618 - Add a field to the DeviceStorage object holding the low-disk-space status. r=dhylands, r=bzbarsky 2015-09-16 22:29:56 +02:00
Ryan VanderMeulen
aa1decaaea Merge inbound to m-c. a=merge 2015-08-31 15:21:02 -04:00
Andrew Osmond
d56cf44718 Bug 1171170 - Consolidate/cache access to permissions, cycle collected objects in device storage. r=dhylands 2015-08-25 20:13:34 -04:00
Chris Peterson
cc68dfd296 Bug 1197563 - Polyfill __func__ for MSVC 2013 and earlier. r=froydnj 2015-08-20 23:39:18 -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
Andrew Osmond
9aa93034bc Bug 1186273 - Part 2. Improve reuse of and releasing of device storage objects where appropriate. r=dhylands 2015-08-18 07:42:14 -04:00
Andrew Osmond
c67ed45fb3 Bug 1186273 - Part 1. Move preferences and observers into dedicated threadsafe module. r=dhylands 2015-08-18 07:42:12 -04:00
Jeff Walden
4cafc6914a Bug 1158399 - Expose the [[DateValue]] field in Date objects only through a ClippedTime class that enforces prior TimeClip-ing on the given value. r=evilpie, r=bz, r=dhylands, r=mt, r=froydnj, r=khuey, r=baku, r=smaug 2015-05-01 19:12:52 -07: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
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
Jonathan Watt
c456c37b02 Bug 1177688, part 4 - Add DeviceStorage tests for the new .getFilesAndDirectories() and .path API on Directory. r=baku 2015-06-23 00:31:36 +01:00
Jan de Mooij
c42999b66d Bug 1177825 - Remove JSVAL_* constants. r=evilpie 2015-06-29 18:36:44 -07:00