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

625 Коммитов

Автор SHA1 Сообщение Дата
Andrew Halberstadt f80662b1b5 Bug 1585702 - [lint] Remove temporary hacks now that 'null character' issue is fixed, r=gbrown
Depends on D48113

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

--HG--
extra : moz-landing-system : lando
2019-10-04 19:13:04 +00:00
Andrew Halberstadt d919d558a3 Bug 1585565 - [lint.eslint] Work around mozprocess Windows + Python 3 bug, r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D47925

--HG--
extra : moz-landing-system : lando
2019-10-02 15:45:34 +00:00
Gijs Kruitbosch 438b65574e Bug 1585565 - fix package.json loading in eslint setup to always use utf-8 instead of system encoding, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D47883

--HG--
extra : moz-landing-system : lando
2019-10-02 13:07:37 +00:00
Andrew Halberstadt d3eae4b83c Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441

--HG--
extra : moz-landing-system : lando
2019-09-30 15:09:41 +00:00
Oana Pop Rus 4b9792db7c Backed out changeset 371641b1010b (bug 1580280) for lints failure on a CLOSED TREE 2019-09-26 00:18:33 +03:00
Andrew Halberstadt fdc7d0afac Bug 1580280 - [mozlint] Run |mach lint| with Python 3 and drop support for Python 2 r=mars
Differential Revision: https://phabricator.services.mozilla.com/D45441

--HG--
extra : moz-landing-system : lando
2019-09-25 20:03:14 +00:00
Anmol Agarwal d6766388f1 Bug 1554657 - Add a verbose mode to |mach lint| to display log output r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D43507

--HG--
extra : moz-landing-system : lando
2019-09-23 13:19:25 +00:00
Mark Hammond 140dc3f765 Bug 1578217 - remove the sync 'yellow state' telemetry. r=tcsc
Differential Revision: https://phabricator.services.mozilla.com/D45765

--HG--
extra : moz-landing-system : lando
2019-09-19 00:34:04 +00:00
Andrew Halberstadt f72360bce1 Bug 1580280 - [lint] Support Python 3 in the eslint integration r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D45438

--HG--
extra : moz-landing-system : lando
2019-09-11 19:52:08 +00:00
Andrew Halberstadt 7945602d9f Bug 1577826 - [eslint] Ensure setup runs subprocess with byte strings in env r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D44482

--HG--
extra : moz-landing-system : lando
2019-09-04 23:50:26 +00:00
Kershaw Chang 64b7f325a6 Bug 1577428 - Not allow nsICertOverrideService to be implemented in js r=keeler,ato
Differential Revision: https://phabricator.services.mozilla.com/D43931

--HG--
rename : security/manager/ssl/tests/unit/test_js_cert_override_service.js => security/manager/ssl/tests/unit/test_allow_all_cert_errors.js
extra : moz-landing-system : lando
2019-09-04 17:17:44 +00:00
monikamaheshwari 836c33084c Bug 1578190 - Add a rule to ensure 'if(foo.length)' instead of 'foo.length>0'. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D33011

--HG--
extra : moz-landing-system : lando
2019-09-02 11:09:44 +00:00
Mark Banner 676f82a489 Bug 1540982 - Upgrade to ESLint 6.2.2 and switch to ECMA version 11 (BigInt support, Dynamic imports). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D43590

--HG--
extra : moz-landing-system : lando
2019-08-27 14:51:29 +00:00
Mark Banner b3bdf13476 Bug 1551829 - Limit exectution scope of the spidermonkey-js processor to only the directories where it is required. r=mossop
This helps ensure that when running `--fix` across the entire tree, all places that can be are fixed correctly.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 19:09:27 +00:00
Mark Banner a05a7163d5 Bug 1551829 - Upgrade to ESLint 6.1.0. r=mossop
This picks up various improvements, especially to how configurations are handled and some new rules.

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

--HG--
extra : moz-landing-system : lando
2019-08-21 19:08:44 +00:00
Mark Banner f11175d51e Bug 1551829 - Make eslint-plugin-mozilla compatible with ESLint 6. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D37270

--HG--
extra : moz-landing-system : lando
2019-08-21 19:10:16 +00:00
Brendan Dahl b474db77c6 Bug 1551344 - Part 1: Remove XULDocument code. r=smaug,Jamie
All .xul files have been loading as HTMLDocuments for a few weeks now, so
it should be safe to remove the XULDocument implementation.

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

