Commit Graph
62 Commits
Author SHA1 Message Date
Randell Jesup 06974fe1c1 Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-10-07 19:04:02 +00:00
agoloman 09c39febaf Revert (Bug 1917965, Bug 1984198, Bug 1917970, Bug 1978496, Bug 1917974, Bug 1917965, Bug 1988076, Bug 1918741, Bug 1984157, Bug 1979087, Bug 1978494, Bug 1917976, Bug 1950965, Bug 1978495, Bug 1949981, Bug 1950972, Bug 1917975, Bug 1918013, Bug 1975014, Bug 1917982, Bug 1917963, Bug 1975024) - for causing build bustages @CacheIndex.cpp
This reverts commit 26c4a68ff7.

Revert "Bug 1978495: Make clear-site-data synchronous r=necko-reviewers,valentin"

This reverts commit 19e809294c.

Revert "Bug 1917965: Bug Fix for AddStandardHeaders and an await in TRR r=necko-reviewers,valentin"

This reverts commit 4c4a17eaeb.

Revert "Bug 1984198: Fix for ipv6 clear by principal for Compression Dictionaries r=edgul"

This reverts commit da9fc176ae.

Revert "Bug 1917970: Update handling of removing encodings for CompressionDictionaries r=necko-reviewers,valentin,kershaw"

This reverts commit 4c73126208.

Revert "Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin"

This reverts commit d7cb9a5e0b.

Revert "Bug 1917974: Move CompressionDictionaries AddAcceptAndDictionaryHeaders to run earlier r=necko-reviewers,kershaw,devtools-reviewers,bomsy"

This reverts commit df63d60f8f.

Revert "Bug 1917965: Update cache listener changes to ensure data is cached in compressed form r=necko-reviewers,kershaw"

This reverts commit 46c6d977d7.

Revert "Bug 1917970: only remove dcb and dcz Content-Encodings r=necko-reviewers,kershaw"

This reverts commit bc645c1e24.

Revert "Bug 1988076: Shutdown cleanup issues for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 22c04bad81.

Revert "Bug 1918741: Add unit tests for Compression Dictionaries r=necko-reviewers,kershaw,valentin"

This reverts commit b09a89245a.

Revert "Bug 1917974: Clean up call to GetDictionaryFor() r=valentin,necko-reviewers"

This reverts commit b4d8ad3a34.

Revert "Bug 1917965: Minor Compression Dictionary cleanup r=necko-reviewers,valentin"

This reverts commit 9ef82139ca.

Revert "Bug 1978496: Add more logs for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit a85f97ac8c.

Revert "Bug 1984157: Vary support for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 780bddc945.

Revert "Bug 1917965: Add design doc r=necko-reviewers,kershaw"

This reverts commit cf09ea9257.

Revert "Bug 1979087: Use URLPattern for matching Compression Dictionary entries r=edgul,necko-reviewers,kershaw"

This reverts commit 69720d6199.

Revert "Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin"

This reverts commit 0939a45626.

Revert "Bug 1978494: Don't use stale dictionaries, more logs, improve handling of dictionary origin reading r=necko-reviewers,valentin"

This reverts commit a2c00deb4d.

Revert "Bug 1917976: Compression Dictionary match-dest support r=necko-reviewers,valentin,kershaw"

This reverts commit bf874cae0d.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit 115be236bf.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit 62d7f7168e.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit 5076f7a779.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 77f0cd1912.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit 515eb81e07.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit 32fb24708c.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit c7c5e2b800.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit e599730050.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit 33cb96b72f.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit 2f04f4d43c.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 23e72a7efc.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit f45f89e188.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 0042928354.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit 15dec18026.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit 3dfc96583b.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit fec1a197f4.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit 5cdbe885bc.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit 642c049998.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit 19ab2d5af8.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit e31fee5400.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 93bd84a618.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit e83caa2c66.

Revert "Bug 1975024: Cleanup Cache code and locks in prep for Compression Dictionaries #necko-reviewers r=necko-reviewers,kershaw"

