Commit Graph

18223 Commits

Author SHA1 Message Date
Avikalpa Kundu
01c9a4b79c Bug 1345861 - Add C++ test coverage for the Keyed Count Histogram. r=Dexter 2017-04-11 10:46:00 -04:00
Paul Adenot
3fbdc7bca4 Bug 1355015 - Enable AUDIOSTREAM_BACKEND_USED up to version 60. r=bsmedberg,kinetik
MozReview-Commit-ID: d3swgw7r7K
2017-04-10 14:04:07 +02:00
Wes Kocher
8313b4a2ea Backed out changeset 0c7702e42f33 (bug 1354482) for windows xpcshell failures a=backout 2017-04-12 10:04:06 -07:00
Panos Astithas
014c6e1eaf Add an index-per-type histogram for awesomebar results (bug 1345834). data-review=bsmedberg r=adw,bsmedberg
MozReview-Commit-ID: HxqENFSYcJy
2017-04-05 17:51:41 +03:00
Henry Chang
a629121fce Bug 1354968 - Avoid concurrent access of mTableRefreshness. r=francois
mTableRefreshness, a non-thread-safe object, might be accessed on worker thread
and update thread cocurrently. To solve this issue, on update thread we only
insert data to mNewTableRefreshness and merge to mTableRefreshness on
the worker thread later.

MozReview-Commit-ID: 9WgoeYfWVfK
2017-04-11 01:02:42 +08:00
Andrew McCreight
dd709ecf07 Bug 1355611 - Don't load TelemetryStartup.js in the content process. r=gfritzsche
Instead, run the telemetry startup in ContentProcessSingleton.js, to
avoid loading a .jsm in every content process.

MozReview-Commit-ID: BnwoZTjFB3i
2017-04-11 15:13:30 -07:00
Ganesh Chaitanya Kale
6edcf609d0 Bug 1343182 - Add updatePlaces' ignoreErrors, ignoreResults and aGroupNotifications to insertMany API in History.jsm. r=mak
MozReview-Commit-ID: 45VbtBu25cP
2017-04-01 13:10:04 +05:30
Farmer Tseng
e6a1e7ebca Bug 1351190 - Associate printing actor with SystemGroup r=bevistseng,smaug
MozReview-Commit-ID: VNLEKCFrtX
2017-03-29 13:43:44 +08:00
Eugen Sawin
1f617c1192 Bug 1355542 - [2.0] Remove unused web progress callbacks and add missing progress filters. r=felipe 2017-04-13 23:20:17 +02:00
dimi
af40c9d725 Bug 1356067 - Fix memory leak in nsUrlClassifierLookupCallback::CompletionV4. r=francois
MozReview-Commit-ID: 67ANYHWIRX0
2017-04-13 15:39:30 +08:00
Marco Bonardo
5799c4aefd Bug 1355414 - places.sqlite schema migration fails if an application has never used the bookmarks service. r=past
MozReview-Commit-ID: 13YXf2On75J
2017-04-11 16:04:23 +02:00
Carsten "Tomcat" Book
4696c911f8 Merge mozilla-central to autoland 2017-04-13 10:11:47 +02:00
pgadige
533b316bd2 Bug 1344858 - Enable flake8 rule W601: ".has_key() is deprecated, use 'in'". r=Dexter
MozReview-Commit-ID: Far2S2TIZyl
2017-04-12 23:06:29 +05:30
Jean-Yves Avenard
3b67519db6 Bug 1355933: P6. Hook up ADTS sniffer. r=kamidphish
MozReview-Commit-ID: 3aYmCRRbRzg
2017-04-13 02:40:35 +02:00
Jean-Yves Avenard
1ef722ac70 Bug 1355933: P5. Fix coding style. r=gerald
MozReview-Commit-ID: JcwOH7FkyMU
2017-04-13 00:40:01 +02:00
Wes Kocher
74eee0ab05 Merge m-c to autoland, a=merge 2017-04-13 17:35:34 -07:00
Ehsan Akhgari
6e2a41da3c Bug 1316683 - Part 2: Use the non-scriptable LoadContext object in the contentprefs module; r=hurley 2017-04-12 11:32:09 -04:00
Geoff Brown
4a39b65352 Bug 1344401 - Increase wait time in test_formless_submit_navigation_negative, on Android only; r=mattn 2017-04-12 09:15:56 -06:00
Mayank Madan
3a284c17a3 Bug 1349452 - Improve type checking code in parse_events.py. r=dexter 2017-04-11 18:20:15 +05:30
djmdev
088b0050d1 Bug 1353678 - Made duplicate Histograms.json keys build errors. r=gfritzsche
If duplicate keys are present in Histograms.json then histogram_tools.py
will raise error.
2017-04-12 00:14:39 +05:30
Pauline
f932df88d6 Bug 1354036 - Removed use of NS_ASSERT() from TelemetrySession.jsm. r=gfritzsche 2017-04-11 18:44:39 +01:00
Chris Peterson
7b0c896702 Bug 1354778 - Remove expired telemetry probes YOUTUBE_REWRITABLE_EMBED_SEEN and YOUTUBE_NONREWRITABLE_EMBED_SEEN. r=qdot
We know these rewritable YouTube Flash embeds are out there. We don't need to track that we're rewriting them. While only about 0.4% of browser sessions saw rewritable embeds in April 2017, compared to almost 2% in April 2016, is there any reason we would decide to stop rewriting these embeds?

If YouTube ever stops serving Flash video entirely, then we should remove the enablejsapi check (YOUTUBE_NONREWRITABLE_EMBED_SEEN) so users at least see a non-scriptable video instead of nothing.

