Commit graph

138 commits

Author SHA1 Message Date
Florian Quèze
616e1235c9 Bug 1521209 - Give more space for the 'Energy Impact' column header, and ensure it never wraps, r=Felipe.
Differential Revision: https://phabricator.services.mozilla.com/D18868

--HG--
extra : moz-landing-system : lando
2019-02-06 22:19:17 +00:00
Andrea Marchesini
43a5f36077 Bug 1522210 - Fingerprinting and cryptomining classifiers must have separate nsIWebProgressListener blocking state codes - part 1 - UrlClassifierFeatureFactory::IsClassifierBlockingErrorCode, r=ehsan
Differential Revision: https://phabricator.services.mozilla.com/D17637
2019-01-30 13:43:34 +01:00
Myk Melez
25349d2601 Bug 1518283 - prohibit blank lines at the beginning and end of blocks (eslint padded-blocks) r=mossop,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17526

--HG--
extra : moz-landing-system : lando
2019-01-30 17:26:25 +00:00
Kris Maglione
e930b89c34 Bug 1514594: Part 3 - Change ChromeUtils.import API.
***
Bug 1514594: Part 3a - Change ChromeUtils.import to return an exports object; not pollute global. r=mccr8

This changes the behavior of ChromeUtils.import() to return an exports object,
rather than a module global, in all cases except when `null` is passed as a
second argument, and changes the default behavior not to pollute the global
scope with the module's exports. Thus, the following code written for the old
model:

  ChromeUtils.import("resource://gre/modules/Services.jsm");