This reverts commit 5dd4896f18.
2025-10-07 17:29:13 +00:00
Randell Jesup 5cdbe885bc Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-10-07 15:37:46 +00:00
Atila Butkovits 59187fbc73 Revert "Bug 1917982, Bug 1917965, Bug 1984198, Bug 1917970, Bug 1978496, Bug 1917974, Bug 1988076, Bug 1918741, Bug 1978496, Bug 1984157, Bug 1979087, Bug 1978494, Bug 1917976, Bug 1950965, Bug 1978495, Bug 1949981, Bug 1950972, Bug 1917975, Bug 1918013, Bug 1975014, Bug 1978496, Bug 1917982, Bug 1917963, Bug 1975024 - Bustage fix for Compression Dictionaries" for causing failures /dictionary-compressed.tentative.https.html.
This reverts commit fed0875f9c.

Revert "Bug 1917965: Bug Fix for AddStandardHeaders and an await in TRR r=necko-reviewers,valentin"

This reverts commit 6b674e258c.

Revert "Bug 1984198: Fix for ipv6 clear by principal for Compression Dictionaries r=edgul"

This reverts commit 368f63d711.

Revert "Bug 1917970: Update handling of removing encodings for CompressionDictionaries r=necko-reviewers,valentin,kershaw"

This reverts commit e820181a13.

Revert "Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin"

This reverts commit f28af4e893.

Revert "Bug 1917974: Move CompressionDictionaries AddAcceptAndDictionaryHeaders to run earlier r=necko-reviewers,kershaw,devtools-reviewers,bomsy"

This reverts commit 1c5e6866db.

Revert "Bug 1917965: Update cache listener changes to ensure data is cached in compressed form r=necko-reviewers,kershaw"

This reverts commit 61b10d9023.

Revert "Bug 1917970: only remove dcb and dcz Content-Encodings r=necko-reviewers,kershaw"

This reverts commit de8a7623b8.

Revert "Bug 1988076: Shutdown cleanup issues for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 029f476c05.

Revert "Bug 1918741: Add unit tests for Compression Dictionaries r=necko-reviewers,kershaw,valentin"

This reverts commit fef96f00d6.

Revert "Bug 1917974: Clean up call to GetDictionaryFor() r=valentin,necko-reviewers"

This reverts commit dd77492425.

Revert "Bug 1917965: Minor Compression Dictionary cleanup r=necko-reviewers,valentin"

This reverts commit 0c8682ebee.

Revert "Bug 1978496: Add more logs for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 37389b2704.

Revert "Bug 1984157: Vary support for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit fa25812c95.

Revert "Bug 1917965: Add design doc r=necko-reviewers,kershaw"

This reverts commit c234e14284.

Revert "Bug 1979087: Use URLPattern for matching Compression Dictionary entries r=edgul,necko-reviewers,kershaw"

This reverts commit 894b391c09.

Revert "Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin"

This reverts commit 15b1e288ee.

Revert "Bug 1978494: Don't use stale dictionaries, more logs, improve handling of dictionary origin reading r=necko-reviewers,valentin"

This reverts commit 08db8b11eb.

Revert "Bug 1917976: Compression Dictionary match-dest support r=necko-reviewers,valentin,kershaw"

This reverts commit 12e8ea415d.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit 308c182b39.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit ccced9f287.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit aabfdecb3a.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit c9e18bdf3b.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit 17923efc19.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit eb6c192657.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit 6ffc1d8f59.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 179b725f16.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit 719a8a0e61.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit f136e15168.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit b0311449f9.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit fe57630b1d.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 3ce6095849.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit b1edef3cef.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit d4c735d662.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit 24da1c66cf.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit ed3b6cd3ec.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit 193a608480.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit fb79c5cf99.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit defcbb1ecb.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 805e20dc69.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit c15147919a.
2025-10-02 10:47:07 +00:00
Randell Jesup ed3b6cd3ec Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-10-01 18:48:45 +00:00
pstanciu ae99b0b77a Revert (Bug 1917976, Bug 1975024, Bug 1918741, Bug 1917963, Bug 1917965, Bug 1917982, Bug 1917974, Bug 1917965, Bug 1917970, Bug 1978496, Bug 1975014, Bug 1918013, Bug 1950972, Bug 1978494, Bug 1949981, Bug 1978495, Bug 1950965) : for causing bustages at Dictionary.h and xpc failures.
This reverts commit 514a56ce7c.

