shindli
6bb3487209
Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE
2020-02-12 20:13:29 +02:00
Simon Giesecke
d45525793f
Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D60980
2020-02-12 17:24:41 +00:00
Emilio Cobos Álvarez
3f4ce376a6
Bug 1599615 - Make some necko code less nsresult-happy. r=kershaw,valentin
...
Stuff that's infallible and not virtual has no reason to return an nsresult.
Differential Revision: https://phabricator.services.mozilla.com/D54831
2019-12-02 13:21:06 +00:00
Sylvestre Ledru
ad31adba4c
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
2019-05-01 08:47:10 +00:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Andrea Marchesini
d31d18594e
Bug 1496581 - Split nsISeekableStream in 2 classes: nsISeekableStream and nsITellableStream, f=mayhemer, r=froydnj
...
In the current code there are 3 main issues:
1. nsFileStream is not really thread-safe. There is nothing to protect the
internal members and we see crashes.
2. nsPipeInputStream doesn't implement ::Seek() method and that caused issues
in devtools when a nsHttpChannel sends POST data using a pipe. In order to fix
this, bug 1494176 added a check in nsHttpChannel: if the stream doesn't
implement ::Seek(), let's clone it. This was an hack around nsPipeInputStream,
and it's bad.
3. When nsHttpChannel sends POST data using a file stream, nsFileStream does
I/O on main-thread because of the issue 2. Plus, ::Seek() is called on the
main-thread causing issue 1.
Note that nsPipeInputStream implements only ::Tell(), of the nsISeekableStream
methods. It doesn't implement ::Seek() and it doesn't implement ::SetEOF().
With this patch I want to fix point 2 and point 3 (and consequentially issue 1
- but we need a separate fix for it - follow up). The patch does:
1. it splits nsISeekableStream in 2 interfaces: nsITellableStream and
nsISeekableStream.
2. nsPipeInputStream implements only nsITellableStream. Doing this, we don't
need the ::Seek() check for point 2 in nsHttpChannel: a simple QI check is
enough.
3. Because we don't call ::Seek() in nsHttpChannel, nsFileStream doesn't do I/O
on the main-thread, and we don't crash doing so.
2018-10-18 13:35:35 +02:00
Sylvestre Ledru
18b61b2809
Bug 1472945 - Remove some deadcode introduced by bug 1470355 r=valentin
...
MozReview-Commit-ID: 46IcpU2uw5o
2018-07-03 10:38:46 +02:00
Michal Novotny
56465f509c
Bug 1470355 - Firefox is unresponsive when visiting https://www.youtube.com/premium , r=valentin
...
This patch avoids returning NS_BASE_STREAM_WOULD_BLOCK from CacheFileInputStream::ReadSegments when it was called with aCount=0.
2018-07-02 00:26:00 +03:00
Dorel Luca
92a72ef340
Backed out 2 changesets (bug 1470355) for causing multiple failures
...
Backed out changeset 50b0bfa64b2c (bug 1470355)
Backed out changeset 198a4644c09a (bug 1470355)
2018-07-02 15:06:11 +03:00
Michal Novotny
3ed1b2744c
Bug 1470355 - Firefox is unresponsive when visiting https://www.youtube.com/premium , r=valentin
...
This patch avoids returning NS_BASE_STREAM_WOULD_BLOCK from CacheFileInputStream::ReadSegments when it was called with aCount=0.
2018-07-02 00:26:00 +03:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Andi-Bogdan Postelnicu
99cba2dd23
Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin
...
MozReview-Commit-ID: 666LNaHyiuQ
2018-04-30 19:46:04 +03:00
Nathan Froyd
d763323722
Bug 1437604 - remove NS_INTERFACE_MAP_END_THREADSAFE; r=mystor
...
This macro is identical to NS_INTERFACE_MAP_END and encourages the
reader to think that there's something extra-special threadsafe about QI
implementations that use the macro, when in reality there's nothing of
the sort.
2018-02-12 14:36:46 -05:00
Michal Novotny
10ea456159
Bug 1401224 - Do not call aWriter with no data in CacheFileInputStream::ReadSegments, r=valentin
2017-10-03 16:48:16 +02:00
Shih-Chiang Chien
9736fb321b
Bug 1372065 - fix cppcheck linter error in Necko. r=jduell
...
For netwerk/cache2/CacheFileInputStream.cpp:148 and netwerk/protocol/http/nsHttpHeaderArray.cpp:358,
missing "()" in the if statement.
For netwerk/base/rust-url-capi/test/test.cpp:29, netwerk/streamconv/converters/nsHTTPCompressConv.cpp:297,
and netwerk/streamconv/converters/nsHTTPCompressConv.cpp:300, null pointer will be returned but the
original memory buffer will not be freed if |realloc| fails. We should remember the original memory
buffer and free it if error is detected.
MozReview-Commit-ID: 2ggXsL73jYV
2017-06-12 11:51:26 +08:00
Michal Novotny
e8edd2b779
Bug 1368887 - Crash in mozilla::net::CacheFile::IsKilled, r=valentin, r=honzab
...
CacheFile::OnChunkRead and CacheFile::OnChunkWritten now correctly handle discarded chunks. It's now also ensured that the chunk which is going to be discarded isn't references by any input stream.
2017-06-27 22:57:38 +02:00
Bill McCloskey
5178a6e2ce
Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
...
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-14 14:44:04 -07:00
Wes Kocher
c397d66c1e
Backed out changeset 45b5cadadc22 (bug 1372426) because it's blocking a backout a=backout
...
MozReview-Commit-ID: Jl0zxef8R9k
2017-06-13 17:48:38 -07:00
Bill McCloskey
c59bb80767
Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
...
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-13 15:24:08 -07:00
Wes Kocher
88b69eef98
Backed out changeset e8a63038d787 (bug 1372426) for build failures in nsStringStream.cpp a=backout
...
MozReview-Commit-ID: 8ci8nKoiLhz
2017-06-13 15:20:12 -07:00
Bill McCloskey
99ffe24855
Bug 1372426 - More detailed names for nsInputStreamReadyEvent (r=erahm)
...
MozReview-Commit-ID: 6beE0eMCxg7
2017-06-13 14:53:26 -07:00
Bill McCloskey
5aec5bf1e9
Bug 1365101 - Convert NS_GetCurrentThread uses in netwerk/ (r=meyhemer)
...
MozReview-Commit-ID: IHBt6XAG8em
2017-06-12 20:21:43 -07:00
Tom Tromey
a4b717ab39
Bug 1060419 - make log_print use Printf.h, r=froydnj
...
MozReview-Commit-ID: BIZ1GQEZ1vs
2016-12-15 20:16:31 -07:00
Andrew McCreight
209d4ee048
Bug 1323042 - forbid MOZ_COUNT_{CTOR,DTOR} for nsISupports classes; r=froydnj
2016-12-12 09:27:58 -05:00
Nathan Froyd
f2d50c26f4
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
2f93d6e48d
Bug 1307961 - require consistent bloatview reporting for nsISupports classes; r=froydnj
2016-12-12 07:58:33 -05:00
Michal Novotny
6265bfdf2d
Bug 1258747 - Support for alternative data in CacheFile, r=honzab
2016-08-17 12:58:44 +02:00
Michal Novotny
4a34f169ee
Bug 1279246 - Hang due to CacheFileInputStream deadlock, r=honzab
2016-07-12 17:58:38 +02:00
Honza Bambas
2a4f2863f9
Bug 1247644 - Don't do any I/O on doomed and unused HTTP cache entries, r=michal
2016-02-12 14:45:00 +01:00
Birunthan Mohanathas
a29151dc87
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
Jeff Muizelaar
09ddc12142
Bug 1114999 - Part 3: Use automatic memory management for mObjsToRelease; r=novotny
2015-01-15 18:19:26 -05:00
Michal Novotny
357ecb53d6
Bug 1042192 - Use Cache2 I/O thread for callbacks from CacheFileIOManager, r=sworkman
2014-08-18 15:36:27 +02:00
Michal Novotny
a6c0cdb7d5
Bug 1035411 - Suspect lock handling in cache2, r=honzab
2014-07-16 10:57:52 +02:00
Michal Novotny
805d7068eb
Bug 1013395 - HTTP cache v2: have a limit for write backlog, r=honzab
2014-07-10 07:59:29 +02:00
Honza Bambas
512ae967c9
Bug 1013587 - HTTP cache v2: Start preload on input stream open for existing entries, r=michal
2014-06-12 18:04:42 +02:00
Michal Novotny
c8c8260630
Bug 1013638 - CacheFileIn(Out)putStream::AsyncWait() doesn't respect eventTarget argument, r=honzab
2014-06-12 18:04:41 +02:00
Michal Novotny
005cc67a1f
Bug 1007071 - Check cache entry size in CacheFileOutputStream::Write(), r=honzab
2014-05-19 14:21:18 +02:00
Michal Novotny
23213e6328
Bug 1010783 - Base CacheFileInputStream::Read on ReadSegments, r=honzab
2014-05-18 09:31:38 +02:00
Honza Bambas
d8b59a3ef3
Bug 1010221 - Let CacheFileInputStream::ReadSegments loop over all preloaded chunks, r=michal
2014-05-15 19:24:55 +02:00
Michal Novotny
923ff3c27e
Bug 913819 - HTTP cache v2: preload several chunks in advance in input stream to speed up reading, r=honzab
2014-05-02 20:15:14 +02:00
Michal Novotny
8a82e0e11a
Bug 913812 - HTTP cache v2: properly propagate errors through the cache file code, r=honzab
2014-04-22 13:23:17 +02:00
Ehsan Akhgari
7ce1aa5eb8
Bug 798158 - Part 1: Use a pointer-sized type to store refcounts internally; r=bsmedberg
2014-03-27 16:38:33 -04:00
Kyle Huey
ea94e7d568
Bug 967364: Rename already_AddRefed::get to take. r=bsmedberg
2014-03-15 12:00:15 -07:00
Honza Bambas
3d5cd4451d
Bug 964039 - Memory used by the new cache backend is not reported, r=michal
2014-02-27 00:11:40 +01:00
Ed Morley
599ee2ead7
Backed out changeset 240333c3d2c1 (bug 964039)
2014-03-05 17:24:55 +00:00
Honza Bambas
3070b230c5
Bug 964039 - Memory used by the new cache backend is not reported, r=michal
2014-02-27 00:11:40 +01:00
Honza Bambas
9728122573
Bug 924938 - Correctly include CacheLog.h as the first file in a module to force logging in opt builds, r=michal
2013-10-15 20:08:26 +02:00
Michal Novotny
21c49d0398
Bug 913807 - HTTP cache v2: file I/O, off by default, r=honzab
2013-09-20 11:11:26 +02:00