1. 05 Dec, 2019 1 commit
  2. 03 May, 2019 2 commits
  3. 02 May, 2019 2 commits
  4. 01 May, 2019 2 commits
  5. 25 Apr, 2019 1 commit
    • Michal Novotny's avatar
      Bug 1506534 - Collect telemetry to measure how much penalty we will experience... · 1efe8b8b
      Michal Novotny authored
      Bug 1506534 - Collect telemetry to measure how much penalty we will experience with first-party cache isolation, r=mayhemer, data-r=chutten
      
      Whenever a cache entry is accessed during a document load, eTLD+1 of the top level document is added to the entry's metadata. Number of accessing sites is also stored in cache index. So we know how many copies of each entry would we have if we did a first party isolation without data deduplication. The telemetry is sent every time we write 2GB to the cache and then the data is reset. Telemetry report ID is an identifier of the telemetry cycle and it's used to invalidate eTLD+1 hashes in all cache entries.
      
      Differential Revision: https://phabricator.services.mozilla.com/D26425
      
      --HG--
      extra : moz-landing-system : lando
      1efe8b8b
  6. 22 Mar, 2019 1 commit
  7. 21 Mar, 2019 2 commits
  8. 30 Nov, 2018 1 commit
  9. 30 Apr, 2018 1 commit
  10. 26 Jul, 2017 1 commit
    • Kartikaya Gupta's avatar
      Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj · ba4b3b91
      Kartikaya Gupta authored
      We have a minimum requirement of VS 2015 for Windows builds, which supports
      the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
      any more, and can just use %zu and friends directly everywhere.
      
      MozReview-Commit-ID: 6s78RvPFMzv
      
      --HG--
      extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
      ba4b3b91
  11. 29 Jun, 2017 1 commit
  12. 22 Jun, 2017 1 commit
  13. 20 Jun, 2017 1 commit
  14. 22 Jun, 2017 3 commits
    • Michal Novotny's avatar
      Bug 1325336 - Generate statistics for cache performance on the given HW, r=valentin, r=honzab · 51fdc64d
      Michal Novotny authored
      CachePerfStats gathers performance data for single open, read and write operations as well as the whole cache entry opening. It maintains long term and short term average. The long term average filters out excessive values and it represents and average time for a given operation when the cache is not busy. The short term average represents the current cache speed. By comparing these two stats we know pretty quickly that the cache is getting slower and then we race the cache with network immediately without a delay. Otherwise the delay is based on the average cache entry open time.
      51fdc64d
    • Carsten "Tomcat" Book's avatar
    • Michal Novotny's avatar
      Bug 1325336 - Generate statistics for cache performance on the given HW, r=valentin, r=honzab · 7f22d3a3
      Michal Novotny authored
      CachePerfStats gathers performance data for single open, read and write operations as well as the whole cache entry opening. It maintains long term and short term average. The long term average filters out excessive values and it represents and average time for a given operation when the cache is not busy. The short term average represents the current cache speed. By comparing these two stats we know pretty quickly that the cache is getting slower and then we race the cache with network immediately without a delay. Otherwise the delay is based on the average cache entry open time.
      7f22d3a3
  15. 23 Jun, 2017 1 commit
    • Michal Novotny's avatar
      Bug 1325336 - Generate statistics for cache performance on the given HW, r=valentin, r=honzab · 87343977
      Michal Novotny authored
      CachePerfStats gathers performance data for single open, read and write operations as well as the whole cache entry opening. It maintains long term and short term average. The long term average filters out excessive values and it represents and average time for a given operation when the cache is not busy. The short term average represents the current cache speed. By comparing these two stats we know pretty quickly that the cache is getting slower and then we race the cache with network immediately without a delay. Otherwise the delay is based on the average cache entry open time.
      87343977
  16. 04 Jul, 2017 1 commit
  17. 06 Mar, 2017 1 commit
  18. 12 Jan, 2017 1 commit
  19. 03 Jan, 2017 1 commit
  20. 16 Dec, 2016 1 commit
  21. 26 Aug, 2016 1 commit
  22. 17 Aug, 2016 1 commit
  23. 24 Aug, 2016 1 commit
  24. 11 May, 2016 1 commit
  25. 02 Mar, 2016 1 commit
    • J. Ryan Stinnett's avatar
      Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer · 2a55d065
      J. Ryan Stinnett authored
      This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
      nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
      methods that pass these values around also have name changes.
      
      Tokens such as "inBrowser" have previously been serialized into cache keys, used
      as DB column names, stored in app registries, etc.  No changes are made to any
      serialization formats.  Only runtime method and variable names are updated.
      
      No behavior changes are made in this patch, so some renamed methods may have
      nonsensical implementations.  These are corrected in subsequent patches
      focused on behavior.
      
      MozReview-Commit-ID: 66HfMlsXFLs
      2a55d065
  26. 09 Jan, 2016 1 commit
    • Patrick McManus's avatar
      Bug 1238290 - fix bad necko deps on unified_sources r=valentin.gosu · 7ed406b2
      Patrick McManus authored
      ---
       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(-)
      7ed406b2
  27. 03 Nov, 2015 1 commit
  28. 18 Oct, 2015 1 commit
    • Nathan Froyd's avatar
      Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat · 01583602
      Nathan Froyd authored
      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.
      pe...
      01583602
  29. 07 Oct, 2015 2 commits
    • Wes Kocher's avatar
      Backed out changeset 91d4539e00ce (bug 1207245) · 75ff20f5
      Wes Kocher authored
      --HG--
      rename : mfbt/RefPtr.h => mfbt/nsRefPtr.h
      75ff20f5
    • Nathan Froyd's avatar
      Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat · 89a69c82
      Nathan Froyd authored
      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.
      
       # 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
      
      --HG--
      rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
      89a69c82
  30. 11 Oct, 2015 1 commit
  31. 31 Jul, 2015 1 commit
  32. 30 Jul, 2015 1 commit
    • valenting's avatar
      Bug 1032254 - Provide a way to pin resources in the http cache r=honzab · 30be843b
      valenting authored
      --HG--
      rename : netwerk/test/unit/test_cache2-28-concurrent_read_resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29a-concurrent_read_resumable_entry_size_zero.js
      rename : netwerk/test/unit/test_cache2-29-concurrent_read_non-resumable_entry_size_zero.js => netwerk/test/unit/test_cache2-29b-concurrent_read_non-resumable_entry_size_zero.js
      30be843b
  33. 13 Aug, 2015 1 commit