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

25489 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 0a815d2001 Bug 1790559 - [devtools] Update MDN compat data (2022 September 13th week) r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157191
2022-09-13 11:59:38 +00:00
Emilio Cobos Álvarez f2c192212d Bug 1790299 - Make XUL splitter use height property rather than attribute. r=jdescottes,tnikkel
Existing splitter and DevTools tests keep passing with this.

Differential Revision: https://phabricator.services.mozilla.com/D157062
2022-09-13 10:02:05 +00:00
Nicolas Chevobbe 5bfeb8f498 Bug 1788601 - [devtools] Fix ESLint consistent-return failures in devtools/client/framework. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D156159
2022-09-12 17:41:33 +00:00
Nicolas Chevobbe fa06502ad1 Bug 1788594 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D156156
2022-09-12 17:41:33 +00:00
Mark Banner 186d63f202 Bug 1479515 - Add an ESLint rule to check for valid property accesses on Services. r=Gijs
This is manually run and requires a full build. MOZ_OBJDIR needs to be set to point to the object directory.

Differential Revision: https://phabricator.services.mozilla.com/D156426
2022-09-12 16:38:44 +00:00
Alexandre Poirot 58aaf052d7 Bug 1789256 - [devtools] Fix displaying sources when reloading a web extension. r=bomsy
I think we have a special edge case here, where we do have a navigation,
but no new top level target is notified.
In regular devtools/webpages, we should have a new top level target notified to the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D156467
2022-09-12 11:44:46 +00:00
Hubert Boma Manilla dab890653a Bug 1789363 - [devtools] Support specifying the source actor to the load the source text r=ochameau
This patch enables specifying a source actor to load the source text content

Differential Revision: https://phabricator.services.mozilla.com/D154778
2022-09-12 10:32:03 +00:00
Nicolas Chevobbe 0f42f58871 Bug 1789973 - [devtools] Remove unused RemoteSettings script and update documentation. r=jdescottes.
Now that the script is run on automation, there's no need to have
a (different) version in tree.
The documentation is also updated to explain the current setup.

Differential Revision: https://phabricator.services.mozilla.com/D156930
2022-09-09 14:20:27 +00:00
Mariana Picolo 5e049236e4 Bug 1621919 - Update constant for format bytes. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66917
2022-09-09 11:32:02 +00:00
Alexandre Poirot 3c1d82f3c1 Bug 1789595 - [devtools] Migrate require to new devtools/server's ESM to ChromeUtils.importESModule. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D156827
2022-09-09 10:13:15 +00:00
Alexandre Poirot 393e94ddf0 Bug 1789595 - [devtools] Convert devtools/server JSM to ES Modules. r=nchevobbe
This is the result of:
$ ./mach esmify devtools/server/

Differential Revision: https://phabricator.services.mozilla.com/D156826
2022-09-09 10:13:15 +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
justchen1369 4743055749 Bug 1789765 - Fix broken links to 'Fluent for Firefox Developers' page. r=firefox-source-docs-reviewers,marco DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156761
2022-09-08 19:03:25 +00:00
Hubert Boma Manilla 954bd93334 Bug 1780544 - Increase the storage size limit for the resent request r=jdescottes
This patch switches to using indexedDB to for more space.
Some cleanups.

Differential Revision: https://phabricator.services.mozilla.com/D155239
2022-09-08 10:51:43 +00:00
Emilio Cobos Álvarez a11c622dc7 Bug 1786147 - Remove layout.css.webkit-line-clamp.enabled, and add a new pref to apply line-clamp to all BFCs. r=dholbert
It's always true, so remove it.

Add another pref to allow -webkit-line-clamp to work on all blocks
rather than just legacy -webkit-boxes, which seems something we should
try to look into, eventually.

Depends on D155181

Differential Revision: https://phabricator.services.mozilla.com/D155182
2022-09-07 23:57:18 +00:00
Noemi Erli 539bbccc5d Backed out 2 changesets (bug 1780912) for causing failures in browser_aboutdebugging_addons_debug_console.js CLOSED TREE
Backed out changeset d2360a2a3d70 (bug 1780912)
Backed out changeset 21f1e9031be0 (bug 1780912)
2022-09-08 01:59:18 +03:00
Alexandre Poirot 80c9c861dd Bug 1780912 - [devtools] Make the local web extension toolbox be always on top. r=nchevobbe,eemeli
This allows to keep the DevTools visible while interacting with the Firefox
window where the extension is running.

This behavior is enabled by default, but can be disable on-demand via a button
in the top toolbar.
Note that it requires to close and reopen the window/toolbox as platform APIs
disallow changing this behavior "live" on a given window.

