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

27668 Коммитов

Автор SHA1 Сообщение Дата
Iulian Moraru 596e56e671 Backed out 13 changesets (bug 1874363) - for causing multiple dt failures. CLOSED TREE
Backed out changeset 29fc55efd0a5 (bug 1874363)
Backed out changeset 75661fc7c39b (bug 1874363)
Backed out changeset bb6ef39f1a62 (bug 1874363)
Backed out changeset dbcffa72a1b2 (bug 1874363)
Backed out changeset 032f8f8c8593 (bug 1874363)
Backed out changeset a200f242dbd5 (bug 1874363)
Backed out changeset 44576c82ccfa (bug 1874363)
Backed out changeset 1bfb07c0b1e7 (bug 1874363)
Backed out changeset 75de090b9eef (bug 1874363)
Backed out changeset 442317088795 (bug 1874363)
Backed out changeset 29bd30a54caa (bug 1874363)
Backed out changeset 08c95433ca18 (bug 1874363)
Backed out changeset 8da0a8d798b2 (bug 1874363)
2024-01-16 12:12:50 +02:00
Nicolas Chevobbe db346eda9b Bug 1874363 - [devtools] Remove implicit folder import. r=devtools-reviewers,ochameau.
Update imports to use FOLDER/index, instead of relying on nodeJS
require behavior (which will look for the index file when importing FOLDER)

Differential Revision: https://phabricator.services.mozilla.com/D198423
2024-01-16 08:31:04 +00:00
Nicolas Chevobbe 710949d857 Bug 1874363 - [devtools] Remove build-debugger mapping mechanism. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198422
2024-01-16 08:31:04 +00:00
Nicolas Chevobbe ff3e8c83b5 Bug 1874363 - [devtools] Remove build-debugger react mapping. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198420
2024-01-16 08:31:03 +00:00
Nicolas Chevobbe 2a595108e6 Bug 1874363 - [devtools] Remove build-debugger react-dom-factories mapping. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198419
2024-01-16 08:31:03 +00:00
Nicolas Chevobbe 674f0663ce Bug 1874363 - [devtools] Remove build-debugger prop-types mapping. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198418
2024-01-16 08:31:02 +00:00
Nicolas Chevobbe c9842eefd1 Bug 1874363 - [devtools] Remove build-debugger wasmparser mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198417
2024-01-16 08:31:02 +00:00
Nicolas Chevobbe 6d7f1b0dd1 Bug 1874363 - [devtools] Remove build-debugger react-dom mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198416
2024-01-16 08:31:01 +00:00
Nicolas Chevobbe 7f5a525da9 Bug 1874363 - [devtools] Remove build-debugger react-redux mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198415
2024-01-16 08:31:01 +00:00
Nicolas Chevobbe c1d232e118 Bug 1874363 - [devtools] Remove build-debugger redux mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198414
2024-01-16 08:31:01 +00:00
Nicolas Chevobbe ccad545aeb Bug 1874363 - [devtools] Remove build-debugger reselect mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198413
2024-01-16 08:31:00 +00:00
Nicolas Chevobbe 2ec413367a Bug 1874363 - [devtools] Remove build-debugger inspector-shared-utils mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198412
2024-01-16 08:31:00 +00:00
Nicolas Chevobbe c8cff8927b Bug 1874363 - [devtools] Remove build-debugger framework-actions mappings. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198410
2024-01-16 08:30:59 +00:00
Nicolas Chevobbe 8be3e22ff3 Bug 1874363 - [devtools] Remove build-debugger source-editor mapping. r=devtools-reviewers,ochameau.
Also remove devtools/client/debugger/src/utils/editor/source-editor.js which wasn't
used an look like a relic of ancient times.

Differential Revision: https://phabricator.services.mozilla.com/D198409
2024-01-16 08:30:59 +00:00
Nicolas Chevobbe f21f0dc5d1 Bug 1874642 - [devtools] Remove proposal-optional-chaining plugin from build-debugger. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D198519
2024-01-16 06:08:19 +00:00
Hubert Boma Manilla 2fa4750e87 Bug 1859531 - [devtools] Add getClosestOriginalFunctionName for the callstack original frames r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D191185
2024-01-16 02:27:48 +00:00
Nicolas Chevobbe 1e44a7a5a7 Bug 1874360 - [devtools] Remove unnecessary build-debugger mappings. r=devtools-reviewers,ochameau.
Depends on D198407

Differential Revision: https://phabricator.services.mozilla.com/D198408
2024-01-15 15:43:52 +00:00
Nicolas Chevobbe 4376dd0ea3 Bug 1874360 - [devtools] Remove unused devtools/client/debugger/configs. r=devtools-reviewers,bomsy.
Depends on D198406

