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

1572 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 1ec54ba838 Bug 1806405 - [devtools] Remove code related to "show content message" toggle. r=perftest-reviewers,nchevobbe,kshampur
This was no longer implemented/shown in the fission browser toolbox.
Now that we removed the non-fission toolbox, we can remove this feature.
Instead, content process messages are shown/hidden depending on browser toolbox's scope.
"everything" will show them. "parent-process" won't.

Differential Revision: https://phabricator.services.mozilla.com/D165026
2022-12-20 19:30:30 +00:00
Alexandre Poirot efb7f408c5 Bug 1805378 - [devtools] Make the SourceMapLoader be instantiated per toolbox. r=bomsy,perftest-reviewers,kshampur
This complexify the existing tests a bit, but will make the management from the Toolbox more obvious.

The metrics test highlights that we allow to prevent loading the sourcemap modules
unless it is strictly necessary!

(Also I forgot to remove the source-map-loader from the list of browser loader module...)

Differential Revision: https://phabricator.services.mozilla.com/D164694
2022-12-20 19:09:57 +00:00
Alexandre Poirot d6e7b9e6c8 Bug 1805378 - [devtools] Automatically start the worker on first WorkerDispatcher invoke/task call. r=bomsy,perftest-reviewers,kshampur
Because of this, we have to now pass the worker URL via WorkerDispatcher constructor.
Doing this should help then extend WorkerDispatcher instead of manually instantiating it.

About browser_jsterm_hide_when_devtools_chrome_enabled_false.js, as the SourceMapLoader
is now started lazily, the worker is no longer started during this test
and so we no longer have to wait for it.

And browser_jsterm_await_paused.js was failing because we resumed too quickly.
I added some code to better wait for awaitExpression full evaluation.

Differential Revision: https://phabricator.services.mozilla.com/D164547
2022-12-20 19:09:56 +00:00
Alexandre Poirot 6fb8757655 Bug 1625939 - [devtools] Remove devtools.browsertoolbox.fission preference and remove old non-fission Browser Toolbox. r=nchevobbe,fluent-reviewers,flod,perftest-reviewers,kshampur
Differential Revision: https://phabricator.services.mozilla.com/D164699
2022-12-20 10:16:48 +00:00
Barret Rennie e23c2fbace Bug 1805748 - Fix writing profiles in talos-powers API r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D164735
2022-12-16 03:19:22 +00:00
Mark Banner 53ce0faad1 Bug 1804661 - Convert browser/components/BrowserGlue.jsm to an ES module. r=Gijs,settings-reviewers,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D164204
2022-12-12 14:59:18 +00:00
Gijs Kruitbosch 38d4b2f917 Bug 1803158 - convert session restore consumers to reference the sys.mjs files instead, r=webdriver-reviewers,perftest-reviewers,extension-reviewers,credential-management-reviewers,Standard8,sgalich,whimboo,sparky,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D163350
2022-12-06 16:02:03 +00:00
Mark Banner c20944ef61 Bug 1803342 - Automatically replace Cu.reportError with console.error (testing). r=perftest-reviewers,sparky
Depends on D163455

Differential Revision: https://phabricator.services.mozilla.com/D163456
2022-12-01 16:29:01 +00:00
Barret Rennie 15bea72588 Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-25 19:09:10 +00:00
Nazım Can Altınova 58530653d6 Bug 1802535 - Remove the leaf feature from profiler arguments of talos and browsertime r=perftest-reviewers,sparky
Previously we had a "leaf" feature but it's been removed in Bug 1571089. It
doesn't break the tests, but it always outputs an error string to the std out
and it might be annoying for our users or it can get in the way of analyzing
other errors. It's good to remove it.

Differential Revision: https://phabricator.services.mozilla.com/D163126
2022-11-25 17:56:16 +00:00
Barret Rennie 111159cc9d Bug 1798559 - Port osfile.jsm usage to IOUtils in testing/talos/ r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D160955
2022-11-17 03:42:40 +00:00
Emilio Cobos Álvarez 4d14fad96c Bug 1800133 - Make displaylist tests runnable outside of talos. r=gfx-reviewers,perftest-reviewers,tnikkel,nical,sparky
No behavior change, but sometimes it's easier to do this for local
testing / profiling.

