Commit Graph

39361 Commits

Author SHA1 Message Date
Jan Beich
b860efe473 Bug 1347661 - Unbreak --enable-warnings-as-errors on platforms without Gecko Profiler. r=gfritzsche
MozReview-Commit-ID: Jp2HsYItboc

--HG--
extra : rebase_source : 506d410b24fcfd82b44a829c442da803d774e79b
2017-03-15 19:05:33 +00:00
Andrew Swan
04b1a97485 Bug 1341011 Pass uri objects in originatingURI for addon install notifications r=mossop
MozReview-Commit-ID: LGRSDdbzIxK

--HG--
extra : rebase_source : bf9358c079c80c1370d78df22cfc95a3f2b287a2
2017-03-01 21:17:46 -08:00
Wes Kocher
ee28f4ee71 Merge inbound to central, a=merge
MozReview-Commit-ID: Fq7B78wD7Wv
2017-03-17 11:03:59 -07:00
Carsten "Tomcat" Book
3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
dimi
b98b77568d Bug 1346196 - URLCLASSIFIER_UPDATE_REMOTE_STATUS2 records values using empty keys. r=francois
mTelemetryProvider might be empty if |CancelUpdate| is called during update.
In that scenario, the call flow will look like:
CancelUpdate -> UpdateError -> DownloadDone -> set mTelemetryProvider to empty ->
OnStartRequest -> record telemetry with empty key.

So in this patch, move mTelemetryProvider.Truncate() to OnStopRequest.

MozReview-Commit-ID: JDgNUqR4SKa

--HG--
extra : rebase_source : 42aa4c898f403a1189e67e355246ebed5aa4af44
2017-03-16 14:42:46 +08:00
Federico Padua
e475364161 Bug 1344844 - Enable flake8 rule E222: "multiple spaces after operator". r=Dexter
This patch enables flake8 rule E222:
"multiple spaces after operator" in toolkit/components/telemetry
by removing the relative E222 entry from toolkit/components/telemetry/.flake8
and fixing the files for which the E222 error was reported.
Precisely 1 error violating E222 rule was found and solved.

MozReview-Commit-ID: 3xx09jkVu3E

--HG--
extra : rebase_source : 23c7ed40161e843ebe1b47fead2b00e4550b90ff
2017-03-14 01:44:29 +01:00
Mark Banner
b792bfe15f Bug 1347884 - Enable eslint cyclomatic complexity rule at existing levels. r=jaws
Enable the rule with the maximums set to avoid current failures, except for test_form_autocomplete which is very
high (82). The levels are set per major area, with existing warnings being changed to errors.

MozReview-Commit-ID: 37M6Ry0Mr1c

--HG--
extra : rebase_source : 07e6864bdd945eb322499912dd702638430c0365
2017-03-16 11:04:39 +00:00
Kris Maglione
589919e4a7 Bug 1333990: Part 3e - Add tests for content script cache eviction. r=aswan,billm
MozReview-Commit-ID: 6SRI8xTuZk5

--HG--
extra : rebase_source : 1618db2982bdb74c2efb8b53048c1ceb998e0049
2017-03-11 20:17:36 -08:00
Kris Maglione
4546457e5e Bug 1333990: Part 3d - Split observe() method to fix complexity warnings. r=aswan
MozReview-Commit-ID: 5ACOf2X5Z7I

--HG--
extra : rebase_source : 23bd6eccaa8ca0c6b0884849c9ad2adbef8e2616
2017-03-10 23:33:06 -08:00
Kris Maglione
085289b49f Bug 1333990: Part 3c - Evict cached content scripts after a timeout and on memory-pressure. r=aswan,billm
This change automatically evicts content scripts 5 minutes after their last
use, and flushes the entire cache whenever a memory-pressure event is
received.

In the case of memory-pressure events other than heap-minimize, we only evict
scripts that have been in the cache for longer than 3 seconds (which is a
fairly arbitrary number) in order to prevent pre-loads from being evicted and
then immediately re-loaded.

MozReview-Commit-ID: LCXkI9qVMxS

