Commit Graph

7128 Commits

Author SHA1 Message Date
Gerald Squelart
0e19d51a0a Bug 1583431 - Test "No Stack Sampling" feature - r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D49234

--HG--
extra : moz-landing-system : lando
2019-10-22 05:37:14 +00:00
Gerald Squelart
edd497462f Bug 1583431 - Don't wait for samples in marker-only tests - r=gregtatum,julienw
Since markers are stored directly into the buffer:
- We don't need to wait for a sampling run to collect them,
- No markers are left uncollected between the last sampling and the time we stop
  the profiler.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 05:37:07 +00:00
Gerald Squelart
d57761d32e Bug 1583431 - stopProfilerNowAndGetThreads doesn't wait for samples - r=julienw
`stopProfilerAndGetThreads()` waits until at least one sample appears in the
main thread, before capturing a profile and stopping the profiler.

`stopProfilerNowAndGetThreads()` does not wait; this should be useful in tests
that may not generate any samples (e.g., using the nostacksampling feature).

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

--HG--
extra : moz-landing-system : lando
2019-10-22 05:37:00 +00:00
Jim Porter
9354dfda4a Bug 1557447 - Profiler support for IPC information; r=nika,smaug
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 20:51:07 +00:00
Mihai Alexandru Michis
c59792871c Bug 1587180 - Fix linting issue regarding tools/lint/libpref/__init__.py a=lint-fix 2019-10-21 23:47:26 +03:00
Kristen Wright
5eac06f458 Bug 1587180 - 4. Write a test for Lintpref r=ahal
Adds a test for Lintpref and two test files. Also makes some adjustments to `lintpref.yml` to improve support file loading.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 19:23:08 +00:00
Kristen Wright
e1a7b2036e Bug 1585421 - Expand the usage of Lintpref into more pref files r=ahal
Adds the filepaths of more pref files to Lintpref as well as to its TaskCluster entry. All of the pref files added are noted in bug 1585421.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 22:31:38 +00:00
Kristen Wright
a3b1f5c4f4 Bug 1587180 - 3. Have lintpref understand the value field r=glandium
Teaches Lintpref to look at `value` matches when considering possible duplicates.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 22:31:38 +00:00
Kristen Wright
d816dae614 Bug 1587180 - 2. Improve Lintpref's pattern-matching r=glandium
Replaces the basic pattern-matching in the linter with a more robust regexp. This regexp can strip `name` and `value` from the pref, which will be useful in part 3 of bug 1587180.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:26:36 +00:00
Kristen Wright
4f72d58f26 Bug 1587180 - 1. Have Lintpref look for the files included in Lintpref.yml. r=ahal
Rather than statically loading the path to `all.js`, Lintpref should look at any file paths in `lintpref.yml`. Also added the `path` field to each error to accommodate multiple files, and a few other code tidiness cleanups.

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

--HG--
extra : moz-landing-system : lando
2019-10-16 00:06:25 +00:00
Tom Tung
a55521f246 Bug 1587394 - Bypass the lint check for the pref; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D49745

--HG--
extra : moz-landing-system : lando
2019-10-21 14:48:04 +00:00
Nicolas Chevobbe
02cfc079ff Bug 1588999 - Rename ObjectClient to ObjectFront. r=ochameau.
The object-client.js file is now a proper protocol.js front,
but is still named after a client.
This is confusing, so we rename and move the file next to other
fronts, and update all consumers to the new terminology.

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

--HG--
rename : devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/object-client.js => devtools/client/debugger/packages/devtools-reps/src/object-inspector/tests/__mocks__/object-front.js
rename : devtools/shared/client/object-client.js => devtools/shared/fronts/object.js
extra : moz-landing-system : lando
2019-10-21 12:07:10 +00:00
Kristen Wright
3d06abd056 Bug 1588650 - Remove duplicate prefs from mobile.js r=njn
Removes all of the duplicate prefs from mobile.js and StaticPrefList.yaml where the `value` field is the same. Carries over comments from mobile.js where needed.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:24:14 +00:00
Andrew Halberstadt
0912d6c960 Bug 1583360 - [mozbuild] Make reader.find_sphinx_variables a little more generic, r=nalexander
The BuildReader's 'find_sphinx_variables' function is hardcoded to look for the
SPHINX_TREES and SPHINX_PYTHON_PACKAGE_DIRS variables. But it's otherwise
implemented to find any arbitrary variable (as long as they are a simple list
or dict).

