Commit Graph

210 Commits

Author SHA1 Message Date
Gian-Carlo Pascutto
c633d6b975 Bug 797302 - crash in mozilla::safebrowsing::Classifier::Check. r=dcamp 2012-10-23 09:57:18 +02:00
Isaac Aggrey
50d6240e45 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Randell Jesup
3b4961b603 Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
243c878d26 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
Gian-Carlo Pascutto
6b5d1b65c2 Bug 768871 - Provide an option to disable per-client randomization. r=dcamp 2012-08-15 09:07:10 +02:00
Gian-Carlo Pascutto
6cb825e03c Bug 673470 - Optimize input buffer size. Cache active tables. r=dcamp 2012-08-15 09:04:31 +02:00
Gian-Carlo Pascutto
1c0ff29874 Bug 673470 - Replace the sqlite safeb store with a flat file. r=dcamp 2012-08-15 09:04:19 +02:00
Aryeh Gregor
0826a9fc45 Bug 777292 - modules/libpref/, toolkit/: Fix incorrect conversions to nsresult; r=bsmedberg 2012-07-30 12:24:36 +03:00
Aryeh Gregor
b293a0ec7a Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan 2012-08-01 11:17:10 +03:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Mounir Lamouri
6526ec7554 Bug 775796 - nsIUrlClassifierDBService.lookup() takes nsIPrincipal. r=bsmith 2012-07-22 12:30:30 -07:00
Mounir Lamouri
f3975e39e5 Bug 775796 - nsIURIClassifier.classify() should takes a principal. r=bsmith 2012-07-20 09:46:59 -07:00
David Zbarsky
29925cf139 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
Ehsan Akhgari
8f4d91a1a1 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
1415b7fdef Bug 720778 - Important threads should have a name for better debugability, r=bsmith, sr=bsmedberg+glandium 2012-06-12 19:06:20 +02:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
2b55dddfca 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 2012-05-18 13:30:49 -04:00
Gian-Carlo Pascutto
10acc9e06e Backout 173f90d397a8 (Bug 673470). rs=dcamp a=mfinkle 2012-04-20 07:46:47 +02:00
Geoff Lankow
ea30cec949 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
724fb285e2 Bug 673470 - Replace the SQLite SafeBrowsing store with an optimized store. r=dcamp 2011-12-06 19:03:05 +01:00
Gian-Carlo Pascutto
056c10da3c Backout 44a0dc4fb9ff (Bug 673470) for Talos regression. 2012-02-01 20:10:02 +01:00
Gian-Carlo Pascutto
3b9f32d92d Bug 673470 - Replace the SQLite SafeBrowsing store with an optimized store. r=dcamp 2011-12-06 19:03:05 +01:00
Gian-Carlo Pascutto
e83e75b7cd Bug 702217 - Fall back to SQLite when we fail PrefixSet construction. r=dcamp 2012-01-10 17:09:38 +01:00
Gian-Carlo Pascutto
2bb82902d1 Bug 702217 - Avoid double allocation in UrlClassifier. Handle OOM conditions. r=dcamp 2012-01-10 17:09:32 +01:00
Nathan Froyd
1c2ba92063 Bug 712427 - provide more information in SQL PRAGMA queries; r=mak 2012-01-05 18:46:35 -05:00
Jeff Walden
443b8f7d1f Bug 711799 - Add parentheses to a bunch of && expressions nested within || expressions. r=dholbert 2011-12-18 01:00:47 -05:00
Jeff Walden
ad1841814e Bug 711799 - Fix a bunch of unused-variable warnings. r=dholbert 2011-12-18 01:00:42 -05:00
Nicholas Nethercote
cb524624bc Bug 705602 - Use mallocSizeOf in prefixset memory reporter. r=gpc. 2011-12-13 20:54:18 -08:00
Gian-Carlo Pascutto
9bfc7763f9 Bug 706740 - Fix leftover PRBool. r=me 2011-12-02 11:23:10 +01:00
Gian-Carlo Pascutto
37a757a746 Bug 706740 - Backout bug 667075. r=dcamp 2011-12-02 10:47:43 +01:00
Gian-Carlo Pascutto
19d95617c7 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
18c11b2972 Bug 698326 - Remove countMe argument to SizeOf in UrlClassifier. r= 2011-11-15 18:51:06 +01:00
Gian-Carlo Pascutto
8f61f0e297 Bug 698326 - Add memory reporter for the url-classifier. r=njn,jlebar 2011-11-13 11:25:48 +01:00
Marco Bonardo
8583f20728 Backout 38abb03271de (bug 698326) due to xpcshell tests failure 2011-11-11 20:12:12 +01:00
Gian-Carlo Pascutto
1ed2345e54 Bug 698326 - Add memory reporter for the url-classifier. r=njn,jlebar 2011-11-11 18:57:22 +01:00
Josh Aas
699c7b244a Bug 695965: Fix use of uninitialized memory in nsUrlClassifierDBService::CheckClean. r=bent 2011-10-20 10:48:11 -04:00
Ehsan Akhgari
478ad1a412 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
Michael Wu
0fe7772ece Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones 2011-09-28 23:19:26 -07:00
Gian-Carlo Pascutto
4aaf73cdf8 Bug 669410 - Add telemetry for PrefixSet usage. r=tglek 2011-09-08 22:17:34 +02:00
Gian-Carlo Pascutto
397818839e 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
b6aee54606 Bug 669410 - Don't store host prefixes in memory. Rework prefix fetching from SQLite. r=tony 2011-09-08 22:17:14 +02:00
Gian-Carlo Pascutto
bf8f39caba Bug 669410 - Make the url-classifier PrefixSet persistent on startup/shutdown. r=tony 2011-09-08 22:16:59 +02:00
Gian-Carlo Pascutto
d4d482d799 Bug 669410 - Reduce the SQLite caches' default size in url-classifier. r=dcamp 2011-09-08 22:15:37 +02:00
Gian-Carlo Pascutto
30d9f4fbfd Bug 669410 - Probe PrefixSet directly from the main thread. r=tony 2011-09-08 22:15:27 +02:00
Gian-Carlo Pascutto
a13cf40f9a Bug 669410 - Use PrefixSet to speed up URL classification. r=tony 2011-09-08 22:15:18 +02:00
Gian-Carlo Pascutto
5638eb8aa2 Bug 669410 - Add PrefixSet datastructure for SafeBrowsing. r=dcamp 2011-09-08 22:15:08 +02:00
Benjamin Smedberg
b5067e81ea Bug 675221 part D - Fix up URL classifier to stop using XPCOM proxies, r=dcamp 2011-08-19 11:50:04 -04:00
Gian-Carlo Pascutto
32fbe88513 Bug 667075 - Use nsIRandomGenerator instead of querying SQLite. r=dcamp 2011-07-30 09:24:22 +02:00
Kyle Huey
8c2d44482b Backed out changeset 549e3276ed25 2011-07-06 11:08:52 -07:00
Kyle Huey
742bdcc3b6 Bug 668699: If urlclassifier is turned off, do not open the database. r=dcamp 2011-07-01 19:32:06 -07:00