Revert "Bug 1984198: Fix for ipv6 clear by principal for Compression Dictionaries r=edgul"

This reverts commit 49e75644bb.

Revert "Bug 1917970: Update handling of removing encodings for CompressionDictionaries r=necko-reviewers,valentin,kershaw"

This reverts commit 753967e2d6.

Revert "Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin"

This reverts commit 19f91b61eb.

Revert "Bug 1917974: Move CompressionDictionaries AddAcceptAndDictionaryHeaders to run earlier r=necko-reviewers,kershaw,devtools-reviewers,bomsy"

This reverts commit f178e71d24.

Revert "Bug 1917965: Update cache listener changes to ensure data is cached in compressed form r=necko-reviewers,kershaw"

This reverts commit 25abb43ee9.

Revert "Bug 1917970: only remove dcb and dcz Content-Encodings r=necko-reviewers,kershaw"

This reverts commit bc04c2d7a0.

Revert "Bug 1988076: Shutdown cleanup issues for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 5d0db3ea2e.

Revert "Bug 1918741: Add unit tests for Compression Dictionaries r=necko-reviewers,kershaw,valentin"

This reverts commit 82843be7c5.

Revert "Bug 1917974: Clean up call to GetDictionaryFor() r=valentin,necko-reviewers"

This reverts commit 97c3a788a8.

Revert "Bug 1917965: Minor Compression Dictionary cleanup r=necko-reviewers,valentin"

This reverts commit 6367b70657.

Revert "Bug 1978496: Add more logs for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 66b2d52697.

Revert "Bug 1984157: Vary support for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 1288fcf5b7.

Revert "Bug 1917965: Add design doc r=necko-reviewers,kershaw"

This reverts commit b420476321.

Revert "Bug 1979087: Use URLPattern for matching Compression Dictionary entries r=edgul,necko-reviewers,kershaw"

This reverts commit 806745b1b8.

Revert "Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin"

This reverts commit e3673c58e0.

Revert "Bug 1978494: Don't use stale dictionaries, more logs, improve handling of dictionary origin reading r=necko-reviewers,valentin"

This reverts commit e682425023.

Revert "Bug 1917976: Compression Dictionary match-dest support r=necko-reviewers,valentin,kershaw"

This reverts commit a5b3788a8a.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit f55e2fd4e4.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit 81b73f489d.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit f320951077.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 8dc5e144c1.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit f5038a3aec.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit cf88b3debf.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit 8804a2dac8.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 3ce506bc4b.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit a6a46a5458.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit ca97899007.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit ec1bb860f9.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit 5ade563439.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit a57404e2ad.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit 14ec12fcb5.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit dd343a079f.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit c780e137ed.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit 33dee2c198.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit f69e983309.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit eb2fad282b.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit b57a4024b3.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 684a2582ad.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit a6aa9be773.

Revert "Bug 1975024: Cleanup Cache code and locks in prep for Compression Dictionaries #necko-reviewers r=necko-reviewers,kershaw"

This reverts commit a6c4d697d2.
2025-09-30 05:52:17 +00:00
Randell Jesup 33dee2c198 Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-09-30 04:11:11 +00:00
Atila Butkovits 623b31bc82 Revert "Bug 1917976, Bug 1975024, Bug 1918741, Bug 1917963, Bug 1917965, Bug 1917982, Bug 1917974, Bug 1917965, Bug 1917970, Bug 1978496, Bug 1975014, Bug 1918013, Bug 1950972, Bug 1978494, Bug 1949981, Bug 1978495, Bug 1950965 : Compression Dictionary match-dest support r=necko-reviewers,valentin,kershaw" for causing bustages at Dictionary.h.
This reverts commit 7eac16fc33.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit f20cb3c054.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit a71b23dedd.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit 31007cf1b0.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 5b21f619d7.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit 5d226cc697.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit b9b9ce5b59.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit 3b93754dc8.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 685cec0da4.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit 7e8b87dc92.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit 3c2ce1610d.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 3cff08788b.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit dbf44c8056.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 3a51e8f6a3.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit 2c840b92cf.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit c9dbb0f0b8.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit 30d93ba900.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit ea0cf24187.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit a123a402bc.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit dbfc0f17a5.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 44d7a55455.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 9dc491894a.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit 3dd0937b01.