This change simply moves the variable name(s) to the function call. The comment
about possibly wanted to use a higher level AST library to parse other kinds of
variables still applies, but for now this change is good enough to suit my
needs.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 14:05:49 +00:00
Daniel Varga
8fdca46bc7 Backed out changeset 2923afce519a (bug 1557447) for browser chrome failure at tools/profiler/tests/browser/browser_test_feature_preferencereads.js. On a CLOSED TREE 2019-10-18 07:54:09 +03:00
Jim Porter
80bfcd6e57 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-18 02:56:02 +00:00
Dorel Luca
efd52379da Backed out changeset cd4dc0ae3364 (bug 1557447) for Browser-chrome failures in build/src/obj-firefox/dist/include/mozilla/BlocksRingBuffer.h 2019-10-18 03:59:06 +03:00
Jim Porter
db91ad6767 Bug 1557447 part 2 - Remove unnecessary declarations from bug 1575448; r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D46389

--HG--
extra : moz-landing-system : lando
2019-10-17 23:39:44 +00:00
Jim Porter
641b95fb72 Bug 1557447 - Profiler support for IPC information; r=nika
This adds the ability to add profile markers for both the sender and recipient
sides of IPC messages. These can then be correlated with one another in the
profile visualization. For the UI component of this patch, see
<https://github.com/firefox-devtools/profiler/pull/2172>.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 23:39:42 +00:00
Simon Fraser
9739fcee53 Bug 1589358 Force update of older fzf versions r=jlorenzo
If 'fzf' was installed by mach, then check it's up to date and force update if needed.

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

--HG--
extra : moz-landing-system : lando
2019-10-17 13:17:29 +00:00
Mark Banner
dcfbcb56d7 Bug 1588872 - Enable ESLint rule mozilla/prefer-boolean-length-check by default, disable for failing locations. r=Mardak
Differential Revision: https://phabricator.services.mozilla.com/D49437

--HG--
extra : moz-landing-system : lando
2019-10-16 20:11:31 +00:00
Andi-Bogdan Postelnicu
a907930749 Bug 1558359 - clang-tidy - For performance-move-const-arg disable detection of trivially copyable types that do not have a move constructor. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D49415

--HG--
extra : moz-landing-system : lando
2019-10-16 12:59:33 +00:00
Sylvestre Ledru
0c43e713ef Bug 1588523 - add links to the sources everywhere r=ahal
Depends on D49162

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

--HG--
extra : moz-landing-system : lando
2019-10-16 07:51:59 +00:00
Sylvestre Ledru
75b3cfde64 Bug 1588523 - Document the autofix when existing r=ahal
Depends on D49161

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

--HG--
extra : moz-landing-system : lando
2019-10-16 07:50:52 +00:00
Sylvestre Ledru
0e8bbb9060 Bug 1588523 - Provide doc for the codespell, file-perm, file-whitespace, etc linters r=ahal
Depends on D49160

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

--HG--
extra : moz-landing-system : lando
2019-10-16 07:49:47 +00:00
Sylvestre Ledru
7491daaf08 Bug 1588523 - Improve the mozlint doc (various changes) r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D49160

--HG--
extra : moz-landing-system : lando
2019-10-16 07:49:22 +00:00
Edwin Takahashi
af0fda47bc Bug 1559977 - Remove tools/rb from py3/py2 linter exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35238

--HG--
extra : moz-landing-system : lando
2019-10-15 20:58:35 +00:00
Nick Thomas
6ab6ebcdf4 Bug 1588649 - release update verify secondary failing for 70.0, r=jlund
The fix in Bug 1577634 only worked for the beta channel as it didn't consider the RC case.

There's several situations:
* beta without comments --> beta with comments: handled by bug 1577634, but with fallout
* beta with comments    --> beta with comments: `channel-prefs.js` is identical so we never need to apply any transforms
* beta with comments    --> rc with comments: the channel changes in `channel-prefs.js` (by design) so we apply transforms
* rc with comments      --> beta with comments: the channel changes in `channel-prefs.js` (by design) so we apply transforms

By moving the channel fixing transforms forward the file will become identical before we need to try the comment transform. The code breaks early in this case.

