Граф коммитов

39897 Коммитов

Автор SHA1 Сообщение Дата
Carsten "Tomcat" Book ee9da45454 merge mozilla-inbound to mozilla-central a=merge 2017-04-11 10:17:24 +02: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
Kaku Kuo a9ee9f11cc Bug 1354465 P2 - use mozvideoonlyseekbegin event to start throbber timer; r=jaws,jwwang
MozReview-Commit-ID: 4zwcoB8M3xI

--HG--
extra : rebase_source : 8bf50d1bc7e5532de0c7b70c0c20ff6f74fe8c19
2017-04-07 18:06:20 +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
Sebastian Hengst 7c5a88b206 Backed out changeset a2b8da35820b (bug 1024669) 2017-04-10 19:04:52 +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
Wes Kocher b861a89ae4 Merge m-c to inbound, a=merge 2017-04-10 16:37:35 -07:00
Frank-Rainer Grahl 5a9e0a94bc Bug 1354866 - Skip updating mochitest/browser for TB and SM. r=rstrong,chmanchester 2017-04-10 22:02:25 +02:00
Robert Strong af651cefc1 Test only - Bug 1354850 - Use updater to run general app update service tests and remove gonk test code. r=mhowell 2017-04-10 13:00:06 -07:00
Michael Layzell fd68582d06 Bug 1352553 - Update rust-url-capi to use the new nserror crate, r=valentin
MozReview-Commit-ID: 3X3MRb9Iujz
2017-04-10 15:21:25 -04:00
Nico Grunbaum 9352ee95aa Bug 1344970 - rename mozRtt to roundTripTime r=jib,smaug
MozReview-Commit-ID: 3kES8JUPd3n

--HG--
extra : rebase_source : e49846845d7cbd43f96d13cb1881e0383517f197
2017-03-06 15:50:10 -08: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
Chris Manchester 432c408057 Bug 1337986 - Remove code handling parallelism from symbolstore.py r=ted
This removes handling of dumping symbols in parallel from symbolstore.py
and updates unit tests.
A prior commit made symbolstore.py handle a single file at a time, leaving
concurrency to be handled by make, so this is no longer needed.

MozReview-Commit-ID: C7IHdVHHjRH

--HG--
extra : rebase_source : 4e90ca5d5f64fe0b1cd29a08d5c262dc0fdfcc33
2017-04-10 10:27:49 -07:00
Simon Sapin 8f7b8a3663 Bug 1352815 - "codegen-units = 4" for Rust code in debug mode r=froydnj
MozReview-Commit-ID: IIFVmijY4B3

--HG--
extra : rebase_source : 1722dba55a1759f15b82532c13f1e61affd28e9b
2017-04-02 14:17:44 +02: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
Sebastian Hengst 37409bb05b merge mozilla-central to autoland. r=merge a=merge 2017-04-09 20:50:44 +02:00
Tim Nguyen 76d0710e86 Bug 1041895 - Add support for different flags with text filtering. r=rickychien
MozReview-Commit-ID: GvHXYIxwFrM

--HG--
extra : rebase_source : 91e217701e43cc78fd638c09f889ca16e81af35f
2017-04-09 17:42:00 +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
Servo VCS Sync 89c762cc0c No bug - Revendor rust dependencies 2017-04-07 06:46:39 +00: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 8ff3505864 Merge m-c to a CLOSED TREE m-i 2017-04-06 21:16:43 -07:00
Phil Ringnalda cb5344f715 Backed out changeset 228a6487d0c1 (bug 1350781) for eslint failures
CLOSED TREE
2017-04-06 21:16:03 -07:00
Phil Ringnalda 607ccd57d2 Backed out changeset a50a4f9e972b (bug 1322554) for near-permaorange in Win8 debug updater xpcshell tests 2017-04-06 21:00:26 -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
Wes Kocher 0c3144c6f6 Merge inbound to central, a=merge 2017-04-06 15:01:34 -07: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