Commit graph

17976 commits

Author SHA1 Message Date
Ganesh Chaitanya Kale
8d1b6e2ac3 Bug 1343182 - Add updatePlaces' ignoreErrors, ignoreResults and aGroupNotifications to insertMany API in History.jsm. r=mak
MozReview-Commit-ID: 45VbtBu25cP

--HG--
extra : rebase_source : dbae98bcf296ce119980e48a3e303aa279c62dba
2017-04-01 13:10:04 +05:30
Ehsan Akhgari
53e5d6e240 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
2d4a51be11 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
0e6b239976 Bug 1349452 - Improve type checking code in parse_events.py. r=dexter 2017-04-11 18:20:15 +05:30
djmdev
8203a7abfd 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
a772f2755b Bug 1354036 - Removed use of NS_ASSERT() from TelemetrySession.jsm. r=gfritzsche 2017-04-11 18:44:39 +01:00
Chris Peterson
014cbbe2d8 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

--HG--
extra : rebase_source : f1f9f7ea9cffc585f95ff83dbeedd734e0b83cc3
2017-04-11 20:41:43 -07:00
Chris Peterson
c720e89de7 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

--HG--
extra : rebase_source : 5dbdfadfed4f88da33fb4f2efc66c7dd1777b2b3
2017-04-05 15:26:52 -07:00
Chris Peterson
a38084c85f 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

--HG--
extra : rebase_source : b4a31a6bcb7b2525693b078838de726023f37d14
2017-04-11 20:39:58 -07:00
Iris Hsiao
d13a81eccb Merge mozilla-central to mozilla-inbound 2017-04-12 11:24:24 +08:00
Iris Hsiao
944f87c575 merge mozilla-inbound to mozilla-central a=merge 2017-04-12 11:16:46 +08:00
Zibi Braniecki
9f6c244d29 Bug 1354445 - Migrate Intl.DateTimeFormat to mozIntl.DateTimeFormat in chrome. r=mak
MozReview-Commit-ID: 4z13lcLXN9T

--HG--
extra : rebase_source : 8043212542b95ca76cf5957fa1ca05e6943fb635
2017-04-08 23:04:32 -07:00
Andrew McCreight
ac0aa28aaa Bug 1355248 - Don't eagerly import InsecurePasswordUtils.jsm in LoginManagerContent.jsm. r=MattN
MozReview-Commit-ID: 7XVmlF4LHRQ

--HG--
extra : rebase_source : 6aa6f2d1e2b8b36fab351f28d5e1d4181807a334
2017-04-10 16:01:52 -07:00
Arjun Nair
8838b5602f 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
8f58bc59e0 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
83e6d8500c Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg

--HG--
extra : rebase_source : 868f508256c06724e24f8a7c91171aaae72200d2
2017-04-07 14:31:04 +08:00
dimi
7842472dad 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

--HG--
extra : rebase_source : 6d3ae8929b11731584810c44d46a1526f7d83e12
2017-04-10 14:21:08 +08:00
dimi
127351f6ef 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

--HG--
extra : rebase_source : 02676ded9bc0580c24b4c906199a4abaf004e296
2017-04-11 11:50:48 +08:00
DimiL
b4f6db923f 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

--HG--
extra : rebase_source : 49d19101bec780e21db668b2daff3c46bbdb3fd2
2017-04-07 14:30:11 +08:00
Iris Hsiao
3d85c0330d 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
ae5e5e016c Bug 1345491 - Fix intermittent caused by closing window before extension is unloaded r=gbrown
MozReview-Commit-ID: KGk1YGrhX9X

--HG--
extra : rebase_source : 4a61cafec1dff5b1660b7fcac022511a4e96f291
2017-04-10 02:21:01 -04:00
DimiL
1acdaf206b Bug 1311935 - P4. GTest for safebrowsing v4 caching. r=francois
MozReview-Commit-ID: ExR5NJUvzNg

