dylan
d18f5b06ba
Bug 1870582 - added mChannelId attribute to nsFileChannel. r=valentin,necko-reviewers,profiler-reviewers,canaltinova
...
Differential Revision: https://phabricator.services.mozilla.com/D196137
2024-02-10 00:19:44 +00:00
Noemi Erli
7e4586cf03
Backed out 2 changesets (bug 1870580, bug 1870582) for causing devtools failures
...
Backed out changeset 5608a954442b (bug 1870580)
Backed out changeset 687b59c68abe (bug 1870582)
2024-02-07 18:17:19 +02:00
dylan
915027a4ec
Bug 1870582 - added mChannelId attribute to nsFileChannel. r=valentin,necko-reviewers,profiler-reviewers,canaltinova
...
Differential Revision: https://phabricator.services.mozilla.com/D196137
2024-02-07 15:15:36 +00:00
Iulian Moraru
2967a3e787
Backed out changeset fee86ce779f5 (bug 1000540) for causing xpcshell failures on test_pause.js. CLOSED TREE
2023-12-15 01:35:00 +02:00
dylan
207451116c
Bug 1000540 - added mChannelId attribute to nsFileChannel. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D196137
2023-12-14 16:36:19 +00:00
Norisz Fay
f453ba1925
Backed out changeset 8d6eab6d2a21 (bug 1000540) for causing Bug 1869851 CLOSED TREE
2023-12-13 20:21:06 +02:00
dylan
80ebcd380b
Bug 1000540 - added mChannelId attribute to nsFileChannel. r=valentin,necko-reviewers
...
Differential Revision: https://phabricator.services.mozilla.com/D196137
2023-12-12 21:51:38 +00:00
serge-sans-paille
a1142960fb
Bug 1824513 - Make netwerk/protocol/file buildable outside of a unified build environment r=necko-reviewers,valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D173613
2023-03-30 13:48:33 +00:00
Nika Layzell
091cb51c2d
Bug 1793463 - Part 6: Remove nsIProtocolHandler.{defaultPort,protocolFlags}, r=necko-reviewers,valentin
...
This removes all implementations of these types. Some implementations in JS
code were also removed in the previous part, when updating tests to use
`Services.io.registerProtocolHandler`.
Code which used to access these members should go through the IOService now
instead.
Differential Revision: https://phabricator.services.mozilla.com/D162805
2022-12-01 15:43:19 +00:00
Marian-Vasile Laza
bf84df153e
Backed out 7 changesets (bug 1793463) for causing bustages on nsIOService.cpp. CLOSED TREE
...
Backed out changeset 47c3acb30de2 (bug 1793463)
Backed out changeset 71afe900eb17 (bug 1793463)
Backed out changeset d168599a269e (bug 1793463)
Backed out changeset d0f18d300818 (bug 1793463)
Backed out changeset a116e6f089f2 (bug 1793463)
Backed out changeset eba1123c8b56 (bug 1793463)
Backed out changeset 68a3eb8a3057 (bug 1793463)
2022-12-01 02:30:02 +02:00
Nika Layzell
b98575e30b
Bug 1793463 - Part 6: Remove nsIProtocolHandler.{defaultPort,protocolFlags}, r=necko-reviewers,valentin
...
This removes all implementations of these types. Some implementations in JS
code were also removed in the previous part, when updating tests to use
`Services.io.registerProtocolHandler`.
Code which used to access these members should go through the IOService now
instead.
Differential Revision: https://phabricator.services.mozilla.com/D162805
2022-11-30 18:13:43 +00:00
Valentin Gosu
b559b0c49b
Bug 1722925 - Remove NS_MutatorMethod in favor of templated nsIURIMutator::Apply r=necko-reviewers,kershaw
...
This basically reverts the changes in 5caa81103c00 (bug 1435671). In that bug
we switched from having a templated method to using a templated function
that returned a lambda because the templated method caused a binary size
regression on windows (MSVC). Since Firefox 67 we no longer support MSVC.
Using a lambda also required capturing the arguments by value, so it was
slightly inefficient.
This patch removes NS_MutatorMethod and makes the Apply method a template.
This improves perfomance as we can just pass the arguments to the called
function, without worrying about needing to copy them.
Since MSVC is not supported anymore, and clang and gcc didn't report a
binary size regression, this is a much better solution.
Differential Revision: https://phabricator.services.mozilla.com/D122081
2021-08-12 07:40:58 +00:00
Iulian Moraru
d9303dbb1c
Backed out 2 changesets (bug 1722925) for causing reftest failures in color_quads. CLOSED TREE
...
Backed out changeset 95a6eacbef27 (bug 1722925)
Backed out changeset 2e2a98aeca5c (bug 1722925)
2021-08-12 12:22:34 +03:00
Valentin Gosu
3c32f531f0
Bug 1722925 - Remove NS_MutatorMethod in favor of templated nsIURIMutator::Apply r=necko-reviewers,kershaw
...
This basically reverts the changes in 5caa81103c00 (bug 1435671). In that bug
we switched from having a templated method to using a templated function
that returned a lambda because the templated method caused a binary size
regression on windows (MSVC). Since Firefox 67 we no longer support MSVC.
Using a lambda also required capturing the arguments by value, so it was
slightly inefficient.
This patch removes NS_MutatorMethod and makes the Apply method a template.
This improves perfomance as we can just pass the arguments to the called
function, without worrying about needing to copy them.
Since MSVC is not supported anymore, and clang and gcc didn't report a
binary size regression, this is a much better solution.
Differential Revision: https://phabricator.services.mozilla.com/D122081
2021-08-12 07:40:58 +00:00
Valentin Gosu
56cd5036af
Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 12:35:16 +00:00
Butkovits Atila
1f3e4dc865
Backed out changeset c4b44c4ef15b (bug 1714307) for causing build bustages on nsHTTPCompressConv.h. CLOSED TREE
2021-06-04 13:53:37 +03:00
Valentin Gosu
5b4ead87fd
Bug 1714307 - Autofix static-analysis warnings in netwerk/ r=necko-reviewers,kershaw
...
Differential Revision: https://phabricator.services.mozilla.com/D116701
2021-06-04 10:00:55 +00:00
Kagami Sascha Rosylight
00a0bb94ac
Bug 1658563 - Support .lnk files in file: protocol r=necko-reviewers,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D90283
2020-09-22 07:26:33 +00:00
Simon Giesecke
a69d79b6db
Bug 1648010 - Replace uses of NS_LITERAL_STRING/NS_LITERAL_CSTRING macros by _ns literals. r=geckoview-reviewers,jgilbert,agi,hsivonen,froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D80860
2020-07-01 08:29:29 +00:00
Valentin Gosu
b5b7df0e54
Bug 1536744 - Remove nsIProtocolHandler.newURI r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D30703
2019-05-28 13:49:27 +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
Valentin Gosu
ea3eb469ce
Bug 1532324 - Remove manual NS_RELEASE from netwerk/* r=JuniorHsu
...
Differential Revision: https://phabricator.services.mozilla.com/D22005
2019-03-05 18:43:02 +00:00
Christoph Kerschbaumer
4aebbff842
Bug 1528971: Move newChannel2 being the only implementation within nsIProtocolHandler.idl. r=valentin
2019-02-19 19:20:37 +01:00
Ehsan Akhgari
498e2df734
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
2019-01-18 10:16:18 +01:00
Tooru Fujisawa
5ef6d9cc06
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Benjamin Bouvier
5e1b39e9bd
Bug 1511383: Update vim modelines after clang-format; r=sylvestre
...
- modify line wrap up to 80 chars; (tw=80)
- modify size of tab to 2 chars everywhere; (sts=2, sw=2)
2018-11-30 16:39:55 +01: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
Kate McKinley
f6b14c7473
Bug 1328695 - Use protocol flags to determine if a URI is potentially trustworthy r=ckerschb, r=dveditz, r=mcmanus, r=bz
...
Before this change, the trusted URI schemes, based on a string whitelist, were:
https, file, resource, app, moz-extension and wss.
This change removes "app" from the list (since we don't implement it),
and adds "about" to the list (because we control the delivery of that).
2018-05-31 07:51:42 +02: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
Valentin Gosu
a3f7fd8d49
Bug 1442242 - Add nsIURIMutator method to mark when the URI implementation should support nsIFileURL r=mayhemer
...
* This is needed in order to make the constructors of URI implementations private
MozReview-Commit-ID: 8dddDXbmrfF
2018-03-20 12:52:43 +01:00
Noemi Erli
ce20343c41
Backed out 3 changesets (bug 1442242) for fatal error LNK1120: 1 unresolved externals bustages on a CLOSED TREE
...
Backed out changeset 9f37df3c62e1 (bug 1442242 )
Backed out changeset 65b8727bfe76 (bug 1442242 )
Backed out changeset 88130a542fb3 (bug 1442242 )
2018-03-20 16:45:34 +02:00
Valentin Gosu
4d58ff887b
Bug 1442242 - Add nsIURIMutator method to mark when the URI implementation should support nsIFileURL r=mayhemer
...
* This is needed in order to make the constructors of URI implementations private
MozReview-Commit-ID: 8dddDXbmrfF
2018-03-20 12:52:43 +01:00
Valentin Gosu
717fe64f73
Bug 1434766 - Make nsIFileURL attributes readonly r=mayhemer
...
MozReview-Commit-ID: AN5EzyuuKuJ
2018-02-26 05:24:09 +01:00
arthur.iakab
fcf300a2b9
Backed out changeset 56336c4873fe (bug 1434766) for build bustages on a CLOSED TREE
2018-02-27 17:14:15 +02:00
Valentin Gosu
f36d503dc2
Bug 1434766 - Make nsIFileURL attributes readonly r=mayhemer
...
MozReview-Commit-ID: AN5EzyuuKuJ
2018-02-26 05:24:09 +01:00
Valentin Gosu
45366ffe50
Bug 1433958 - Change code that sets nsIURI.query to use nsIURIMutator r=mayhemer
...
MozReview-Commit-ID: JKW8IsaFY10
2018-02-26 20:43:46 +01:00
Valentin Gosu
58b69cefa1
Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
...
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.
MozReview-Commit-ID: Jjqp7gGLG1D
2018-02-21 01:00:54 +01:00
[email protected]
b62c960098
Backed out changeset c9dcce0a1068 (bug 1435671) for build bustages on nsIURIMutator.h. CLOSED TREE
2018-02-21 00:06:46 +02:00
Valentin Gosu
e594a13815
Bug 1435671 - Reduce binary size by making NS_MutateURI.Apply not be a templated method r=mayhemer
...
We instead add a templated method NS_MutatorMethod that returns a std::function<nsresult(nsIURIMutator*)> which Apply then calls with mMutator as an argument.
The function returned by NS_MutatorMethod performs a QueryInterface, then calls the passed method with arguments on the result.
MozReview-Commit-ID: Jjqp7gGLG1D
2018-02-20 22:39:40 +01:00
Valentin Gosu
a91ffced35
Bug 1432187 - Change code to use nsIStandardURLMutator.{init,setDefaultPort} r=mayhemer
...
MozReview-Commit-ID: K2Uy9ET3Ay6
2018-01-24 20:33:02 +01:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Honza Bambas
d9b2cc5343
Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz, r=mikedeboer
2017-05-30 18:07:59 +02:00
Honza Bambas
00cefdc449
Backout of 7f28c1084c47 (bug 1319111) for security checks breakage, r=me
2017-05-25 18:16:02 +02:00
Honza Bambas
0487f42c85
Bug 1319111 - Expose 'result principal URI' on LoadInfo as a source for NS_GetFinalChannelURI (removes some use of LOAD_REPLACE flag). r=bz
2017-05-23 08:09:00 -04:00
Nicholas Hurley
9c34f3fe2f
Bug 1345094 - make http redirects to file:// uris work under e10s. r=mayhemer
...
MozReview-Commit-ID: J4IheswoeMZ
2017-04-12 11:43:50 -07:00
Valentin Gosu
cf2bbd8e7c
Bug 1278188 - Crash accessing local directory named <name>.desktop r=mcmanus
...
MozReview-Commit-ID: 1mchrs0mGGR
2016-06-10 00:51:35 +03:00
Patrick McManus
c07974e685
Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu
...
---
netwerk/base/ARefBase.h | 2 ++
netwerk/base/CaptivePortalService.cpp | 1 +
netwerk/base/CaptivePortalService.h | 1 +
netwerk/base/EventTokenBucket.cpp | 4 +++-
netwerk/base/LoadContextInfo.cpp | 3 +++
netwerk/base/LoadInfo.cpp | 3 +++
netwerk/base/MemoryDownloader.cpp | 1 +
netwerk/base/Predictor.cpp | 1 +
netwerk/base/RedirectChannelRegistrar.h | 1 +
netwerk/base/nsBaseChannel.cpp | 1 +
netwerk/base/nsChannelClassifier.cpp | 1 +
netwerk/base/nsDirectoryIndexStream.cpp | 3 ++-
netwerk/base/nsDownloader.cpp | 1 +
netwerk/base/nsIOService.cpp | 1 +
netwerk/base/nsIncrementalDownload.cpp | 3 +++
netwerk/base/nsNetUtil.cpp | 4 ++++
netwerk/base/nsNetUtil.h | 1 +
netwerk/base/nsProtocolProxyService.cpp | 1 +
netwerk/base/nsSecCheckWrapChannel.cpp | 2 ++
netwerk/base/nsUDPSocket.cpp | 4 +++-
netwerk/cache/nsDiskCacheBinding.cpp | 2 +-
netwerk/cache/nsDiskCacheDeviceSQL.cpp | 2 ++
netwerk/cache/nsMemoryCacheDevice.cpp | 2 +-
netwerk/cache2/CacheFileUtils.cpp | 2 ++
netwerk/cache2/CacheStorageService.h | 1 +
netwerk/ipc/NeckoParent.cpp | 1 +
netwerk/ipc/RemoteOpenFileChild.cpp | 1 +
netwerk/protocol/about/nsAboutBloat.cpp | 1 +
netwerk/protocol/about/nsAboutCacheEntry.cpp | 1 +
netwerk/protocol/about/nsAboutProtocolHandler.cpp | 1 +
netwerk/protocol/data/DataChannelParent.cpp | 1 +
netwerk/protocol/file/nsFileProtocolHandler.cpp | 1 +
netwerk/protocol/ftp/FTPChannelParent.cpp | 2 ++
netwerk/protocol/ftp/FTPChannelParent.h | 1 +
netwerk/protocol/ftp/nsFtpConnectionThread.cpp | 1 +
netwerk/protocol/ftp/nsFtpProtocolHandler.h | 1 +
netwerk/protocol/http/Http2Compression.cpp | 1 +
netwerk/protocol/http/Http2Session.cpp | 1 +
netwerk/protocol/http/Http2Stream.h | 2 ++
netwerk/protocol/http/HttpBaseChannel.cpp | 4 ++++
netwerk/protocol/http/HttpBaseChannel.h | 1 +
netwerk/protocol/http/HttpChannelChild.cpp | 25 ++--------------------
netwerk/protocol/http/HttpChannelChild.h | 24 +++++++++++++++++++++
netwerk/protocol/http/HttpChannelParent.cpp | 1 +
netwerk/protocol/http/HttpChannelParent.h | 1 +
.../protocol/http/HttpChannelParentListener.cpp | 1 +
netwerk/protocol/http/HttpChannelParentListener.h | 1 +
netwerk/protocol/http/InterceptedChannel.cpp | 1 +
netwerk/protocol/http/NullHttpChannel.cpp | 1 +
netwerk/protocol/http/NullHttpTransaction.cpp | 1 +
netwerk/protocol/http/PackagedAppService.cpp | 14 ++++++++++--
netwerk/protocol/http/PackagedAppService.h | 4 +++-
netwerk/protocol/http/PackagedAppVerifier.cpp | 1 +
netwerk/protocol/http/nsCORSListenerProxy.cpp | 2 +-
netwerk/protocol/http/nsHttpBasicAuth.cpp | 1 +
netwerk/protocol/http/nsHttpChannel.cpp | 2 ++
netwerk/protocol/http/nsHttpChunkedDecoder.cpp | 1 +
netwerk/protocol/http/nsHttpConnectionInfo.cpp | 2 ++
netwerk/protocol/http/nsHttpConnectionMgr.cpp | 1 +
netwerk/protocol/http/nsHttpDigestAuth.cpp | 1 +
netwerk/protocol/viewsource/nsViewSourceHandler.h | 4 ++++
.../protocol/websocket/BaseWebSocketChannel.cpp | 1 +
.../websocket/WebSocketEventListenerParent.cpp | 1 +
.../protocol/websocket/WebSocketEventService.cpp | 3 +++
netwerk/protocol/websocket/WebSocketFrame.cpp | 2 ++
netwerk/protocol/wyciwyg/nsWyciwygChannel.cpp | 1 +
.../protocol/wyciwyg/nsWyciwygProtocolHandler.cpp | 1 +
netwerk/streamconv/converters/mozTXTToHTMLConv.cpp | 1 +
.../streamconv/converters/nsFTPDirListingConv.cpp | 1 +
.../streamconv/converters/nsHTTPCompressConv.cpp | 2 ++
netwerk/streamconv/converters/nsHTTPCompressConv.h | 1 +
netwerk/streamconv/converters/nsIndexedToHTML.cpp | 1 +
netwerk/streamconv/converters/nsMultiMixedConv.cpp | 2 ++
netwerk/streamconv/converters/nsTXTToHTMLConv.cpp | 2 ++
netwerk/streamconv/converters/nsUnknownDecoder.cpp | 2 ++
75 files changed, 147 insertions(+), 32 deletions(-)
2016-01-08 20:20:50 -05:00
Christoph Kerschbaumer
1def2c93a9
Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - netwerk/ changes (r=sworkman,sicking)
2014-12-12 09:07:36 -08:00
Phil Ringnalda
6c35b711bb
Backed out 15 changesets (bug 1087442)
...
Backed out changeset 3f4166fb5e37 (bug 1087442)
Backed out changeset 0c9c9123a0a9 (bug 1087442)
Backed out changeset 1d85d298042d (bug 1087442)
Backed out changeset 51f3ce397d68 (bug 1087442)
Backed out changeset f3b81a623692 (bug 1087442)
Backed out changeset 472e8fa74596 (bug 1087442)
Backed out changeset 12f97df7b79c (bug 1087442)
Backed out changeset 253cde88d3c5 (bug 1087442)
Backed out changeset b44f9ebd56cb (bug 1087442)
Backed out changeset 48e412887726 (bug 1087442)
Backed out changeset a2c76343f7a9 (bug 1087442)
Backed out changeset 0b5b07cfef0e (bug 1087442)
Backed out changeset 2931c35342a4 (bug 1087442)
Backed out changeset 681ce9dcad64 (bug 1087442)
Backed out changeset 47c505856954 (bug 1087442)
2014-12-11 21:58:21 -08:00
Christoph Kerschbaumer
fa1c0de2eb
Bug 1087442 - Attach LoadInfo inside each individual ProtocolHandler - netwerk/ changes (r=sworkman,sicking)
2014-12-11 20:46:47 -08:00