Commit Graph

714 Commits

Author SHA1 Message Date
sajitk
2ed26c8df4 Bug 1219482: Replace PRLogModuleInfo with LazyLogModule in toolkit subdirectory.r=erahm 2016-01-28 10:37:00 -08:00
Francois Marier
5f9205dae9 Bug 1164518 - Avoid unnecessary DB updates when caching Safe Browsing results. r=gcp
MozReview-Commit-ID: HYNaTdCRohL

--HG--
extra : rebase_source : 681b33066b21719296c9d33f8d71a72335513188
2016-03-04 12:33:20 -08:00
Francois Marier
5e966c74d9 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

--HG--
extra : rebase_source : c3d86dbe502039ccb1a44fc29df479b29dcf2934
2016-03-02 14:55:44 -08:00
Francois Marier
5306fd5619 Bug 1164518 - Better logging of completions. r=gcp
MozReview-Commit-ID: JqhDC9GzB8l

--HG--
extra : rebase_source : c174046a80d128053adbcc9ca498a14c1f381ca0
2016-03-02 14:54:59 -08:00
Martijn Wargers
5c4ab36d15 Bug 1252444 - Rewrite some dom mochitests to use pushPrefEnv instead of setCharPref. r=jmaher
--HG--
extra : rebase_source : 7b61270760aa225f8c087ea190aaeb49670ca900
2016-03-03 09:41:14 -05:00
Carsten "Tomcat" Book
82cf3c3383 merge mozilla-inbound to mozilla-central a=merge 2016-03-03 11:54:40 +01:00
J. Ryan Stinnett
2a55d065b7 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
aaafa9863d 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
817d22018d Bug 1250439 - preven memory leak in Classifier::GetLookupCache. r=gcp
MozReview-Commit-ID: BlROMq9gFzj

--HG--
extra : rebase_source : eae5d0fd7a6188b787063a255b878488472fdefd
2016-02-24 13:34:10 +02:00
Phil Ringnalda
a6d7a8a0ce Merge m-i to m-c, a=merge 2016-02-13 19:18:53 -08:00
Gijs Kruitbosch
8657691921 Bug 1244259 - wait for SafeBrowsing to have added MozEntries in initial runs of talos perf testing, r=jmaher,gcp
MozReview-Commit-ID: Dvs5RQyhfpy

--HG--
extra : rebase_source : 71ddcd4a67dc803b757549801902a20f3739106c
2016-02-12 08:47:31 +00:00
Aidin Gharibnavaz
686438c658 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
effecd5ec1 Bug 1150921 - Add telemetry for response codes to SafeBrowsing requests. r=francois f=bsmedberg 2016-02-10 17:59:40 +01:00
Nicholas Nethercote
c0d9bd0923 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.

--HG--
extra : rebase_source : 8c5fdb2627376787a65b192b7c566fdde112a926
2016-02-10 08:30:48 +11:00
Gian-Carlo Pascutto
39c3995d68 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
adba0b4d7c 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
5b358688b7 Backed out changeset c18e29c1b369 (bug 1164581) for cpp unit tests test failures
--HG--
extra : rebase_source : fb6fd434c8e3f4b5fa53ea645a54c07cab207894
2016-02-08 11:17:38 +01:00
Aidin Gharibnavaz
69cf7e035f Bug 1164581 - Adding an overload for NS_ProxyRelease that accepts already_AddRefed, and removing all the others. r=bobbyholley
--HG--
extra : rebase_source : 3c6bba6613a14e48239d302bdd0f7fe2e322265d
2016-02-07 10:56:00 +01:00
Wes Kocher
e060c6dced Backed out changeset 24af6caa9bba (bug 1219482) to hopefully fix the intermittent hazard failures CLOSED TREE
--HG--
extra : commitid : ETz5wi5nzdH
2016-01-29 10:15:30 -08:00
sajitk
aff6f586b9 Bug 1219482 - Replace PRLogModuleInfo with LazyLogModule in toolkit subdirectory. r=erahm
--HG--
extra : rebase_source : 71c02b7294a95ecba7876b0372a0dee0ea05b4ed
2016-01-28 10:37:00 -05:00
Christoph Kerschbaumer
eb33d87f83 Bug 1239913 - Convert toolkit/ to use asyncOpen2 where loadingPrincipal is SystemPrincipal (r=sicking) 2016-01-20 12:42:09 -08:00
David Rajchenbach-Teller
583ca7286d Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 39e94507c0288863e495322a6899ff009840870d
2016-01-15 11:38:03 +01:00
Mike Hommey
6032f465cb 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
d8d4a2d1a5 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
2d53758d08 Bug 1224374 - Profiler labels for the top 26-100 chrome hangs;r=BenWa
--HG--
extra : rebase_source : 51d39d6f88bf58ccb29f5897c3dbbe71007ee842
2016-01-15 11:38:03 +01:00
Nigel Babu
be124f0c87 Backed out changeset 740b66ce102b (bug 1239913) for mochitest bustage
--HG--
extra : commitid : BtrgWwDqBJe
2016-01-15 13:31:40 +05:30
Christoph Kerschbaumer
324bf331cc Bug 1239913 - Convert toolkit/ to use asyncOpen2 where loadingPrincipal is SystemPrincipal (r=sicking) 2016-01-14 21:01:56 -08:00
Dave Townsend
86f03db916 Bug 1229142: Link browser and toolkit test directory to the shared eslintrc files. r=Standard8
--HG--
extra : commitid : CKT2WDkxE4k
extra : rebase_source : 0be50c483317355b1e9af5985d53e85604748432
extra : histedit_source : 65d203f57ebd38b8c130e5db9aaa8ae3f507e7ac
2015-11-30 13:05:00 -08:00
Gian-Carlo Pascutto
2652d00be1 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
73ac6a6ca3 Bug 1211090 - Add fallocate support to nsIOutputFileStream and use it. r=froydnj 2015-12-21 17:50:53 +01:00
Gian-Carlo Pascutto
e82778f026 Bug 1211090 - Use Buffered IO for PrefixSet load/store. r=froydnj 2015-12-21 17:50:46 +01:00
Francois Marier
d63cc41a00 Bug 1231557 - Use the URL Classifier in Media elements. r=cpearce,r=gcp
--HG--
rename : dom/media/test/vp9.webm => toolkit/components/url-classifier/tests/mochitest/vp9.webm
2015-12-16 13:24:40 -08:00
Francois Marier
04bf0e5958 Bug 1212649 - Put an upper limit on Safe Browsing polling interval. r=gcp 2015-12-03 17:09:46 -08:00
Gian-Carlo Pascutto
055c8a5585 Bug 1135022 - Add C++ test coverage for UrlClassifier ChunkSets. r=francois 2015-12-02 09:09:01 +01:00
Mike Hommey
9403734fe8 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
125704b36a Bug 1229051 - Reenable C++ unit tests for UrlClassifier by converting to gtest. r=francois
--HG--
rename : toolkit/components/url-classifier/tests/TestUrlClassifierUtils.cpp => toolkit/components/url-classifier/tests/gtest/TestUrlClassifierUtils.cpp
2015-12-01 11:04:25 +01:00
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