is approximately the same as the following, in the new model:

  var {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");

Since the two behaviors are mutually incompatible, this patch will land with a
scripted rewrite to update all existing callers to use the new model rather
than the old.
***
Bug 1514594: Part 3b - Mass rewrite all JS code to use the new ChromeUtils.import API. rs=Gijs

This was done using the followng script:

https://bitbucket.org/kmaglione/m-c-rewrites/src/tip/processors/cu-import-exports.jsm
***
Bug 1514594: Part 3c - Update ESLint plugin for ChromeUtils.import API changes. r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D16747
***
Bug 1514594: Part 3d - Remove/fix hundreds of duplicate imports from sync tests. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16748
***
Bug 1514594: Part 3e - Remove no-op ChromeUtils.import() calls. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16749
***
Bug 1514594: Part 3f.1 - Cleanup various test corner cases after mass rewrite. r=Gijs
***
Bug 1514594: Part 3f.2 - Cleanup various non-test corner cases after mass rewrite. r=Gijs

Differential Revision: https://phabricator.services.mozilla.com/D16750

--HG--
extra : rebase_source : 359574ee3064c90f33bf36c2ebe3159a24cc8895
extra : histedit_source : b93c8f42808b1599f9122d7842d2c0b3e656a594%2C64a3a4e3359dc889e2ab2b49461bab9e27fc10a7
2019-01-17 10:18:31 -08:00
Florian Quèze
4886287a53 Bug 1498195 - cleanup CSS selectors that dealt with about:performance containing multiple tables, r=felipe. 2019-01-09 12:43:43 +01:00
Florian Quèze
698dfa2ef9 Bug 1498195 - adapt the browser_aboutperformance.js test to cover the new about:performance, r=felipe. 2019-01-09 12:43:42 +01:00
Florian Quèze
77a4fab013 Bug 1498195 - remove the code of the old about:performance, r=felipe. 2019-01-09 12:43:41 +01:00
Florian Quèze
dd49ba8708 Bug 1511102 - update the about:performance table immediately when switching back to the tab, r=felipe. 2018-12-13 18:06:42 +01:00
Florian Quèze
2d12b8195e Bug 1505750 - Use the Fluent API directly to avoid flicker when resizing the window, r=gandalf. 2018-12-13 14:17:15 +01:00
Florian Quèze
a58e0eb64c Bug 1498190 - implement the 'Memory' column in about:performance, r=felipe,flod. 2018-11-22 23:51:24 +01:00
Florian Quèze
4289b4da98 Bug 1506105 - Display the clickable icons using the content property instead of as a background image so that they are visible in high contrast mode, r=felipe. 2018-11-20 15:32:01 +01:00
Florian Quèze
d1374aff48 Bug 1507117 - aboutPerformance.js, add a null check before accessing row.nextSibling when removing a subtree, r=Gijs. 2018-11-14 14:46:45 +01:00
Florian Quèze
719df7584c Bug 1507114 - use a span element instead of an img element for action and twisty icons, r=emilio. 2018-11-14 14:46:43 +01:00
Florian Quèze
1594d28bf4 Bug 1502951 - fix about:performance layout issues caused by scrollbars on small windows and on Windows, r=felipe. 2018-11-10 17:09:23 +01:00
Florian Quèze
7861bf99f0 Bug 1503680 - fix about:performance styling to support RTL, r=felipe. 2018-11-10 17:09:21 +01:00
Florian Quèze
7ac9331b66 Bug 1505031 - stop using the global 'event' object in about:performance, r=felipe. 2018-11-06 18:44:37 +01:00
Florian Quèze
40a58cb720 Bug 1504709 - Freeze the sort order of about:performance for 5s on click events, r=felipe. 2018-11-05 18:12:41 +01:00
Florian Quèze
2d5bfd42f3 Bug 1502080 - Freeze the sort order of about:performance for 5s when the mouse is moved, r=felipe. 2018-10-31 22:04:58 +01:00
Florian Quèze
86f3147cb8 Bug 1502437 - Hide system add-ons in about:performance when browser internals are hidden, r=felipe. 2018-10-31 19:10:51 +01:00
Florian Quèze
97a292d889 Bug 1502440 - Hide browser internals in about:performance for beta and release users, r=felipe. 2018-10-31 19:10:51 +01:00
Florian Quèze
49d3852c79 Bug 1500482 - Use performance.svg as the about:performance favicon, r=felipe.
--HG--
rename : browser/themes/shared/icons/performance.svg => toolkit/themes/shared/icons/performance.svg
2018-10-19 18:09:42 +02:00
Florian Quèze
36fea05e0e Bug 1241024 - follow-up to fix eslint failure, rs=bustage-fix. 2018-10-18 18:53:54 +02:00
Florian Quèze
9e9fb05eb0 Bug 1241024 - Make about:performance localizable, r=gandalf,flod. 2018-10-18 18:35:44 +02:00
Florian Quèze
f953b97c5e Bug 1498185 - Implement the type and action columns in the new about:performance, r=felipe. 2018-10-17 14:12:16 +02:00
Daniel Varga
b968d57de2 Backed out changeset 37647eaadbc2 (bug 1498185) for browser chrome failure at browser/base/content/test/static/browser_all_files_referenced.js on a CLOSED TREE
--HG--
extra : amend_source : ee848bfdd426a2171f8983c0e7ecac7e212a8090
extra : histedit_source : b7da4f22a3afbf58b6772f6d26cf5c8ee4790c4b
2018-10-18 01:43:34 +03:00
Florian Quèze
a3a484776c Bug 1498185 - Implement the type and action columns in the new about:performance, r=felipe. 2018-10-17 22:24:14 +02:00
Florian Quèze
66ed0fd5f4 Bug 1496782 - Hide subitems by default in about:performance, r=felipe. 2018-10-08 23:06:45 +02:00
Florian Quèze
0127298238 Bug 1496780 - Make the about:performance layout match the UX mockup, r=felipe. 2018-10-08 23:06:41 +02:00
Tarek Ziadé
ac5abf5c61 Bug 1496506 - Flip the pref for the new about:performance r=florian,baku
This activates by default the new about:performance page and its underlying
counters in Firefox

MozReview-Commit-ID: LccL6zBHUHm

Differential Revision: https://phabricator.services.mozilla.com/D7884

--HG--
extra : moz-landing-system : lando
2018-10-05 15:54:03 +00:00
Florian Quèze
07653630e4 Bug 1491865 - Show an 'Energy Impact' column instead of the 'dispatches' and 'duration' values and sort based on it, r=felipe. 2018-09-18 12:24:49 +02:00
Florian Quèze
eb55e96aca Bug 1491385 - Use performance counter ids in about:performance to display information for subitems and have a more stable sorting, r=felipe. 2018-09-18 12:24:49 +02:00
Florian Quèze
eab9ffb0ea Bug 1491384 - A double click on a row in about:performance should select the related tab, r=felipe. 2018-09-18 12:24:49 +02:00
Florian Quèze
677e3b50e3 Bug 1491383 - let the user select a row with the mouse in about:performance, r=felipe. 2018-09-18 12:24:49 +02:00
Florian Quèze
227c0fc31c Bug 1491382 - never attempt to check if a moz-nullprincipal url is a known tracker, r=felipe. 2018-09-18 12:24:49 +02:00
Tarek Ziadé
c955693f09 Bug 1479740 - Track Web API calls made in the child - r=florian,mixedpuppy
The performance counter is now also used in the children, and
the ParentAPIManager.retrievePerformanceCounters() can be used
to aggregate all counters into a promise.

Differential Revision: https://phabricator.services.mozilla.com/D5399

--HG--
extra : moz-landing-system : lando
2018-09-14 14:29:08 +00:00
Florian Quèze
aa03e83d41 Bug 1489512 - about:performance should use the trackers icon instead of the tracking protection one, r=johannh. 2018-09-10 21:43:46 +02:00
Florian Quèze
1973f4a454 Bug 1489505 - about:performance items should all have a name, r=felipe. 2018-09-10 21:43:46 +02:00
Florian Quèze
c293ba6c93 Bug 1489504 - Show WebExtension API activity in about:performance, r=felipe,tarek. 2018-09-10 21:43:46 +02:00
Mark Banner
691543ee89 Bug 1486739 - Add missing dangling commas in browser/, services/, taskcluster/ and toolkit/. r=mossop
Automatic changes by ESLint, except for manual corrections for .xml files.

Differential Revision: https://phabricator.services.mozilla.com/D4439

--HG--
extra : moz-landing-system : lando
2018-08-31 05:59:17 +00:00
Kris Maglione
6adf9223ce Bug 1484496: Part 5b - Convert toolkit/ nsISimpleEnumerator users to use JS iteration. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D3730

--HG--
extra : rebase_source : 935f166ec2c6581ba6f3fffe912404e81c8dc3d6
extra : histedit_source : ba701801de5205dcce6cfdccabe7b26aa7c7859c
2018-08-18 19:27:50 -07:00
Florian Quèze
84a98d0bdc Bug 1481554 - make the regexp used to detect uuids and change them to add-on names stricter, r=mconley. 2018-08-07 20:38:03 +02:00
Florian Quèze
d2bb806dca Bug 1478856 - make the about:performance sort order more stable, r=felipe. 2018-07-27 23:00:30 +02:00
Florian Quèze
eb0a43c2d9 Bug 1477677 - about:performance should display information from the new performance counters when they are enabled, r=felipe. 2018-07-24 15:30:52 +02:00
Florian Quèze
c23f304b7f Bug 1474990 - Remove the 'Memory usage of Subprocesses' table from about:performance, r=mconley. 2018-07-12 20:01:23 +02:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Tooru Fujisawa
1adba8c1fc Bug 1442465 - Part 4.2: Stop unnecessarily awaiting on BrowserTestUtils.removeTab (simple part). r=dao 2018-03-19 11:16:45 +09:00
Andrew McCreight
5dec0e0beb Bug 1432992, part 1 - Remove definitions of Ci, Cr, Cc, and Cu. r=florian
This patch was autogenerated by my decomponents.py

It covers almost every file with the extension js, jsm, html, py,
xhtml, or xul.

It removes blank lines after removed lines, when the removed lines are
preceded by either blank lines or the start of a new block. The "start
of a new block" is defined fairly hackily: either the line starts with
//, ends with */, ends with {, <![CDATA[, """ or '''. The first two
cover comments, the third one covers JS, the fourth covers JS embedded
in XUL, and the final two cover JS embedded in Python. This also
applies if the removed line was the first line of the file.

It covers the pattern matching cases like "var {classes: Cc,
interfaces: Ci, utils: Cu, results: Cr} = Components;". It'll remove
the entire thing if they are all either Ci, Cr, Cc or Cu, or it will
remove the appropriate ones and leave the residue behind. If there's
only one behind, then it will turn it into a normal, non-pattern
matching variable definition. (For instance, "const { classes: Cc,
Constructor: CC, interfaces: Ci, utils: Cu } = Components" becomes
"const CC = Components.Constructor".)

