Commit Graph

622 Commits

Author SHA1 Message Date
Andrew McCreight
a8557bbd38 Bug 1024801, part 2 - LookupCache::GetPrefixes should free arr even on failure. r=gcp 2014-06-26 09:29:06 -07:00
Andrew McCreight
b91bc39826 Bug 1024801, part 1 - Free prefixArray if nsUrlClassifierPrefixSet::GetPrefixes returns an error. r=gcp 2014-06-26 09:29:06 -07:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Benoit Jacob
029e0e533d Bug 1028588 - Fix dangerous public destructors in toolkit/ - r=ehsan 2014-06-23 18:40:02 -04:00
Pin Zhang
1fcd72dad1 Bug 1023767 - Fix bug: HashCompleterRequest.notifyFailure doesn't work. r=mmc 2014-06-11 02:04:00 +02:00
Nicholas Nethercote
7b107d5931 Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg. 2014-05-20 23:06:54 -07:00
Monica Chew
43516179b0 Bug 1017228: Any URL on the blocklist should trump allowlisting (r=gcp) 2014-05-28 17:54:53 -07:00
Gian-Carlo Pascutto
94caff940c Bug 1015978 - Check some PrefixSet invariants to detect & recover from disk corruption. r=mmc 2014-05-28 13:16:52 +02:00
Gian-Carlo Pascutto
f3acb26a0a Bug 1014362 - Reduce the memory usage of SafeBrowsing updates. r=mmc 2014-05-23 23:40:40 +02:00
Birunthan Mohanathas
a575bd9831 Bug 869836 - Part 8: Use Append('c') instead of Append("c"). r=ehsan 2014-05-22 06:48:52 +03:00
Birunthan Mohanathas
fd86bf4972 Bug 869836 - Part 7: Use AppendLiteral instead of Append where possible. r=ehsan 2014-05-22 06:48:51 +03:00
Benoit Jacob
3b25b83743 Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg 2014-05-08 21:03:35 -04:00
Nathan Froyd
0989adf8a1 Bug 1003306 - part 2 - use services::GetPermissionManager everywhere that's appropriate; r=ehsan 2014-04-29 13:27:26 -04:00
Birunthan Mohanathas
eeb9aaaa94 Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj 2014-04-27 03:06:00 -04:00
Monica Chew
4fc0ef41f5 Bug 998396: Fix gethash completions, urlclassifier.malware_table and urlclassifier.phish_table may be comma-separated lists (r=gcp) 2014-04-22 09:46:46 -07:00
Ed Morley
b92ed69cd1 Backed out changeset 73bb0c592bf1 (bug 998396) for debug build failures; CLOSED TREE 2014-04-22 17:37:01 +01:00
Monica Chew
0f2714ec39 Bug 998396: Fix gethash completions, urlclassifier.malware_table and urlclassifier.phish_table may be comma-separated lists (r=gcp) 2014-04-22 09:14:51 -07:00
Ed Morley
758ea81184 Backed out changeset 96e274a243ff (bug 998396) for build failures; CLOSED TREE 2014-04-22 16:36:39 +01:00
Monica Chew
8d6a5887ba Bug 998396: Fix gethash completions, urlclassifier.malware_table and urlclassifier.phish_table may be comma-separated lists (r=gcp) 2014-04-22 08:13:59 -07:00
Gian-Carlo Pascutto
671ea2f5d4 Bug 997872 - Only consider SafeBrowsing tables that need updating for delay calculation. r=mmc 2014-04-22 15:11:53 +02:00
Monica Chew
aa48d70e7a Bug 997759: Prefs for phishing and malware tables are comma-sep lists (r=gcp) 2014-04-17 10:57:08 -07:00
Monica Chew
c5215e23b2 Bug 985720: Rename urlclassifier.download_block_table and urlclassifier.download_allow_table (r=gcp) 2014-03-24 10:49:05 -07:00
Wes Kocher
1614e57618 Backed out changeset 3d94ebde9018 (bug 985720) for missing a file from the patch to fix a CLOSED TREE 2014-03-24 18:07:13 -07:00
Monica Chew
29f425d18a Bug 985720: Rename urlclassifier.download_block_table and urlclassifier.download_allow_table (r=gcp) 2014-03-24 14:57:59 -07:00
Monica Chew
796c721622 Bug 985623: Force url classifier clients to specify which tables to lookup, add a pref to skip hash completion checks (r=gcp) 2014-03-20 14:25:35 -07:00
Neil Rashbrook
afcb26040f Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg 2014-03-18 00:23:03 +00:00
Wes Kocher
5b4557e895 Backed out 2 changesets (bug 514280) for OSX build bustage on a CLOSED TREE
Backed out changeset 2a015b45d808 (bug 514280)
Backed out changeset a01f97c1ed02 (bug 514280)
2014-03-17 15:19:53 -07:00
Neil Rashbrook
91221f71f5 Bug 514280 Stop using nsCOMPtr for concrete types r=bsmedberg 2014-03-17 19:07:09 +00:00
Kyle Huey
be9c9b3eba Bug 345123: Remove nsGetterAddRefs<T>'s operator nsISupports**. r=bsmedberg 2014-03-15 12:00:17 -07:00
Bill McCloskey
195b72030d Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
Wes Kocher
348b38aa47 Backed out changeset 88425ad0f06a (bug 982828) for introducing various mochitest-5 failures on a CLOSED TREE
* * *
Backed out changeset 94f9ebdc6662 (bug 982828)
2014-03-13 19:41:21 -07:00
Bill McCloskey
400a9981b8 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Bill McCloskey
6eb837a8ff Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey
4dcf140fd4 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Vaibhav Agarwal
674ac11e43 Bug 971132 - B2G mochitests should use the new manifest format for runtests; r=jmaher 2014-03-13 10:40:10 -04:00
Gian-Carlo Pascutto
ea339454db Bug 971240 - Move phishing/malware test pages to their own domain. r=mmc 2014-03-07 19:12:23 +01:00
Ehsan Akhgari
4a5a119bb8 Bug 973142 - Get rid of the MOZILLA_INTERNAL_API makefile variable; r=glandium
It's just as easy to directly set the preprocessor macro in the moz.build
files.  Using this variable doesn't really buy us anything.