Differential Revision: https://phabricator.services.mozilla.com/D155843
2022-09-07 21:00:17 +00:00
Alexandre Poirot 8792e1fba5 Bug 1780912 - [devtools] Open toolboxes for local WebExtension in dedicated window. r=jdescottes
This should hopefully help debug addons displaying panels/popups.

Differential Revision: https://phabricator.services.mozilla.com/D155393
2022-09-07 21:00:17 +00:00
Julian Descottes 96bfe17dfd Bug 1778977 - [devtools] Rename stylesheet-enabled to stylesheet-toggle r=nchevobbe
Depends on D156082

Now that the toggle itself can be disabled, the classname felt too confusing

Differential Revision: https://phabricator.services.mozilla.com/D156656
2022-09-07 15:23:07 +00:00
Julian Descottes 283a19424b Bug 1778977 - [devtools] Disable the visibility toggle button on system stylesheets in Style Editor r=nchevobbe,fluent-reviewers,flod
Depends on D156655

system stylesheets cannot be disabled, apply a dedicated classname on the summary and disable the visibility toggle

Differential Revision: https://phabricator.services.mozilla.com/D156082
2022-09-07 15:23:06 +00:00
Julian Descottes cbd1e77ab4 Bug 1789580 - [devtools] StyleEditor should use a different icon when the stylesheet is disabled r=nchevobbe
Only modified the provided SVGs to have fill-context & fill-stroke for colors.

Differential Revision: https://phabricator.services.mozilla.com/D156655
2022-09-07 15:23:06 +00:00
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
lyavor c4dd970059 Bug 1709150 - Consider linter rule to make https the default for all kind of tests we add. r=Standard8,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D149394
2022-09-07 08:45:12 +00:00
Emilio Cobos Álvarez 8b0dab364d Bug 1789125 - Explicitly position statuspanel vertically. r=dao
Right now, the vertical position of the status panel is the "auto"
position, which ends up working out, but mostly by chance, and relies on
behavior that's different from the standard flexbox, see bug 1789165.

Instead of using `position: fixed` and relying on not having any
sidebars or other content to the inline-end (otherwise the [mirror] rule
would be incorrect), explicitly position it against the
.browserContainer.

Differential Revision: https://phabricator.services.mozilla.com/D156384
2022-09-06 19:05:54 +00:00
Alexandre Poirot e26a356c6b Bug 1788032 - [devtools] Convert devtools/client JSM to ES Modules. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/

Differential Revision: https://phabricator.services.mozilla.com/D156181
2022-09-06 18:37:10 +00:00
Alexandre Poirot 285338d43e Bug 1788032 - [devtools] Remove unused AbstractTreeItem.jsm. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D156180
2022-09-06 18:37:10 +00:00
Nicolas Chevobbe d94a74f52d Bug 1788030 - [devtools] Display nested media queries in media sidebar. r=jdescottes.
In StyleSheetsManager _getMediaRules, we were only looping
over document.cssRules, and as a result were missing potential
nested media queries.
For each rule, we now go other its potential cssRules, recursively,
to gather all media query rules.
Test cases are added for the client to make sure that those nested
rules do show up in the StyleEditor media queries sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D156277
2022-09-06 08:06:45 +00:00
Rob Wu f88bf80d5b Bug 1789245 - [devtools] Mark openDevTools as nullable for installTemporaryAddon r=devtools-backward-compat-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D156458
2022-09-05 17:06:16 +00:00
Julian Descottes 79b87a7b80 Bug 1789052 - [devtools] Fix storage inspector sorting logic r=nchevobbe
Two issues fixed:
- when sorting on one column, other column content should be re-arranged
- natural order sort was not symmetrical for dates and led to inconsistent sorting

Differential Revision: https://phabricator.services.mozilla.com/D156420
2022-09-05 13:00:15 +00:00
Sylvestre Ledru a37ab669ff Bug 1530945 - doc: remove an old and unused doc r=Honza DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D156431
2022-09-05 12:50:13 +00:00
Alexandre Poirot 15211b3be5 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +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
Alexandre Poirot 5a25092464 Bug 1783821 - [devtools] Convert Launcher JSM to an ES Module. r=bomsy
This is the result of:
$ ./mach esmify devtools/client/framework/browser-toolbox/Launcher.jsm

Differential Revision: https://phabricator.services.mozilla.com/D154071
2022-09-05 12:29:56 +00:00
Henrik Skupin b87f7d7ff8 Bug 1788168 - [devtools] Remove Firefox 104 backward compat fallback code. r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156329
2022-09-05 11:37:48 +00:00
Hubert Boma Manilla 3f9dcc016d Bug 1777716 - [devtools] Add back the 'Resend' context menu to send quick requests without editing r=nchevobbe
This patch adds reverts back to having distint context menu items for 'Resend' and 'Edit and Resend'
but this is using the new http custom request functionality.

