Commit Graph
5564 Commits
Author SHA1 Message Date
Bastien Abadie f847c5455b Bug 1569882 - Fix mozlint unit tests for relative path outputs, r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39877
2019-07-30 23:30:15 +00:00
Gerald Squelart 5f637eb898 Bug 1569515 - Show overhead stats in Profiler tests - r=canaltinova
cppunittest TestBaseProfiler and gtest GeckoProfiler.Markers now show overhead
stats.
(Separate patch, because we may want to remove them after a while.)

Differential Revision: https://phabricator.services.mozilla.com/D39642
2019-07-31 01:28:53 +00:00
Gerald Squelart 2b0b3b1650 Bug 1569515 - Collect overhead stats in ProfileBuffer - r=canaltinova
`ProfileBuffer` is now responsible for collecting overhead stats, and adding
them to the struct returned by `profiler_get_buffer_info()`.

Differential Revision: https://phabricator.services.mozilla.com/D39641
2019-07-31 01:28:51 +00:00
Gerald Squelart 99df3d784d Bug 1569506 - SamplerThread can own a Sampler instead of being one - r=canaltinova
`SamplerThread` inheriting from `Sampler` was a bit confusing, and scary with no
virtual destructor&functions.
`SamplerThread` only uses `Sampler`'s `Disable()` and
`SuspendAndSampleAndResumeThread()` functions, and `SamplerThread` is never
accessed through a `Sampler` reference/pointer.
So `SamplerThread` can just own a `Sampler` to make that relationship clearer.

Differential Revision: https://phabricator.services.mozilla.com/D39640
2019-07-31 01:28:49 +00:00
championshuttler 2cc0178c26 Bug 1569472 - Level Down the Error level to 2. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39663
2019-07-30 15:20:00 +00:00
championshuttler caa949a74c Bug 1569472 - Fix taskcluster docs linting errors. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D39627
2019-07-30 15:20:00 +00:00
Andrew Halberstadt bedc25a2d8 Bug 1569704 - Update tools/tryselect bug component metadata, r=glob
Differential Revision: https://phabricator.services.mozilla.com/D39725
2019-07-30 06:31:49 +00:00
Olli Pettay 5aab151644 Bug 1565930, try to make Promise less error prone to compartment mismatches, r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D38762
2019-07-29 14:43:54 +00:00
Nick Alexander cb650639b8 Bug 1566171 - Part 1: Expose browsertime helpers to Raptor harness. r=barret
This will allow mozharness tooling, which does not run through `mach`,
to fish these paths.

Differential Revision: https://phabricator.services.mozilla.com/D38775
2019-07-26 21:29:57 +00:00
Andreas Tolfsen 786abff0e1 bug 1568881: mozbase: run rustfmt checks in ci; r=whimboo
The Rust port of mozbase passes all the lints, but there are ~20
warnings.  The warnings will not make the rustfmt job on Treeherder fail.

Differential Revision: https://phabricator.services.mozilla.com/D39367
2019-07-26 12:02:40 +00:00
Andreas Tolfsen ce99b7ff1d bug 1568889: tools/lint: run rustfmt on geckodriver and webdriver; r=webdriver-reviewers,whimboo
Includes geckodriver and the webdriver crate in the rustfmt job
on Treeherder.

Enabling this does not cause any errors, but we are seeing 93 warnings.
These are not fatal and do not cause the job to fail in continuous
integration.

Differential Revision: https://phabricator.services.mozilla.com/D39368
2019-07-26 11:18:08 +00:00
Edwin Gao a4939a1ac6 Bug 1541424 - ensure path expansion in mach try respects manifest annotations r=ahal,marco
Differential Revision: https://phabricator.services.mozilla.com/D38771
2019-07-25 17:10:43 +00:00
Julian Descottes 834b25fba4 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
2019-07-25 13:17:11 +00:00
Nick Alexander b5c0a14799 Bug 1564256 - Part 2: Produce browsertime.zip in a toolchain task. r=mshal
In browsertime.zip we should have:

browsertime/
  package.json
  package-lock.json
  node_modules/
    .bin/
      browsertime -> ../browsertime/bin/browsertime.js
    browsertime/
      ...

The idea is that we'll fetch browsertime.zip in a generic-worker
environment and be able to run Node.js from within the top level
browsertime/ directory.

Differential Revision: https://phabricator.services.mozilla.com/D38773
2019-07-24 20:59:55 +00:00
Nick Alexander 8ef6491843 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
2019-07-24 20:58:39 +00:00
Gijs Kruitbosch d2756288b0 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
2019-07-23 22:04:40 +00:00
championshuttler 92bfc90ab9 Bug 1566097 - Setup rstcheck linter instead of restructuredtext-lint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38339
2019-07-23 21:30:10 +00:00
Johann Hofmann 61b8c102e6 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
2019-07-23 17:45:54 +00:00
Edwin Gao dec962184b Bug 1559975 - fix python2 linter errors for js/xpconnect r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38135
2019-07-16 17:49:36 +00:00
Edwin Gao 12abd3498b Bug 1559975 - remove media from python2/3 linter blacklist r=ahal
Changes:
- remove `media` from python2 and python3 linter blacklist due to no errors

Differential Revision: https://phabricator.services.mozilla.com/D38126
2019-07-19 14:53:16 +00:00
Edwin Gao da1f6d8563 Bug 1559975 - fix python2 linter errors for testing/tps r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37779
2019-07-16 17:49:05 +00:00
Edwin Gao 1b487a17ce Bug 1559975 - fix python2 linter errors for tools/lint r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37767
2019-07-19 15:56:29 +00:00
Edwin Gao 125e118583 Bug 1559975 - fix python2 linter error for tools/docs r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37777
2019-07-19 14:45:24 +00:00
Edwin Gao 400c65192d Bug 1559975 - fix python2 linter error for tools/jprof/split-profile.py r=ahal
Changes:
- add __future__ import statements