Differential Revision: https://phabricator.services.mozilla.com/D198407
2024-01-15 15:43:52 +00:00
Tooru Fujisawa 2e7027b7a9 Bug 1874595 - Use LF in toml file consistently. r=jmaher,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D198505
2024-01-15 15:21:53 +00:00
Hubert Boma Manilla 2e3528b15d Bug 1874382 - [devtools] Make sure to check the selectedFrame before trying to call it r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198522
2024-01-15 12:58:48 +00:00
Alexandre Poirot 7af68792e0 Bug 1834725 - [devtools] Surface source map errors in Debugger frontend. r=devtools-reviewers,nchevobbe
I'm introducing a new dedicated method on SourceMapLoader so that we can:
* ensure retrieving the resolved source map URL, even in case of errors
  so that we can easily open the source map file from the frontend.
* pass all useful data in one worker call (ignore urls + sources + error + resolve source map url)

Display the source map error in a new dedicated warning footer in the bottom of the editor pane.

(Removing failing jest test. Mochitests should cover the source maps.)

Differential Revision: https://phabricator.services.mozilla.com/D188586
2024-01-15 12:57:19 +00:00
Alexandre Poirot 60695efad5 Bug 1834725 - [devtools] Retrieve the resolved source map URL and source map error. r=devtools-reviewers,nchevobbe
Extract information out of the source map worker to be stored into the Debugger store.

Renamed SourceMapLoader getOriginalURLs to loadSourceMap to better translate the heavy process involved in this method.
While doing that, also inline the transfer of source map ignore list in this call (instead of always having another worker message right after).

This will be used and tested in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D188585
2024-01-15 12:57:19 +00:00
Alexandre Poirot 52c233f81a Bug 1834725 - [devtools] Log source map errors to the console directly from SourceMapLoader. r=devtools-reviewers,nchevobbe
The main goal here is to re-throw the exception so that the debugger can start displaying source map errors.

Note that the previous changeset tweaked the StyleEditor code to handle exceptions.
The Debugger will be handled in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D187576
2024-01-15 12:57:19 +00:00
Alexandre Poirot 4fd0f6378f Bug 1834725 - [devtools] Tweak original CSS handling in the Style Editor. r=devtools-reviewers,nchevobbe
* Accept exceptions from `getOriginalURLS` (see next changeset).
* Avoid instantiating an editor for minified stylesheet when we have a functional original stylesheet.
  We were doing that solely for getting their `friendlyName`, whereas we could lazily compute it only when we need it.

Differential Revision: https://phabricator.services.mozilla.com/D187575
2024-01-15 12:57:18 +00:00
Emilio Cobos Álvarez 9f991cfa5b Bug 1874252 - Add some diagnostics to browser_rules_container-queries.js. r=nchevobbe,devtools-reviewers
I haven't been able to repro this so far. The failure screenshot shows
the tooltip but not the toolbox, which is quite odd, too... Hopefully
this helps figure out what's going on.

Differential Revision: https://phabricator.services.mozilla.com/D198540
2024-01-15 12:57:09 +00:00
Hubert Boma Manilla 5d736fff38 Bug 1862022 - [devtools] Fix the scroll issue in the quickopen panel r=devtools-reviewers,nchevobbe
This fixes the issue allowing the result list to scroll as the user presses the up/down to move through
the list items. Seperating this patch from the test (as the test is quite tricky), so we can land the fix.

Differential Revision: https://phabricator.services.mozilla.com/D193721
2024-01-15 12:45:36 +00:00
Malte Juergens d6372a9797 Bug 1872504 - Add img-src 'self' to JSON viewer CSP to allow favicon.ico to load r=freddyb,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197674
2024-01-15 10:09:41 +00:00
Nicolas Chevobbe 83ef40ca60 Bug 1873149 - [devtools] Don't show preview popup for keywords. r=devtools-reviewers,ochameau.
We shouldn't show the popup for keywords (`const`, `let`, `for`, …).
codeMirror marks those with the `cm-keyword` class, so we can ignore those in `_isInvalidTarget`,
but we need to exclude `this`, for which we do want to show the preview.