Revert "Bug 1975024: Cleanup Cache code and locks in prep for Compression Dictionaries #necko-reviewers r=necko-reviewers,kershaw"

This reverts commit 06538c79f3.
2025-09-29 23:50:20 +00:00
Randell Jesup ea0cf24187 Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-09-29 22:39:48 +00:00
Alexandru Marc d3c24eb0c8 Revert (Bug 1917965, Bug 1984198, Bug 1917970, Bug 1978496, Bug 1917974, Bug 1917965, Bug 1988076, Bug 1918741, Bug 1984157, Bug 1979087, Bug 1978494, Bug 1917976, Bug 1950965, Bug 1978495, Bug 1949981, Bug 1950972, Bug 1917975, Bug 1918013, Bug 1975014, Bug 1917982, Bug 1917963, Bug 1975024) for causing multiple failures
This reverts commit a62de19085.

Revert "Bug 1984198: Fix for ipv6 clear by principal for Compression Dictionaries r=edgul"

This reverts commit b8431ff2c9.

Revert "Bug 1917970: Update handling of removing encodings for CompressionDictionaries r=necko-reviewers,valentin"

This reverts commit 3fc14c6c42.

Revert "Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin"

This reverts commit 9e82d0a532.

Revert "Bug 1917974: Move CompressionDictionaries AddAcceptAndDictionaryHeaders to run earlier r=necko-reviewers,kershaw,devtools-reviewers,bomsy"

This reverts commit f358804607.

Revert "Bug 1917965: Update cache listener changes to ensure data is cached in compressed form r=necko-reviewers,kershaw"

This reverts commit e4b0ee01ef.

Revert "Bug 1917970: only remove dcb and dcz Content-Encodings r=necko-reviewers,kershaw"

This reverts commit 8856e191eb.

Revert "Bug 1988076: Shutdown cleanup issues for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 298f2719ca.

Revert "Bug 1918741: Add unit tests for Compression Dictionaries r=necko-reviewers,kershaw,valentin"

This reverts commit d0be459d57.

Revert "Bug 1917974: Clean up call to GetDictionaryFor() r=valentin,necko-reviewers"

This reverts commit e2a5d4310e.

Revert "Bug 1917965: Minor Compression Dictionary cleanup r=necko-reviewers,valentin"

This reverts commit fb15b15ecc.

Revert "Bug 1978496: Add more logs for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 76b5d5bfa9.

Revert "Bug 1984157: Vary support for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 683c7f75bb.

Revert "Bug 1917965: Add design doc r=necko-reviewers,kershaw"

This reverts commit bbb367ba0f.

Revert "Bug 1979087: Use URLPattern for matching Compression Dictionary entries r=edgul,necko-reviewers,kershaw"

This reverts commit 1bd9f8c4cd.

Revert "Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin"

This reverts commit b26eaba8f2.

Revert "Bug 1978494: Don't use stale dictionaries, more logs, improve handling of dictionary origin reading r=necko-reviewers,valentin"

This reverts commit 20e14f4d49.

Revert "Bug 1917976: Compression Dictionary match-dest support r=necko-reviewers,valentin"

