Commit Graph

645 Commits

Author SHA1 Message Date
Cykesiopka
5e169a1449 Bug 1247798 - Make nsUrlClassifierDBService::Init() register pref observers only in the success case. r=gcp, a=ritu
These observers should only be added when everything else has succeeded.
Failing to do so can cause long shutdown hangs in certain situations such as during periodic HSTS update runs.

MozReview-Commit-ID: IoJ4PscS1u3
2016-04-03 00:58:43 -07:00
Tobias Schneider
d9f822bff9 Bug 1237198 - [experiment] Block SWFs on the content blocking list hosted on the Shavar service 0.6.9 r=francois a=ritu
MozReview-Commit-ID: 7Zgdjph7wN3
2016-04-06 16:34:08 -07:00
Francois Marier
19dcdb931c Bug 1164518 - Avoid unnecessary DB updates when caching Safe Browsing results. r=gcp
MozReview-Commit-ID: HYNaTdCRohL
2016-03-04 12:33:20 -08:00
Francois Marier
10c24213b7 Bug 1164518 - Minor optimizations for Safe Browsing completions. r=gcp
- added an early exit to skip table string comparisons on a 204
- removed an unnecessary NS_WARNING on gethash errors (e.g. 503s)
- do the noise check first since it's the majority of completions

MozReview-Commit-ID: Lqae5DbUrs8
2016-03-02 14:55:44 -08:00
Francois Marier
db54d940f9 Bug 1164518 - Better logging of completions. r=gcp
MozReview-Commit-ID: JqhDC9GzB8l
2016-03-02 14:54:59 -08:00
Martijn Wargers
153c131077 Bug 1252444 - Rewrite some dom mochitests to use pushPrefEnv instead of setCharPref. r=jmaher 2016-03-03 09:41:14 -05:00
Carsten "Tomcat" Book
3712947f1d merge mozilla-inbound to mozilla-central a=merge 2016-03-03 11:54:40 +01:00
J. Ryan Stinnett
0af8bf06b1 Bug 1238160 - Rename OriginAttributes.mInBrowser and associated methods. r=bz,mayhemer
This change renames OriginAttributes.mInBrowser to mInIsolatedMozBrowser and
nsIPrincipal::GetIsInBrowserElement to GetIsInIsolatedMozBrowserElement.  Other
methods that pass these values around also have name changes.

Tokens such as "inBrowser" have previously been serialized into cache keys, used
as DB column names, stored in app registries, etc.  No changes are made to any
serialization formats.  Only runtime method and variable names are updated.

No behavior changes are made in this patch, so some renamed methods may have
nonsensical implementations.  These are corrected in subsequent patches
focused on behavior.