--HG--
extra : moz-landing-system : lando
2019-08-09 19:57:50 +00:00
Erica Wright cafcffa6a9 Bug 1557050 - Add basic telemetry to protection report. r=mtigley,johannh
Differential Revision: https://phabricator.services.mozilla.com/D39750

--HG--
extra : moz-landing-system : lando
2019-08-08 18:53:41 +00:00
Jared Wein 7ddc91c1db Bug 1571567 - Enable the no-fallthrough eslint rule. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D40744

--HG--
extra : moz-landing-system : lando
2019-08-08 15:18:51 +00:00
Bogdan Tara 844afcfb06 Backed out 10 changesets (bug 1571567) complementary backout after es lint failure on the patch CLOSED TREE
Backed out changeset ce83fa75ae32 (bug 1571567)
Backed out changeset 7aa97ba7cce9 (bug 1571567)
Backed out changeset 777d79076e99 (bug 1571567)
Backed out changeset fbdf6b75a484 (bug 1571567)
Backed out changeset e2ed4620f232 (bug 1571567)
Backed out changeset 2c67015f12c6 (bug 1571567)
Backed out changeset 7ec086bb5bd5 (bug 1571567)
Backed out changeset 42df735c8556 (bug 1571567)
Backed out changeset 7d5fc57b2809 (bug 1571567)
Backed out changeset 606bafb8211c (bug 1571567)
2019-08-08 18:13:54 +03:00
Alexander Surkov 002fc892ce Bug 1539651 - Convert places-popup-base and places-popup-arrow bindings to Custom Elements r=mak
Differential Revision: https://phabricator.services.mozilla.com/D33821

--HG--
rename : browser/components/places/content/menu.xml => browser/components/places/content/places-menupopup.js
extra : moz-landing-system : lando
2019-08-08 14:28:36 +00:00
Jared Wein 1b77b801de Bug 1571567 - Enable the no-fallthrough eslint rule. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D40744

--HG--
extra : moz-landing-system : lando
2019-08-08 12:45:00 +00:00
rdalal 43acd674ea Bug 1569330 - Disable telemetry check in Normandy recipe runner r=mythmon,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D39576

--HG--
extra : moz-landing-system : lando
2019-08-06 23:54:34 +00:00
Julian Descottes 5689ca6238 Bug 1568823 - Move Parser.jsm to a regular module in devtools/shared/webconsole r=nchevobbe
Depends on D39333

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

--HG--
rename : devtools/shared/Parser.jsm => devtools/shared/webconsole/parser.js
extra : moz-landing-system : lando
2019-07-25 13:17:11 +00:00
Nick Alexander ceec08a80d Bug 1564256 - Part 1: Don't install optional browsertime packages in automation. r=barret
browsertime depends on a few architecture and OS specific packages:
- sharp (libvips)
- geckodriver
- chromedriver

Our toolchain task packages up `tools/browsertime/node_modules` and
we'd like to use the resulting toolchain archive across all of our
test platforms.  Since in automation we don't require sharp (which is
only used for screenshotting), and we provide `geckodriver` and
`chromedriver` at the task level, the simplest way is to make these
`optionalDependencies` at the NPM level and not install them in our
toolchain task.

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

--HG--
extra : moz-landing-system : lando
2019-07-24 20:58:39 +00:00
Gijs Kruitbosch fffc7f0c58 Bug 1505913 - make plugin click-to-play and crash handling fission-compatible, r=mconley
At a high level, this change does the following:
- move the pluginchild actor to be a JSWindowActorChild
- move the parent handling from browser-plugins into a JSWindowActorParent
- move the crash handling from ContentCrashHandlers.jsm to the parent actor,
  using a `PluginManager` object. It needs to talk to the actors (and vice
  versa), so this seemed a better fit than spreading actor implementation
  details to other JSMs.
- switch to using plugin IDs to identify plugins cross-process, instead of
  combinations of names or other properties of the plugin tag. As part of that,
  ensured plugin IDs are unique between "fake" plugins and the other ones.
- drop support for having a notification for more than 1 plugin. We only support
  Flash, in practice, so there didn't seem to be much point in the added
  complexity of trying to support more than 1 thing.

Some notes:
- the previous implementation mixes runIDs (for NPAPI plugin process "runs")
  and GMP pluginIDs when doing crashreporting. AFAICT there is no guarantee
  these don't conflict, so I've split them out to avoid issues. There's a
  pluginCrashID object I pass around instead that has either a runID or
  pluginID. Happy to rename some more for clarity.