Differential Revision: https://phabricator.services.mozilla.com/D197585
2024-01-15 08:03:25 +00:00
Nicolas Chevobbe bf9d93545e Bug 1874359 - [devtools] Remove unused devtools/client/debugger/src/actions/tests/fixtures/. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D198406
2024-01-15 06:40:36 +00:00
Gregory Pappas c6d9bdce19 Bug 1873594 - Remove layout.css.color-mix.enabled and layout.css.color-mix.color-spaces.enabled r=emilio,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197986
2024-01-14 01:24:01 +00:00
Natalia Csoregi 9d85b6aa2f Backed out 4 changesets (bug 1834725) for causing failures on browser_styleeditor_loading_with_containers.js. CLOSED TREE
Backed out changeset 0965e956200a (bug 1834725)
Backed out changeset 4a8151163607 (bug 1834725)
Backed out changeset a56f42223377 (bug 1834725)
Backed out changeset a920356b63eb (bug 1834725)
2024-01-11 19:57:47 +02:00
Alexandre Poirot bd0100a381 Bug 1873515 - [devtools] Log DOM events when tracing from the browser toolbox. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198156
2024-01-11 15:28:03 +00:00
Alexandre Poirot 7ad54a3713 Bug 1873512 - [devtools] Bind `dump` in workers when this module is loaded from the Common JS loader. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D198155
2024-01-11 15:28:03 +00:00
Alexandre Poirot e638e811eb Bug 1834725 - [devtools] Surface source map errors in Debugger frontend. r=devtools-reviewers,nchevobbe
I'm introducing a new dedicated method on SourceMapLoader so that we can:
* ensure retrieving the resolved source map URL, even in case of errors
  so that we can easily open the source map file from the frontend.
* pass all useful data in one worker call (ignore urls + sources + error + resolve source map url)

Display the source map error in a new dedicated warning footer in the bottom of the editor pane.

(Removing failing jest test. Mochitests should cover the source maps.)

Differential Revision: https://phabricator.services.mozilla.com/D188586
2024-01-11 15:27:25 +00:00
Alexandre Poirot 8cc21ac012 Bug 1834725 - [devtools] Retrieve the resolved source map URL and source map error. r=devtools-reviewers,nchevobbe
Extract information out of the source map worker to be stored into the Debugger store.

Renamed SourceMapLoader getOriginalURLs to loadSourceMap to better translate the heavy process involved in this method.
While doing that, also inline the transfer of source map ignore list in this call (instead of always having another worker message right after).

This will be used and tested in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D188585
2024-01-11 15:27:25 +00:00
Alexandre Poirot 3f804bdf93 Bug 1834725 - [devtools] Log source map errors to the console directly from SourceMapLoader. r=devtools-reviewers,nchevobbe
The main goal here is to re-throw the exception so that the debugger can start displaying source map errors.

Note that the previous changeset tweaked the StyleEditor code to handle exceptions.
The Debugger will be handled in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D187576
2024-01-11 15:27:25 +00:00
Alexandre Poirot 6f039e6faa Bug 1834725 - [devtools] Tweak original CSS handling in the Style Editor. r=devtools-reviewers,nchevobbe
* Accept exceptions from `getOriginalURLS` (see next changeset).
* Avoid instantiating an editor for minified stylesheet when we have a functional original stylesheet.
  We were doing that solely for getting their `friendlyName`, whereas we could lazily compute it only when we need it.

Differential Revision: https://phabricator.services.mozilla.com/D187575
2024-01-11 15:27:24 +00:00
Emilio Cobos Álvarez 4b6d1d9040 Bug 1872997 - Keep clipping tooltip container overflow to fix a mochitest.
browser_html_tooltip_variable-height.js has a 300px tall tooltip, along
with 600px tall content, which overflows.

The click outside of the tooltip goes to the content unless it's
clipped... I'm not sure that's the intention of the test but it seems to
match the pre-existing behavior.

MANUAL PUSH: Trivial orange fix CLOSED TREE.
2024-01-11 12:23:08 +01:00
Emilio Cobos Álvarez cca9bd6975 Bug 1872997 - Improve and simplify DevTools' xul:panel tooltip implementation. r=devtools-reviewers,desktop-theme-reviewers,dao,nchevobbe
This adds proper borders and radii on Windows and Linux, which are
otherwise not present, and simplifies a bit the code by using the same
code path across platforms, and between HTML and XUL.

Remove some ::-moz-focus-inner styles which no longer apply to un-themed
buttons.

The extra -0.5 offset I think was compensating for the margins and
missing border-box sizing.

Differential Revision: https://phabricator.services.mozilla.com/D197793
2024-01-11 10:16:55 +00:00
Alexandre Poirot 2e67531735 Bug 1867483 - [devtools] Stop async redux/react code after RDM is closed. r=devtools-reviewers,nchevobbe
Unmounting the top level React component will help avoid trigerring React updates
when async thunk actions keep dispatching new actions after the tool is closed.
This was leading to various exceptions in many React components.

Also avoid a race condition where `responsiveFront` could be undefined when closing
RDM while it is still initializing.

