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

833 Коммитов

Автор SHA1 Сообщение Дата
Markus Stange 6dbd19aac8 Bug 1509549 - Add a ProfilerGetSymbols module which can dump symbols with the help of a dynamically-loaded WebAssembly module. r=kmag
The module can dump ELF binaries, Mach-O binaries, and pdb files. So it works
for all our supported platforms.

The module is currently hosted on https://zealous-rosalind-a98ce8.netlify.com/ ,
which is a netlify server that serves files from the following repo:
https://github.com/mstange/profiler-assets

To make all of this look a bit more official, I'm planning on doing two things:
 - Move the github repo under the devtools-html organization
 - Get a firefox.com subdomain such as profiler-assets.firefox.com for hosting

Depends on D13004

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

--HG--
extra : moz-landing-system : lando
2019-02-07 19:36:43 +00:00
Andrew Halberstadt 01ca807367 Bug 1515746 - [flake8] Unsupport subdir .flake8 files and use new 'per-file-ignores' config instead, r=egao
This removes all .flake8 files except for the one at the root of the repo.
Instead we use the new 'per-file-ignores' config introduced in 3.7. To ignore
specific errors in a subdirectory, add a line like this to the root .flake8:

[per-file-ignores]
    path/to/subdir/*: E100, F200, ...

The reasons for this change are:

1. Unblock flake8 blacklist (bug 1367092).
2. Simplify configuration and code.
3. Encourage more consistent styling.
4. Improve performance.
5. Greater editor consistency.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:17:02 +00:00
Andrew Halberstadt a10eff76fa Bug 1515746 - [flake8] Upgrade flake8 and dependencies, r=egao
This bumps flake8 to version 3.7.5.

This also ignores the new lint rules that were added in the new versions.
These rules are de-marked via comment so we know that they should be enabled at
some point (as opposed to the other rules that are (presumably) ignored
intentionally.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:16:45 +00:00
Andrew Halberstadt cee62d2c1f Bug 1515746 - [lint] Remove duplicate flake8 implementation, r=egao
Somehow we have two copies of the flake8 linter implementation:

    - tools/lint/python/__init__.py
    - tools/lint/python/flake8.py

I'm not really sure how this happened, but the latter is the one that we use,
so let's remove the former. It wasn't really affecting anything, though could
have caused confusion to people looking to modify the lint integration.

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

--HG--
extra : moz-landing-system : lando
2019-02-07 20:16:36 +00:00
Markus Stange 2c4ba7d789 Bug 1509549 - Add "WebAssembly" to the list of globals that are present in JSMs. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D13004

--HG--
extra : moz-landing-system : lando
2019-02-07 19:36:41 +00:00
Myk Melez 4db9ccb1af Bug 1490496 - implement XPCOM FFI for key-value storage r=nika,lina,mossop
MozReview-Commit-ID: JnQzXG581DW

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

--HG--
rename : third_party/rust/crossbeam-utils/.cargo-checksum.json => third_party/rust/crossbeam-utils-0.3.2/.cargo-checksum.json
rename : third_party/rust/crossbeam-utils/CHANGELOG.md => third_party/rust/crossbeam-utils-0.3.2/CHANGELOG.md
rename : third_party/rust/crossbeam-utils/Cargo.toml => third_party/rust/crossbeam-utils-0.3.2/Cargo.toml
rename : third_party/rust/crossbeam-utils/LICENSE-MIT => third_party/rust/crossbeam-utils-0.3.2/LICENSE-MIT
rename : third_party/rust/crossbeam-utils/README.md => third_party/rust/crossbeam-utils-0.3.2/README.md
rename : third_party/rust/crossbeam-utils/src/cache_padded.rs => third_party/rust/crossbeam-utils-0.3.2/src/cache_padded.rs
rename : third_party/rust/crossbeam-utils/src/consume.rs => third_party/rust/crossbeam-utils-0.3.2/src/consume.rs
rename : third_party/rust/crossbeam-utils/src/lib.rs => third_party/rust/crossbeam-utils-0.3.2/src/lib.rs
rename : third_party/rust/crossbeam-utils/src/scoped.rs => third_party/rust/crossbeam-utils-0.3.2/src/scoped.rs
rename : third_party/rust/crossbeam-utils/src/consume.rs => third_party/rust/crossbeam-utils/src/atomic/consume.rs
rename : third_party/rust/crossbeam-utils/Cargo.toml => third_party/rust/threadbound/Cargo.toml
rename : third_party/rust/crossbeam-utils/LICENSE-MIT => third_party/rust/threadbound/LICENSE-MIT
rename : third_party/rust/uuid/.cargo-checksum.json => third_party/rust/uuid-0.6.5/.cargo-checksum.json
rename : third_party/rust/uuid/CODE_OF_CONDUCT.md => third_party/rust/uuid-0.6.5/CODE_OF_CONDUCT.md
rename : third_party/rust/uuid/Cargo.toml => third_party/rust/uuid-0.6.5/Cargo.toml
rename : third_party/rust/crossbeam-utils/LICENSE-MIT => third_party/rust/uuid-0.6.5/LICENSE-MIT
rename : third_party/rust/uuid/README.md => third_party/rust/uuid-0.6.5/README.md
rename : third_party/rust/uuid/benches/parse_str.rs => third_party/rust/uuid-0.6.5/benches/parse_str.rs
rename : third_party/rust/uuid/src/adapter.rs => third_party/rust/uuid-0.6.5/src/adapter.rs
rename : third_party/rust/uuid/src/core_support.rs => third_party/rust/uuid-0.6.5/src/core_support.rs
rename : third_party/rust/uuid/src/lib.rs => third_party/rust/uuid-0.6.5/src/lib.rs
rename : third_party/rust/uuid/src/prelude.rs => third_party/rust/uuid-0.6.5/src/prelude.rs
rename : third_party/rust/uuid/src/serde_support.rs => third_party/rust/uuid-0.6.5/src/serde_support.rs
rename : third_party/rust/uuid/src/slog_support.rs => third_party/rust/uuid-0.6.5/src/slog_support.rs
rename : third_party/rust/uuid/src/std_support.rs => third_party/rust/uuid-0.6.5/src/std_support.rs
rename : third_party/rust/uuid/src/test_util.rs => third_party/rust/uuid-0.6.5/src/test_util.rs
rename : third_party/rust/uuid/src/u128_support.rs => third_party/rust/uuid-0.6.5/src/u128_support.rs
rename : third_party/rust/uuid/benches/parse_str.rs => third_party/rust/uuid/benches/invalid_parse_str.rs
rename : third_party/rust/uuid/src/std_support.rs => third_party/rust/uuid/src/parser/std_support.rs
extra : moz-landing-system : lando
2019-02-07 16:14:04 +00:00
Andrew Swan 9448a5ade8 Bug 1525445 Part 1: Remove obsolete addon manager test helper code r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D18752

--HG--
extra : rebase_source : 8243dcefd6c327ad4a38230b37f24153d9b28678
2018-12-11 09:40:23 -08: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
Sylvestre Ledru b6356f4723 Bug 1523092 - Enable codespell on more directories r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D17740

--HG--
extra : moz-landing-system : lando
2019-01-30 14:16:08 +00:00
Cosmin Sabou 599a15d354 Merge mozilla-inbound to mozilla-central. a=merge 2019-01-29 12:01:56 +02:00
John Dai f2524a5b86 Bug 1513878 - Part 3: Add getActor test for WindowGlobalParent/WindowGlobalChild. r=nika
Depends on D16845

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

--HG--
extra : moz-landing-system : lando
2019-01-28 19:01:40 +00:00
Dorel Luca 2702a37d2c Backed out 3 changesets (bug 1513878) for build bustage. CLOSED TREE
Backed out changeset a480d92de046 (bug 1513878)
Backed out changeset 0333640041bb (bug 1513878)
Backed out changeset 48b36980fe1c (bug 1513878)
2019-01-25 21:16:50 +02:00
John Dai 3e9e8f9274 Bug 1513878 - Part 3: Add getActor test for WindowGlobalParent/WindowGlobalChild. r=nika
Depends on D16845

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

--HG--
extra : moz-landing-system : lando
2019-01-25 18:45:36 +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
Kris Maglione 8fd723690b Bug 1514594: Part 2 - Update modules.json. r=Gijs
This adds some missing modules with odd export patterns, along with some full
path overrides for a few modules with duplicate leaf names, which previously
had a single entry with combined export lists of all matching modules.

--HG--
extra : rebase_source : c1cdb20e785c0b6eba712e4f0fbf6ab4dca6d060
2019-01-11 15:49:59 -08:00
Jared Wein b12a0d294c Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D17020

--HG--
extra : moz-landing-system : lando
2019-01-23 17:03:32 +00:00
Drew Willcoxon 78544a4304 Bug 1520907 - Rename QueryContext to UrlbarQueryContext. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17033

--HG--
rename : browser/components/urlbar/tests/unit/test_QueryContext.js => browser/components/urlbar/tests/unit/test_UrlbarQueryContext.js
extra : moz-landing-system : lando
2019-01-23 00:39:07 +00:00
shindli b4fc89763a Backed out changeset c9f087ff5a52 (bug 1521170) for X2 / TV failures CLOSED TREE 2019-01-23 02:29:37 +02:00
shindli 6b09f96a22 Backed out changeset b8b0f4d2fa2c (bug 1521170) for X2 / TV failures CLOSED TREE 2019-01-23 02:29:01 +02:00
shindli 39fb5a9ab5 Backed out changeset ee28acf1382f (bug 1521170) for X2 / TV failures CLOSED TREE 2019-01-23 02:28:22 +02:00
Jared Wein 73788254d5 Bug 1521170 - The testcases are ExpressionStatements that include MemberExpressions, not just MemberExpressions. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D17303

--HG--
extra : moz-landing-system : lando
2019-01-22 23:48:28 +00:00
Jared Wein 6e5e033cec Bug 1521170 - Fix the test message in the use-returnValue.js test. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17301

--HG--
extra : moz-landing-system : lando
2019-01-22 23:23:41 +00:00
Jared Wein cecdd9632d Bug 1521170 - Add a rule that prevents calling some Array and String accessor methods without using the return value. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D17020

--HG--
extra : moz-landing-system : lando
2019-01-22 23:02:24 +00:00
Tim Nguyen 60a5143df0 Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 22:42:24 +00:00
Andreea Pavel 95431afe85 Backed out 1 changesets (bug 1241885) for build bustages on a CLOSED TREE
Backed out changeset 176be7000d33 (bug 1241885)
2019-01-18 23:49:55 +02:00
Tim Nguyen 495df7ddea Bug 1241885 - Implement support for -moz-window-dragging in GTK and remove toolkit toolbar-drag binding. r=dao,bzbarsky,stransky
The restriction preventing fullscreen windows from being dragged is removed.

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

--HG--
extra : moz-landing-system : lando
2019-01-18 16:51:08 +00:00
Alphan Chen 5d28867416 Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-17 14:58:31 +00:00
terrameijar 7ddbb15f50 Bug 1506611 - Fixed linter errors in testing/tps. r=ahal
Before this change, testing/tps had 19 linter errors. These have been resolved.

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

--HG--
extra : moz-landing-system : lando
2019-01-15 15:58:52 +00:00
Andrew Halberstadt 292cda01c7 Bug 1519968 - [mach] Minor improvements to autocomplete docs, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D16495

--HG--
extra : moz-landing-system : lando
2019-01-14 19:43:53 +00:00
Andrew Halberstadt b578a9b3ce Bug 1499822 - [lint] Enable codespell on tools/tryselect, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D15588

--HG--
extra : moz-landing-system : lando
2019-01-09 17:06:44 +00:00
Andreea Pavel a7eee8304c Backed out 3 changesets (bug 1499822) for breaking gecko decision task on a CLOSED TREE
Backed out changeset beb286aeae33 (bug 1499822)
Backed out changeset 9a330195eca6 (bug 1499822)
Backed out changeset f4bd2ef9b729 (bug 1499822)
2019-01-09 00:40:16 +02:00
Andrew Halberstadt 6ac5500593 Bug 1499822 - [lint] Enable codespell on tools/tryselect, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D15588

--HG--
extra : moz-landing-system : lando
2019-01-08 16:45:10 +00:00
Gijs Kruitbosch f303e33c4b Bug 1498295 - move remaining strings into browser/ and remove non-en-US strings from m-c, r=flod
Differential Revision: https://phabricator.services.mozilla.com/D15527

--HG--
rename : browser/components/pocket/locale/en-US/pocket.properties => browser/locales/en-US/chrome/browser/pocket.properties
extra : moz-landing-system : lando
2019-01-08 12:37:00 +00:00
Mark Banner 73f1f5f35d Bug 1517707. Update ESLint related modules to latest versions. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D15715

--HG--
extra : moz-landing-system : lando
2019-01-04 16:44:49 +00:00
Cosmin Sabou 3de3011707 Backed out changeset dbea03a5c55e (bug 1497146) for bmsvc bustages on SessionStoreUtils.
SessionStoreUtils

--HG--
rename : dom/chrome-webidl/SessionStoreUtils.webidl => toolkit/components/sessionstore/nsISessionStoreUtils.idl
rename : toolkit/components/sessionstore/SessionStoreUtils.cpp => toolkit/components/sessionstore/nsSessionStoreUtils.cpp
2019-01-04 19:37:37 +02:00
Alphan Chen 15328d9c7b Bug 1497146 part 1 - Add SessionStoreUtils.webidl r=nika
Let SessionStoreUtils be a WebIDL namespace, rather than a XPCOM service

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

--HG--
rename : toolkit/components/sessionstore/nsISessionStoreUtils.idl => dom/chrome-webidl/SessionStoreUtils.webidl
rename : toolkit/components/sessionstore/nsSessionStoreUtils.cpp => toolkit/components/sessionstore/SessionStoreUtils.cpp
extra : moz-landing-system : lando
2019-01-04 16:26:13 +00:00
Chris Peterson 413532fbba Bug 1513950 - Run cpp-virtual-final lint on .cc files. r=ahal
At this time, there are no cpp-virtual-final warnings in any .cc files. :)

Also:

1. Remove unnecessary exclusion of node_modules because the directory contains no C++ code that would be checked by this lint.

2. Update number of virtual-override instances that prevent us from checking for `virtual void Bad() override`.

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

--HG--
extra : moz-landing-system : lando
2018-12-31 21:27:22 +00:00
terrameijar 3a49f2d315 Bug 1506611 - Fixed linter errors in testing/gtest r=ahal
Before this change, testing/gtest had 19 errors. These errors have been resolved.

Bug 1506611 - Fixed flake8 errors in testing/gtest

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

--HG--
extra : moz-landing-system : lando
2018-12-31 16:51:03 +00:00
Mark Banner ce668e4afd Bug 1515942 - Enable ESLint for gfx/ (manual fixes). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D15206

--HG--
extra : moz-landing-system : lando
2018-12-27 09:45:01 +00:00
Jan de Mooij 9190590e09 Bug 1515590 part 3 - Fix some debugger tests by forcing separate compartments for the debugger and debuggee. r=ochameau
With same-compartment chrome globals these would end up in the same compartment.
We need to prevent that because the debugger doesn't support it.

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

--HG--
extra : moz-landing-system : lando
2018-12-22 21:39:56 +00:00
Mark Banner 3414ce9b54 Bug 1515952 - Allow ESLint rule spaced-comment to accept source-map comments. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D15207

--HG--
extra : moz-landing-system : lando
2018-12-21 18:05:39 +00:00
Andrew Halberstadt fea1d97f08 Bug 1436037 - [ci] Run mozbase and mozlint python-test tasks on OSX, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D14901

--HG--
extra : moz-landing-system : lando
2018-12-21 13:43:12 +00:00
Marco Bonardo cc99e09b2b Bug 1511693 - Expose base classes for providers and muxers. r=Standard8
Creates base classes for providers and muxers. All the classes are exposed
by UrlbarUtils, for 2 reasons:
1. UrlbarProvidersManager on instantiation is importing provider modules, that
   may reimport the manager module. Exposing classes from it could cause a
   recursive failure.
2. It's nicer if only one of the urlbar modules exports multiple symbols (thus
   moving the QueryContext class here too)

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

--HG--
extra : moz-landing-system : lando
2018-12-19 12:57:43 +00:00
terrameijar 9f28cc669c Bug 1506611 - Fixed linter errors in testing/awsy and testing/geckodriver r=ahal
Before this change, testing/awsy had 94 errors and testing/geckodriver had 17. The errors have been resolved

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

--HG--
extra : moz-landing-system : lando
2018-12-18 21:31:59 +00:00
Sylvestre Ledru 48ac5d6783 Bug 1514770 - Fix the clang-format hook for git r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D14754

--HG--
extra : moz-landing-system : lando
2018-12-17 19:12:06 +00:00
Sylvestre Ledru bb324b9dad Bug 1514755 - lint hooks: Use local path instead of absolute r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D14745

--HG--
extra : moz-landing-system : lando
2018-12-17 14:54:11 +00:00
Mark Banner 32345283e0 Bug 1503674 - Remove unused microformats code. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D14679

--HG--
extra : moz-landing-system : lando
2018-12-17 09:32:27 +00:00
Sylvestre Ledru e985f5ee15 Bug 1507007 - Add a clang-format hook r=ahal,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D13711

--HG--
extra : moz-landing-system : lando
2018-12-14 19:43:28 +00:00
Mark Banner 0304564ac7 Bug 1415483 - Apply the new options to reject-importGlobalProperties across the codebase, remove unnecessary importGlobalProperties. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D13754

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:40 +00:00
Mark Banner e2234d6da6 Bug 1415483 - Extend reject-importGlobalProperties to reject any priviliged items already in scope. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D13753

--HG--
extra : moz-landing-system : lando
2018-12-11 21:39:38 +00:00