Differential Revision: https://phabricator.services.mozilla.com/D155159
2022-09-05 09:39:35 +00:00
Nicolas Chevobbe b15de410c8 Bug 1499653 - [devtools] Display @supports condition on top of rules. r=jdescottes.
Since we already had a test case for nested at-rules in
browser_rules_container-queries.js, I'm moving it to a
new test where we can test all the different at-rules that
can be nested (including `@supports`).

Differential Revision: https://phabricator.services.mozilla.com/D156313
2022-09-02 18:00:27 +00:00
Julian Descottes c4cabfb565 Bug 1783885 - [devtools] StyleEditor should lazily prettify editor content r=nchevobbe,ochameau
Depends on D155479

Differential Revision: https://phabricator.services.mozilla.com/D155481
2022-09-02 10:48:24 +00:00
Alexandre Poirot f962367d28 Bug 1788536 - [devtools] Use descriptorType instead of a type decipher from toolbox URL. r=jdescottes
This helps having the right type, even if we open the toolbox without any search params
in about:devtools-toolbox URL.

Differential Revision: https://phabricator.services.mozilla.com/D156134
2022-09-02 09:10:01 +00:00
Alexandre Poirot bd186cfb62 Bug 1788536 - [devtools] Expose `descriptorType` on all Descriptor fronts. r=jdescottes
This will help differentiate all the various context debugged by devtools.

Differential Revision: https://phabricator.services.mozilla.com/D156133
2022-09-02 09:10:00 +00:00
Nicolas Chevobbe 43824310d4 Bug 1787685 - [devtools] Fix ChromeDebugToolbar styling in Windows High Contrast mode. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D156274
2022-09-02 08:09:44 +00:00
nchevobbe 234ae43d37 Bug 1483662 - [devtools] Use `ChromeUtils.dateNow()` for timestamp of evaluation result packets. r=jdescottes,devtools-backward-compat-reviewers.
`ChromeUtils.dateNow()` has a higher precision than `Date.now()`, which is useful for ordering
of messages in the console output.

Differential Revision: https://phabricator.services.mozilla.com/D155548
2022-09-02 04:58:29 +00:00
nchevobbe 80001e9281 Bug 1483662 - [devtools] Use microSecondTimeStamp to build timeStamp for console-related resources. r=jdescottes.
We can get a higher precision timestamp from microSecondTimeStamp, which will be consumed
in the console client to re-order messages.
This fixes an issue where different type of resources (console-messages and error-messages)
emitted during the same timestamp would not appear in the order they should be in.
A test is added to make sure the fix is effective.

Differential Revision: https://phabricator.services.mozilla.com/D155546
2022-09-02 04:58:28 +00:00
Nicolas Chevobbe cd8a9fc464 Bug 1788095 - [devtools] Fix devtools-bundle failure. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D156041
2022-09-01 12:24:40 +00:00
Alexandre Poirot 91bbed2ced Bug 1787999 - [devtools] Show pseudo locale settings only in the browser toolbox. r=nchevobbe
Note that it will also stop showing locale and popup settings for remote browser toolboxes.
Toolbox.isBrowserToolbox being false for this usecase.

Differential Revision: https://phabricator.services.mozilla.com/D155956
2022-09-01 08:41:51 +00:00
Alexandre Poirot 09181ce3b3 Bug 1787409 - [devtools] Allow to open DevTools when installing an add-on remotely. r=nchevobbe,devtools-backward-compat-reviewers
I'm folding the helper_addons file as this is used only by this one test.

Differential Revision: https://phabricator.services.mozilla.com/D155686
2022-09-01 08:41:50 +00:00
Alexandre Poirot 8672b789df Bug 1787409 - [devtools] Resolve toolbox's opening only once the meatball menu is updated. r=nchevobbe
_buildTabs/_setInitialMeatballState wasn't awaited for.
So that preference front request might be pending when closing the toolbox too quickly in tests.

We should wait for all RDP requests to be completed before resolving Toolbox.open.

Differential Revision: https://phabricator.services.mozilla.com/D155872
2022-09-01 08:41:50 +00:00
Alexandre Poirot dff3ebe085 Bug 1787992 - [devtools] Expose gDevTools.showToolboxForWebExtension to open a webext toolbox in a dedicated window. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D155950
2022-09-01 08:41:49 +00:00
Nicolas Chevobbe 3074bcadc6 Bug 1787389 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/actions. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D155824
2022-08-31 11:40:15 +00:00
Nicolas Chevobbe 7198dabfab Bug 1787514 - [devtools] Fix failing webconsole mocha tests. r=ochameau.
It looks like there was some (hardware?) changes on TRY
which caused the test to run in Coordinated Universal Time
timezone, when one test expect it to be CEST.
We force the timezone in the test command so it will
always be CEST.

Differential Revision: https://phabricator.services.mozilla.com/D155818
2022-08-30 16:08:58 +00:00