Differential Revision: https://phabricator.services.mozilla.com/D37766
2019-07-16 17:47:33 +00:00
Edwin Gao 452b6778ac Bug 1559975 - fix python2 linter errors in mobile r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37667
2019-07-16 17:46:25 +00:00
Edwin Gao b7d4a88f35 Bug 1559975 - fix python2 linter errors for python/devtools r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37640
2019-07-16 17:46:08 +00:00
Edwin Gao 6c3cf48b32 Bug 1559975 - fix python2 linter errors for testing/runtimes r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37615
2019-07-16 17:46:06 +00:00
Edwin Gao 65a1ce9d28 Bug 1559975 - fix python2 linter errors for testing/awsy r=ahal
Changes:
- change how the modules are imported with the `absolute_import` changes
- satisfy python2 linter

Differential Revision: https://phabricator.services.mozilla.com/D37525
2019-07-19 14:37:10 +00:00
Edwin Gao 5985c43da6 Bug 1559975 - remove dom/media/test from python3 linter exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37124
2019-07-10 07:10:39 +00:00
Edwin Gao 95dce0dce7 Bug 1559975 - fix python2 lint issues in tools/mach_commands.py r=ahal,catlee
Changes:
- add `print_function` to satisfy py2 linter

Differential Revision: https://phabricator.services.mozilla.com/D37117
2019-07-19 14:50:07 +00:00
Gurzau Raul b37df3fbd8 Backed out 3 changesets (bug 1559975) for linting failure at WebIDL.py on a CLOSED TREE.
Backed out changeset a7154744a5d7 (bug 1559975)
Backed out changeset 4005ac274170 (bug 1559975)
Backed out changeset 68ed1ccb5921 (bug 1559975)
2019-07-19 18:25:10 +03:00
David Walsh 0cd4d0e5f3 Bug 1561723 - Add debugger to whitelist for import-pr usage r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D36082
2019-07-19 14:18:56 +00:00
Edwin Gao 881f49089e Bug 1559975 - convert testing/mochitest to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37096
2019-07-19 14:04:54 +00:00
Edwin Gao 0753d23902 Bug 1559975 - convert dom/bindings to python3 r=ahal,bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D36634
2019-07-19 14:15:00 +00:00
Edwin Gao 6d6ffd60e7 Bug 1559975 - convert layout/style to python3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35699
2019-07-09 15:54:06 +00:00
championshuttler 7e1b70aee3 Bug 1536103 - Fix various Sphinx Warning in 'mach doc' (4). r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38046
2019-07-18 20:08:26 +00:00
Alexandre Poirot b18e55ff95 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
2019-07-18 12:25:13 +00:00
Alexandre Poirot 50cc9ad5c6 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
2019-07-18 12:25:03 +00:00
Mark Banner d2d788cf6a Bug 1567134 - Update the node modules packages for the builders. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38473
2019-07-18 13:10:40 +00:00
Mark Banner eed747fdd6 Bug 1566043 - Update npm dependencies for ESLint. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D38070
2019-07-16 17:52:11 +00:00
Denis Palmeiro 1123878462 Bug 1565399 - Update github tarball to 4989d0c22bba3a165078b8d784e8d303a727a119 r=nalexander
Update the browsertime snapshot to 4989d0c22bba3a165078b8d784e8d303a727a119 which uses lodash 4.7.14 and lodash.merge 4.6.2.

Differential Revision: https://phabricator.services.mozilla.com/D37806
2019-07-16 15:09:17 +00:00
Sylvestre Ledru 032e89c4f8 Bug 1562645 - Add an autofix to the license check r=ahal
Depends on D37082

Differential Revision: https://phabricator.services.mozilla.com/D37216
2019-07-16 13:40:43 +00:00
championshuttler e201967eb5 Bug 1527361 - Setup rst linter for the documentation. r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D36586
2019-07-16 13:20:09 +00:00
Ed Lee 78620108f5 Bug 1559479 - mach lint complains about newtab node_modules r=dmose
Differential Revision: https://phabricator.services.mozilla.com/D37818
2019-07-12 15:24:07 +00:00
Carolina 748958ad36 Bug 1559225 - Build a certificate chain. r=johannh,keeler
Added third party libraries using browserify, builds a certificate chain using some functions defined in https://github.com/april/certainly-something and using a dummy certificate chain. r=johannh

Differential Revision: https://phabricator.services.mozilla.com/D34927
2019-07-12 12:17:04 +00:00
Nicolas Silva 51fdf0f416 Bug 1565168 - Add a webrender try preset. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D37688
2019-07-11 17:23:08 +00:00
Tom Prince 0145de8580 Bug 1458385: Package mar and mbsdiff as a toolchain; r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D24229
2019-07-11 16:40:13 +00:00
Tom Prince b48289cc34 Bug 1458385: Generate MARs with the appropriate channel-id explicitly; r=nthomas
Rather than relying on the mar-channel-id set in the `mar` binary, set the channel
explicitly from taskcluster. This allows us to re-use the `mar` binary between
builds/channels.

Differential Revision: https://phabricator.services.mozilla.com/D37481
2019-07-11 16:40:13 +00:00
Andrew Halberstadt e16895aeb7 Bug 1563797 - Use 'backports.shutil_which' instead of 'which' across the tree r=Callek
Differential Revision: https://phabricator.services.mozilla.com/D37097
2019-07-11 14:03:39 +00:00
championshuttler d816b99b9a Bug 1564799 - Use sphinx.util.logging instead of app.info(). r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D37539
2019-07-11 08:41:25 +00:00