Commit Graph

670 Commits

Author SHA1 Message Date
Sebastian Hengst
fe18621b64 Bug 1220422 - Check if safe browsing's updateCheckers have already been set to null. r=gcp 2015-11-01 10:16:42 +01:00
Dragana Damjanovic
fbc0161034 Bug 1175685 - Add special appId for SAFEBROWSING_APP_ID. r=ckerschb 2015-10-21 13:43:00 +02:00
Tooru Fujisawa
2bf22fe47e Bug 1217082 - Remove for-each from toolkit/. r=Gijs 2015-10-19 04:57:14 +09:00
Francois Marier
392bd3a2f9 Bug 1215396 - Log Safe Browsing prefixes as they are added to the local database. r=gcp 2015-10-19 14:13:49 -07:00
Nathan Froyd
4e6d8f6705 Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout.  The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.

CLOSED TREE makes big refactorings like this a piece of cake.

 # The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
    xargs perl -p -i -e '
 s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
 s/nsRefPtr ?</RefPtr</g;   # handle declarations and variables
'

 # Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h

 # Handle nsRefPtr.h itself, a couple places that define constructors
 # from nsRefPtr, and code generators specially.  We do this here, rather
 # than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
 # things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
     mfbt/nsRefPtr.h \
     xpcom/glue/nsCOMPtr.h \
     xpcom/base/OwningNonNull.h \
     ipc/ipdl/ipdl/lower.py \
     ipc/ipdl/ipdl/builtin.py \
     dom/bindings/Codegen.py \
     python/lldbutils/lldbutils/utils.py

 # In our indiscriminate substitution above, we renamed
 # nsRefPtrGetterAddRefs, the class behind getter_AddRefs.  Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
    xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'

if [ -d .git ]; then
    git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
    hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
2015-10-18 01:24:48 -04:00
Francois Marier
f7099025b6 Bug 1214448 - Always log nextupdate time in Safe Browsing debugging. r=gcp 2015-10-14 11:35:10 -07:00
Carsten "Tomcat" Book
036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo
474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Gian-Carlo Pascutto
761749e88b Bug 1175562 - Persist last update time for SafeBrowsing. r=francois 2015-10-06 13:53:07 +02:00
Tooru Fujisawa
33909699d9 Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Tooru Fujisawa
8624800172 Backed out changeset 55b45f61cfd2 (bug 1207498) for Linux pgo M(oth) failure 2015-09-27 23:42:27 +09:00
Tooru Fujisawa
c8e217312c Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs 2015-09-24 20:36:01 +09:00
Kaustabh Datta Choudhury
f58f529429 Bug 1162003 - Enable run-by-dir mode for mochitest_chrome on Fx desktop opt builds. r=jmaher 2015-09-23 13:39:45 -04:00
Gian-Carlo Pascutto
a18e7ed61e Bug 1204367 - Only do SafeBrowsing debug logging when debug is enabled. r=francois 2015-09-17 09:59:26 +02:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Francois Marier
b1b32467ca Bug 1203347 - Increase Safe Browsing debug logging around gethash (JS). r=gcp 2015-09-14 18:04:02 -07:00
Francois Marier
87a8cb0d57 Bug 1203347 - Increase Safe Browsing debug logging around gethash (C++). r=gcp 2015-09-14 18:03:56 -07:00
Francois Marier
a854b89308 Bug 1203347 - Increase Safe Browsing debug logging around downloads. r=gcp 2015-09-14 18:03:48 -07:00
Kaustabh Datta Choudhury
1306ff3c92 Bug 1162003 - Enable run-by-dir mode on Fx desktop debug & ASAN builds. r=jmaher 2015-09-10 09:52:00 +02:00
Gian-Carlo Pascutto
882c9fd75f Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-09-08 08:22:10 +02:00
Carsten "Tomcat" Book
f5a2ce7b81 Backed out changeset 2734a3110b4a (bug 1107372) for Talos Bustage on a CLOSED TREE 2015-08-31 16:19:39 +02:00
Gian-Carlo Pascutto
c98015f382 Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-08-27 10:05:23 +02:00
Nicholas Nethercote
12fec02dfb Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
2015-08-27 20:44:53 -07:00
Yoshi Huang
d2b4917583 Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley 2015-08-18 15:01:42 +08:00
Bobby Holley
d12b79b75a Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Yoshi Huang
431a4ee3e8 Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Francois Marier
769b2df062 Bug 1197000 - Better debugging output for Safe Browsing list updates. r=gcp 2015-08-21 13:53:53 -07:00
Christoph Kerschbaumer
25b4ac2786 Bug 1195504 - Use channel->ascynOpen2 toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp (r=sicking) 2015-08-18 09:53:15 -07:00
Francois Marier
2074ff80bf Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp 2015-08-07 13:08:22 -07:00
Nicholas Nethercote
37d91ed8fe Bug 1188745 - Rename nsTArray::SizeOfExcludingThis() as ShallowSizeOfExcludingThis(). r=froydnj.
This makes it clearer that, unlike how SizeOf*() functions usually work, this
doesn't measure any children hanging off the array.

