Commit Graph

678 Commits

Author SHA1 Message Date
Francois Marier
88fc749776 Bug 1216793 - Add tests for TP in XHRs and fetch(). r=gcp 2015-11-30 16:28:39 -08:00
Francois Marier
34937ffbe4 Bug 1213400 - Fix crash in broken Safe Browsing list updates. r=gcp 2015-11-30 12:44:28 -08:00
Yoshi Huang
4b500464f5 Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Francois Marier
f6fd256206 Bug 1216723 - Add tests for the new -forbid- Safe Browsing list type. r=gcp 2015-11-20 20:25:11 -08:00
Francois Marier
67506f65a6 Bug 1216723 - Add a new -forbid- Safe Browsing list type. r=gcp,r=smaug 2015-11-20 20:24:50 -08:00
Gian-Carlo Pascutto
760f31a46e Bug 1100338 - Do not consider noise for Completion matches. Remove dead code. r=francois 2015-07-06 04:24:00 +02:00
Sebastian Hengst
3b20ee2cf4 Bug 1220442 - Check if safe browsing's updateCheckers have already been set to null. r=gcp 2015-11-01 10:16:42 +01:00
Sebastian Hengst
f3b461c82a Backout bug 1220442 for typo in bug number. r=backout 2015-11-01 21:20:17 +01:00
Sebastian Hengst
5e3f00c149 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
4233416b20 Bug 1175685 - Add special appId for SAFEBROWSING_APP_ID. r=ckerschb 2015-10-21 13:43:00 +02:00
Tooru Fujisawa
65e2703499 Bug 1217082 - Remove for-each from toolkit/. r=Gijs
--HG--
extra : commitid : Ewr7Bixammr
extra : rebase_source : 91e560a7b8b8d4b78debb1db2512867262b18375
2015-10-19 04:57:14 +09:00
Francois Marier
3ae91b2ba9 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
01583602a9 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

--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Francois Marier
b029f538a5 Bug 1214448 - Always log nextupdate time in Safe Browsing debugging. r=gcp 2015-10-14 11:35:10 -07:00
Carsten "Tomcat" Book
08997000eb 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
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Gian-Carlo Pascutto
31cf95e1cd Bug 1175562 - Persist last update time for SafeBrowsing. r=francois 2015-10-06 13:53:07 +02:00
Tooru Fujisawa
3f9809017c Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs
--HG--
extra : commitid : J57uE7zSSsN
extra : rebase_source : b81cb1977b5beb9abc7cf132cd70648f406eb8ed
2015-09-24 20:36:01 +09:00
Tooru Fujisawa
816c72630a Backed out changeset 55b45f61cfd2 (bug 1207498) for Linux pgo M(oth) failure
--HG--
extra : commitid : 5g4QL4KrAot
2015-09-27 23:42:27 +09:00
Tooru Fujisawa
41ec522633 Bug 1207498 - Part 2: Remove use of expression closure from tests in toolkit/components/. r=Gijs
--HG--
extra : commitid : 1xymr2vWeyn
extra : rebase_source : 286757f28e8e392760d216f1b8bd25925ffe43b7
2015-09-24 20:36:01 +09:00
Kaustabh Datta Choudhury
d64ac7ea6b 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
6051bff6eb Bug 1204367 - Only do SafeBrowsing debug logging when debug is enabled. r=francois 2015-09-17 09:59:26 +02:00
Shu-yu Guo
64db2267cf 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
a897a6152a Bug 1203347 - Increase Safe Browsing debug logging around gethash (JS). r=gcp 2015-09-14 18:04:02 -07:00
Francois Marier
aeb9dbcf18 Bug 1203347 - Increase Safe Browsing debug logging around gethash (C++). r=gcp 2015-09-14 18:03:56 -07:00
Francois Marier
ef41c4971f Bug 1203347 - Increase Safe Browsing debug logging around downloads. r=gcp 2015-09-14 18:03:48 -07:00
Kaustabh Datta Choudhury
2a080acfd0 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
34122d2ae8 Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-09-08 08:22:10 +02:00
Carsten "Tomcat" Book
fa01817a0a Backed out changeset 2734a3110b4a (bug 1107372) for Talos Bustage on a CLOSED TREE 2015-08-31 16:19:39 +02:00
Gian-Carlo Pascutto
ba3b7a169c Bug 1107372 - Update preferences for new SafeBrowsing prefs structure. r=francois 2015-08-27 10:05:23 +02:00
Nicholas Nethercote
f44287005f 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.