Differential Revision: https://phabricator.services.mozilla.com/D161884
2022-11-14 14:11:32 +00:00
Alexandre Poirot ce46c666e5 Bug 1797690 - [devtools] Track performance of source-map npm package. r=bomsy,jdescottes,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160462
2022-11-08 16:01:02 +00:00
Alexandre Poirot ae7b6ea7e4 Bug 1794693 - [devtools] Move devtools-source-map to regular mozilla-central code. r=bomsy,perftest-reviewers,jdescottes,sparky
This used to be a node package. Let's make it become regular commonjs devtools modules.
This will make it trivial to migrate this to ES Modules.
Also possibly make this code become the unique layer in m-c on top of the source-map package.

We no longer use webpack to build the two bundles (index.js and worker.js),
instead, we are using the toolkit worker loader (require.js) in order to load
all this code without any build step.

As this is no longer a node package, I removed node-specific modules (assertRoot/wasmAsset)
and simplify the definition of wasm file URIs as they are now fixed.

Also moving the debugger to load internal "devtools/client/shared/source-map/source-map.js"
module in jest as running the Web Worker instantiated by source-map/index.js is too complex.

Differential Revision: https://phabricator.services.mozilla.com/D159115
2022-11-08 16:01:01 +00:00
Mark Banner 935ec07f02 Bug 1799311 - Convert testing/talos JSM modules to ES modules. r=perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D161374
2022-11-08 14:28:47 +00:00
William Durand 560aa1a276 Bug 1797050 - Part 6 - Use `browser_specific_settings` instead of `applications` in test manifests. r=rpl,perftest-reviewers,sparky
We want to encourage extension developers to use `browser_specific_settings` instead of `applications`, which will be unsupported in Manifest Version 3+. This patch makes sure test manifests in m-c won't cause any issues in the future.

Depends on D160541

Differential Revision: https://phabricator.services.mozilla.com/D160668
2022-11-03 16:23:03 +00:00
Alexandre Poirot 2a996e9bd8 Bug 1797274 - [devtools] Track source-map gecko API performance. r=perftest-reviewers,bomsy,jdescottes,sparky
We can't test source-map package performance yet as it isn't exposed
and only loaded within a webpack bundle.

But it would be nice to also cover the code on top of the source-map package,
the "source map loader".

Differential Revision: https://phabricator.services.mozilla.com/D160199
2022-11-03 14:05:44 +00:00
Cristian Tuns 4d37cf70f1 Backed out 19 changesets (bug 1541508) for causing xpcshell failures on test_notHeadlessByDefault.js CLOSED TREE
Backed out changeset 08476fa2bc27 (bug 1541508)
Backed out changeset 0bf7514845db (bug 1541508)
Backed out changeset aa612a5e9ef7 (bug 1541508)
Backed out changeset 6bb9360473f7 (bug 1541508)
Backed out changeset b3d8e92f50c2 (bug 1541508)
Backed out changeset fa40dded133e (bug 1541508)
Backed out changeset 2e7db4aa8d4f (bug 1541508)
Backed out changeset 6098e2eb62ea (bug 1541508)
Backed out changeset 2c599ee639c4 (bug 1541508)
Backed out changeset 7d44f6e2644c (bug 1541508)
Backed out changeset c1279c3d674c (bug 1541508)
Backed out changeset 8bd08a62a590 (bug 1541508)
Backed out changeset 740010cb005c (bug 1541508)
Backed out changeset 0bfc7dd85c62 (bug 1541508)
Backed out changeset c4374a351356 (bug 1541508)
Backed out changeset 44ccfeca7364 (bug 1541508)
Backed out changeset e944e706a523 (bug 1541508)
Backed out changeset 2c59d66f43e4 (bug 1541508)
Backed out changeset a1896eacb6f1 (bug 1541508)
2022-11-01 22:38:52 -04:00
Barret Rennie c99b29d427 Bug 1541508 - Use Services.env in testing/ r=jmaher,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D160147
2022-11-02 02:08:58 +00:00
Myeongjun Go 6aa3603f37 Bug 1790962 - Document sample commands to run talos tests. r=sparky,perftest-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D159600
2022-10-19 17:17:23 +00:00
Mark Banner 2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Alexandre Poirot a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Masayuki Nakano 14a67464fa Bug 1793390 - Make `line-iterator.html` collapse `Selection` into the editable element by itself r=perftest-reviewers,sparky
It calls `pre[contenteditable].focus()`, but when talos tests run, the URL bar
keeps having focus.  Therefore, the `focus()` call in content cannot steal focus
from the chrome UI.  Then, it does not pay the cost of `Selection.modify` in
the first loop because it does nothing when there is no selection ranges.
(Before bug 1789967, `Selection` was collapsed to end of the document at
loading by `HTMLEditor`, but it's now not performed, and due to the silent
failure of the call of `focus()`, nobody collapse selection in the document.)

