Commit Graph

363 Commits

Author SHA1 Message Date
Daniel Holbert
a02483c95d Bug 825941 helper: Mark debug-only variable |rv| in nsUrlClassifierDBService.cpp as DebugOnly. 2013-01-06 18:06:23 -08:00
Nikolay Bryskin
6034c0eeee Bug 650935 - Fix replacements in unUrlSafe to be global. r=dcamp 2013-01-03 17:18:42 -05:00
Daniel Holbert
b8579b5bf1 Bug 826052: Make HashStore explicitly reject files larger than UINT32_MAX bytes, to avoid precision issues when we pass the file-length as a uint32_t function argument. (Also, skip a redundant file-size lookup.) r=gcp 2013-01-03 00:38:24 -08:00
Daniel Holbert
c5b013e4c9 Bug 825647: Remove unused logging #defines from url-classifier/Entries.h. r=gcp 2013-01-02 09:05:34 -08:00
Daniel Holbert
5944e0d61d Bug 825627, part 2: Convert known-to-be-nonnegative variables 'i' and 'idx' to be unsigned, in Classifier::ReadNoiseEntries(), to fix signed/unsigned comparison build warnings. r=gcp 2013-01-02 09:05:31 -08:00
Daniel Holbert
d056e13800 Bug 825627, part 1: Make nsUrlClassifierDBService.cpp's "gethashNoise" & "aCount" variables as unsigned, since counts are unsigned by definition. r=gcp 2013-01-02 09:05:19 -08:00
Nicholas Nethercote
acc80a9abd Bug 819819 (part 2) - Remove |name| from NS_MEMORY_REPORTER_MALLOC_SIZEOF_FUN. r=jlebar.
--HG--
rename : dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing_perwindowpb.html => dom/tests/mochitest/localstorage/test_localStorageQuotaPrivateBrowsing.html
rename : toolkit/components/places/tests/browser/browser_favicon_privatebrowsing_perwindowpb.js => toolkit/components/places/tests/browser/browser_favicon_privatebrowsing.js
extra : rebase_source : 557cc60522970ce7eea3b006d357284d9b4694c4
2012-12-23 16:59:51 -08:00
Gian-Carlo Pascutto
b261864022 Bug 823665 - Rename urlclassifier.confirm-age to max-complete-age. r=gcp 2012-12-21 08:48:30 +01:00
Cameron McCormack
a86c49ceeb Bug 822548 - Fix a bunch of JS warnings on startup. r=dao 2012-12-19 09:27:56 +11:00
Ed Morley
82b1bd116e Bug 752243 - Disable test_service_wipeServer.js, test_service_createAccount.js, test_service_changePassword.js, test_aitc_server.js, test_aitc_client.js & test_hashcompleter.js on OS X & Linux for too many intermittent failures 2012-12-13 12:48:42 +00:00
Aaron Klotz
ea6a4cfd9e Bug 810101 - Add readahead to safebrowsing .sbstore and .cache files. r=gpascutto 2012-12-12 18:05:04 -05:00
Saurabh Anand
c9e3659e16 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Mounir Lamouri
909bdbd4a5 Bug 811193 - nsIUrlListManager.safeLookup() should take a nsIPrincipal. f=hector sr=sicking 2012-11-19 12:25:48 +00:00
Gian-Carlo Pascutto
7b40c4d417 Bug 806422 - Modify and add tests for new Complete caching behavior in protocol 2.3. r=dcamp 2012-11-06 15:38:25 +01:00
Gian-Carlo Pascutto
24c7a7d71c Bug 806422 - Do not cache Complete's across a SafeBrowsing update. r=dcamp 2012-11-06 15:38:16 +01:00
Gian-Carlo Pascutto
9c30f10c46 Bug 807852 - Position of real request is predictable in Completion requests. r=dcamp 2012-11-03 01:53:11 +01:00
Gian-Carlo Pascutto
a341352f04 Bug 807822 - No noise added to completion request in some circumstances. r=dcamp 2012-11-03 01:53:11 +01:00
Gian-Carlo Pascutto
daa4d4e6ad Bug 807847 - Noise entries are erroneously entered into the misscache. r=dcamp 2012-11-03 01:53:10 +01:00
Gian-Carlo Pascutto
c38ef41d04 Bug 782106 - Disable the per-client randomization in the url-classifier. r=dcamp 2012-11-03 01:53:10 +01:00
Matt Joras
0d8fd6916a Bug 798033 - Removes 'using namespace' from toolkit headers - r=bsmedberg 2012-11-01 18:09:22 -04:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Justin Dolske
344fdefd33 Bug 778608 - Move SafeBrowsing.jsm to toolkit. r=gavin
--HG--
rename : browser/components/safebrowsing/content/blockedSite.xhtml => browser/base/content/blockedSite.xhtml
rename : browser/components/safebrowsing/content/report-phishing-overlay.xul => browser/base/content/report-phishing-overlay.xul
rename : browser/components/safebrowsing/SafeBrowsing.jsm => toolkit/components/url-classifier/SafeBrowsing.jsm
2012-10-29 17:26:41 -07:00
Gian-Carlo Pascutto
3489a8f3a6 Bug 797302 - crash in mozilla::safebrowsing::Classifier::Check. r=dcamp 2012-10-23 09:57:18 +02:00
Isaac Aggrey
cbb17fe7b2 Bug 794510: Part 2: Use more stdint types instead of protypes.h types; r=ehsan 2012-10-11 18:38:04 -05:00
Gian-Carlo Pascutto
87d5a35e3c Bug 795281. r=bholley 2012-10-18 13:52:03 +02:00
Trevor Saunders
3d3592cd63 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Gian-Carlo Pascutto
1e6ae89448 Bug 727370 - Fix typo that crept in while rebasing. r=benjamin 2012-09-28 19:00:20 +02:00
Gian-Carlo Pascutto
b6f12f39f7 Bug 727370 - Small cleanups in HashStore. r=dcamp 2012-09-28 18:31:19 +02:00
Gian-Carlo Pascutto
0a70ff27a3 Bug 727370 - Recover correctly from a Reset during an update. r=dcamp 2012-09-28 18:31:19 +02:00
Gian-Carlo Pascutto
574e827a15 Bug 727370 - Improve HashStore checksumming performance. r=dcamp 2012-09-28 18:31:19 +02:00
Gian-Carlo Pascutto
9513551d00 Bug 727370 - Make SafeBrowsing updates atomic transactions. r=dcamp 2012-09-28 18:31:18 +02:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Makoto Kato
c28c020a8f Bug 784912 - nsIStreamListener.onDataAvailable should handle 64-bit offset. r=honza 2012-09-06 11:41:02 +09:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Ehsan Akhgari
0fd9123eac 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
04236844ff Bug 782252 - Cast some nsresult to PRUint32; r=ehsan 2012-08-09 11:36:40 +03:00
Gian-Carlo Pascutto
8830facf6b Bug 673470 - Update the new SafeBrowsing code to MPL 2.0. r=dcamp 2012-08-15 09:10:56 +02:00
Gian-Carlo Pascutto
cb37e8e991 Bug 673470 - Skip chunks we already have during merges. r=dcamp 2012-08-15 09:10:39 +02:00
Gian-Carlo Pascutto
9edd935068 Bug 673470 - Simplify PrefixSet by removing (unneeded) thread safety. r=dcamp 2012-08-15 09:10:24 +02:00
Gian-Carlo Pascutto
2eadd943e7 Bug 738533 - Replace NS_QuickSort use by qsort. r=dcamp 2012-08-15 09:10:07 +02:00
Gian-Carlo Pascutto
f5f2594165 Bug 750625 - crash in nsUrlClassifierPrefixSet::GetPrefixes. r=dcamp 2012-08-15 09:09:53 +02:00
Gian-Carlo Pascutto
dec706d5ae Bug 673470 - Remove some unneeded PromiseFlatCString. r=dcamp 2012-08-15 09:09:40 +02:00
Gian-Carlo Pascutto
f46a9e09d4 Bug 673470 - Make the PrefixSet/LookupCache construction infallible again. r=dcamp f=jlebar 2012-08-15 09:09:25 +02:00
Gian-Carlo Pascutto
a8c4d5f9db Bug 673470 - Expire SubPrefixes that can't do anything immediately. r=dcamp 2012-08-15 09:08:51 +02:00
Gian-Carlo Pascutto
d8dee3d281 Bug 673470 - Don't resort if not needed. Fix comparator. Cleanups. r=dcamp 2012-08-15 09:08:37 +02:00
Gian-Carlo Pascutto
3403df5b2f Bug 673470 - Fix wrong order of arguments to KeyedHash function. r=dcamp 2012-08-15 09:08:23 +02:00
Gian-Carlo Pascutto
08b56e92fc Bug 673470 - Fix order of SubPrefix Knockouts. r=dcamp 2012-08-15 09:08:09 +02:00
Gian-Carlo Pascutto
5947481955 Bug 673470 - Remove unused compare functions. r=dcamp 2012-08-15 09:07:56 +02:00
Gian-Carlo Pascutto
a13f48e7cf Bug 673470 - Fix inconsistent variable naming. r=dcamp 2012-08-15 09:07:36 +02:00
Gian-Carlo Pascutto
0686262763 Bug 673470 - Fix format description in HashStore.cpp. r=dcamp 2012-08-15 09:07:23 +02:00
Gian-Carlo Pascutto
8e324b990e Bug 768871 - Provide an option to disable per-client randomization. r=dcamp 2012-08-15 09:07:10 +02:00
Gian-Carlo Pascutto
6ded7207a2 Bug 730247 - Use byteslice coding for SafeBrowsing data. r=dcamp 2012-08-15 09:06:54 +02:00
Gian-Carlo Pascutto
c8daec3f7e Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp 2012-08-15 09:05:32 +02:00
Gian-Carlo Pascutto
6f527b11cb 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
3482744475 Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-08-15 09:05:08 +02:00
Gian-Carlo Pascutto
6cd4e0ecf4 Bug 725597 - SafeBrowsing fails to update persistent PrefixSet on Windows. r=dcamp 2012-08-15 09:04:51 +02:00
Gian-Carlo Pascutto
5a5335d7a3 Bug 673470 - Optimize input buffer size. Cache active tables. r=dcamp 2012-08-15 09:04:31 +02:00
Gian-Carlo Pascutto
1c38a63dbe Bug 673470 - Replace the sqlite safeb store with a flat file. r=dcamp 2012-08-15 09:04:19 +02:00
Mark Capella
f6b3d51d4a 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
98c0410ea1 Bug 777292 - modules/libpref/, toolkit/: Fix incorrect conversions to nsresult; r=bsmedberg 2012-07-30 12:24:36 +03:00
Aryeh Gregor
48c36e7140 Bug 779442 - Fix a few more incorrect uses of nsresult; r=ehsan 2012-08-01 11:17:10 +03:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Justin Dolske
d49c55d311 Bug 778606 - SafeBrowsing.jsm should use nsUrlFormatter. r=gcp, f=gavin 2012-08-01 15:52:47 -07:00
Aryeh Gregor
903f6c9c84 Bug 777292 - Convert incorrect conversions to nsresult and fix named constants; r=ehsan 2012-07-27 16:59:29 +03:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Mounir Lamouri
0e7b925d61 Bug 775796 - nsIUrlClassifierDBService.lookup() takes nsIPrincipal. r=bsmith 2012-07-22 12:30:30 -07:00
Mounir Lamouri
a8398c9d66 Bug 775796 - nsIURIClassifier.classify() should takes a principal. r=bsmith 2012-07-20 09:46:59 -07:00
David Zbarsky
80bfa49667 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
a7eb97f896 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
1e22410675 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
41779e1714 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
00f3a215c9 Bug 749930 - Replace uses of nsILocalFile with nsIFile (compiled code only); r=bsmedberg 2012-06-06 14:08:30 +12:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Benjamin Smedberg
4f91700da9 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
ed82784c43 Backout 173f90d397a8 (Bug 673470). rs=dcamp a=mfinkle 2012-04-20 07:46:47 +02:00
Gian-Carlo Pascutto
043f59c89e Backout db52b4916cde (Bug 673470). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
1d386ef3f3 Backout e9291f227d63 (Bug 725597). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
dda85f541f Backout a010dcf1a973 (Bug 726002). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
f533ef04bc Backout 35bf0d62cc30 (Bug 726002). rs=dcamp a=mfinkle 2012-04-20 07:46:46 +02:00
Gian-Carlo Pascutto
d5890c74cd Backout f8bf3795b851 (Bug 729640). rs=dcamp a=mfinkle 2012-04-20 07:46:45 +02:00
Gian-Carlo Pascutto
f939ced67f Backout a01cf079ee0b (Bug 730247). rs=dcamp a=mfinkle 2012-04-20 07:46:45 +02:00
David Rajchenbach-Teller
457f40baba Bug 728171 - Use Scoped.h throughout the code. r=cjones 2012-04-12 12:21:24 +02:00
Richard Newman
a89cec83c5 Backout 0e03eb171e08 (Bug 743574 - Deprecate DOMException.code). a=bustage 2012-04-11 15:33:37 -07:00
David Rajchenbach-Teller
5a08b70435 Bug 728171 - Use Scoped.h throughout the code. r=cjones 2012-04-11 18:59:10 +02:00
Marco Bonardo
63e298422a Merge central to inbound 2012-04-04 13:39:52 +02:00
Serge Gautherie
4e7f0ae625 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
1bdf9d9923 Bug 741333 - Remove PRBool/PR_TRUE/PR_FALSE that crept in r=Ms2ger 2012-04-04 11:15:10 +02:00
Gian-Carlo Pascutto
7c64086a2f Bug 730247 - Use byteslice coding for SafeBrowsing data. r=dcamp 2012-02-27 07:46:41 +01:00
Gian-Carlo Pascutto
35fbc778cc Bug 729640 - Fix broken UrlClassifier assertion. r=dcamp 2012-02-23 18:00:39 +01:00
Gian-Carlo Pascutto
b0748830e9 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
a422ee4e61 Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-02-13 17:09:16 +01:00
Geoff Lankow
b0321a6413 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
c226b55ac3 Backout 91eed468cff8 (Bug 726002) due to broken error handling. 2012-02-13 17:04:46 +01:00
Gian-Carlo Pascutto
4c46c7171c Backout e0e2cc5570ac (Bug 726002) due to broken error handling. 2012-02-13 17:04:46 +01:00
Gian-Carlo Pascutto
72c15e4885 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
570b67b0e4 Bug 726002 - More OOM handling in UrlClassifier. r=dcamp 2012-02-13 13:17:31 +01:00