MozReview-Commit-ID: DeSHcClQ7cG

--HG--
extra : rebase_source : d9c41878036c1ef7766ef5e91a7005025bc1d72b
2018-02-06 09:36:57 -08:00
Kris Maglione
918ed6c474 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
extra : intermediate-source : 34c999fa006bffe8705cf50c54708aa21a962e62
extra : histedit_source : b2be2c5e5d226e6c347312456a6ae339c1e634b0
2018-01-29 15:20:18 -08:00
Cosmin Sabou
9a65a40178 Backed out 3 changesets (bug 1431533) for Android mochitest failures on testEventDispatcher on a CLOSED TREE
Backed out changeset a1eca62826a1 (bug 1431533)
Backed out changeset 34c999fa006b (bug 1431533)
Backed out changeset e2674287e57f (bug 1431533)
2018-01-30 07:17:48 +02:00
Kris Maglione
6476f95b13 Bug 1431533: Part 5a - Auto-rewrite code to use ChromeUtils import methods. r=florian
This was done using the following script:
37e3803c7a/processors/chromeutils-import.jsm

MozReview-Commit-ID: 1Nc3XDu0wGl

--HG--
extra : source : 12fc4dee861c812fd2bd032c63ef17af61800c70
2018-01-29 15:20:18 -08:00