Commit Graph

396 Commits

Author SHA1 Message Date
Honza Bambas
f407583969 Bug 794507 - make offline application cache store security info for entries, r=michal 2013-01-29 22:05:43 +01:00
Ryan VanderMeulen
8560ac4b1e Backed out changeset eb2f0c1fffc2 (bug 820613) for xpcshell failures.
--HG--
extra : rebase_source : 7fff4cec5a4d7839cd3ede5cd0322631e11f9d38
2013-01-26 14:05:31 -05:00
Shriram Kunchanapalli
c040b5ce94 Bug 820613 - Remove all references to shutdown-cleanse. r=bsmedberg 2013-01-17 00:40:56 +05:30
Michal Novotny
50b10a2067 Bug 816642 - Avoid fragmenting cache files, r=jduell 2013-01-15 14:43:53 +01:00
Mats Palmgren
6c53161814 Bug 786533 - Replace NS_MIN/NS_MAX with std::min/std::max and #include <algorithm> where needed. r=ehsan 2013-01-15 13:22:03 +01:00
Nicholas Nethercote
dc051e917d Bug 829439 (part 1) - Add MemoryReporterBase class that promotes better encapsulation within nsIMemoryReporter sub-classes. r=jlebar.
--HG--
extra : rebase_source : 53a77ea456f2aedafe05954ceece7e64db743e66
2013-01-14 16:26:47 -08:00
Alfred Kayser
090bd49101 bug 814010: diskcache: skip buffer when writing to file. r=michal.novotny 2013-01-06 14:51:12 +01:00
Michal Novotny
b06fe67e37 Bug 725993 - Remove ability to tell cache to STORE_ON_DISK_AS_FILE, r=bsmith 2013-01-04 00:30:48 +01:00
Michal Novotny
8d5d0ae780 Bug 824484 - Fix race condition between stream wrapper destructor and nsCacheService::CloseAllStreams(), r=hurley 2013-01-03 20:24:27 +01:00
Michal Novotny
89c2573b47 Bug 822036 - Fix race condition between nsCacheEntryDescriptor::Close() and nsCacheService::ClearDoomList(), r=hurley 2013-01-03 16:39:50 +01:00
Masatoshi Kimura
b5e27745c8 Bug 824247 - Part 3: Disable FAIL_ON_WARNINGS on not-yet-warning-free directories on MSVC. r=ted 2013-01-03 00:56:38 +09:00
Nicholas Nethercote
acc80a9abd Bug 819819 (part 2) - Remove |name| from NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN. r=jlebar.
--HG--
rename : dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html => dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing.html
rename : toolkit/components/places/tests/browser/browser_favicon_privatebrowsing_perwindowpb.js => toolkit/components/places/tests/browser/browser_favicon_privatebrowsing.js
extra : rebase_source : 557cc60522970ce7eea3b006d357284d9b4694c4
2012-12-23 16:59:51 -08:00
Alfred Kayser
a017cef9d8 Bug 815639 - mLocalFile in nsDiskCacheStream doesn't have to be in the class 2012-12-21 15:25:50 +01:00
Jeff Walden
7146c23e80 Bug 820570 - Move mozilla::DebugOnly into DebugOnly.h to pare down the grab-baggish Util.h. r=Ms2ger 2012-12-14 18:58:45 -05:00
Michal Novotny
80df1b7aa4 Bug 808997 - Explicitly close all output and input streams of all active cache entries during shutdown, r=hurley 2012-12-14 18:03:01 +01:00
Trevor Saunders
2474b87bd0 reland the part of bug 801466 backed out in 02a65951d77d since it wasn't at fault 2012-12-10 03:19:02 -05:00
Trevor Saunders
dd226d381d partially backout c0715c079f1e bug 801466 part 4 to se if it fixes top crashes 2012-12-08 05:50:11 -05:00
Trevor Saunders
88cd771dfc bug 801466 - remove some usage of prmem in intl/ and network/ r=jduell 2012-12-04 18:04:39 -05:00
Ed Morley
8c8a1329df Backout 3d411a8554e0 (bug 801466) for build failures 2012-12-04 23:34:40 +00:00
Trevor Saunders
4578d67708 [PATCH] bug 801466 - remove some usage of prmem in intl/ and
From 9dadb8c05ecddfe60c415c1ff62627e998148c77 Mon Sep 17 00:00:00 2001
 network/ r=jduell