The release/esr case is simpler:
* release without comments --> release with comments: handled by comment transform, channel transforms only used for beta tests
* release with comments    --> release with comments: `channel-prefs.js` already identical, no transforms applied

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

--HG--
extra : moz-landing-system : lando
2019-10-15 22:36:25 +00:00
Brian Grinstead
eab92c4995 Bug 1588855 - Remove browser-instrumentation job r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D49326

--HG--
extra : moz-landing-system : lando
2019-10-15 17:47:12 +00:00
Dorel Luca
b6eeb7d5d3 Backed out changeset 35d4451f348d (bug 1588458) as requested by the dev 2019-10-15 19:04:22 +03:00
Sylvestre Ledru
0f71aeba53 Bug 1588458 - Replace dxr by searchfox in the doc r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D49140

--HG--
extra : moz-landing-system : lando
2019-10-15 15:27:13 +00:00
Andi-Bogdan Postelnicu
bdf27fe3bd Bug 1588482 - For Coverity analysis add a modeling file when dealing with json_cpp. r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D49133

--HG--
extra : moz-landing-system : lando
2019-10-14 13:15:46 +00:00
Jan de Mooij
6febd292ea Bug 1586683 - Remove flat strings from JSAPI. r=jwalden,bzbarsky
We want to remove flat strings (JSFlatString). With this patch we only expose
linear strings (JSLinearString) to API consumers.

This is very mechanical for the most part, because code typically only cares
about linear strings and not the null-termination aspect.

CTypes's Library.cpp has some Windows-specific code where we relied on null-terminated
strings. This patch adds JS_CopyStringCharsZ for that use case.

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

--HG--
extra : moz-landing-system : lando
2019-10-14 09:32:07 +00:00
Greg Tatum
03cd55fe37 Bug 1587503 - Provide a mechanism to inspect the current profiler configuration; r=gerald
This patch creates a new API to the nsIProfiler interface, through the activeConfiguration
property. It exposes the internal configuration of the profiler. In addition, this information
is serialized into the profile meta object.

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

--HG--
extra : moz-landing-system : lando
2019-10-11 18:22:42 +00:00
Simon Fraser
791c9d7928 Bug 1588111 Fix mach try fuzzy --s --full r=catlee
Differential Revision: https://phabricator.services.mozilla.com/D48974

--HG--
extra : moz-landing-system : lando
2019-10-11 14:45:08 +00:00
Andrew Halberstadt
2b0d90e3ad Bug 1587206 - [lint.flake8] Enable F632 across the tree, r=sylvestre
This ensures we use ==/!= to strings and ints (instead of is/is not).

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

--HG--
extra : moz-landing-system : lando
2019-10-10 18:50:33 +00:00
Coroiu Cristina
0b018a8d21 Merge inbound to mozilla-central a=merge 2019-10-10 19:24:55 +03:00
Coroiu Cristina
a35c47f71d Merge mozilla-central to inbound a=merge 2019-10-10 12:55:45 +03:00
Nazım Can Altınova
2e832289ac Bug 1512500 - Record parent page information in profiler r=gerald,nika
Differential Revision: https://phabricator.services.mozilla.com/D47426

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:19 +00:00
Nazım Can Altınova
265874ce7d Bug 1583271 - Part 4: Update profiler page information tests r=gerald
Differential Revision: https://phabricator.services.mozilla.com/D47268