This patch also removes unused code from rdf/tests/dsds.
2014-02-18 01:56:51 -05:00
Ms2ger
fd78c1a0c4 Bug 968900 - Move LOCAL_INCLUDES to moz.build in toolkit/; r=mshal 2014-02-15 21:25:20 +01:00
Ehsan Akhgari
a88fb35945 Bug 969875 - Use fallible allocations in the URL Classifier some more; r=gcp 2014-02-10 20:51:01 -05:00
Gregory Szorc
dffb8830ba Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.
2014-02-06 13:00:20 -08:00
Gian-Carlo Pascutto
17a5c77d60 Bug 966659 - Add missing semicolon in SafeBrowsing protocol. r=mmc 2014-02-05 08:37:16 +01:00
Gian-Carlo Pascutto
26996dfdea Bug 783047 - Update tests to remove MAC support for SafeBrowsing. r=mmc,dcamp 2014-01-16 09:27:58 +01:00
Gian-Carlo Pascutto
b93913eb3d Bug 783047 - Use HTTPS to download SafeBrowsing update chunks. r=mmc,dcamp 2014-01-16 09:27:58 +01:00
Gian-Carlo Pascutto
84b97b9f8e Bug 783047 - Remove MAC support from SafeBrowsing code. r=mmc,dcamp 2014-01-16 09:27:58 +01:00
Peiyong Lin
ebf44b67d9 Bug 943021 - Safebrowsing service should use fallible arrays for its buffers. r=gcp 2014-01-09 13:17:28 -05:00
Ehsan Akhgari
68bfe70f09 Bug 927728 - Part 1: Replace PRUnichar with char16_t; r=roc
This patch was automatically generated by the following script:

#!/bin/bash
# Command to convert PRUnichar to char16_t

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*modules/libmar*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name prtypes.h \
       ! -name Char16.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 PRUnichar char16_t
2014-01-04 10:02:17 -05:00
Gregory Szorc
6e1333520a Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium
Every directory with a jar.mn now has JAR_MANIFESTS defined in its
moz.build file.

We also removed the may_skip special consideration of jar.mn files
because this information is now available during tier traversal by the
reader courtesy of the variables being present in moz.build files.
2013-12-10 16:18:11 +09:00
Wes Kocher
91bc3d4b0d Merge inbound to m-c 2013-12-12 19:12:51 -08:00
Tim Taubert
9a7f177a80 Bug 947583 - Fix "this.updateProviderURLs is not a function" when toggling "Block reported attack sites" preference r=dolske
From 8ba7cef13d00454ddcdec7e4f8eb32bcb6bee5ac Mon Sep 17 00:00:00 2001
2013-12-07 09:50:19 +01:00
Ryan VanderMeulen
42b8386172 Backed out changesets 5b48376ee2d8 and 2f478d634f23 (bug 943023) for bustage on a CLOSED TREE. 2013-12-10 15:25:55 -05:00