- the previous implementation used `pluginInfo` and `plugin` for a bunch of
  different types of variables. I've tried to be consistent, where:
  * `pluginElement` is a DOM element for a plugin
  * `activationInfo` is a JS object used to track click to play state for a plugin
  * `plugin` is a plugintag as returned by the pluginhost service
  * `pluginCrashID` is an identifier for a crashed plugin (see previous point).
- I'm still using broadcastAsyncMessage to tell the content processes about
  gmp plugin crashes and plugin crash submission updates, because there's no
  guarantee the actors are instantiated (for gmp plugins) nor can the parent
  easily find out which actors to talk to (for either gmp or npapi plugins).
  Open to suggestions there, too. I think our best bet might be moving that to
  IPDL-based IPC within the GMP code, but that feels like a separate bug.

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

--HG--
rename : browser/base/content/browser-plugins.js => browser/actors/PluginParent.jsm
extra : moz-landing-system : lando
2019-07-23 22:04:40 +00:00
Johann Hofmann c7d97e7440 Bug 1568110 - Add RPMGetStringPref for getting the content blocking category pref in about:protections. r=ewright
Depends on D38966

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

--HG--
extra : moz-landing-system : lando
2019-07-23 17:45:54 +00:00
Edwin Gao 67bbe2a68a Bug 1559975 - fix python2 linter errors for tools/lint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37767

--HG--
extra : moz-landing-system : lando
2019-07-19 15:56:29 +00:00
Alexandre Poirot 040c1a34cc Bug 1566457 - Removed deprecated gDevTools JSM. r=jdescottes
This was kept to support old xul addons. All mozilla-central usages
have been removed and now uses Loader.jsm to get access to this module.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 12:25:13 +00:00
Alexandre Poirot c9648fef81 Bug 1566457 - Only export require, loader and DevToolsLoader from Loader.jsm r=jdescottes
The rest was legacy code to support old xul add-ons.
All mozilla-central code used to be refactored, but a few places
were still using the old codepaths.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 12:25:03 +00:00
Mark Banner 8bae6a36eb Bug 1567134 - Update the node modules packages for the builders. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38473

--HG--
extra : moz-landing-system : lando
2019-07-18 13:10:40 +00:00
Mark Banner 3561e3197c Bug 1566043 - Update npm dependencies for ESLint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38070

--HG--
extra : moz-landing-system : lando
2019-07-16 17:52:11 +00:00
Sylvestre Ledru 8abb9a8efd Bug 1562642 - Part 4 - Add missing MPL2 headers in tools r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37579

--HG--
extra : moz-landing-system : lando
2019-07-10 19:12:07 +00:00
Andrew Halberstadt 09a16b2413 Bug 1485793 - [eslint] Don't print an error message if there aren't any files to lint, r=Standard8
This case is expected in the mozlint world (e.g, when running all linters).
This will still print a warning, just a far less scary one and will still
return 0. There is a case to be made that we should silently ignore this as no
other linters print this warning, but it's useful enough to warrant keeping.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 19:23:57 +00:00
Victor Porof 472d3c137a Bug 1561435 - Fix linting errors for tools/, r=standard8
# ignore-this-changeset

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

--HG--
extra : source : 7082771b68989e7acb642a73d223fbe58f84def9
extra : intermediate-source : f2aff116f1d73052541a6095f3d8c8f0e7cf5340
2019-06-28 22:52:16 +02:00
Victor Porof 5c7cdbd4ba Bug 1561435 - Format tools/, a=automatic-formatting
# ignore-this-changeset

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

--HG--
extra : source : d214f0c82813e5a8d3987debc490a2c11f1308ff
2019-07-05 11:18:19 +02:00
Victor Porof 10375c0418 Bug 1558517 - Pre 7: Bump eslint-plugin-mozilla version, r=standard8, CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D36989

--HG--
extra : source : 6d8fe93037b81be9112f6af2dbe1ca119faa059a
extra : amend_source : 22cbff1c11fa4ed7a0bce2b0f353ee02d1f14093
extra : intermediate-source : 700f28b61fa9701251b5f1e0e62be06e0688172c
2019-07-04 15:37:28 +02:00
Victor Porof cda7f0dcb0 Bug 1558517 - Pre 3.2: Disable conflicting eslint:recommended rules by extending eslint-config-prettier, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34536