This reverts commit 1c5baa2cd3.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit 4e477f6d6b.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit aa0c36b471.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit b112c8033c.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 92e5123e80.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit 74138e9d5a.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit 335f2c9fbb.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit 39204f248f.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit f98d53f3d8.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit a7a3926186.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit 9f9ea602f2.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit f09139041d.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit 65fd9e3ed6.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit e7d7622f1f.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit 571cd66ff1.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit 824777a5bd.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit eb9526c598.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit 015daa433c.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit b56fb26d92.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit 54ccef454d.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 6ab1d8ea49.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 88f0f57e8c.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit 678a1957f2.

Revert "Bug 1975024: Cleanup Cache code and locks in prep for Compression Dictionaries #necko-reviewers r=necko-reviewers,kershaw"

This reverts commit 564fa92834.
2025-09-29 06:44:40 +00:00
Randell Jesup 015daa433c Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-09-29 05:03:30 +00:00
Sandor Molnar cb358f86a6 Revert "Bug 1984198: Fix for ipv6 clear by principal for Compression Dictionaries r=edgul" for causing multiple failures.
This reverts commit 226f13bbaa.

Revert "Bug 1917970: Update handling of removing encodings for CompressionDictionaries r=necko-reviewers,valentin"

This reverts commit 34075340a1.

Revert "Bug 1978496: Add markers for Compression Dictionaries #necko-reviewers! r=necko-reviewers,valentin"

This reverts commit 9bd8f245ed.

Revert "Bug 1917974: Move CompressionDictionaries AddAcceptAndDictionaryHeaders to run earlier r=necko-reviewers,kershaw,devtools-reviewers,bomsy"

This reverts commit 1e9c6f2132.

Revert "Bug 1917965: Update cache listener changes to ensure data is cached in compressed form r=necko-reviewers,kershaw"

This reverts commit 282dc849ce.

Revert "Bug 1917970: only remove dcb and dcz Content-Encodings r=necko-reviewers,kershaw"

This reverts commit 9a96ce3cf6.

Revert "Bug 1988076: Shutdown cleanup issues for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 0174e07469.

Revert "Bug 1918741: Add unit tests for Compression Dictionaries r=necko-reviewers,kershaw,valentin"

This reverts commit 59404a79bc.

Revert "Bug 1917974: Clean up call to GetDictionaryFor() r=valentin,necko-reviewers"

This reverts commit b62c076aa4.

Revert "Bug 1917965: Minor Compression Dictionary cleanup r=necko-reviewers,valentin"

This reverts commit cd0280c5ac.

Revert "Bug 1978496: Add more logs for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 7839774cd9.

Revert "Bug 1984157: Vary support for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit fa667bc385.

Revert "Bug 1917965: Add design doc r=necko-reviewers,kershaw"

This reverts commit 61fdb8a09b.

Revert "Bug 1979087: Use URLPattern for matching Compression Dictionary entries r=edgul,necko-reviewers,kershaw"

This reverts commit 35d7f5a214.

Revert "Bug 1978494: Fix GetOriginalHeader to account for new header type r=necko-reviewers,valentin"

This reverts commit 5a5a9a0958.

Revert "Bug 1978494: Don't use stale dictionaries, more logs, improve handling of dictionary origin reading r=necko-reviewers,valentin"

This reverts commit 44958040fe.

Revert "Bug 1917976: Compression Dictionary match-dest support r=necko-reviewers,valentin"

This reverts commit d9cd937a33.

Revert "Bug 1950965: about:cache support for Compression Dictionaries and cleanup r=necko-reviewers,valentin"

This reverts commit e9b14c6d0e.

Revert "Bug 1978495: Compression Dictionaries clear-site and clear cookies support r=necko-reviewers,valentin"

This reverts commit 2663be7031.

Revert "Bug 1917974: Add OPEN_COMPLETE_ONLY and use it for Compression Dictionary Prefetch r=necko-reviewers,valentin"

This reverts commit 695c5efddd.

Revert "Bug 1917974: Hook in Prefetching of cache entries for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 66d6a7822d.

Revert "Bug 1949981: Add code to clear Compression Dictionary entries r=necko-reviewers,valentin"

This reverts commit cc4dedfaa4.

