Commit Graph

452 Commits

Author SHA1 Message Date
Tim Huang
0764c9c895 Bug 1312954 - Part 4: Add a new function in nsICacheEntry to allow its loadInfoContext to be fetched. r=mayhemer 2017-02-02 22:15:00 -05:00
Tim Huang
4af0ebd9ee Bug 1312954 - part 2: Add a new interface nsICacheStorageService.asyncVisitAllStorages() to allow visiting every cache entry. r=mayhemer 2017-02-02 22:15:00 -05:00
Tim Huang
f747db3bbd Bug 1312954 - Part 1: Add the nsILoadContextInfo as one additional argument of nsILoadContextInfo.onCacheEntryInfo() and CacheStorageService::EntryInfoCallback.OnEntryInfo(). r=mayhemer 2017-02-02 22:14:00 -05:00
Joel Maher
d85b37d5f5 Bug 1335181 - add BUG_COMPONENT to netwerk/* and dom/network/* files. r=mcmanus
MozReview-Commit-ID: AeIuBnLx6IF
2017-02-02 06:33:47 -05:00
Honza Bambas
f79a461fe9 Bug 1329506 - Add missing non-null check in mozilla::net::DoUpdateExpirationTime. r=michal 2017-01-17 07:36:00 -05:00
Bill McCloskey
ef3d0f1c2e Bug 1331804 - Add more runnable names (r=ehsan)
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 16:34:37 -08:00
Wes Kocher
f7ccafcb58 Backed out 8 changesets (bug 1331804, bug 1332100) for windows vm debug dt5 failures a=backout
Backed out changeset 8bf7f0e27c6c (bug 1331804)
Backed out changeset 600c0b9026c2 (bug 1331804)
Backed out changeset 3a5b5b9ecace (bug 1331804)
Backed out changeset c76432c9954e (bug 1331804)
Backed out changeset 46a9096745e7 (bug 1332100)
Backed out changeset 8b751230fa23 (bug 1331804)
Backed out changeset 2810212347fd (bug 1331804)
Backed out changeset be72b7763910 (bug 1331804)

MozReview-Commit-ID: Ywdsr4GZ4a
2017-01-24 15:12:21 -08:00
Bill McCloskey
80aaeed2fc Bug 1331804 - Add more runnable names (r=ehsan)
MozReview-Commit-ID: 1QBmqfgY6WI
2017-01-24 10:04:55 -08:00
Andrea Marchesini
359ae91eac Bug 1328653 - Merging all the various *OriginAttributes to just one, r=huseby 2017-01-12 17:38:48 +01:00
Markus Stange
4bdc4ca0fb Bug 1323100 - Register most of the remaining threadfunc threads with the profiler. r=froydnj
As far as I can tell, this covers all the remaining threads which we start
using PR_CreateThread, except the ones that are created inside NSPR or NSS,
and except for the Shutdown Watchdog thread in nsTerminator.cpp and the
CacheIO thread. The Shutdown Watchdog thread stays alive past leak detection
during shutdown (by design), so we'd report leaks if we profiled it. The
CacheIO thread seems to stay alive past shutdown leak detection sometimes as
well.

This adds a AutoProfilerRegister stack class for easy registering and
unregistering. There are a few places where we still call
profiler_register_thread() and profiler_unregister_thread() manually, either
because registration happens conditionally, or because there is a variable that
gets put on the stack before the AutoProfilerRegister (e.g. a dynamically
generated thread name). AutoProfilerRegister needs to be the first object on
the stack because it uses its own `this` pointer as the stack top address.

MozReview-Commit-ID: 3vwhS55Yzt

--HG--
extra : rebase_source : 56dd27282e7bd09a7e7dc7ca09ccfe3a0198e7af
2017-01-05 16:34:26 +01:00
dimi
bcd217b3c0 Bug 1320402 - Move url-classifier off of using appIds. r=ehsan, gcp
MozReview-Commit-ID: IqnAVrv2c9W
2017-01-03 14:21:58 +08:00
Andrew McCreight
fccb0645ed Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj 2016-12-12 09:27:58 -05:00
Nathan Froyd
826598caba Backout aba6c73511a2 (bug 1307961) for massive test bustage resulting in a CLOSED TREE; r=alltheorange 2016-12-12 08:45:46 -05:00
Andrew McCreight
e31b5489da Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj 2016-12-12 07:58:33 -05:00
Thinker K.F. Li
db61896b15 Bug 1319669 - Handle TaskTracer at STS thread and Cache thread. r=honzab 2016-12-09 14:09:00 -05:00
Michal Novotny
eeff8dadb0 Bug 1320894 - Fixed serialization of cache index, r=valentin 2016-12-02 16:21:35 +01:00
Valentin Gosu
3c75088cde Bug 1313095 - Add telemetry to measure if cache loads are faster than network loads r=michal
MozReview-Commit-ID: C6kMSPw8gxv
* * *
[mq]: bug1313095-telemetry-reval.patch

MozReview-Commit-ID: 8jwMgq0cx3Z
2016-11-10 16:14:34 +01:00
Michal Novotny
53e5e52ac1 Bug 1313095 - Preserve cache queue length for logging and telemetry r=honzab
MozReview-Commit-ID: 2PbkAm78xz8
2016-11-10 16:14:23 +01:00
Michal Novotny
2b03d7b575 Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-08 21:11:30 +01:00
Carsten "Tomcat" Book
dbc8d15cba Backed out changeset bd16c2fde4bf (bug 1201042) for bc test failures 2016-11-07 12:58:23 +01:00
Michal Novotny
55b3501a07 Bug 1201042 - Update HTTP cache index format to work with OriginAttributes' suffix, r=honzab 2016-11-07 10:28:46 +01:00
Jacek Caban
dfd458e907 Bug 1288204 - cross-compilation fixup. 2016-11-04 15:40:22 +01:00
Michal Novotny
f3ecdc91f2 Bug 1311361 - Crash in mozilla::net::CacheFileChunkBuffer::SetDataSize, r=honzab 2016-10-24 20:47:56 +02:00
Michal Novotny
9b2bf11843 Bug 1310205 - remove MOZ_ASSERT(entry->mRec->mFrecency == 0 || entry->mRec->mFrecency > mOldFrecency)), r=honzab 2016-10-17 15:39:57 +02:00
Honza Bambas
a604390796 Bug 1294183 - Make HTTP cache write leader-class resources with more priority, r=michal 2016-10-12 10:32:00 +02:00
Yoshi Huang
2a51f65d99 Bug 1237152 - rename clear-origin-data to clear-origin-attributes-data, r=smaug
find \( -name '*.cpp' -o -name '*.h' -o -name '*.js' -o -name '*.jsm' -o -name '*.idl' -o -name '*.html' \) \
-a -type f -exec sed -i 's/clear-origin-data/clear-origin-attributes-data/g' {} \;
2016-10-07 17:45:10 +08:00
Michal Novotny
e700b41079 Bug 1249304 - Optimize sorting of CacheIndex::mFrecencyArray, r=honzab 2016-10-06 11:23:52 +02:00
Honza Bambas
c9cce146d4 Bug 1306033 - Only fatal console warnings on failures of OpenAlternativeInputStream in HTTP cache. r=michal
--HG--
extra : rebase_source : 147258f504b3ce5433739b09c96ee68ffec30c0d
2016-09-29 07:26:00 -04:00
Valentin Gosu
29eff7dfe4 Bug 1231565 - (Part 3) Make alt-data responses report the correct content length r=michal
MozReview-Commit-ID: DvQP7NB4SqW
2016-09-27 10:26:00 +02:00
Valentin Gosu
76d2cd8b5d Bug 1231565 - (Part 2) Allow storing alternate data in the HTTP cache r=honzab
* Add PAltDataOutputStream.ipdl to be able to open an OutputStream to the cache entry in the child process
* AltDataOutputStreamChild/Parent are Main Thread only for now.
* Adds methods for reading and writing alt-data to nsICacheInfoChannel.idl
* Keep a ref of the cache entry after OnStopRequest in case the consumer tries to open the alt-data output stream

MozReview-Commit-ID: jlraDI97Hg
2016-04-11 05:17:02 +02:00
Honza Bambas
cd3ee4c951 Bug 1231565 - (Part 1) Basic test for alt-data representation in cache r=honzab 2016-03-22 11:42:00 +01:00
Honza Bambas
b48113987b Bug 1267820 - Fix HTTP cache2 leak after shutdown, don't setup purging timer after shutdown. r=michal 2016-09-20 06:53:00 -04:00
Michael Layzell
36e08437d0 Bug 1018486 - Part 8: Various other changes, r=smaug
MozReview-Commit-ID: B0dsomkWgEk
2016-09-07 10:50:45 -04:00
Michal Novotny
dd304b5d16 Bug 1277826 - Crash in shutdownhang | mozilla::net::CacheIndex::WriteLogToDisk, r=honzab 2016-09-04 02:39:49 +02:00
Honza Bambas
389ae20f08 Bug 1288204 - Use CancelSynchronousIo Win32 function to cancel blocking I/O on the HTTP cache thread. r=michal
--HG--
extra : rebase_source : 996af543772b29c36fb2c8eeee7a8fa8b08dac68
2016-08-10 10:50:00 -04:00
Honza Bambas
a7ea3ad127 Bug 1292623 - Only write HTTP cache entries' metadata after shutdown. r=michal
--HG--
extra : rebase_source : 0ad5bde99a6fc969f7ec6033cd7010b425f1504f
2016-08-26 05:05:00 -04:00
James Andreou
4c787b8989 Bug 1282882 - Remove LoadContextInfo and LoadContext private browsing flags; r=jdm,mayhemer 2016-08-26 13:06:48 -04:00
Nicholas Nethercote
c2306345d5 Bug 1297658 - Avoid unnecessary checking in memory reporters. r=erahm.
This patch removes checking of all the callback calls in memory reporter
CollectReport() functions, because it's not useful.

The patch also does some associated clean-up.

- Replaces some uses of nsIMemoryReporterCallback with the preferred
  nsIHandleReportCallback typedef.

- Replaces aCallback/aCb/aClosure with aHandleRepor/aData for CollectReports()
  parameter names, for consistency.

- Adds MOZ_MUST_USE/[must_use] in a few places in nsIMemoryReporter.idl.

- Uses the MOZ_COLLECT_REPORT macro in all suitable places.

Overall the patch reduces code size by ~300 lines and reduces the size of
libxul by about 37 KiB on my Linux64 builds.

--HG--
extra : rebase_source : e94323614bd10463a0c5134a7276238a7ca1cf23
2016-08-24 15:23:45 +10:00
Honza Bambas
425509d685 Bug 1289164 - Make about:cache not modify cache entry state on display. r=michal
--HG--
extra : rebase_source : b64fbced196064b78e8f6e1be6e566fe5233c8ab
2016-08-09 11:23:00 -04:00
Honza Bambas
fe911e63d8 Bug 1289163 - Make sure no HTTP cache entry file is created when URL opened as read-only. r=michal
--HG--
extra : rebase_source : ebcaa166a942b54120dbb84e415bcda44b632fec
2016-08-09 11:19:00 -04:00
Kan-Ru Chen
b6d880aca1 Bug 1297276 - Rename mfbt/unused.h to mfbt/Unused.h for consistency. r=froydnj
The patch is generated from following command:

  rgrep -l unused.h|xargs sed -i -e s,mozilla/unused.h,mozilla/Unused.h,

MozReview-Commit-ID: AtLcWApZfES


--HG--
rename : mfbt/unused.h => mfbt/Unused.h
2016-08-24 14:47:04 +08:00
Michal Novotny
46b5c2fb6e Bug 1258747 - Support for alternative data in CacheFile, r=honzab 2016-08-17 12:58:44 +02:00
Michael Layzell
eea03e9e4d Bug 1293364 - Refactor out duplicate typedefs in xpidl, r=mayhemer
MozReview-Commit-ID: 6lJxrqqBTk8
2016-08-10 11:11:42 -04:00
Honza Bambas
b5e7290efb Bug 1292547 - Kill() doomed CacheFile when only refered by the writer, r=michal 2016-08-05 11:05:00 +02:00
Honza Bambas
d665d2f45c Bug 1292509 - Mark CacheFileHandles invalid ASAP we can't read metadata, r=michal 2016-08-05 11:10:00 +02:00
Honza Bambas
237faab5b3 Bug 1285476 - Let appcache double-cache resources that are cross origin, r=michal 2016-07-27 13:08:00 +02:00
Nicholas Nethercote
e7f10a07fd Bug 1293603 (part 2) - Make Run() declarations consistent. r=erahm.
This patch makes most Run() declarations in subclasses of nsIRunnable have the
same form: |NS_IMETHOD Run() override|.

As a result of these changes, I had to add |override| to a couple of other
functions to satisfy clang's -Winconsistent-missing-override warning.

--HG--
extra : rebase_source : 815d0018b0b13329bb5698c410f500dddcc3ee12
2016-08-08 12:18:10 +10:00
Michal Novotny
67b220d054 Bug 1291347 - Make CacheFileContextEvictor::EvictEntries shutdown aware, r=honzab 2016-08-09 20:29:40 +02:00
Michal Novotny
31663f7edd Bug 1268587 - Don't try to create cache2 dirs on and on when it once fails, r=honzab 2016-08-09 20:17:04 +02:00
Michal Novotny
dbb581c9f8 Bug 1276920 - Limit number of tries to find unused file name for doomed entry file, r=honzab 2016-07-30 00:55:46 +02:00