Commit Graph

18223 Commits

Author SHA1 Message Date
DimiL
6b0a7aba9b Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg
2017-04-07 14:31:04 +08:00
"unknown@unknown.com"
33c89e1ef8 Bug 1311935 - P3. Implement safebrowsing v4 caching logic. r=francois
LookupCacheV4::Has implements safebrowsing v4 caching logic.
1. Check if fullhash match any prefix in local database:
  - If not, the URL is safe.
2. Check if prefix is in the cache(prefix is always the first 4-byte of
   the fullhash, Bug 1323953):
  - If not, send fullhash request
3. Check if fullhash is in the positive cache:
  - If fullhash is found and it is not expired, the URL is not safe.
  - If fullhash is found and it is expired, send fullhash request.
4. If fullhash is not found, check negative cache expired time:
  - If negative cache time is not expired, the URL is safe.
  - If negative cache time is expired, send fullhash request.

MozReview-Commit-ID: HFpqaOGOtUa
2017-04-07 14:30:28 +08:00
dimi
b3df2a0280 Bug 1311935 - P2. Process fullHashes.find response. r=francois
This patch includes following changes:

1. nsUrlClassifierHashCompleter.js
   nsUrlClassifierHashCompleter.idl
   - Add completionV4 interface for hashCompleter to pass response data to
     DB service.
   - Process response data includes negative cache duration, matched full
     hashes and cache duration for each match. Full matches are passed through
     nsIFullHashMatch interface.
   - Change _requests.responses from array contains matched fullhashes to
     dictionary so that it can store additional information likes negative cache
     duration.
2. nsUrlClassifierDBService.cpp
   - Implement CompletionV4 interface, store response data to CacheResultV4
     object. Expired duration to expired time is handled here.
   - Add CacheResultToTableUpdate function to convert V2 & V4 cache result
     to TableUpdate object.
3. LookupCache.h
   - Extend CacheResult to CacheResultV2 and CacheResultV4 so we can store
     response data in CompletionV2 and CompletionV4.
4. HashStore.h
   - Add API and member variable in TableUpdateV4 to store response data.
     TableUpdate object is used by DB service to pass update data or gethash
     response to Classifier, so we need to extend TableUpdateV4 to be able
     to store fullHashes.find response.
6. Entry.h
   - Define the structure about how we cache fullHashes.find response.

MozReview-Commit-ID: 8pUJITn8c1n
2017-04-07 16:56:08 +08:00
DimiL
6032ace43b Bug 1311935 - P1. Make ActiveTables() work for safebrowsing v4. r=francois
This patch fixes that Classifier::ActiveTables doesn't return v4 tables.

Classifier::mActiveTablesCache is generated by scanning safebrowsing directory.
We use Classifier::ScanStoreDir to do the work, but it will ignore subdirectory.
Since v4 tables are stored in subdirectory 'google4', mActiveTablesCache doesn't
include v4 tables.

Fix this issue by checking subdirectory recursively in ScanStoreDir.

MozReview-Commit-ID: I6pa6e4bFND
2017-04-07 14:30:11 +08:00
Henry Chang
7141f6bb42 Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku
We add a new "on-off" protocol PURLClassifierLocal which calls
nsIURIClassifier.asyncClassifyLocalWithTables on construction and
calls back on destruction. Pretty much the same design as PURLClassifier.

In order to avoid code duplication, the actor implementation is templatized
and |MaybeInfo| in PURLClassifier.ipdl is moved around.

Test case is included and the custom event target is not in place for labelling.
The custom event target will be done in Bug 1353701.