Revert "Bug 1978494: Read and write of per-origin compression dictionary cache entries/metadata r=necko-reviewers,valentin"

This reverts commit 3ba403a61b.

Revert "Bug 1950972: Allow changing Content-Encoding header when we decompress for cache storage r=necko-reviewers,valentin"

This reverts commit 2cf713afef.

Revert "Bug 1917974: Add OnCacheEntryCallbacks for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 7cab0d4a55.

Revert "Bug 1917974: Make GetDictionaryFor async since we need to query the cache r=necko-reviewers,valentin"

This reverts commit f9141e066c.

Revert "Bug 1917975: Compression Dictionary initial metadata parsing r=necko-reviewers,valentin"

This reverts commit 662b14aa21.

Revert "Bug 1917975: Read dictionaries from cache for Compression Dictionaries r=necko-reviewers,valentin"

This reverts commit 30550b7b7e.

Revert "Bug 1918013: Compression Dictionaries link rel= support r=smaug,necko-reviewers,kershaw"

This reverts commit d5761cadb5.

Revert "Bug 1975014: Add a pref for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 124a4b4fc1.

Revert "Bug 1978496: Add logs for CompressionDictionaries r=necko-reviewers,sunil,kershaw"

This reverts commit d59c44aa80.

Revert "Bug 1917970: Support decoding brotli & zstd dictionary-encoded streams r=necko-reviewers,valentin"

This reverts commit da5fa5f46a.

Revert "Bug 1917965: Add support for dcb and dcz content-encoding r=necko-reviewers,valentin"

This reverts commit f7d7f70e67.

Revert "Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil"

This reverts commit e51d5b97d8.

Revert "Bug 1917982: Support use_as_dictionary response headers r=necko-reviewers,kershaw"

This reverts commit cce783fbec.

Revert "Bug 1917965: Add initial Dictionary in-memory structures r=necko-reviewers,kershaw"

This reverts commit b33fb96b0a.

Revert "Bug 1917963: Add Cache flags for Compression Dictionaries r=necko-reviewers,kershaw"

This reverts commit 97b52209a1.

Revert "Bug 1917963: Break out adding Accept-Encoding headers r=necko-reviewers,sunil,kershaw"

This reverts commit 0e13d73649.

Revert "Bug 1918741: Change Compression Dictionary WPTs to assume pass r=necko-reviewers,kershaw"

This reverts commit 5f59bcdc64.

Revert "Bug 1975024: Cleanup Cache code and locks in prep for Compression Dictionaries #necko-reviewers r=necko-reviewers,kershaw"

This reverts commit f275cacfa2.
2025-09-27 00:03:58 +00:00
Randell Jesup e51d5b97d8 Bug 1917974: Accumulate Dictionary hash values r=necko-reviewers,sunil
Differential Revision: https://phabricator.services.mozilla.com/D258123
2025-09-26 22:23:47 +00:00
Emilio Cobos Álvarez 85ab2ab799 Bug 1893683 - Remove ns{A,C}String and other xpcom dependencies from nsStringBuffer. r=smaug,media-playback-reviewers,karlt
* nsStringBuffer::FromString -> nsTSubString::GetStringBuffer
 * nsStringBuffer::ToString -> nsTSubString::Assign(nsStringBuffer*, len)
 * Move refcounting inline but refcount-logging and other XPCOM-related
   things out-of-line.

Differential Revision: https://phabricator.services.mozilla.com/D208771
2024-05-09 08:34:35 +00:00
Nika Layzell 27bba44116 Bug 1818305 - Part 1: Add a streamStatus method to nsIOutputStream, r=necko-reviewers,geckoview-reviewers,jesup,emilio,m_kato,devtools-reviewers
This new method can be used to check if the nsIOutputStream has been
closed without having data available to write. It should avoid blocking
to discover this information.