--HG--
extra : rebase_source : b81ed3b9962346154fa18eaee58a7411244a1936
2017-03-10 20:11:18 -08:00
Kris Maglione
6a80b8df35 Bug 1333990: Part 3b - Preload matching content scripts when opening document channels. r=aswan,billm
This uses the http-on-opening-request observer that's dispatched in the child
process to begin preloading matching content scripts as early in the load
cycle as possible. Ideally we would use the network predictor for this, but
most of its prediction work happens in the parent process, and there are no
simple ways for us to hook into it.

This currently does not do any pre-loading in the parent process, mainly
because there isn't a good way to distinguish top-level document loads that
are happening directly in the parent versus those that are being proxied from
the child.

MozReview-Commit-ID: dIQW68HtxZ

--HG--
extra : rebase_source : b36f6c8516d0550a0d5bb0df895ce6db76ab3538
2017-03-10 21:01:52 -08:00
Kris Maglione
53e241ffbc Bug 1333990: Part 3a - Use async loading and in-memory caching for WebExtension content scripts. r=aswan
MozReview-Commit-ID: GcdKDbWcUtu

--HG--
extra : rebase_source : 830dfbe0fdd380229340ec8008217e3bd75ec87c
2017-03-16 18:45:22 -07:00
Wes Kocher
c5d1991d35 Merge m-c to inbound, a=merge
MozReview-Commit-ID: AuQEHTgSKcO
2017-03-16 14:07:10 -07:00
Michael Layzell
ccc519e3f4 Bug 1347983 - Part 1: Make forms submitted from a large-allocation page not leave the large-allocation process, r=smaug
MozReview-Commit-ID: 7SEdTJN9Xd2
2017-03-16 14:32:26 -04:00
Florian Quèze
be00c3b9e8 Bug 1345294 - add an eslint rule to reject usage of {get,set}ComplexValue for nsISupportsString and suggest {get,set}StringPref instead, and make it pass, r=Mossop. 2017-03-16 19:26:02 +01:00
Florian Quèze
9c4d40bb54 Bug 1345294 - script generated patch (+ some hand cleanup) to replace {get,set}ComplexValue for nsISupportsString by {get,set}StringPref, r=Mossop. 2017-03-16 19:26:01 +01:00
Florian Quèze
a09d41b402 Bug 1343571 - When clicking an action button of a PopupNotification in an inactive window, focus the window instead of performing the action, r=past. 2017-03-16 19:14:22 +01:00
Sebastian Hengst
e43c8a0ce7 Backed out changeset 8a1c36e9ba80 (bug 1341008) 2017-03-16 17:29:18 +01:00
Carsten "Tomcat" Book
023d5aecd1 Merge mozilla-central to mozilla-inbound 2017-03-16 15:39:58 +01:00
Carsten "Tomcat" Book
468f7d8e9f merge mozilla-inbound to mozilla-central a=merge 2017-03-16 15:35:50 +01:00
Gabor Krizsanits
2fc4ec4086 Bug 1341008 - Use the preallocated process manager by default. r=billm, r=kmag 2017-03-16 11:22:37 +01:00
flyingrub
a8f1cea361 Bug 1346299 - Remove Telemetry Probe: KEYGEN_GENERATED_KEY_TYPE r=jcj,keeler
Removed the probe in Histogram.json and the code related to it in nsKeygenHandler.cpp

MozReview-Commit-ID: E8lGbx19e2C

--HG--
extra : rebase_source : ef958749e6ad2e2b617fd1efdd09cdd3185bef18
2017-03-14 11:54:57 +01:00
Blake Kaplan
6366b92fa6 Bug 1346286 - Remove CPOW usage via browser_bug511456.js. r=Gijs
MozReview-Commit-ID: DGZGwgSxO9T

