Valentin Gosu
0feb8150d6
Bug 1629825 - Delete Appcache directory when storage pref is turned off r=necko-reviewers,kershaw
...
This bug was initially about adding a test that we can still clear appcache
data even when the storage pref is off.
However, due to the fact that we only check the pref at startup and then
are unable to access the storage device if disabled, it's best to just
delete the OfflineCache folder shortly after startup.
Differential Revision: https://phabricator.services.mozilla.com/D90395
2020-09-17 08:19:49 +00:00
Simon Giesecke
1fbb2b245e
Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-04 11:27:07 +00:00
Noemi Erli
c5adcfe981
Backed out 4 changesets (bug 1654992, bug 1654991) for causing timeous in mask-opacity-1e.html
...
Backed out changeset 11f0f54c6e0a (bug 1654992)
Backed out changeset a353dd5b3f08 (bug 1654991)
Backed out changeset 6a7964ba549f (bug 1654991)
Backed out changeset cf3bfb91d98c (bug 1654991)
2020-08-03 22:09:36 +03:00
Simon Giesecke
9d2e516112
Bug 1654992 - Use std::move instead of SwapElements where possible. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D84807
2020-08-03 14:54:18 +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
Jean-Yves Avenard
05adafa9ef
Bug 1637500 - P2. Rename methods as they are not always dealing with "threads". r=froydnj
...
Before P1, GetCurrentThreadSerialEventTarget would have always returned the same data as NS_GetCurrentThread, making the comment incorrect Now it will properly return the running TaskQueue if any.
This change of name more clearly exposes what they are doing, as we aren't always dealing with threads directly; but a nsISerialEventTarget
Differential Revision: https://phabricator.services.mozilla.com/D80354
2020-06-23 05:05:36 +00:00
Cameron McCormack
2fc5de100d
Bug 1629754 - Silence some nsCacheService warnings. r=michal
...
This silences two warnings that I see in debug builds.
The first is from nsCacheProfilePrefObserver::ReadPrefs, where the
nsresult from the NS_APP_CACHE_PARENT_DIR directory getting will be
returned even if we successfully get the profile directory. (While
we're here, factor out some common functionality in this function.)
The second is from dealing with the result of
nsCacheService::CreateCustomOfflineDevice. Failing to create an offline
device is a normal condition, if the cache size is set to 0 or we have
explicitly disabled the offline cache. So don't warn in those cases.
Differential Revision: https://phabricator.services.mozilla.com/D70793
2020-04-14 22:36:53 +00:00
Andrea Marchesini
4494a8ddd7
Bug 1623593 - Get rid of NECKO_COOKIES compilation flag, r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D67451
2020-03-24 16:30:03 +00:00
anjali1903
0e373a201d
Bug 1621251 Replace NS_ADDREF(*var = other) with *var = do_AddRef(other).take() in /netwerk r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D66818
2020-03-17 15:05:26 +00:00
Simon Giesecke
9e7322117c
Bug 1617628 - Hide nsBaseHashtable Put overloads in nsRefPtrHashtable subclass. r=froydnj
...
Differential Revision: https://phabricator.services.mozilla.com/D63899
2020-02-25 17:03:36 +00:00
Gabriele Svelto
f03cdb2b2d
Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
...
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.
find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
if [ -n "$interfaces" ]; then
if [[ "$interfaces" == *$'\n'* ]]; then
regexp="\("
for i in $interfaces; do regexp="$regexp$i\|"; done
regexp="${regexp%%\\\|}\)"
else
regexp="$interfaces"
fi
interface=$(basename "$path")
rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
if [ $hits -eq 0 ]; then
echo "Removing ${interface} from ${path2}"
grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
mv -f "$path2".tmp "$path2"
fi
done
fi
done
Differential Revision: https://phabricator.services.mozilla.com/D55444
2019-12-06 09:17:57 +00:00
Jonathan Kingston
9426d176c3
Bug 1585582 - Remove all pref observers in CacheService r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D47960
2019-10-21 09:35:19 +00:00
Razvan Maries
47fa86cc7a
Backed out 3 changesets (bug 1585582) for perma fails on appcache.tentative.https.sub.html.
...
Backed out changeset a55fbe377803 (bug 1585582)
Backed out changeset 0bd7ff0df367 (bug 1585582)
Backed out changeset 78a947a05f08 (bug 1585582)
2019-10-20 21:15:17 +03:00
Jonathan Kingston
30d43cbcdc
Bug 1585582 - Remove all pref observers in CacheService r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D47960
2019-10-18 16:05:28 +00:00
Oana Pop Rus
617ecf362e
Backed out 3 changesets (bug 1585582) for bc failures browser/base/content/test/sanitize/browser.ini on a CLOSED TREE
...
Backed out changeset 98d7a4f4388f (bug 1585582)
Backed out changeset c13ec2bbc0a7 (bug 1585582)
Backed out changeset 8015660b170f (bug 1585582)
2019-10-18 18:42:49 +03:00
Jonathan Kingston
31a414edd3
Bug 1585582 - Remove all pref observers in CacheService r=mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D47960
2019-10-16 15:36:51 +00:00
Jonathan Kingston
70ec17fad1
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-30 00:55:02 +00:00
Coroiu Cristina
92b7c5ae5c
Backed out changeset f3c1becf9396 (bug 1237782) for browser-chrome failures at dom/tests/mochitest/ajax/offline/browser_disableAppcache.js on a CLOSED TREE
2019-09-26 23:05:07 +03:00
Jonathan Kingston
26c75555dc
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-26 19:03:04 +00:00
Brindusan Cristian
41a5b05884
Backed out changeset 3af4309ffce7 (bug 1237782) for wpt assertions/leaks. CLOSED TREE
2019-09-17 01:03:46 +03:00
Jonathan Kingston
13933a8987
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-16 17:24:39 +00:00
Gurzau Raul
9def00d710
Backed out changeset 8c25acd6a557 (bug 1237782) for wpt failures at controller-on-disconnect.https.html
2019-09-07 14:32:37 +03:00
Jonathan Kingston
3c857e2aa7
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-07 07:45:30 +00:00
Cosmin Sabou
63c18f3f11
Backed out changeset 7dc9a45ef7d6 (bug 1237782) for causing browser chrome failures on browser_disableAppcache.js CLOSED TREE
2019-09-06 19:10:20 +03:00
Jonathan Kingston
75025cebec
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-06 15:02:34 +00:00
arthur.iakab
50f4c80684
Backed out changeset e3f06f11de62 (bug 1237782) for causing browser-chrome failure on automation.py CLOSED TREE
2019-09-03 21:04:49 +03:00
Jonathan Kingston
42b359703b
Bug 1237782 - Remove http override and add appcache pref r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D44472
2019-09-03 16:44:13 +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
Michal Novotny
84c2d739a3
Bug 1525900 - Remove unused code from old cache. r=mayhemer
2019-02-07 05:49:00 +02:00
Sylvestre Ledru
0ac7481368
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D18488
2019-02-04 19:10:18 +00:00
Michal Novotny
23a0c4c437
Bug 1455723 - Firefox59 does not properly honor cache size set in autoconfig files, r=mayhemer
...
We keep old cache code in the tree only because of offline cache. We no longer allow using old disk or memory cache. This patch removes all preferences manipulation from old cache code that isn't used by offline cache. It removes also some related code (e.g. everything smart size related, unused defines etc.), but the goal wasn't to remove all unused code from the old cache.
2019-01-14 06:47:00 +02: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
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
Honza Bambas
b828d203cb
Bug 1358043 - Produce only warning when appcache/old cache backend I/O thread can't be created for lack of resources, r=michal
2018-11-15 08:44:00 +02:00
Andrew McCreight
838d2c3a68
Bug 1494127 - Fix trivial calls to do_QueryInterface that return an nsresult r=smaug
...
Calls to do_QueryInterface to a base class can be replaced by a static
cast, which is faster.
Differential Revision: https://phabricator.services.mozilla.com/D7224
2018-10-01 21:38:43 +00:00
Kris Maglione
ead2894ee8
Bug 1473631: Part 14 - Replace pref observers with callbacks in nsCacheService. r=njn
...
MozReview-Commit-ID: Kl1Sgo3F3Sk
2018-07-05 15:21:20 -07:00
Kris Maglione
8766ceb571
Bug 1472523: Part 4 - Avoid unnecessary domain string duplication in preference observers. r=njn
...
MozReview-Commit-ID: EMCgMRTDqDn
2018-07-04 14:52:48 -07:00
Andi-Bogdan Postelnicu
cb91211b37
Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal
2018-06-14 11:19:07 +03: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
Sebastian Hengst
d91e9954eb
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Sylvestre Ledru
055d8432e6
Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
...
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-16 14:29:15 +01:00
Coroiu Cristina
8c03201dcc
Backed out 2 changesets (bug 1443080) for spidermonkey build bustage at build/src/js/src/jit/BaselineCacheIRCompiler.cpp
...
Backed out changeset 7d509bb8a35d (bug 1443080)
Backed out changeset 53bdcd5937cd (bug 1443080)
2018-03-14 11:13:21 +02:00
Sylvestre Ledru
4a52aab337
Bug 1443080 - Use the static call for static methods (not instance) r=Ehsan
...
MozReview-Commit-ID: JwHh4bzxuTR
2018-03-05 13:43:54 +01:00
Masatoshi Kimura
c3d2ca2e93
Bug 685236 - Stop using GetNativePath in netwerk/. r=mayhemer
...
MozReview-Commit-ID: JdHhXPiS0fv
2017-12-15 20:21:19 +09:00
Chris Peterson
677bf4030c
Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
...
MozReview-Commit-ID: DCPTnyBooIe
2017-11-05 19:37:28 -08:00
Dragana Damjanovic
962354567c
Bug 1413622 - Add a check to avoid a division by zero. r=mayhemer
2017-11-15 15:01:11 +01:00