Differential Revision: https://phabricator.services.mozilla.com/D170696
2023-03-15 19:52:33 +00:00
Nika Layzell 3652956b7b Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Sandor Molnar f236c54e45 Backed out 6 changesets (bug 1809752, bug 1809753) for causing perma failures in browser/components/firefoxview/tests/browser/browser_feature_callout_position.js
Backed out changeset ea05784d74c4 (bug 1809753)
Backed out changeset 7c9b20eebcc8 (bug 1809753)
Backed out changeset d0267ac2256d (bug 1809753)
Backed out changeset aa9f2971bd6f (bug 1809753)
Backed out changeset f0d9fcfaa6f8 (bug 1809752)
Backed out changeset 6d58c799cffe (bug 1809752)
2023-01-17 03:19:24 +02:00
Nika Layzell d61ced88a2 Bug 1809753 - Part 4: Remove unnecessary GetMainThreadEventTarget, r=mccr8
This method always returned GetMainThreadSerialEventTarget(). This patch
switches all callers over to use that method instead.

We can't easily switch all calls to be calls to NS_GetMainThread(), as there is
no version of that method returning a bare nsIThread* instance.

I didn't introduce one, as we may want to add a lock around mMainThread in the
future, which would require removing nsThreadManager::GetMainThreadWeak. As
this method only returns nsISerialEventTarget, it method could remain
implemented, however, by returning a statically allocated fake event target
which forwards dispatches (and QIs to nsIThread) to the real main thread.

Differential Revision: https://phabricator.services.mozilla.com/D166608
2023-01-16 23:14:12 +00:00
Randell Jesup a73984c9ff Bug 1747439: netwerk/cache2 cleanup r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135167
2022-01-12 20:38:37 +00:00
Marian-Vasile Laza ee44205723 Backed out changeset 7c1a1109d729 (bug 1747439) for causing build bustages on CacheEntry.cpp. CLOSED TREE 2022-01-12 16:52:24 +02:00
Randell Jesup 6cd5050b51 Bug 1747439: netwerk/cache2 cleanup r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135167
2022-01-12 13:54:01 +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
Simon Giesecke 9bcfd47601 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980
2020-02-13 14:38:48 +00:00
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
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
Ehsan Akhgari b614d2046a Bug 1508472 - Part 5: Fifth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal. I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.

Differential Revision: https://phabricator.services.mozilla.com/D13371
2018-11-29 10:30:46 +00: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
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
Michal Novotny b0fcd7f102 Bug 1448476 - Cache entry corruption after writing the alternate data. r=honzab
When writing to alt-data output stream fails for whatever reason, we now try to
truncate alternative data and keep the original data instead of dooming the
whole entry. The patch also changes how is the predicted size passed to the
cache. Instead of a dedicated method it's now an argument of openOutputStream
and openAlternativeOutputStream methods which fail in case the entry would
exceed the allowed limit.
2018-04-25 07:01:00 +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
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
Paul Bignier 949e14fc4f Bug 1352805 - Typo fixes in comments around "unfortunately". r=MattN
MozReview-Commit-ID: B76JuHabq9T
2017-04-03 09:23:00 -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
Nathan Froyd 4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
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.
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
2015-10-18 01:24:48 -04:00
Nikhil Marathe 4fad035dad Bug 1167809 - Add skip size check flag to cache for use with ServiceWorkers. r=mayhemer
For non-e10s Service Worker, we use Cache entries to achieve interception.
While this is a temporary measure, the fact that cache enforces size limits on
cache entries (which make sense for the purpose it was designed) prevents large
files from being served via a Service Worker. This patch adds a skip size check
flag to CacheStorage that is relayed to CacheEntry and CacheFile. It is set to
false by default leading to normal cache behaviour.
The patch also adds nsICacheStorageService.synthesizedCacheStorage() that
retrieves a cache storage with this flag set to true, which is used by
nsHttpChannel in case of possible interception.
2015-09-03 16:05:42 -07:00
Michal Novotny a290271052 Bug 1177278 - Large OOMs in CacheFileMetadata::WriteMetadata, r=honzab 2015-07-22 15:23:16 +02: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 805d7068eb Bug 1013395 - HTTP cache v2: have a limit for write backlog, r=honzab 2014-07-10 07:59:29 +02:00