Depends on D158551

Differential Revision: https://phabricator.services.mozilla.com/D158552
2022-10-08 12:59:33 +00:00
Mark Banner 8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Alexandre Poirot 5bae281ff6 Bug 1791055 - [devtools] Migrate to CommandsFactory to instantiate all descriptors. r=jdescottes,perftest-reviewers,AlexandruIonescu
This help factorise all code trying to instantiate a server and a client everywhere.
This will also help migrate from descriptor to commands in Toolbox constructor.

A good way to track all leftover manual instantiation of descriptors is to look for mainRoot.get*.
There should only be tests now, and descriptor-from-url, which I would to convert once
we migrate toolbox constructor from descriptor to commands.

Differential Revision: https://phabricator.services.mozilla.com/D157737
2022-09-24 07:14:58 +00:00
Alexandre Poirot 8c0ef6b298 Bug 1789980 - [devtools] Migrate all callsites using require("chrome") to use Components.* global symbols. r=jdescottes,perftest-reviewers,AlexandruIonescu
This will help transition to ES Modules as we won't be able to expose a magic "chrome" ESM.
Also, most of these symbols are exposed as global already.
All but:
* `components` which is `Components`,
* `CC` which is `Components.Constructor`,
* `Cm` which is `Components.manager`.

$ sed -ie "/require(.chrome.)/d" $(git grep -l 'require("chrome")' devtools/)
+ manual edits for all three exceptions