MozReview-Commit-ID: 66HfMlsXFLs
2016-03-02 10:35:56 -06:00
Panos Astithas
07e35e1bef Bug 1252449 - Enable test_classifier.html and test_classifier_worker.html on e10s. r=gcp
MozReview-Commit-ID: AxKMYI7nDkD
2016-03-02 15:33:55 +02:00
Bogdan Postelnicu
fec847a56d Bug 1250439 - preven memory leak in Classifier::GetLookupCache. r=gcp
MozReview-Commit-ID: BlROMq9gFzj
2016-02-24 13:34:10 +02:00
Phil Ringnalda
e67329a593 Merge m-i to m-c, a=merge 2016-02-13 19:18:53 -08:00
Gijs Kruitbosch
7be93a5465 Bug 1244259 - wait for SafeBrowsing to have added MozEntries in initial runs of talos perf testing, r=jmaher,gcp
MozReview-Commit-ID: Dvs5RQyhfpy
2016-02-12 08:47:31 +00:00
Aidin Gharibnavaz
e084f12c9a Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-10 08:23:00 +01:00
Gian-Carlo Pascutto
93d27418ab Bug 1150921 - Add telemetry for response codes to SafeBrowsing requests. r=francois f=bsmedberg 2016-02-10 17:59:40 +01:00
Nicholas Nethercote
867c012a9d Bug 1205358 - Fix up nsUrlClassifierPrefixSet memory reporting. r=gcp.
This patch reverts the "measure-in-advance" approach added in part 1 of bug
1050108 -- because that doesn't interact well with DMD -- and adds locking to
avoid races between the url-classifier thread and the main thread.
2016-02-10 08:30:48 +11:00
Gian-Carlo Pascutto
a2217bc73d Bug 1247615 - Fix off-by-one error in PrefixSet Delta storage compaction. r=froydnj 2016-02-12 17:09:58 +01:00
Gian-Carlo Pascutto
3161f46444 Bug 1244259 - Limit PrefixSet read and write buffer sizes to file size. r=froydnj 2016-02-12 08:54:12 +01:00
Carsten "Tomcat" Book
ab60132384 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures 2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
238dcd01fc Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley 2016-02-07 10:56:00 +01:00
Wes Kocher
ee1d30307e Backed out changeset 24af6caa9bba (bug 1219482) to hopefully fix the intermittent hazard failures CLOSED TREE 2016-01-29 10:15:30 -08:00
sajitk
3e6850097a Bug 1219482 - Replace PRLogModuleInfo with LazyLogModule in toolkit subdirectory. r=erahm 2016-01-28 10:37:00 -05:00
Christoph Kerschbaumer
818f65f4da Bug 1239913 - Convert toolkit/ to use asyncOpen2 where loadingPrincipal is SystemPrincipal (r=sicking) 2016-01-20 12:42:09 -08:00
David Rajchenbach-Teller
8dc9509180 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Mike Hommey
701930ba6c Bug 1240660 - Remove "+" prefixes in jar manifests. r=gps
Now that the faster make backend is enabled by default avoiding
cross-jar.mn file conflicts, and now that individual files can't
overlap with wildcards in the same jar.mn files, which were two
main things that the "+" prefix was used for (apart from
cargo-culting), the "+" prefixes in the tree are not necessary
anymore.
2016-01-20 07:24:40 +09:00
Sebastian Hengst
e687c33b0f Backed out 2 changesets (bug 1224374) for Windows bustage. r=bustage on a CLOSED TREE
Backed out changeset 5f458e6e4997 (bug 1224374)
Backed out changeset 0dc02cb0b604 (bug 1224374)
2016-01-19 21:30:41 +01:00
David Rajchenbach-Teller
ad8745d7f6 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa 2016-01-15 11:38:03 +01:00
Nigel Babu
7a2f0185be Backed out changeset 740b66ce102b (bug 1239913) for mochitest bustage 2016-01-15 13:31:40 +05:30
Christoph Kerschbaumer
a1b360e857 Bug 1239913 - Convert toolkit/ to use asyncOpen2 where loadingPrincipal is SystemPrincipal (r=sicking) 2016-01-14 21:01:56 -08:00
Dave Townsend
fb1e757d42 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8 2015-11-30 13:05:00 -08:00
Gian-Carlo Pascutto
953ea6bc74 Bug 1211090 - Don't fail to open databases if we can't do buffered IO. r=froydnj 2015-12-21 17:51:03 +01:00
Gian-Carlo Pascutto
aca95000a9 Bug 1211090 - Add fallocate support to nsIOutputFileStream and use it. r=froydnj 2015-12-21 17:50:53 +01:00
Gian-Carlo Pascutto
28e468da92 Bug 1211090 - Use Buffered IO for PrefixSet load/store. r=froydnj 2015-12-21 17:50:46 +01:00
Francois Marier
f02e0bedd4 Bug 1231557 - Use the URL Classifier in Media elements. r=cpearce,r=gcp 2015-12-16 13:24:40 -08:00
Francois Marier
3a6b089bdb Bug 1212649 - Put an upper limit on Safe Browsing polling interval. r=gcp 2015-12-03 17:09:46 -08:00
Gian-Carlo Pascutto
f94e0bba1d Bug 1135022 - Add C++ test coverage for UrlClassifier ChunkSets. r=francois 2015-12-02 09:09:01 +01:00
Mike Hommey
3441224a73 Bug 1225682 - Don't use nsAuto{,C}String as class member variables in toolkit/. r=froydnj 2015-12-02 11:04:37 +09:00
Gian-Carlo Pascutto
3ba58bd0a4 Bug 1229051 - Reenable C++ unit tests for UrlClassifier by converting to gtest. r=francois 2015-12-01 11:04:25 +01:00
Francois Marier
10659e5c64 Bug 1216793 - Add tests for TP in XHRs and fetch(). r=gcp 2015-11-30 16:28:39 -08:00
Francois Marier
82a10aa30b Bug 1213400 - Fix crash in broken Safe Browsing list updates. r=gcp 2015-11-30 12:44:28 -08:00
Yoshi Huang
dc3740f0fa Bug 1209162 - Create OriginAttributes subtypes. IGNORE IDL r=sicking. 2015-11-03 09:50:54 +08:00
Francois Marier
feac78ad6f Bug 1216723 - Add tests for the new -forbid- Safe Browsing list type. r=gcp 2015-11-20 20:25:11 -08:00
Francois Marier
8a1fa6c429 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
df8330fb2f Bug 1100338 - Do not consider noise for Completion matches. Remove dead code. r=francois 2015-07-06 04:24:00 +02:00
Sebastian Hengst
8e4791c17c 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
edef0afa45 Backout bug 1220442 for typo in bug number. r=backout 2015-11-01 21:20:17 +01:00
Sebastian Hengst
31e6a5a5e5 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
4433e7ff59 Bug 1175685 - Add special appId for SAFEBROWSING_APP_ID. r=ckerschb 2015-10-21 13:43:00 +02:00
Tooru Fujisawa
682bfa0898 Bug 1217082 - Remove for-each from toolkit/. r=Gijs 2015-10-19 04:57:14 +09:00
Francois Marier
cf366b873d 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
e4e2da55c9 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