---
 intl/strres/src/nsStringBundle.cpp         |    2 --
 intl/uconv/src/nsConverterInputStream.cpp  |    8 +++---
 intl/uconv/src/nsConverterInputStream.h    |    6 +++--
 netwerk/base/public/nsReadLine.h           |   38 +++-------------------------
 netwerk/base/src/nsFileStreams.cpp         |    9 +++----
 netwerk/base/src/nsFileStreams.h           |    3 ++-
 netwerk/base/src/nsSerializationHelper.cpp |   31 +++++------------------
 netwerk/base/src/nsSocketTransport2.cpp    |    1 -
 netwerk/cache/nsCacheMetaData.cpp          |    3 +--
 netwerk/cache/nsCacheMetaData.h            |    3 ++-
 netwerk/protocol/data/nsDataChannel.cpp    |   24 +++++++-----------
 11 files changed, 36 insertions(+), 92 deletions(-)
2012-12-04 18:04:39 -05:00
Ehsan Akhgari
e3e515f2a6 Backed out changeset 944c97dabc33 (bug 816642) on the suspicion of regressing Tp5 by 50% 2012-11-30 16:05:40 -05:00
Michal Novotny
1ac09089c9 Bug 816642 - Avoid fragmenting cache files, r=jduell 2012-11-30 18:56:25 +01:00
Michal Novotny
51a1d6876d Bug 795897 - Force NSPR logging for cache module in release build, r=jduell 2012-11-22 02:14:00 +01:00
Josh Aas
42248bb3de Back out fix for bug 405407 due to regressions. 2012-11-19 18:02:21 -05:00
Brian R. Bondy
3575d54ab6 Bug 795887 - Close cache on suspend_process_notification observer notifiations. r=michal 2012-11-09 10:34:03 -05:00
Nick Hurley
4258db2f82 Bug 699951 - add a memory reporter for heap usage by the disk cache. r=michal 2012-11-05 10:22:33 -08:00
Steven Michaud
5b7f345811 Bug 801883 - New profile directories are hidden in Finder. r=josh 2012-10-26 12:21:12 -05:00
Honza Bambas
f58e5a0d57 Bug 751754 - Allow separation between the update-available and start-download states in appcache, r=jduell 2012-10-02 15:55:00 +02:00
Andrew Quartey
1d28872093 Bug 792581 - part 20: Replace LL_UI2L macro with int64_t cast. r=ehsan 2012-10-25 19:25:57 -04:00
Daniel Holbert
750905ca96 Bug 805552: Use DebugOnly in /netwerk to fix opt build warnings (treated as errors) for set-but-only-checked-in-debug-builds nsresult values. r=jduell 2012-10-25 12:47:55 -07:00
Ehsan Akhgari
f117c7a7b0 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Isaac Aggrey
cbb17fe7b2 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Michal Novotny
a19e27c128 Bug 771832 - File not found error for HTTP URL, can be fixed by a forced reload, r=hurley 2012-10-17 13:59:51 +02:00
Makoto Kato
402f21ecf3 Bug 801483 - make nsBufferedInputStream::Init fallible. r=bsmith 2012-10-16 17:38:20 +09:00
David Zbarsky
6d18b74223 Bug 801803: More nsresult as enum class creates warnings r=me 2012-10-16 00:26:51 -04:00
David Zbarsky
35ce833fdb Backout 368cd30cccda for bustage 2012-10-15 23:52:17 -04:00
David Zbarsky
95cf6682cb Bug 801803: More nsresult as enum class creates warnings r=me 2012-10-15 23:37:34 -04:00
David Zbarsky
226b7d9e12 Backout 14f09c2fb04c on CLOSED TREE 2012-10-15 21:19:30 -04:00
David Zbarsky
d8abbc0fc0 Bug 801803: More nsresult as enum class creates warnings r=me 2012-10-15 21:00:20 -04:00
Andrew Quartey
0e23b26077 Bug 792581 - part 19: Replace LL_I2L macro with int64_t cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey
637d5881bf Bug 792581 - part 18: Replace LL_L2D macro with double cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey
464807b57d Bug 792581 - part 16: Replace LL_L2UI macro with uint32_t cast. r=ehsan 2012-10-12 13:29:11 -04:00
Andrew Quartey
7d3807c62d Bug 792581 - part 14 - Replace LL_SHL, LL_SHR, LL_USHR macros with bitwise operators. r=ehsan 2012-10-12 13:29:10 -04:00
Jason Duell
49d3e77bbb Bug 786154 - enable FAIL_ON_WARNINGS in /netwerk/cache r=michal 2012-10-09 19:50:55 -07:00
Nick Hurley
3b4320b052 Bug 786086 - Make the new default cache size display properly. r=michal 2012-10-05 12:29:14 -07:00
Andrew Quartey
e0477b23d8 Bug 792581 - part 12: Replace LL_DIV with division operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey
efd58ac27b Bug 792581 - part 11: Replace LL_MUL macro with multiplication operator. r=ehsan 2012-10-05 01:05:28 -04:00
Andrew Quartey
106c5d6f24 Bug 792581 - part 5: Replace LL_CMP macro with standard comparison. r=ehsan 2012-10-03 10:13:19 -04:00
Cameron Kaiser
db848ebf08 Bug 718910 - Disable Spotlight on the cache directory on Mac; r=michal.novotny, f=smichaud,josh 2012-10-02 23:05:40 -04:00
Jason Duell
882da84a9a Bug 786299 - Delete app-cache related to an app when uninstalled. r=honza,jduell 2012-10-02 17:39:09 -07:00
Michal Novotny
ab9e348a12 Bug 795897 - Force NSPR logging for cache module in release build, r=biesi 2012-10-01 18:10:21 +02:00
Ed Morley
024d4659cf Backout bec7e68cad9a & a6228bc28958 (bug 786299) for Windows compilation errors on a CLOSED TREE 2012-09-29 01:44:30 +01:00
Jason Duell
223a507caf Bug 786299 - Part 2: Delete app-cache related to an app when uninstalled. r=honza 2012-09-28 16:13:17 -07:00
Jason Duell
71d9435e85 Bug 786299 - Delete app-cache related to an app when uninstalled, part 1 r=jduell 2012-09-28 16:13:15 -07:00
Isaac Aggrey
e496b51126 Bug 795351: Replace LL_MAXINT, LL_MININT, LL_MAXUINT with stdint versions; r=ehsan 2012-09-28 14:55:23 -05:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
foudfou
d72827c0aa Bug 785542 - Convert usages of PR_MIN and PR_MAX to NS_MIN and NS_MAX; r=ehsan
Occurences of PR_MAX in layout/style/nsCSSProps.cpp and xpcom/glue/nsTArray.h
can not be converted without C++11 support (constexpr).