And do likewise for nsTObserverArray.
2015-07-28 23:24:24 -07:00
Bobby Holley
710865df63 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Ehsan Akhgari
e2d8c16c72 Bug 1188158 - Move nsIPrivateBrowsingTrackingProtectionWhitelist to its own component in toolkit; r=jdm 2015-07-28 15:01:05 -04:00
Matthew Noorenberghe
5ff30460f9 Bug 1185549 - Add two test domains to test-track-simple for testing and touring tracking protection. r=francois 2015-07-27 11:05:26 -07:00
Panos Astithas
d31454ed51 Bug 1145503 - TP exceptions added while in Private Browsing mode persist beyond the Private Browsing session. r=ehsan 2015-07-26 13:23:12 +03:00
Francois Marier
e345e8d34e Bug 1180323 - Only look at TP table before cancelling speculative connections. r=gcp 2015-07-11 19:19:29 +02:00
Gian-Carlo Pascutto
07a876cf4c Bug 1182599 - Check for corrupted delta array in UrlClassifier. r=francois 2015-07-14 09:37:12 +02:00
Birunthan Mohanathas
a29151dc87 Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00
Carsten "Tomcat" Book
deb4fb0627 merge mozilla-inbound to mozilla-central a=merge 2015-07-13 11:51:14 +02:00
Matthew Noorenberghe
d9f5fb86fe Bug 1182269 - Create UrlClassifierTestUtils.jsm to share URL Classifier test code. r=francois 2015-07-09 16:40:24 -04:00
Brian Grinstead
81d33f200e Bug 1182333 - Add trackingprotection tag for relevant tests;r=MattN 2015-07-09 17:03:58 -07:00
Dragana Damjanovic
f5e3e71a6d Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00
Emanuel Hoogeveen
b30abdc582 Bug 905127 - Part 1 - Make some functions from nsNetUtil not inline. r=jduell 2015-07-07 04:17:00 +02:00
Geoff Brown
e7ae18404c Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Justin Dolske
ac58940228 Bug 1109475 - Firefox should use HTTPS instead of HTTP for Safe Browsing URLs. r=gcp 2015-06-16 12:28:42 -07:00
Francois Marier
b4c8ee3609 Bug 1157081 - Make tracking protection work when malware and phishing protections are disabled. r=sworkman 2015-06-11 21:48:17 +12:00
Birunthan Mohanathas
b2bc133c18 Bug 1172610 - Remove now unnecessary safebrowsing::ReadTArray overload for FallibleTArray. r=gcp 2015-06-10 14:30:41 -07:00
Birunthan Mohanathas
ed3f53328d Bug 968520 - Add mozilla::fallible to FallibleTArray::InsertElementSorted calls. r=froydnj 2015-06-08 13:40:00 -07:00
Eric Rahm
900b3ebc4d Bug 1165515 - Part 13-2: Replace usage of PRLogModuleLevel and PR_LOG_*. rs=froydnj
This is straightforward mapping of PR_LOG levels to their LogLevel
counterparts:
  PR_LOG_ERROR   -> LogLevel::Error
  PR_LOG_WARNING -> LogLevel::Warning
  PR_LOG_WARN    -> LogLevel::Warning
  PR_LOG_INFO    -> LogLevel::Info
  PR_LOG_DEBUG   -> LogLevel::Debug
  PR_LOG_NOTICE  -> LogLevel::Debug
  PR_LOG_VERBOSE -> LogLevel::Verbose

Instances of PRLogModuleLevel were mapped to a fully qualified
mozilla::LogLevel, instances of PR_LOG levels in #defines were mapped to a
fully qualified mozilla::LogLevel::* level, and all other instances were
mapped to us a shorter format of LogLevel::*.

Bustage for usage of the non-fully qualified LogLevel were fixed by adding
|using mozilla::LogLevel;| where appropriate.
2015-06-03 15:25:57 -07:00
Eric Rahm
ab32c89747 Bug 1165515 - Part 3: Convert PR_LOG_TEST to MOZ_LOG_TEST. r=froydnj 2015-06-03 15:22:28 -07:00