Differential Revision: https://phabricator.services.mozilla.com/D156936
2022-09-20 12:52:27 +00:00
Alexandre Poirot 573f380baf Bug 1789202 - [devtools] Expose ChromeUtils as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.ChromeUtils.)/d" $(git grep -l 'require("ChromeUtils")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .ChromeUtils./d" $(git grep -l 'loader.lazyRequireGetter(this, "ChromeUtils"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js + manual eslint fixes

Differential Revision: https://phabricator.services.mozilla.com/D156402
2022-09-09 07:22:51 +00:00
Alexandre Poirot 7f9229d43d Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
Alexandre Poirot 10e8296ed1 Bug 1783821 - [devtools] Load Launcher.sys.mjs via ChromeUtils.importESModule. r=perftest-reviewers,bomsy,arai,sparky
This is the result of:
$ ./mach esmify --imports . --prefix=devtools/client/framework/browser-toolbox

Differential Revision: https://phabricator.services.mozilla.com/D154072
2022-09-05 12:29:57 +00:00
Julian Descottes 2cecfb6e12 Bug 1783885 - [devtools] Add DAMP performance test for StyleEditor with many minified files r=perftest-reviewers,nchevobbe,sparky
Adding a custom test for styleeditor loading many stylesheets.

Differential Revision: https://phabricator.services.mozilla.com/D155479
2022-08-31 07:40:49 +00:00
Mark Banner 365f6e8e10 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for testing. r=jmaher,perftest-reviewers,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D155175
2022-08-26 13:39:38 +00:00
Nazım Can Altınova 1bd1fb12a6 Bug 1784243 - Change the talos marker categories to Test r=florian,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D154372
2022-08-12 19:23:05 +00:00
Emilio Cobos Álvarez ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Gregory Mierzwinski c3430429cd Bug 1784332 - Check if a test is skipped after building configs. r=perftest-reviewers,aglavic
This patch moves where the skip_test function is used from so that it can benefit from additional changes that happen after the configs are built, and before the tests run.

Differential Revision: https://phabricator.services.mozilla.com/D154443
2022-08-11 23:21:06 +00:00
Nicolas Chevobbe b2e069fb9c Bug 1783857 - [devtools] Don't listen for changes event in custom.jsdebugger.open-large-minified-file.DAMP. r=ochameau,perftest-reviewers,AlexandruIonescu.
`waitForText` seems to be enough to properly wait for the source opening.

Differential Revision: https://phabricator.services.mozilla.com/D154095
2022-08-10 12:24:50 +00:00
Nicolas Chevobbe 68478b358f Bug 1783610 - [devtools] Set BrowserToolbox mode to everything in browser-toolbox.js. r=jdescottes,perftest-reviewers,sparky.
Differential Revision: https://phabricator.services.mozilla.com/D153920
2022-08-09 14:28:34 +00:00
Nicolas Chevobbe c9e210ad81 Bug 1783608 - [devtools] Make `evaluateInBrowserToolbox` throw when passed expression does throw. r=jdescottes,perftest-reviewers,sparky.
Since the test is using `evaluateJSAsync` with `mapped` set to `{await: true}`,
if the Promise returned by the expression rejects, the response will have a
`topLevelAwaiRejected` property set to `true`.
In such case, we directly throw from `evaluateInBrowserToolbox`, so the test
will fail.
We also cover the case where the passed function isn't async, in which case the
response will hold a `exceptionMessage` property that we can use.
Finally, we take this as an opportunity to remove duplicated function, as well
as removing a try/catch block in one of the expression since it was also hiding failures.

Differential Revision: https://phabricator.services.mozilla.com/D153919
2022-08-09 14:28:33 +00:00
Gregory Mierzwinski d9eb91264a Bug 1783249 - Check for pine-stable branch in Talos. r=perftest-reviewers,kshampur
Differential Revision: https://phabricator.services.mozilla.com/D153776
2022-08-04 17:54:49 +00:00
Nicolas Chevobbe 73ff4b257a Bug 1782701 - [devtools] Track opening of big files in custom debugger DAMP test. r=jdescottes,perftest-reviewers,AlexandruIonescu.
Differential Revision: https://phabricator.services.mozilla.com/D153141
2022-08-04 08:27:00 +00:00
Florian Queze 80cd7c460f Bug 1782098 - specify the utf-8 encoding when opening a local profile to symbolicate it, r=mstange,perftest-reviewers,sparky.
Differential Revision: https://phabricator.services.mozilla.com/D153103
2022-08-02 12:36:55 +00:00
Gregory Mierzwinski 09044ce53f Bug 1780763 - Add ability to skip tests to Talos. r=perftest-reviewers,kshampur
This patch adds the ability to skip tests to Talos. This lets us prevent tests from running depending on which branch we are on. It also adds some code that will skip tests on the pine branch.

Differential Revision: https://phabricator.services.mozilla.com/D152513
2022-07-29 11:16:52 +00:00
Tooru Fujisawa 4e35a2bf9c Bug 1780543 - Part 3: Add mozilla/process-script environment as alias to frame-script. r=Standard8,perftest-reviewers,webcompat-reviewers,necko-reviewers,twisniewski,sparky,dragana
Differential Revision: https://phabricator.services.mozilla.com/D152428
2022-07-26 02:46:29 +00:00
Tooru Fujisawa a1a992d3cc Bug 1780543 - Part 2: Use eslint-env mozilla/frame-script consistently in test frame script. r=Standard8,webdriver-reviewers,perftest-reviewers,sparky,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D152427
2022-07-26 02:46:29 +00:00
Sebastian Hengst 07c1520097 Bug 1774376 - update further metadata mapping files to Graphics Bugzilla components. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D151558
2022-07-11 22:38:30 +00:00
Tooru Fujisawa 47c8f80432 Bug 1667455 - Part 6: Stop importing Services.jsm from chrome-priv JS code, non-top-level or multi-line cases. r=kmag,perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D150895
2022-07-11 12:41:51 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Alexandre Poirot b7e9bd218f Bug 1778274 - [devtools] Track performance of the debugger in the browser toolbox r=perftest-reviewers,jdescottes,sparky
Differential Revision: https://phabricator.services.mozilla.com/D151113
2022-07-11 07:16:42 +00:00
Sebastian Hengst 304227d5c2 Bug 1774376 - update file-to-Bugzilla-component mappings for Graphics team r=perftest-reviewers,gfx-reviewers,sparky,aosmond,nical
Components got reorganized in bug 1774288.

Differential Revision: https://phabricator.services.mozilla.com/D149375
2022-06-30 18:07:29 +00:00
Kris Maglione 289588883e Bug 1776207: Part 1 - Remove obsolete _xpcom_factory definitions. r=mccr8
They only work with `generateNSGetFactory` definitions, which don't exist
anymore.

Differential Revision: https://phabricator.services.mozilla.com/D150191
2022-06-27 21:19:51 +00:00