--HG--
extra : rebase_source : 3b4f7e26690fad487dd11594449948411d4e79bc
2012-09-27 23:44:47 +02:00
Honza Bambas
41c12a706a Bug 756717 - Implement 'appcache jar' for apps, r=tlee+jduell 2012-07-31 02:36:00 -04:00
Ehsan Akhgari
b5c39afb4e Bug 792502 - Kill the FunctionTimer code; r=vlad 2012-09-19 16:59:38 -04:00
Michal Novotny
c2202a62f0 Bug 695399 - Remove calls to nsICacheSession::openCacheEntry on the main thread - netwerk part, r=hurley 2012-09-18 20:06:35 +02:00
Michal Novotny
7fcf4220ce Bug 723362 - Make an asynchronous variant of nsCacheEntryDescriptor::Doom, r=hurley 2012-09-17 23:31:46 +02:00
Brian R. Bondy
e8e604c98b Bug 789936 - Cache reduction telemetry now ignores doom list check due to an unrelated bug with it. r=michal 2012-09-10 10:59:41 -04:00
Josh Aas
da1a55564c Bug 405407: Merge nsDiskCacheStreamIO and nsDiskCacheStreamOutput. Patch originally by Alfred Kayser, updated by Josh Aas, final fix from Michal Novotny. r=michal 2012-09-06 10:10:08 -04:00
Brian R. Bondy
90a9fc66bb Bug 787576 - Refine telemetry data for how much cache corruption reduction plan would help. r=michal 2012-09-04 15:05:19 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Valentin Gosu ext:(%2C%20Jason%20Duell%20%3Cjduell.mcbugs%40gmail.com%3E%2C%20Ms2ger%20%3CMs2ger%40gmail.com%3E)
b32522b36e Bug 745296 - Enable FAIL_ON_WARNINGS in more of /netwerk r=jduell 2012-08-25 11:19:00 -07:00
Nick Hurley
9aaae2b5de bug 783755 - Make the new default cache size stick. r=michal 2012-08-21 14:52:44 -07:00
Brian R. Bondy
20d5018954 Bug 784657 - Fix potential problem in nsDIskCacheMap timer handling. r=michal 2012-08-23 22:23:10 -04:00
Brian R. Bondy
2c1ad18f6f Bug 784414 - Ensure cache clean file is open before seeking in it. r=michal 2012-08-23 22:22:14 -04:00
Nathan Froyd
df4ab23274 Bug 781200 - fixup several cache histograms; r=bsmith,hurley 2012-08-23 13:23:03 -04:00
Ehsan Akhgari
0fd9123eac Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -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 PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Phil Ringnalda
de63f18122 Back out cbb72643bbae (bug 723362) for leaking 2012-08-20 20:28:19 -07:00
Michal Novotny
80ac487418 Bug 723362 - Make an asynchronous variant of nsCacheEntryDescriptor::Doom, r=hurley 2012-08-21 03:30:40 +02:00
Brian R. Bondy
b881c5e5b0 Bug 777328 - Gather telemetry data for how much cache corruption reduction plan would help. r=michal 2012-08-20 08:08:46 -04:00
Aryeh Gregor
0923bf00ef Bug 780618 - Move all error codes to nsError.h; r=ehsan 2012-07-27 17:03:27 +03:00
Honza Bambas
541453729c Bug 215450: Allow uploading of files greater than 2gb in size. Involves making input streams 64-bit capable. Significant work done by Makoto Kato, finished by Honza Bambas. r=hbambas,bsmedberg,jdrew,sicking 2012-08-10 22:44:11 -04:00
Ms2ger
3f950b5744 Bug 780387 - Part b: Stop using PRIntn; r=bsmedberg 2012-08-09 09:09:40 +02:00
Michal Novotny
b691df5799 Bug 746920 - Uninitialised value use in nsDiskCacheMap::FlushRecords, r=hurley 2012-08-08 12:23:15 +02:00
Michal Novotny
074f6fe4dd Bug 779461 - Do not transfer the ownership of the key string from nsCacheRequest to nsCacheEntry, r=honzab 2012-08-08 02:06:06 +02:00
Nick Hurley
63c3cf1b49 bug 709297 - reduce max cache size to 350MiB the next time we have to trash the cache. r=jduell 2012-08-07 15:46:33 -07:00
Jason Duell
8216a50101 bug 780750 - HTTP cache never gets used/fixed if wrong permissions on CACHE_MAP file. r=hurley 2012-08-07 15:46:33 -07:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Aryeh Gregor
bcce1c96d2 Bug 777292 - Don't use |= on nsresult; r=ehsan 2012-07-27 17:03:08 +03:00
Brian R. Bondy
2bd6e1f69d Bug 773518 - Necko nsDeleteDir should lower IO prioritization. r=jduell 2012-07-25 10:24:25 -04:00
Brian R. Bondy
71a5dab36c Bug 774146 - Get more detail on reason for DISK_CACHE_CORRUPT failures. r=michal 2012-07-20 19:47:52 -04:00
Thinker K.F. Li
a2b608edcc Bug 769184 - Update cache entry only for new. r=honzab
Update entries in offline cache device only for new ones.  It means the entries returned by BindEntry(), not FindEntry().
2012-07-16 20:38:47 -04:00
Thinker K.F. Li
156c8e00b7 Bug 767025 - Part 2: Track active entries in memory and refuse to delete by ignore. r=honzab,gal
The original patch is from Andreas Gal. Thinker did some bug fixing.
2012-06-29 06:27:03 +08:00
Thinker K.F. Li
bc7665ebf2 Bug 767025 - Part 1: Remove flags. r=honzab
The original patch is from Andreas Gal. Thinker did some bug fixing.
2012-06-29 06:26:55 +08:00
Honza Bambas
d08a526246 Bug 767096 - Optimize nsICachingChannel interface for offline cache writing, r=sinker 2012-07-11 20:20:17 +02:00
Honza Bambas
c3d8ec5de2 Bug 760067 - Release all OfflineCache custom profile files ASAP after custom profile cache update has finished, r=michal 2012-07-11 20:20:17 +02:00
Ehsan Akhgari
a53e7f57c2 Bug 772523 - Remove the unused nsMemoryCacheDevice::mEvictionThreshold member; r=michal 2012-07-11 09:39:06 -04:00
Thinker K.F. Li
79e47fbece Bug 769291 - Move nsOfflineCacheDevice::Discard() to cache IO thread. r=honzab
Discard() is called from destructor of nsApplicationCache.  Instances
of nsApplicationCache is released by last reference, it can be in main
thread.  We move Discard() tasks to cache IO thread to avoid blocking
the main thread.
2012-07-11 14:16:00 +08:00
Ryan VanderMeulen
89aff4650d Backout 2838ba825479, 991404facac2, 7f6e22f10b99, 30a4e0cf7130, ad2c42efbe57, and 1f07f04ec01d (Bug 760067, Bug 767096, Bug 765158, Bug 729182) due to xpcshell orange. 2012-07-10 19:21:54 -04:00
Honza Bambas
24c40e8525 Bug 767096 - Optimize nsICachingChannel interface for offline cache writing, r=sinker 2012-07-10 23:49:18 +02:00
Honza Bambas
0de47be014 Bug 760067 - Release all OfflineCache custom profile files ASAP after custom profile cache update has finished, r=michal 2012-07-10 23:49:17 +02:00
Ehsan Akhgari
29893fb907 Bug 772525 - Remove the unused variable on in nsCacheService::Lock; r=bsmith
DONTBUILD
2012-07-10 14:41:42 -04:00
Brian Smith
f9ebaf0336 Bug 767275 - Add more detailed cache lock telemetry, r=michal, r=nfroyd
--HG--
extra : rebase_source : 60962876704a945ba83dc8ccfde938aa1957cb96
2012-06-29 16:20:34 -07:00