--HG--
extra : rebase_source : 8d954f8de079c061b234f586b9417fb3a682a001
2017-03-09 17:20:18 -08:00
Marco Castelluccio
62cb24eea6 Bug 1341015 - Document how to build the shared libraries needed for the TelemetryModules test. r=Dexter 2017-03-15 23:22:04 +01:00
djmdev
ba39c68cbb Bug 1344849 - Enabled flake8 rule E201: "whitespace after '{'". r=Dexter
Removed whitespace after '{'
2017-03-15 18:33:48 +05:30
Cameron McCormack
9f8808666b Bug 1341102 - Revendor rust dependencies. r=me (CLOSED TREE)
--HG--
extra : amend_source : acddfc66c347a7b66341931b57446bcd0eadf3bb
2017-03-17 13:07:35 +08:00
Markus Stange
0048861a6b Bug 1329111 - Rename SharedLibraryInfo::mName to mModuleName, and consistently cut off the path on all platforms. r=marco
MozReview-Commit-ID: 8gqqVjTjy1Z

--HG--
extra : rebase_source : 646340086cd46fe023495bfca140e859c98a5205
2017-03-14 17:07:43 -04:00
Henry Chang
b769db9a5e Bug 1347657 - Use array entry as value instead of reference to avoid being invalidated by realloc. r=francois
nsTArray::AppendElement may cause memory reallocation if out of capacity.
In nsUrlClassifierStreamUpdater::FetchNextRequest(), we take the reference of
the first element of mPendingRequests and pass its member as reference to
DownloadUpdate(), where mPendingRequests.AppendElement will be called.
If the AppendElement in DownloadUpdate() causes realloc, the reference
becomes dangling.

The most efficient fix is to "move" the reference's (i.e. request)
member variables to DownloadUpdate() but I think in this case we can just
take the value from the array and pass it around with no given that the
array element contains simply a couple of strings and pointers.

MozReview-Commit-ID: KEZ5d3l3HoI

--HG--
extra : rebase_source : 4bf61a8a6f6bc57523dfbb7e5b0b40b7ce77a57a
2017-03-16 15:19:45 +08:00
Robert Helmer
0865aae1e0 Bug 1347971 - pass oldVersion to install and startup methods for temporary add-on reloads r=aswan
MozReview-Commit-ID: GjEmTt86JaG

--HG--
extra : rebase_source : f41cd67802dadc32fa64b0167735e1991202983c
2017-03-16 13:23:33 -07:00
nechen
5f8404dfd0 Bug 1036764 - Add telemetry for flash. r=bsmedberg,snorp data-r?bsmedberg
MozReview-Commit-ID: 1tsNZlEmx6s

--HG--
extra : rebase_source : 81bae8d6a3b4fb5c1ab037d4bb83722d3152dd86
2017-03-14 14:12:26 +08:00
Scott Wu
45d09e0952 Bug 1343707 - Make datetimepopup.xml binding attach lazily. r=mconley
MozReview-Commit-ID: C7LnrxIbU3K

--HG--
extra : rebase_source : d821a141eb550541a49beaa2afd9b7caf6a054e2
2017-03-03 13:58:53 +08:00
Jared Wein
3581faf3a2 Bug 1347329 - Make sure that the nth-child index gets updated when recursing so that colors get applied correctly when optgroups are used. r=mossop
This problem only occurs when optgroups are involved since they introduce recursion in to the menu-building code and we weren't correctly passing state through
the recursion.

MozReview-Commit-ID: 514zcjgXbIY

--HG--
extra : rebase_source : fdb9309ec8b08f5ab8ca77d901065d5e7db1617f
2017-03-14 19:06:57 -04:00
Jared Wein
bb9354d1a2 Bug 1345375 - Use the FullZoomChange event instead of browser-fullZoom observers since FullZoomChange works on MediaDocuments. r=dao
MozReview-Commit-ID: 9SYHLc2FluC

--HG--
extra : rebase_source : 9468cd5b1f67461e4338d4e0782761667f2f2184
2017-03-14 19:58:38 -04:00
Sebastian Hengst
8eb3901b10 Backed out changeset 899f6ba2fe55 (bug 1347329) for failing browser_selectpopup_colors.js. r=backout 2017-03-16 00:25:57 +01:00
Wes Kocher
1d6765414b Merge m-c to autoland, a=merge
MozReview-Commit-ID: AcDLWqQhcBe
2017-03-15 14:29:24 -07:00
Wes Kocher
06af2f1e92 Merge inbound to central, a=merge
MozReview-Commit-ID: 4p4SK3EhvJ2
2017-03-15 14:24:58 -07:00
Jared Wein
4bccf8475b Bug 1347329 - Make sure that the nth-child index gets updated when recursing so that colors get applied correctly when optgroups are used. r=mossop
This problem only occurs when optgroups are involved since they introduce recursion in to the menu-building code and we weren't correctly passing state through
the recursion.

