Commit Graph

381 Commits

Author SHA1 Message Date
Daniel Holbert
aa62aecf12 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
3fac1ba092 Bug 825647: Remove unused logging #defines from url-classifier/Entries.h. r=gcp 2013-01-02 09:05:34 -08:00
Daniel Holbert
537eea7c8d 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
5f7e7fca0d 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
b7723e3c58 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
f194fd510a Bug 823665 - Rename urlclassifier.confirm-age to max-complete-age. r=gcp 2012-12-21 08:48:30 +01:00
Cameron McCormack
b0aa52464b Bug 822548 - Fix a bunch of JS warnings on startup. r=dao 2012-12-19 09:27:56 +11:00
Ed Morley
328516ab21 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
72e0eb9819 Bug 810101 - Add readahead to safebrowsing .sbstore and .cache files. r=gpascutto 2012-12-12 18:05:04 -05:00
Saurabh Anand
6de7befa37 Bug 818817 - Fix some compiler warnings, r=Ms2ger 2012-12-09 22:53:19 +05:30
Mounir Lamouri
2075bb969a Bug 811193 - nsIUrlListManager.safeLookup() should take a nsIPrincipal. f=hector sr=sicking 2012-11-19 12:25:48 +00:00
Gian-Carlo Pascutto
984a114679 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
2797888b29 Bug 806422 - Do not cache Complete's across a SafeBrowsing update. r=dcamp 2012-11-06 15:38:16 +01:00
Gian-Carlo Pascutto
9ce11ea689 Bug 807852 - Position of real request is predictable in Completion requests. r=dcamp 2012-11-03 01:53:11 +01:00
Gian-Carlo Pascutto
353aa1ad49 Bug 807822 - No noise added to completion request in some circumstances. r=dcamp 2012-11-03 01:53:11 +01:00
Gian-Carlo Pascutto
6552acb016 Bug 807847 - Noise entries are erroneously entered into the misscache. r=dcamp 2012-11-03 01:53:10 +01:00
Gian-Carlo Pascutto
d73a4777ac Bug 782106 - Disable the per-client randomization in the url-classifier. r=dcamp 2012-11-03 01:53:10 +01:00
Matt Joras
613e229e93 Bug 798033 - Removes 'using namespace' from toolkit headers - r=bsmedberg 2012-11-01 18:09:22 -04:00
Kyle Huey
0469a02b25 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
a78b5b38c7 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
Kyle Huey
9a3674d80a 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
4144129728 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
Kyle Huey
50b5d3f681 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
c6a48948eb 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
929b82ed97 Bug 797302 - crash in mozilla::safebrowsing::Classifier::Check. r=dcamp 2012-10-23 09:57:18 +02:00
Isaac Aggrey
c984edf823 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
4a799dbad8 Bug 795281. r=bholley 2012-10-18 13:52:03 +02:00
Trevor Saunders
000b6e89a1 bug 798595 - remove useless prmem.h includes r=ehsan 2012-10-04 02:14:06 -04:00
Gian-Carlo Pascutto
282c7976cd Bug 727370 - Fix typo that crept in while rebasing. r=benjamin 2012-09-28 19:00:20 +02:00
Gian-Carlo Pascutto
dcad379d15 Bug 727370 - Small cleanups in HashStore. r=dcamp 2012-09-28 18:31:19 +02:00
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