Finally, ensure registering the `ResponsiveUI` immediately in `activeTabs` to prevent
race condition in openIfNeeded.

Adding some test coverage for such race condition, but can't enable this on verify.
In chaos mode, there is too many exceptions at the test teardown.
Ideally, RDM should:
* only close the RDP client and let the server restore the default value on its own.
  i.e. we shouldn't do any request on closing.
* RDM close requests should wait for previous initialization request to be done.
  This would avoid zillion of possible exceptions because initialization is very async
  and each step may throw because of things are already being destroyed.
  But this wouldn't address race condition when the tab is closed.
  So RDM should probably try to have a more resilient initialization sequence as well.

Differential Revision: https://phabricator.services.mozilla.com/D197581
2024-01-11 09:46:12 +00:00
Henrik Skupin d1ba6ea81d Bug 1872870 - [devtools] Update compatibility dataset. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197597
2024-01-11 07:32:25 +00:00
Nicolas Chevobbe 1a6e6eb360 Bug 1871806 - [devtools] Add notice for Enter behavior in Rules view. r=devtools-reviewers,ochameau.
A link points to a blog post explaining why we made the change.
Once the notice is closed by the user, it won't be opened again.
The notice is not localized so it's easier to uplift for now; it will
be localized in a follow up.

Depends on D197897

Differential Revision: https://phabricator.services.mozilla.com/D197924
2024-01-10 19:50:30 +00:00
Hanna Jones 614f900ec6 Bug 1845150 - Use moz-message-bar instead of message-bar in notificationbox.js r=webdriver-reviewers,desktop-theme-reviewers,media-playback-reviewers,karlt,whimboo,tgiles,dao,devtools-reviewers
This patch updates the `NotificationMessage` element in `notificationbox.js` so that it extends our newer `moz-message-bar` component instead of the deprecated `message-bar` component. Many of the changes are just dealing with the implications of making things async (so that we can ensure `moz-message-bar.mjs` gets imported). I tried to break out places where I modified related code and tests into separate patches to mitigate some of the review pain here.

This patch solves a longstanding issue where we were loading `in-content/common-shared.css` in the chrome since it gets used by the `message-bar` element. It also makes some small visual changes to our infobars (slight outline, icon colors, adds a bit of spacing).

Differential Revision: https://phabricator.services.mozilla.com/D189872
2024-01-10 18:55:29 +00:00
Nicolas Chevobbe b1a029fada Bug 1864842 - [devtools] Remove devtools/shared/defer.js . r=devtools-reviewers,ochameau.
This can now be replaced with native Promise.withResolvers,
so we can remove our custom implementation module.

Differential Revision: https://phabricator.services.mozilla.com/D198033
2024-01-10 06:30:28 +00:00
Andrew McCreight 65714c78e2 Bug 1873571 - Disable browser_networkobserver_auth_listener.js in debug builds for frequent leaks. r=intermittent-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D197982
2024-01-09 23:10:40 +00:00
Stephen A Pohl 9d7f71a3ce Bug 1873782: Remove firefox-bin on macOS. r=mac-reviewers,bradwerth,glandium
Differential Revision: https://phabricator.services.mozilla.com/D197419
2024-01-09 22:41:11 +00:00
Stanca Serban 5a73b57894 Backed out changeset d88982ef09c8 (bug 1871447) as requested for landing under the wrong bug number and for better understanding of the changes made in the future. CLOSED TREE 2024-01-10 00:31:35 +02:00
Alexandre Poirot 3a7e238d3b Bug 1873007 - [devtools] Show the reason why the JS tracer stopped. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D197660
2024-01-09 17:49:02 +00:00
Alexandre Poirot 9afad8393d Bug 1870801 - [devtools] Allow limiting depth and max top level frames when tracing javascript. r=devtools-reviewers,nchevobbe,fluent-reviewers,flod
These two settings are only available via the web console commands as they expect number as arguments
which is hard to implement via the context menu on the debugger button.

Move stdout logging to a dedicated method as onEnterFrame reached eslint complexity limit.

Differential Revision: https://phabricator.services.mozilla.com/D196832
2024-01-09 17:49:02 +00:00
Alexandre Poirot 2124160fff Bug 1870801 - [devtools] Log JS tracer start/stop, even when not initiated from console command. r=devtools-reviewers,nchevobbe
The JavaScript Tracer may be initiated by the debugger, or stoped by itself when reaching some limit.
In these cases, the start and stop messages wouldn't have been logged in the console.

Differential Revision: https://phabricator.services.mozilla.com/D196831
2024-01-09 17:49:01 +00:00