MozReview-Commit-ID: IdHYgdnBV7S
2017-04-07 14:15:16 +08:00
Mike Hommey
b1a06955a6 Bug 1344038 - Remove --disable-gio. r=karlt 2017-04-05 14:06:25 +09:00
Tomislav Jovanovic
06b6ba54d3 Bug 1328758 - Better error messages for tabs.executeScript r=kmag
MozReview-Commit-ID: PQhltZVepj
2017-04-02 01:05:37 +02:00
Iris Hsiao
33f7647173 Backed out 3 changesets (bug 1344038) for bustage
Backed out changeset 4befea89d81b (bug 1344038)
Backed out changeset c859506b2e4e (bug 1344038)
Backed out changeset 5d28a6382285 (bug 1344038)
2017-04-06 10:35:56 +08:00
Mike Hommey
a30fe327bd Bug 1344038 - Remove --disable-gio. r=karlt 2017-04-05 14:06:25 +09:00
Matthew Noorenberghe
1a7f4ac402 Bug 1355534 - Revert to longer insecure login field contextual warning string. r=johannh
MozReview-Commit-ID: F2hmNQGLvo8
2017-04-11 13:03:29 -04:00
Gijs Kruitbosch
0bb03c74c3 Bug 1353104 - use HiddenFrame.jsm to create frames for add-on sdk add-ons, r=kmag
MozReview-Commit-ID: CfR9xMPVr9H
2017-04-03 21:25:16 +01:00
Iris Hsiao
67021ac993 Merge mozilla-central to autoland 2017-04-12 11:18:49 +08:00
Luca Greco
870ddaa688 Bug 1354471 - Fix regression in DevToolsContextChild related to the lazy API loading. r=aswan
MozReview-Commit-ID: Kdltgx0JdUi
2017-04-07 05:20:14 +02:00
Kris Maglione
127de18edd Bug 1353078: Fix broken null check. r=trivial
MozReview-Commit-ID: 6YlqhNnk3Ju
2017-04-06 13:32:31 -07:00
Georg Fritzsche
f98cf14ac2 Bug 1276201 - Migrate most recent updates from wiki page into in-tree histogram docs. r=chutten
- Make mxr links into dxr links.
- Fix link naming.
- Add artifact build warning.
2017-04-06 22:10:01 +07:00
Zibi Braniecki
8c433fc56a Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00
Sebastian Hengst
017c2ee2bf Backed out changeset 60d72c2dd49d (bug 1346616) for eslint failure in DirectoryLinksProvider.jsm. r=backout on a CLOSED TREE 2017-04-18 00:48:16 +02:00
Edouard Oger
13c2604142 Bug 1351915 - Fire onItemChanged when deduping sync bookmarks. r=kitcambridge
MozReview-Commit-ID: JHaCz42aRwx
2017-04-08 19:57:39 -04:00
Zibi Braniecki
64bae2dccf Bug 1346616 - Migrate callsites that are retrieving requested locale from pref, to use LocaleService::GetRequestedLocales. r=jfkthame,Pike
I'm adding a helper function mozILocaleService::GetRequestedLocale to simplify
most of the callsites that are looking for the first of the requested locales.

In most cases, I'm just matching the behavior of the code with reusing
LocaleService API instead of direct manipulation on the prefs.
That includes how I handle error case scenarios.

In case of sdk/l10n/locale.js I am reusing LocaleService heuristics over
the custom one from the file since the ones in LocaleService are just
more correct and unified accross the whole platform.

In case of FallbackEncoding I have to turn it into a nsIObserver to listen
to intl:requested-locales-changed.

MozReview-Commit-ID: 7rOr2CovLK
2017-03-11 18:43:11 -08:00
Kirk Steuber
1372e8dd6e Bug 1356156 - Increase test timeout for Flash block tests r=francois
The Flash block tests sometimes timeout in debug runs. So far it has always happened the same way. All assertions in the test run (and pass), but the test times out during cleanup. Bumping up the timeout for these tests should fix this problem.

MozReview-Commit-ID: F04nSzSyLtr
2017-04-14 09:38:39 -07:00
Gijs Kruitbosch
195182ff1e Bug 1346979 - optimize Bookmarks.jsm's updateFrecency, r=mak
MozReview-Commit-ID: GN35Ec0Nn8f
2017-03-27 15:34:14 +01:00
Milan Sreckovic
d5f97e79a4 Bug 1353416: Remove the telemetry that counts the number of times users open about:crashes. Clean up some out of date e-mails and set the expiry on the D3D9 compositor probe. r=rhunt
MozReview-Commit-ID: Huw1XBAzULy
2017-04-04 11:53:07 -04:00
Carsten "Tomcat" Book
d4a6d2ddef Merge mozilla-central to autoland 2017-04-05 14:52:39 +02:00
Carsten "Tomcat" Book
0bc45a9b4c merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
Panos Astithas
dccc3897e7 Fix some duplicate keys in histogram definitions (bug 1353666). r=gfritzsche
MozReview-Commit-ID: KsadndIc7AW
2017-04-05 12:29:26 +03:00
Gijs Kruitbosch
fb9ea4d4cf Bug 1347271 - log preloaded top sites in telemetry and update their naming, r=mak
MozReview-Commit-ID: 6q2H01aa42s
2017-03-22 13:23:15 +00:00
Andrew McCreight
be157ecf4d Bug 1353174, part 1 - Turn ContentObservers.jsm into a process script. r=Gijs
This retains the advantage of running only once per process, while
avoiding the per-process overhead of a jsm.