--HG--
extra : moz-landing-system : lando
2019-10-09 20:58:21 +00:00
Nazım Can Altınova
6379b166c1 Bug 1583271 - Part 3: Remove the disabled assertion and add a mechanism to capture the first non-auto:blank frame r=nika
We are not simply excluding all about:blanks because there might be some
about:blank that user really visits. But for others we don't want to include
the first about:blank because when a BrowsingContext is loaded, and if the
principal matches, the first document loaded in it will share the inner window.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 20:58:06 +00:00
Nazım Can Altınova
20fc64e558 Bug 1583271 - Part 1: Change profiler page information IDs to BrowsingContextID and InnerWindowID r=gerald,nika
We were keeping nsDocShell::mHistoryId and nsDocShell::mOSHE as keys. They
weren't quite good because:
1. While loading an iframe, they were being registered twice with the same
ids(for about:blank and the real URL) sometimes.
2. It wasn't possible to access to the parent mHistoryId and mOSHE from a child
processes if the parent is in a different process. That may not be the case for
now, but it will be after fission.
So we had to find other IDs to:
1. Determine the Tab of the frames.
2. Determine the URLs of the frames.
For the first use case, we were using nsDocShell::mHistoryId for that purpose
but that was wrong. The closest thing that we can get to a tab ID is
BrowsingContext ID because they don't change after a navigation. But iframes
have different BrowsingContext's, so we still need to create a tree to
construct a tab content. That can be either in the front-end or capture time.
For the second use case, we were using a key pair of mHistoryId and mOSHE. We
now chose to keep inner window IDs for that purpose. Inner window IDs are
unique for each navigation loads because inner window correspond to each JS
window global objects. That's why we can use that without any problem. But one
problem is that we cannot handle `history.pushState` and `history.replaceState`
changes with that change since window global objects won't change during those.
But that was the best thing we can do after fission. So this will be a small
sacrifice for us to keep that functionality working after fission.
In that patch we also remove the registration/unregistration calls. We are
going to add those calls in the next patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 21:25:11 +00:00
Gerald Squelart
d24177fe2a Bug 1587332 - Encapsulate ActivePS::mProfileBuffer as a ProfileBuffer value - r=canaltinova
Having `mProfileBuffer` be a pointer is not really helpful:
- The pointer is never null (It's allocated on ActivePS construction, and
  implicitly deleted on ActivePS destruction); it's never moved-from.
- It requires an extra `new` and an extra `delete`.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 10:52:09 +00:00
Gerald Squelart
dff1750481 Bug 1587329 - MOZ_ASSERT(sInstance) in all functions that dereference sInstance - r=canaltinova
Add assertions that all `sInstance` pointers (from both `CorePS` and `ActivePS`)
are not null before being dereferenced.

This is probably more than needed, but it's only `MOZ_ASSERT`s limited to
Nightly, and it should give better feedback in case something goes wrong.

Eventually, I think it would be better to make most methods non-static, and have
a checked reference-to-instance getter.

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

--HG--
extra : moz-landing-system : lando
2019-10-10 10:51:50 +00:00
Emilio Cobos Álvarez
99a0148a26 Bug 1587486 - Update object in the rust profiler. r=mstange
This removes a failure and old target-lexicon dependencies.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 18:05:54 +00:00
Simon Fraser
abbd58c38b Bug 1585998 mach try fuzzy estimates, ensure cache exists r=jlorenzo
The duration file downloader uses the cache directory created by taskgraph generation.

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

--HG--
extra : moz-landing-system : lando
2019-10-09 13:44:34 +00:00
Greg Tatum
b4b444658c Bug 1586757 - Rename .jsm files to .jsm.js to allow type checking; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D47911

--HG--
rename : devtools/client/performance-new/popup/background.jsm => devtools/client/performance-new/popup/background.jsm.js
rename : devtools/client/performance-new/popup/menu-button.jsm => devtools/client/performance-new/popup/menu-button.jsm.js
extra : moz-landing-system : lando
2019-10-08 20:48:04 +00:00
Erik Rose
8b0b68e6a9 Bug 1232403 - Upgrade to sphinx-js 2.8. r=ahal
This should fix the doc builds on Windows, as sphinx-js added Windows support in 2.3.1 and 2.4. We also now get support for variadic args, @deprecated, and @see, along with other features.

sphinx-js 2.7.1 changed the default cwd to be the one containing conf.py, so I also had to twiddle `jsdoc_config_path`.

Let some other pipenv pinnings update themselves as well, as, if I don't, they'll just update themselves the next time somebody runs `mach doc`, dirtying their tree.

I suspect this also fixes bug 1556460, whose equivalent bug in sphinx-js is https://github.com/mozilla/sphinx-js/issues/106. IOW, it should no longer break with versions of jsdoc >= 3.6.

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

--HG--
extra : moz-landing-system : lando
2019-10-04 22:02:31 +00:00
Edouard Oger
da3f0d0753 Bug 1581709 - Use sessionTokens for OAuth requests. r=vladikoff
Differential Revision: https://phabricator.services.mozilla.com/D46517

--HG--
extra : moz-landing-system : lando
2019-10-08 15:45:06 +00:00
Razvan Maries
9c27546918 Backed out changeset 6852bdb8d8c5 (bug 1581709) for Linting failures. CLOSED TREE 2019-10-08 18:42:11 +03:00