--HG--
extra : rebase_source : ec16b8b1e976753a013d27c197ac54c98b1d5501
2017-04-07 14:31:04 +08:00
dimi
a58847dca1 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

--HG--
extra : rebase_source : bcb5fa7aa2b7b116d862e3382447611424603c2d
2017-04-10 14:21:08 +08:00
dimi
5112db082c 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

--HG--
extra : rebase_source : 424db14e4af2ffd691c384414d50f64083d5d20b
2017-04-10 16:20:09 +08:00
DimiL
516a287f2b 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

--HG--
extra : rebase_source : 49d19101bec780e21db668b2daff3c46bbdb3fd2
2017-04-07 14:30:11 +08:00
Wes Kocher
5eabc03c18 Merge m-c to autoland a=merge 2017-04-10 16:55:21 -07:00
Wes Kocher
05965b79a9 Merge inbound to central, a=merge 2017-04-10 16:32:45 -07:00
Sebastian Hengst
1828ea89ca 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
5f7cf90533 Bug 1278531 - Disallow adding new "scalar" histograms to Histograms.json. r=gfritzsche
MozReview-Commit-ID: 1cYpF6N99Zi

--HG--
extra : rebase_source : cecc8e8004dabc99de56c5eabba13e236ad05476
2017-04-07 14:56:35 +02:00
Florian Queze
b5916a37c7 Bug 1355216 - Mark last parameters that are almost always falsy as optional, r=froydnj. 2017-04-12 00:07:30 +02:00
Mike Conley
6fea222c62 Bug 1354698 - Add tests for View Source in both the tab and window mode when doing DocGroup checks. r=jryans
MozReview-Commit-ID: BDTYuEMho6L

--HG--
extra : rebase_source : e14f373e7e4ba04519e408180aacaf3a27e5e19f
2017-04-09 01:31:10 -04:00
Tomislav Jovanovic
4a2810c87b Bug 1345225 - Check if webRequest filters overlap with host permissions r=kmag
MozReview-Commit-ID: 1tMHynv9FBO

--HG--
extra : rebase_source : 2d031c0a6485381e824d3df1b3d793a3b67ef3fe
2017-03-26 20:53:28 +02:00
Tomislav Jovanovic
4e66cb86ca Bug 1318565 - Test extension permission to read from a tainted canvas r=kmag
MozReview-Commit-ID: FkgSLDRyY3R