MozReview-Commit-ID: 514zcjgXbIY

--HG--
extra : rebase_source : fdb9309ec8b08f5ab8ca77d901065d5e7db1617f
2017-03-14 19:06:57 -04:00
Botond Ballo
8ab11416c9 Bug 1346393 - Extend expiry of SCROLL_INPUT_METHODS telemetry probe to Firefox 60. r=bsmedberg
MozReview-Commit-ID: I7axJBSlBTN

--HG--
extra : rebase_source : c5e81f624beaac6135a9232eb11c49919b3d371a
2017-03-10 16:38:58 -05:00
Mike de Boer
1d646c760e Bug 1344926 - add a regression test to make sure themes are persisted across windows using the Theming API. r=mossop
MozReview-Commit-ID: BU7knUPaz1w

--HG--
extra : rebase_source : dcbf16a49544c0feeeb11fb78ef10b3cab36a849
2017-03-14 18:48:13 +01:00
Mike de Boer
66407b6bab Bug 1344926 - make sure that WebExtension theme data is persisted across windows when they open and image data is persisted to disk as well. r=mossop
MozReview-Commit-ID: 5UUjajCa8nK

--HG--
extra : rebase_source : 0fe682294bb98aa233e58099c4402fef44c08cde
2017-03-14 18:36:18 +01:00
Federico Padua
62a009b097 Bug 1344832 - Enable flake8 rule E502: "the backslash is redundant between brackets". r+dexter r=Dexter
This patch enables flake8 rule E502:
"the backslash is redundant between brackets" in toolkit/components/telemetry
by removing the relative E502 entry from toolkit/components/telemetry/.flake8
and fixing the files for which the E502 error was reported.
Precisely 8 errors violating E502 rule were found and solved.

MozReview-Commit-ID: 1z8f3JjJ2gt

--HG--
extra : rebase_source : de0622506a4a5a074ea5afa739b8537832aa4096
2017-03-14 01:04:56 +01:00
Carsten "Tomcat" Book
7decdeb7c8 Merge mozilla-central to autoland 2017-03-15 13:19:12 +01:00
Carsten "Tomcat" Book
f807b332df merge mozilla-inbound to mozilla-central a=merge 2017-03-15 13:12:42 +01:00
Carsten "Tomcat" Book
10f32bd039 Backed out changeset 56b09fa0748c (bug 1345375) on request from dao 2017-03-15 10:23:55 +01:00
Paavini Nanda
ae4cd41b10 Bug 1344854 - Enable flake8 rule F841: "local variable XXX is assigned to but never used". r=dexter 2017-03-14 15:34:42 +05:30
Paavini Nanda
eab7725f67 Bug 1344842 - Enable flake8 rule E261: "at least two spaces before inline comment". r=dexter 2017-03-14 00:46:08 +05:30
Paavini Nanda
187337cc20 Bug 1344840 - Enable flake8 rule E231: "missing whitespace after ','". r=dexter 2017-03-14 00:37:32 +05:30
Cervantes Yu
bd63b2000d Backed out changeset 9ba65a580135 (bug 1320134) for crashing webgl on Windows. r=backout 2017-03-15 12:41:49 +08:00
Cervantes Yu
8b1cde8577 Backed out changeset e91e04dadeb3 (bug 1320134) for crashing webgl on Windows. r=backout 2017-03-15 12:41:21 +08:00
flyingrub
317e205f62 Bug 1346739 - Update aboutTelemetry.js to async fucntion & await r=Dexter
Replaced all Task occurence by an async function

MozReview-Commit-ID: 1HjHtPRTkl7

--HG--
extra : rebase_source : a08ac1030ef93e97ed4228c129f6f4905d99ba42
2017-03-13 12:37:09 +01:00