MozReview-Commit-ID: IixKc6myvs6
2017-04-11 20:41:43 -07:00
Chris Peterson
2331db1b0e Bug 1354778 - Remove expired telemetry probe PLUGIN_BLOCKED_FOR_STABILITY. r=bsmedberg
Firefox 51 users with telemetry enabled blocked about 4.35M SWFs for stability. The block count has been in the single-digit millions for the last few releases. We don't expect these SWFs to go away, so we can stop tracking this telemetry and later replace this plugin blocklist with a more general solution.

MozReview-Commit-ID: KF1jIBTG5m4
2017-04-05 15:26:52 -07:00
Chris Peterson
07aee24a74 Bug 1354778 - Remove expired telemetry probes PLUGIN_ACTIVATION_COUNT and PLUGIN_TINY_CONTENT. r=bsmedberg
As of Firefox 52, Flash is the only NPAPI plugin ever activated. As a keyed histogram for all plugin names, PLUGIN_ACTIVATION_COUNT telemetry is unwieldy to view. We can use the BLOCKED_ON_PLUGIN_INSTANCE_INIT_MS telemetry probe's sample count to track the number of Flash instantiations.

MozReview-Commit-ID: 62iGNLQ0nnE
2017-04-11 20:39:58 -07:00
Iris Hsiao
245d94e72e Merge mozilla-central to mozilla-inbound 2017-04-12 11:24:24 +08:00
Iris Hsiao
2ee1ccc503 merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
Zibi Braniecki
efdaa3952d Bug 1354445 - Migrate Intl.DateTimeFormat to mozIntl.DateTimeFormat in chrome. r=mak
MozReview-Commit-ID: 4z13lcLXN9T
2017-04-08 23:04:32 -07:00
Andrew McCreight
cfb9535d90 Bug 1355248 - Don't eagerly import InsecurePasswordUtils.jsm in LoginManagerContent.jsm. r=MattN
MozReview-Commit-ID: 7XVmlF4LHRQ
2017-04-10 16:01:52 -07:00
Arjun Nair
50a3b83e76 Bug 1354012 - Fixed nice_type_name function always returning basestring. r=gfritzsche
Changed isinstance function to issubclass function since the nice_type_name function takes a type object as its input
2017-04-11 05:02:08 +02:00
Gregory Moore
7ef3821068 Bug 1271991 - Store recording state locally in Telemetry.cpp to avoid excessive locking in CanRecord{Base, Extended}().
MozReview-Commit-ID: FHin1oKEmCn
2017-04-11 10:52:54 -04:00
DimiL
fc56bf5630 Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg
2017-04-07 14:31:04 +08:00
dimi
bb15dc150d 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: GRX7CP8ig49
2017-04-10 14:21:08 +08:00
dimi
5b1a0ff5b5 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: FV4yAl2SAc6
2017-04-11 11:50:48 +08:00
DimiL
c1a8a088db 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
Iris Hsiao
cd018fd494 Backed out 4 changesets (bug 1311935) for causing assertion crash by developer's request
Backed out changeset 27e624cd9479 (bug 1311935)
Backed out changeset 4c0381ab0990 (bug 1311935)
Backed out changeset 73587838ef16 (bug 1311935)
Backed out changeset a5a6c0f79733 (bug 1311935)
2017-04-11 11:04:54 +08:00
Matthew Wein
0d8281e2b9 Bug 1345491 - Fix intermittent caused by closing window before extension is unloaded r=gbrown
MozReview-Commit-ID: KGk1YGrhX9X
2017-04-10 02:21:01 -04:00
DimiL
6e67fcdbfd Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg
2017-04-07 14:31:04 +08:00
dimi
3a7526678a 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: GRX7CP8ig49
2017-04-10 14:21:08 +08:00
dimi
5856f89d1f 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: KgR1NASl7GC
2017-04-10 16:20:09 +08:00
DimiL
c4fc0215be 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
Wes Kocher
0f1d144954 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher
2d64f649cd Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Sebastian Hengst
189424cb45 Backed out changeset 7fdcabdbb675 (bug 1024669) for failing mda, GTest and talos jobs. r=backout on a CLOSED TREE 2017-04-10 19:05:44 +02:00
Alessio Placitelli
8d4b02c01e Bug 1278531 - Disallow adding new "scalar" histograms to Histograms.json. r=gfritzsche
MozReview-Commit-ID: 1cYpF6N99Zi
2017-04-07 14:56:35 +02:00
Florian Queze
dfa27a0961 Bug 1355216 - Mark last parameters that are almost always falsy as optional, r=froydnj. 2017-04-12 00:07:30 +02:00
Gerald Squelart
3288798302 Bug 1354954 - Adjusted some expiring media-related histograms - r=cpearce,francois
MozReview-Commit-ID: BuT7BRaSAzS
2017-04-12 14:19:56 +12:00
Andrew Swan
c5c9303396 Bug 1352152 Fix several issues with optional webextension permissions r=kmag
1. Use the right strings in permission dialogs
2. Don't show permissions dialogs for non-promptable permissions
3. Enable dialogs by default

MozReview-Commit-ID: JJdxxcP7IeU
2017-04-10 19:12:23 -07:00
Andrew Swan
2638071eaa Bug 1350759 Make unknown optional_permissions non-fatal r=kmag
MozReview-Commit-ID: 8IgV2i4b8Ot
2017-04-11 16:05:50 -07:00
Mark Banner
19aed3f0ec Bug 1346825 - Add Screenshot's disabled preferences to telemetry reporting. r=bsmedberg
MozReview-Commit-ID: IyvMCoU6Wn4
2017-03-31 14:14:58 +01:00
Carsten "Tomcat" Book
9d1ffd3915 Merge mozilla-central to mozilla-inbound 2017-04-13 10:10:40 +02:00