--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Yoshi Huang
e6070e9062 Bug 1165272 - Part 2: replace getNoAppCodebasePrincipal. r=bholley 2015-08-18 15:01:42 +08:00
Bobby Holley
edfe287f26 Backed out 3 changesets (bug 1165272) for b2g sanity blocker. 2015-08-25 11:16:21 -07:00
Yoshi Huang
de47f4b89f Bug 1165272 - Part 2: Replace getNoAppCodebasePrincipal. r=bholley 2015-08-24 01:18:00 -04:00
Francois Marier
186536664b Bug 1197000 - Better debugging output for Safe Browsing list updates. r=gcp 2015-08-21 13:53:53 -07:00
Christoph Kerschbaumer
7f1862f574 Bug 1195504 - Use channel->ascynOpen2 toolkit/components/url-classifier/nsUrlClassifierStreamUpdater.cpp (r=sicking) 2015-08-18 09:53:15 -07:00
Francois Marier
e5ccece7d7 Bug 1141352 - add a pairwise allowlist to tracking protection. r=gcp
--HG--
rename : toolkit/components/url-classifier/tests/mochitest/test_privatebrowsing_trackingprotection.html => toolkit/components/url-classifier/tests/mochitest/test_trackingprotection_whitelist.html
rename : toolkit/components/url-classifier/tests/mochitest/classifiedAnnotatedPBFrame.html => toolkit/components/url-classifier/tests/mochitest/whitelistFrame.html
2015-08-07 13:08:22 -07:00
Nicholas Nethercote
87b80f8c66 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.

--HG--
extra : rebase_source : 6a8c8d8ffb53ad51b5773afea77126cdd767f149
2015-07-28 23:24:24 -07:00
Bobby Holley
97b9240b34 Bug 1188696 - Hoist nsRefPtr.h into MFBT. r=froydnj 2015-07-29 10:44:59 -07:00
Ehsan Akhgari
736bd7b4ce Bug 1188158 - Move nsIPrivateBrowsingTrackingProtectionWhitelist to its own component in toolkit; r=jdm
--HG--
rename : toolkit/components/url-classifier/nsURLClassifier.manifest => toolkit/components/privatebrowsing/PrivateBrowsing.manifest
rename : toolkit/components/url-classifier/PrivateBrowsingTrackingProtectionWhitelist.js => toolkit/components/privatebrowsing/PrivateBrowsingTrackingProtectionWhitelist.js
rename : toolkit/components/url-classifier/moz.build => toolkit/components/privatebrowsing/moz.build
rename : toolkit/components/url-classifier/nsIPrivateBrowsingTrackingProtectionWhitelist.idl => toolkit/components/privatebrowsing/nsIPrivateBrowsingTrackingProtectionWhitelist.idl
2015-07-28 15:01:05 -04:00
Matthew Noorenberghe
6f9a19b6df Bug 1185549 - Add two test domains to test-track-simple for testing and touring tracking protection. r=francois
--HG--
extra : commitid : LsqBSGfXUYA
extra : rebase_source : 6ea924ebaf755b427ffdb4af716fa4ee9ff55f82
2015-07-27 11:05:26 -07:00
Panos Astithas
398e652b24 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
741f8fa206 Bug 1180323 - Only look at TP table before cancelling speculative connections. r=gcp
--HG--
extra : transplant_source : w/%18%F8VL%0B%F4%D2%2ApY%03%D8%26%B2%26A%A1%13
2015-07-11 19:19:29 +02:00
Gian-Carlo Pascutto
6ffc4e3652 Bug 1182599 - Check for corrupted delta array in UrlClassifier. r=francois 2015-07-14 09:37:12 +02:00
Birunthan Mohanathas
a8939590de 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
4a67c881e4 merge mozilla-inbound to mozilla-central a=merge 2015-07-13 11:51:14 +02:00
Matthew Noorenberghe
2118e69217 Bug 1182269 - Create UrlClassifierTestUtils.jsm to share URL Classifier test code. r=francois
--HG--
extra : commitid : 7gzBYsuhMNF
extra : rebase_source : fb14ad8c691d5ebbec1080f701e9cf489cbafafb
2015-07-09 16:40:24 -04:00
Brian Grinstead
440d6b2252 Bug 1182333 - Add trackingprotection tag for relevant tests;r=MattN
--HG--
extra : commitid : I2SEfoYlkCc
2015-07-09 17:03:58 -07:00
Dragana Damjanovic
7987d2203e Bug 905127 - Part 2 - remove unnecessary nsNetUtil.h includes r=jduell 2015-07-06 07:55:00 +02:00