Commit Graph

401 Commits

Author SHA1 Message Date
Gian-Carlo Pascutto
abb9245bcc Bug 727370 - Recover correctly from a Reset during an update. r=dcamp 2012-09-28 18:31:19 +02:00
Gian-Carlo Pascutto
44872d00c9 Bug 727370 - Improve HashStore checksumming performance. r=dcamp 2012-09-28 18:31:19 +02:00
Gian-Carlo Pascutto
7530b9f562 Bug 727370 - Make SafeBrowsing updates atomic transactions. r=dcamp 2012-09-28 18:31:18 +02:00
Isaac Aggrey
481e7dfb0b Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Makoto Kato
1356f06137 Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Randell Jesup
65539ef89c Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
e368dc9c85 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
cafad5fcb5 Bug 782252 - Cast some nsresult to PRUint32; r=ehsan 2012-08-09 11:36:40 +03:00
Gian-Carlo Pascutto
328bf6ddf8 Bug 673470 - Update the new SafeBrowsing code to MPL 2.0. r=dcamp 2012-08-15 09:10:56 +02:00
Gian-Carlo Pascutto
9b456b4242 Bug 673470 - Skip chunks we already have during merges. r=dcamp 2012-08-15 09:10:39 +02:00
Gian-Carlo Pascutto
c056c62081 Bug 673470 - Simplify PrefixSet by removing (unneeded) thread safety. r=dcamp 2012-08-15 09:10:24 +02:00
Gian-Carlo Pascutto
9844b5f459 Bug 738533 - Replace NS_QuickSort use by qsort. r=dcamp 2012-08-15 09:10:07 +02:00
Gian-Carlo Pascutto
ab234264c5 Bug 750625 - crash in nsUrlClassifierPrefixSet::GetPrefixes. r=dcamp 2012-08-15 09:09:53 +02:00
Gian-Carlo Pascutto
a08473aa65 Bug 673470 - Remove some unneeded PromiseFlatCString. r=dcamp 2012-08-15 09:09:40 +02:00
Gian-Carlo Pascutto
8ba34dbeff Bug 673470 - Make the PrefixSet/LookupCache construction infallible again. r=dcamp f=jlebar 2012-08-15 09:09:25 +02:00
Gian-Carlo Pascutto
7a7d916f23 Bug 673470 - Expire SubPrefixes that can't do anything immediately. r=dcamp 2012-08-15 09:08:51 +02:00
Gian-Carlo Pascutto
37af20ab14 Bug 673470 - Don't resort if not needed. Fix comparator. Cleanups. r=dcamp 2012-08-15 09:08:37 +02:00
Gian-Carlo Pascutto
feef277a46 Bug 673470 - Fix wrong order of arguments to KeyedHash function. r=dcamp 2012-08-15 09:08:23 +02:00
Gian-Carlo Pascutto
f43ae42744 Bug 673470 - Fix order of SubPrefix Knockouts. r=dcamp 2012-08-15 09:08:09 +02:00
Gian-Carlo Pascutto
11a8371d41 Bug 673470 - Remove unused compare functions. r=dcamp 2012-08-15 09:07:56 +02:00
Gian-Carlo Pascutto
4df0f0f092 Bug 673470 - Fix inconsistent variable naming. r=dcamp 2012-08-15 09:07:36 +02:00
Gian-Carlo Pascutto
d01778265b Bug 673470 - Fix format description in HashStore.cpp. r=dcamp 2012-08-15 09:07:23 +02:00
Gian-Carlo Pascutto
52208070f2 Bug 768871 - Provide an option to disable per-client randomization. r=dcamp 2012-08-15 09:07:10 +02:00
Gian-Carlo Pascutto
5837cb3f35 Bug 730247 - Use byteslice coding for SafeBrowsing data. r=dcamp 2012-08-15 09:06:54 +02:00
Gian-Carlo Pascutto
2a38f23df4 Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp 2012-08-15 09:05:32 +02:00
Gian-Carlo Pascutto
d3b94c773f Bug 726002 - Clear some big nsTArrays as early as possible in updates. r=dcamp 2012-08-15 09:05:18 +02:00
Gian-Carlo Pascutto
bcf43e6e4e Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-08-15 09:05:08 +02:00
Gian-Carlo Pascutto
d091f07a3e Bug 725597 - SafeBrowsing fails to update persistent PrefixSet on Windows. r=dcamp 2012-08-15 09:04:51 +02:00
Gian-Carlo Pascutto
b5c3234491 Bug 673470 - Optimize input buffer size. Cache active tables. r=dcamp 2012-08-15 09:04:31 +02:00
Gian-Carlo Pascutto
f6e66dd24e Bug 673470 - Replace the sqlite safeb store with a flat file. r=dcamp 2012-08-15 09:04:19 +02:00
Mark Capella
38befa6972 Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Toolkits, r=ted, f=gps 2012-08-14 10:06:12 -04:00
Aryeh Gregor
f74602e698 Bug 777292 - modules/libpref/, toolkit/: Fix incorrect conversions to nsresult; r=bsmedberg 2012-07-30 12:24:36 +03:00
Aryeh Gregor
02ea215083 Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan 2012-08-01 11:17:10 +03:00
Mike Hommey
70d7c821af Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Justin Dolske
41d4ca6105 Bug 778606 - SafeBrowsing.jsm should use nsUrlFormatter. r=gcp, f=gavin 2012-08-01 15:52:47 -07:00
Aryeh Gregor
c81630fddb Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
d0ad5a7d0c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Mounir Lamouri
d434d2c6af Bug 775796 - nsIUrlClassifierDBService.lookup() takes nsIPrincipal. r=bsmith 2012-07-22 12:30:30 -07:00
Mounir Lamouri
5747889de3 Bug 775796 - nsIURIClassifier.classify() should takes a principal. r=bsmith 2012-07-20 09:46:59 -07:00
David Zbarsky
053c132aa1 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (toolkit/url-classifier); r=bzbarsky 2012-07-17 23:46:21 -04:00
Nathan Froyd
bfff055672 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Ehsan Akhgari
f232cb15e4 Bug 758992 - Make the classes which use the XPCOM nsISupports implementation macros final, to avoid the warning about deleting using a pointer to a base class with virtual functions and no virtual dtor (url-classifier parts); r=dcamp
Pushed on a CLOSED TREE
2012-06-20 00:01:02 -04:00
Honza Bambas
fc7084f564 Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Geoff Lankow
5cefea8480 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
82ff7027aa Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
eaa4878487 Bug 734847 part 2 - treewide changes resulting from the default-infallibility of hashtables; either remove useless result checks, or use the fallible version of APIs, depending on context, r=jlebar
--HG--
extra : rebase_source : 844b008c5167e6ca39a7ba9eeec8b30672938704
2012-05-18 13:30:49 -04:00
Gian-Carlo Pascutto
08beb49296 Backout 173f90d397a8 (Bug 673470). rs=dcamp a=mfinkle 2012-04-20 07:46:47 +02:00
Gian-Carlo Pascutto
bdd93f6030 Backout db52b4916cde (Bug 673470). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
23ae6665fe Backout e9291f227d63 (Bug 725597). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
319d4284b5 Backout a010dcf1a973 (Bug 726002). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
471d97609d Backout 35bf0d62cc30 (Bug 726002). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
dace6c811c Backout f8bf3795b851 (Bug 729640). rs=dcamp a=mfinkle 2012-04-20 07:46:45 +02:00
Gian-Carlo Pascutto
30c97cfa8e Backout a01cf079ee0b (Bug 730247). rs=dcamp a=mfinkle 2012-04-20 07:46:45 +02:00
David Rajchenbach-Teller
6f228de18f Bug 728171 - Use Scoped.h throughout the code. r=cjones 2012-04-12 12:21:24 +02:00
Richard Newman
f8c8184e2b Backout 0e03eb171e08 (Bug 743574 - Deprecate DOMException.code). a=bustage 2012-04-11 15:33:37 -07:00
David Rajchenbach-Teller
b219309fc2 Bug 728171 - Use Scoped.h throughout the code. r=cjones 2012-04-11 18:59:10 +02:00
Marco Bonardo
10bda00159 Merge central to inbound 2012-04-04 13:39:52 +02:00
Serge Gautherie
44f56014f4 Bug 739687. (Av1) test_classifier.html and test_classifier_worker.html: Set preference they depend on, Some rewrite and documentation. r=dcamp. 2012-04-03 15:37:40 +02:00
Veeraya Pupatwibul
344b2b1753 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Gian-Carlo Pascutto
59da856cee Bug 730247 - Use byteslice coding for SafeBrowsing data. r=dcamp 2012-02-27 07:46:41 +01:00
Gian-Carlo Pascutto
36b96477ff Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp 2012-02-23 18:00:39 +01:00
Gian-Carlo Pascutto
a6a2f1971c Bug 726002 - Clear some big nsTArrays as early as possible in updates. r=dcamp 2012-02-13 17:10:22 +01:00
Gian-Carlo Pascutto
b4a0973d68 Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-02-13 17:09:16 +01:00
Geoff Lankow
a825a1156c Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part C, remove uses of nsIPrefBranch2 in toolkit/ ; r=bsmedberg 2012-01-17 14:18:29 +13:00
Gian-Carlo Pascutto
2299271477 Backout 91eed468cff8 (Bug 726002) due to broken error handling. 2012-02-13 17:04:46 +01:00
Gian-Carlo Pascutto
3264914f26 Backout e0e2cc5570ac (Bug 726002) due to broken error handling. 2012-02-13 17:04:46 +01:00
Gian-Carlo Pascutto
8abcffb317 Bug 726002 - Clear some big nsTArrays as early as possible in updates. r=dcamp 2012-02-13 13:17:48 +01:00
Gian-Carlo Pascutto
f0c2ed80e9 Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-02-13 13:17:31 +01:00
Gian-Carlo Pascutto
82c4eec776 Bug 725597 - SafeBrowsing fails to update persistent PrefixSet on Windows. r=dcamp 2012-02-09 20:41:32 +01:00
Gian-Carlo Pascutto
dbd7ac64e0 Bug 673470 - Optimize input buffer size. Cache active tables. r=dcamp 2012-02-03 08:32:32 +01:00
Gian-Carlo Pascutto
a784af5a5b Bug 673470 - Replace the SQLite SafeBrowsing store with an optimized store. r=dcamp 2011-12-06 19:03:05 +01:00
Gian-Carlo Pascutto
99a251d9ae Backout 44a0dc4fb9ff (Bug 673470) for Talos regression. 2012-02-01 20:10:02 +01:00
Gian-Carlo Pascutto
00125c4e7a Bug 673470 - Replace the SQLite SafeBrowsing store with an optimized store. r=dcamp 2011-12-06 19:03:05 +01:00
Nicholas Nethercote
7559a70a04 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Gian-Carlo Pascutto
add54589b3 Bug 702217 - Fall back to SQLite when we fail PrefixSet construction. r=dcamp 2012-01-10 17:09:38 +01:00
Gian-Carlo Pascutto
97c841a200 Bug 702217 - Avoid double allocation in UrlClassifier. Handle OOM conditions. r=dcamp 2012-01-10 17:09:32 +01:00
Nathan Froyd
c9149bf1f8 Bug 712427 - provide more information in SQL PRAGMA queries; r=mak 2012-01-05 18:46:35 -05:00
Nicholas Nethercote
0089711fa7 Bug 707865 - Convert nsTArray::SizeOf() to nsTArray::SizeOfExcludingThis(). r=jlebar.
--HG--
extra : rebase_source : d802d58bc7dedda2490878793923adc0ab55f779
2011-12-15 14:59:53 -08:00
Jeff Walden
2e53b58879 Bug 711799 - Add parentheses to a bunch of && expressions nested within || expressions. r=dholbert 2011-12-18 01:00:47 -05:00
Jeff Walden
16db021217 Bug 711799 - Fix a bunch of unused-variable warnings. r=dholbert
--HG--
extra : rebase_source : 91fc77dca316018652d4d99f6d4cc8d0f7195e6e
2011-12-18 01:00:42 -05:00
Nicholas Nethercote
ef3a6226a7 Bug 705602 - Use mallocSizeOf in prefixset memory reporter. r=gpc.
--HG--
extra : rebase_source : f228466f7e082a152ceaafc8f8f1c4b71f5f550f
2011-12-13 20:54:18 -08:00
Gian-Carlo Pascutto
d5e6567edd Bug 706740 - Fix leftover PRBool. r=me 2011-12-02 11:23:10 +01:00
Gian-Carlo Pascutto
f7d82c6687 Bug 706740 - Backout bug 667075. r=dcamp 2011-12-02 10:47:43 +01:00
Gian-Carlo Pascutto
946e9126ad Bug 706049 - Sanity check PrefixSet on probing, detect errors on load. r=dcamp 2011-12-02 10:46:58 +01:00
Gian-Carlo Pascutto
6c8e36ed61 Bug 702217 - Add very basic sanity checking to PrefixSet construction. Handle corrupted update errors. r=dcamp 2011-12-02 10:45:56 +01:00
Gian-Carlo Pascutto
a560902f05 Bug 698326 - Remove countMe argument to SizeOf in UrlClassifier. r= 2011-11-15 18:51:06 +01:00
Gian-Carlo Pascutto
2e44b717ed Bug 698326 - Add memory reporter for the url-classifier. r=njn,jlebar 2011-11-13 11:25:48 +01:00
Marco Bonardo
2a9f984d5f Backout 38abb03271de (bug 698326) due to xpcshell tests failure 2011-11-11 20:12:12 +01:00
Gian-Carlo Pascutto
25af2273d3 Bug 698326 - Add memory reporter for the url-classifier. r=njn,jlebar 2011-11-11 18:57:22 +01:00
Ed Morley
7ea8e12caa Backout 4997c6f8b24d (bug 616542) for causing locally run mochitest-browser-chrome test runs to fail 2011-11-05 18:35:59 +00:00
Rail Aliiev
ac65d0d88e Bug 616542 - Shorten file path length of mochitest; r=ted 2011-11-04 21:13:42 +00:00
Josh Aas
4b83cd0025 Bug 695965: Fix use of uninitialized memory in nsUrlClassifierDBService::CheckClean. r=bent 2011-10-20 10:48:11 -04:00
Ehsan Akhgari
92064e6d3f Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Gian-Carlo Pascutto
f6efc6dc46 Bug 686691 - PrefixSet loading should use readahead. r=taras 2011-10-02 21:26:10 +02:00
Kyle Huey
1bb588823f Bug 687332: Fix toolkit/. r=rs 2011-09-29 12:06:36 -04:00
Michael Wu
d2b70213ac Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00
Gian-Carlo Pascutto
a7981da69c Bug 669410 - Add copyright header to PrefixSet IDL file. DONTBUILD (NPOTB)
--HG--
extra : rebase_source : 3205a7b2e39c6d0a37ef38755902061a025edd15
2011-09-16 14:34:05 -07:00
Gian-Carlo Pascutto
7e6390a2ca Bug 669410 - Add telemetry for PrefixSet usage. r=tglek 2011-09-08 22:17:34 +02:00
Gian-Carlo Pascutto
9f7dc632a3 Bug 669410 - Prevent hash collisions from occuring in the same place in every client. r=tony
See also bug 669407.
2011-09-08 22:17:25 +02:00
Gian-Carlo Pascutto
8eb6610582 Bug 669410 - Don't store host prefixes in memory. Rework prefix fetching from SQLite. r=tony 2011-09-08 22:17:14 +02:00