MozReview-Commit-ID: 1N53MvRwUpg
2017-04-04 11:21:48 -07:00
Mason Chang
94315f83ba Bug 1353521 - Add telemetry probes to find out which display items are being used. r=dvander 2017-04-04 15:19:14 -07:00
Christoph Kerschbaumer
a379f946d8 Bug 1353148 - Change email from seceng@ to seceng-telemetry@. r=francois 2017-04-04 21:58:27 +02:00
Christoph Kerschbaumer
b821cb774b Bug 1353148 - Extend Telemetry Histograms for COOKIE_*, FAMILY_SAFETY, MIXED_CONTENT_OBJECT_SUBREQUEST, WEBRTC_GET_USER_MEDIA_SECURE_ORIGIN and CSP_*. r=dveditz 2017-04-04 20:44:34 +02:00
Georg Fritzsche
d3f8bee9cf Bug 1349324 - Use hourly precision for sessionStartDate & subsessionStartDate. r=dexter 2017-04-05 00:38:10 +07:00
Michael Ratcliffe
df5fc28978 Bug 1347517 - Add telemetry for GCLI commands used r=miker
MozReview-Commit-ID: FBBsZeZkPEt
2017-03-15 18:33:52 +01:00
Carsten "Tomcat" Book
80341a824e Merge mozilla-central to autoland 2017-04-04 12:38:55 +02:00
Carsten "Tomcat" Book
54d9a843d0 merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Alessio Placitelli
3f5b2c4054 Bug 1345108 - Reduce resolution for timestamp in crashreporter's crash pings. r=ted
MozReview-Commit-ID: 5BA51mWlkqW
2017-04-03 17:38:29 +02:00
Bill McCloskey
c0de0c00f0 Bug 1350724 - Remove telemetry for tab cache position (r=mconley)
MozReview-Commit-ID: 5yJUeC2HxPs
2017-04-03 19:41:13 -07:00
Paul Bignier
85572d46c2 Bug 1352825 - Fix comment typos of 'docshell'. r=MattN 2017-04-03 09:09:00 -04:00
Paul Bignier
c1fcb05d9d Bug 1352802 - Typo fixes around 'accessible'. r=MattN
MozReview-Commit-ID: 27CyNOMXkRq
2017-04-03 09:47:00 -07:00
Wes Kocher
a48bef3729 Merge m-c to inbound, a=merge 2017-04-03 14:51:06 -07:00
Nathan Froyd
ed16c00923 Bug 1346814 - don't export sStartupTimeline{,Desc}; r=bsmedberg
Fewer symbols exported = more better.
2017-04-03 16:02:31 -04:00
Boris Chiou
235f10203b Bug 1349808 - Add telemetry for cases when we can't run async animations due to layer size being too large. data-review=bsmedberg, r=birtles,botond,bsmedberg
MozReview-Commit-ID: 61DBw1DHbQA
2017-03-24 15:53:54 +08:00
Kris Maglione
52b67bf633 Bug 1350522: Part 7 - Merge pageAction/browserAction/sidebarAction/commands helper classes into API instances. r=aswan
MozReview-Commit-ID: 6aRQ1uybAmg
2017-03-26 18:42:59 -07:00
Kris Maglione
ef300362e4 Bug 1350522: Part 6 - Cleanup per-api-instance state logic. r=aswan
MozReview-Commit-ID: 5ixBA34fvFf
2017-03-25 11:36:56 -07:00
Kris Maglione
9e1d79362b Bug 1350522: Part 5 - Remove registerSchemaAPI(). r=aswan
MozReview-Commit-ID: 5yK2wUms86G
2017-03-25 13:59:14 -07:00
Kris Maglione
937291f42b Bug 1350522: Part 4 - Convert browser APIs to lazy loading. r=aswan
MozReview-Commit-ID: BQoWF9nHOuF
2017-04-02 11:59:55 -07:00
Kris Maglione
884009911d Bug 1350522: Part 2 - Convert toolkit APIs to lazy loading. r=aswan
MozReview-Commit-ID: 8TbTIM4WX2d
2017-03-31 19:36:00 -07:00
Kris Maglione
dccaa03b3d Bug 1350522: Part 1 - Allow lazily loading and instantiating API modules. r=aswan
MozReview-Commit-ID: 7ETOJL6ERkg
2017-03-31 17:16:39 -07:00
Sebastian Hengst
8a5ccc785d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-01 13:12:04 +02:00
Sebastian Hengst
027188f7d6 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5E7o1qELKmN
2017-04-01 13:09:55 +02:00
Sebastian Hengst
f2311edef8 Backed out changeset 1b4e77a9d11d (bug 1350522) for leaking in browser_ext_incognito_popup.js. r=backout 2017-04-01 12:39:05 +02:00