--HG--
extra : source : d380852a85aeaa9c94a073babfb238976a2a92d6
extra : intermediate-source : 895bba67b824070da27360a49578b938636d72f5
2019-06-11 16:07:08 +02:00
Victor Porof 34da32ec3c Bug 1558517 - Pre 3.1: Change conflicting "camelcase" rule which would fail after running Prettier, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34695

--HG--
extra : source : 078747ad644246551a165a176a691e0440553c85
extra : intermediate-source : 3b39b237ae3c49eb6c9d56a2ef8bfb5134b878da
2019-06-12 11:43:25 +02:00
Victor Porof b5a4cb3848 Bug 1558517 - Pre 3.0: Remove conflicting eslint rules, and turn on "curly: all" everywhere, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34535

--HG--
extra : source : 74ed7ee773393d305c4e948a57a1b1e32b1f12e8
extra : intermediate-source : 403d0757d61683e0a85d0bb07768eb39fbd0af72
2019-06-28 17:14:01 +02:00
Victor Porof cb98e2f464 Bug 1558517 - Pre 2: Move the **/*.*html overrides to recommended.js, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34534

--HG--
extra : source : ed2cf27ca3ec535e1dbc634f3a603ad41678e646
extra : intermediate-source : 9b1f833b858f9bcdeed1fd7cd45d3fe051748712
2019-06-11 14:30:40 +02:00
Victor Porof f64de7f91e Bug 1558517 - Pre 1: Add eslint-plugin-fetch-options as a peer dependency, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34533

--HG--
extra : source : 18abd00a8919909a5c51fdb906a18de21310ff28
extra : intermediate-source : b86586c6a5995f7ea2fbe07ebdf9db402d26f94b
2019-06-19 13:52:53 -07:00
Victor Porof 41fa633fdd Bug 1558517 - Pre 0: Prevent circular dependencies between the top-level .eslintrc and eslint-plugin-mozilla, r=standard8
Differential Revision: https://phabricator.services.mozilla.com/D34532

--HG--
extra : source : a5c75883cb8fd56f92d984a4323ee5b8f8bb8e76
extra : intermediate-source : 81d50b2acc5cb1dbd0b81fc89a90200890b4187f
2019-06-12 11:12:04 +02:00
Brian Grinstead 5786770250 Bug 1562956 - eslint: allow dash in tag names in xul documents;r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D36808

--HG--
extra : moz-landing-system : lando
2019-07-04 11:18:47 +00:00
Zibi Braniecki b0ba25f8b9 Bug 1558602 - Allow DocumentL10n to use LocalizationSync. r=smaug,Pike
Differential Revision: https://phabricator.services.mozilla.com/D34584

--HG--
extra : moz-landing-system : lando
2019-07-01 17:56:57 +00:00
prathiksha 70eb996035 Bug 1555438 - Add support to get appBuildID in RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D33063

--HG--
extra : moz-landing-system : lando
2019-06-26 20:23:42 +00:00
prathiksha 71e6682344 Bug 1555438 - Add support for getIntPref in RPM. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D33062

--HG--
extra : moz-landing-system : lando
2019-06-26 20:23:32 +00:00
Mark Banner fc492ced11 Bug 1464007 - Specify the 'html' plugin in .eslintrc.js by default for better editor integration. r=mossop
This moves the html plugin enabling from the ./mach command line to the configuration, which means editors can pick this up automatically.

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

--HG--
extra : moz-landing-system : lando
2019-06-20 21:33:34 +00:00
Mathieu Leplatre a102f01554 Bug 1543598 - Move OneCRL and Pinning blocklist clients out of services r=jcj,glasserc
Differential Revision: https://phabricator.services.mozilla.com/D32297

--HG--
rename : services/common/tests/unit/test_blocklist_onecrl.js => security/manager/ssl/tests/unit/test_blocklist_onecrl.js
rename : services/common/tests/unit/test_blocklist_pinning.js => security/manager/ssl/tests/unit/test_blocklist_pinning.js
extra : moz-landing-system : lando
2019-06-11 10:14:40 +00:00
Victor Porof 1b8a37fd24 Bug 1556013 - Add prettier to the top-level eslint config, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D33303

--HG--
extra : moz-landing-system : lando
2019-06-07 14:20:09 +00:00