--HG--
rename : toolkit/components/extensions/test/mochitest/test_ext_contentscript_drawWindow.html => toolkit/components/extensions/test/mochitest/test_ext_contentscript_canvas.html
extra : rebase_source : 19099e6c1bea2acc564e1321ff115ad4a5d4d39a
2017-04-01 15:38:23 +02:00
Joel Maher
bc070be3c8 Bug 1351067 - add BUG_COMPONENT to toolkit/* files. r=myk,enndeakin,mossop
MozReview-Commit-ID: 8mv5Oed68JL
2017-04-09 05:43:43 -04:00
Sebastian Hengst
ed655b907f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-08 22:56:39 +02:00
Sebastian Hengst
6a5fe3bae0 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IkoXCAwjjKu
2017-04-08 22:49:04 +02:00
Kris Maglione
95a6ae2dc4 Bug 1351163: Part 4 - Don't start moz-anno: requests until the channel is opened. r=bz
MozReview-Commit-ID: HbaNUqLRtK6

--HG--
extra : rebase_source : 467e79de201751bb52a9b3149b7fe10ea9bf89d5
2017-04-07 22:36:01 -07:00
Kris Maglione
d970b2ad34 Bug 1353150: Add tests for WebExtension Xray named element property access. r=bz,mixedpuppy
MozReview-Commit-ID: ARyek92K5qR
2017-04-06 15:20:24 -07:00
Georg Fritzsche
0cc29e5de7 Bug 1347216 - Fix categorical keyed histograms. r=Dexter
This also fixes an existing bug where we checked for the wrong type in JSKeyedHistogram_Add().
KeyedHistogram::GetHistogramType() returns one of the histogram types from nsITelemetry.idl, not one of the chromium types (base::*).

I extended the test coverage accordingly, as it seemed to be lacking.
2017-04-07 20:55:51 +07:00
Carsten "Tomcat" Book
e9a1efbf89 Backed out changeset d4b635aa0c2e (bug 893505) for eslint failure
--HG--
extra : rebase_source : 4d3d223400907e2ed63384a6cf457a0b41d2624e
2017-04-07 15:53:19 +02:00
Carsten "Tomcat" Book
3a762886de Merge mozilla-central to mozilla-inbound 2017-04-07 15:33:03 +02:00
Marco Bonardo
5af6b5b2cc Bug 1353783 - updatePlaces doesn't correctly notify and count embed visits. r=Gijs
Additionally, move some history tests to the history folder, split insertMany tests into their own test file.
Also, remove some no more needed android annotations, Firefox for Android doesn't use nor build Places anymore.

MozReview-Commit-ID: 6p4mazeUjsw

--HG--
rename : toolkit/components/places/tests/unit/test_async_history_api.js => toolkit/components/places/tests/history/test_async_history_api.js
rename : toolkit/components/places/tests/history/test_updatePlaces_sameUri_titleChanged.js => toolkit/components/places/tests/history/test_sameUri_titleChanged.js
extra : rebase_source : 1061f3ceb6dc20b9a94a39a7d400670ac45657d0
2017-04-06 14:24:25 +02:00
Johann Hofmann
9cd3d14848 Bug 1337772 - Part 2 - Explicitly trigger a mousedown event before opening the context menu in browser_context_menu.js. r=MattN
MozReview-Commit-ID: ADTskzMoK9t

--HG--
extra : rebase_source : 6133986c9e3c470f6e2fb3c5a172a82c0f07fd8a
2017-04-06 11:00:11 +02:00
Johann Hofmann
c7f84eacc4 Bug 1337772 - Part 1 - Use mousedown instead of contextmenu to avoid showing the password autocomplete. r=MattN
MozReview-Commit-ID: EUZ1f6Qdm0c

--HG--
extra : rebase_source : e0b4f4f5d14407a831ca6efe4481f6c884682b39
2017-04-07 00:01:31 +02:00
mcfuller
4016e83b57 Bug 1354039 - Remove unused PromiseUtils.jsm import from TelemetryController.jsm and TelemetryEnvironment.jsm. r=gfritzsche 2017-04-07 00:34:44 -07:00
Gabor Krizsanits
e2e7641412 Bug 1344174 -Add measure for memory distribution among child processes. r=chutten 2017-04-07 12:14:45 +02:00
Phil Ringnalda
cb5344f715 Backed out changeset 228a6487d0c1 (bug 1350781) for eslint failures
CLOSED TREE
2017-04-06 21:16:03 -07:00
Ehsan Akhgari
3ee2f84634 Bug 1350781 - Avoid recomputing gBrowserThumbnails._topSiteURLs for 1 minute after computing it to speed up session restore; r=markh 2017-04-06 23:26:08 -04:00
Doug Thayer
765003669c Bug 893505 - Simplify the application update UI. r=Gijs, r=enndeakin, r=rstrong, data-r=bsmedberg
There are quite a few changes in here. At a high level, all we're trying to do is to replace the old update popup with a less intrusive and more modern doorhanger (set of doorhangers) for various update success and failure conditions.
2017-04-06 17:20:36 -07:00
Sebastian Hengst
3f2001d7b9 Backed out 2 changesets (bug 893505) for failing eslint. r=backout
Backed out changeset 5880d471d75c (bug 893505)
Backed out changeset 3246d7cb2729 (bug 893505)
2017-04-07 01:04:54 +02:00