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

26378 Коммитов

Автор SHA1 Сообщение Дата
Hubert Boma Manilla 048b95a8df Bug 1811000 - [devtools] Move the project search to the side panel r=devtools-reviewers,nchevobbe,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D172985
2023-03-29 18:43:01 +00:00
Nicolas Chevobbe 7c443c375b Bug 1825048 - [devtools] Fix class toggle layout. r=devtools-reviewers,jdescottes.
In Bug 1815557 we set a display:grid on a rule that
matched both the pseudo-class panel and the class
toggle one.
We don't want to make change to the class toggle
panel, so we revert the changes to only apply them
to the pseudo-class panel.

Differential Revision: https://phabricator.services.mozilla.com/D173861
2023-03-29 13:03:23 +00:00
Cristian Tuns bf562de940 Backed out changeset 27c43fbf6f58 (bug 1824361) for causing dt failures in browser_resources_sources.js CLOSED TREE 2023-03-29 06:53:38 -04:00
Cristian Tuns f86f183719 Backed out changeset 399b297fa7db (bug 1824044) for causing dt failures in browser_resources_sources.js CLOSED TREE 2023-03-29 06:53:06 -04:00
Nicolas Chevobbe c6ce7df375 Bug 1824044 - [devtools] Avoid handling the same inline script twice in pretty printing. r=devtools-reviewers,bomsy.
While the root issue should be fixed on the server,
this patch will help reduce a frequent intermittent
and prevent showing erroneous result to users.

Differential Revision: https://phabricator.services.mozilla.com/D173660
2023-03-29 08:49:02 +00:00
Nicolas Chevobbe 6ef82c92cb Bug 1824361 - [devtools] Only create missing inline script source in `_resurrectSource`. r=devtools-reviewers,jdescottes.
We want to create sources for inline script that were GCed, but we ended up
re-creating sources for _all_ the sources of HTML file where at least one inline
script was GCed, which could lead to duplicated source actors.

Differential Revision: https://phabricator.services.mozilla.com/D173524
2023-03-29 08:49:02 +00:00
Julian Descottes 01c31592a1 Bug 1825219 - [devtools] Add default value when reading preference devtools.inspector.simple-highlighters-reduced-motion r=nchevobbe,devtools-reviewers
This probably creates issues with non-firefox applications using DevTools, eg Thunderbird

Differential Revision: https://phabricator.services.mozilla.com/D173934
2023-03-29 08:48:13 +00:00
CanadaHonk 91709586ba Bug 1801379 - Migrate Sinon.jsm to an ES module r=extension-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,fxview-reviewers,devtools-reviewers,Standard8,nchevobbe,sclements,dimi,mconley,bytesized,robwu
Migrated `testing/modules/Sinon.sys.mjs` to an ES module.

`testing` should now be 100% ESM 🎉

Differential Revision: https://phabricator.services.mozilla.com/D173643
2023-03-29 07:34:10 +00:00
Sebastian Zartner 2aac977510 Bug 1818090 - Added custom formatting support for vertical-align property. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173893
2023-03-29 05:18:13 +00:00
Butkovits Atila b3e712cea0 Backed out changeset 0f0a3d3602d8 (bug 1818819) for causing failures at browser_parsable_css.js. CLOSED TREE 2023-03-28 23:27:48 +03:00
Fred Chasen d38752fe88 Bug 1818819 - Enable support for forced-color-adjust property by default r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D173766
2023-03-28 17:36:33 +00:00
Nicolas Chevobbe dafe69ebfa Bug 1823610 - [devtools] Don't hide timestamp when exporting console messages. r=devtools-reviewers,jdescottes.
The media query we introduced not long ago to hide
timestamp on narrow output was also effective for
the element we use for the export (as it has a width
of 0), which means timestamp wouldn't be included
in the export.

Differential Revision: https://phabricator.services.mozilla.com/D173860
2023-03-28 17:17:25 +00:00
Nicolas Chevobbe 0bdb33bc6d Bug 1824654 - [devtools] Fix computed view location title. r=devtools-reviewers,jdescottes.
Add a `CssLogic.longSource` counterpart to `CssLogin.shortSource`, which returns
the sheet full URL unless it's an inline or constructed stylesheet, and use the
result of this to build the title attribute.

Differential Revision: https://phabricator.services.mozilla.com/D173673
2023-03-28 16:42:44 +00:00
Julian Descottes c3a95aeaf4 Bug 1817639 - [devtools] Add toolbox notification about the simple highlighters setting r=nchevobbe,fluent-reviewers,devtools-reviewers,flod
Depends on D170291

Differential Revision: https://phabricator.services.mozilla.com/D173449
2023-03-28 15:37:07 +00:00
Julian Descottes c35f2a5608 Bug 1817639 - [devtools] Dynamically apply changes to the simplified highlighters preference r=nchevobbe,devtools-reviewers
Depends on D170294

Differential Revision: https://phabricator.services.mozilla.com/D170291
2023-03-28 15:37:07 +00:00
Julian Descottes 7610716776 Bug 1817639 - [devtools] Use abortController to relay target actor events in highlighters.js r=nchevobbe,devtools-reviewers
Depends on D170293

Differential Revision: https://phabricator.services.mozilla.com/D170294
2023-03-28 15:37:07 +00:00
Julian Descottes 37af8302a5 Bug 1817639 - [devtools] Add setting for simple highlighters r=nchevobbe,devtools-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D170293
2023-03-28 15:37:06 +00:00
Narcis Beleuzu c4b4882434 Backed out 2 changesets (bug 1824361, bug 1824044) for dt failure on browser_dbg-gc-sources.js . CLOSED TREE
Backed out changeset e5070100c386 (bug 1824044)
Backed out changeset 5335a252562d (bug 1824361)
2023-03-28 18:14:07 +03:00
Nicolas Chevobbe 92167943a6 Bug 1824044 - [devtools] Avoid handling the same inline script twice in pretty printing. r=devtools-reviewers,bomsy.
While the root issue should be fixed on the server,
this patch will help reduce a frequent intermittent
and prevent showing erroneous result to users.

Differential Revision: https://phabricator.services.mozilla.com/D173660
2023-03-28 13:04:46 +00:00
Nicolas Chevobbe a22471666e Bug 1824361 - [devtools] Only create missing inline script source in `_resurrectSource`. r=devtools-reviewers,jdescottes.
We want to create sources for inline script that were GCed, but we ended up
re-creating sources for _all_ the sources of HTML file where at least one inline
script was GCed, which could lead to duplicated source actors.

Differential Revision: https://phabricator.services.mozilla.com/D173524
2023-03-28 13:04:46 +00:00
Alexandre Poirot 625273f385 Bug 1816933 - [devtools] Force loading the debugger worker script as "classic". r=yulia,devtools-reviewers,bomsy,nchevobbe
This prevents loading the debugger script the same way the worker is loaded.
So prevent loading it as ES Module when the worker is using ES Module.

Differential Revision: https://phabricator.services.mozilla.com/D173257
2023-03-28 12:32:58 +00:00
Boris Chiou 32323a3e4b Bug 1824426 - Remove layout.css.d-property.enabled. r=devtools-reviewers,longsonr
This feature was shipped in Fx97, and it seems we don't need this pref
anymore.

Differential Revision: https://phabricator.services.mozilla.com/D173591
2023-03-27 20:49:41 +00:00
Sandor Molnar ab42dc3bba Backed out changeset b93a5fd6ab2c (bug 1811000) for causing talos failures. CLOSED TREE 2023-03-27 20:32:08 +03:00
Hubert Boma Manilla 4b59ce7061 Bug 1811000 - [devtools] Move the project search to the side panel r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D172985
2023-03-27 13:45:40 +00:00
Hubert Boma Manilla cfc88238d5 Bug 1811000 - [devtools] Remove outline pref r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D172984
2023-03-27 09:36:26 +00:00
Hubert Boma Manilla 0f967515d8 Bug 1811039 - [devtools] Add support for excluding sources r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D171491
2023-03-27 09:36:26 +00:00
Hubert Boma Manilla 1ed2228655 Bug 1821931 - [devtools] Add the micromatch package to MC r=ochameau,devtools-reviewers,mhoye
Differential Revision: https://phabricator.services.mozilla.com/D172380
2023-03-27 09:36:25 +00:00
Julian Descottes 4bbf1c5698 Bug 1815460 - [devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D168538
2023-03-25 20:29:59 +00:00
Csoregi Natalia a04681d292 Backed out 2 changesets (bug 1815460) for causing netmonitor devtools failures. CLOSED TREE
Backed out changeset 14ac0e2bcccb (bug 1815460)
Backed out changeset 7765cf9b63f5 (bug 1815460)
2023-03-24 22:20:30 +02:00
Julian Descottes cbe400b445 Bug 1815460 - [devtools] Merge addRequestPostData, addResponseHeaders, addResponseCookies into addResponseStart r=webdriver-reviewers,ochameau,bomsy,devtools-reviewers,whimboo
Depends on D169361

Differential Revision: https://phabricator.services.mozilla.com/D168538
2023-03-24 16:14:44 +00:00
Julian Descottes dfc32d27f7 Bug 1815460 - [devtools] Netmonitor waterfall sort should fallback to resource ids r=ochameau,bomsy,devtools-reviewers
resource ids are channel ids and should be incrementally generated. The current id is actually an actor id, meaning it is a string which will lead to incorrect comparisons (eg "Actor10" will be considered "lower" than "Actor2") and also fully depends on the order in which we create the actors.

On some platform / configurations we get identical timestamps for batches of requests, so the fallback mechanism should be reliable

Differential Revision: https://phabricator.services.mozilla.com/D169361
2023-03-24 16:14:43 +00:00
zacnomore fafcedc6b0 Bug 1815557 - Improve space usage by pseudo class toggles r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D169574
2023-03-24 12:56:11 +00:00
William Durand 475d4dd995 Bug 1823457 - Expose `uninstallAddon` method on addons actor. r=jdescottes,devtools-backward-compat-reviewers,devtools-reviewers
Depends on D173053

Differential Revision: https://phabricator.services.mozilla.com/D173126
2023-03-23 11:43:13 +00:00
Yulia b7353a6c87 Bug 1822937 - Add devtools test to ensure we are no longer crashing; r=ochameau,devtools-reviewers
The test times out when it is unsuccessful.

Differential Revision: https://phabricator.services.mozilla.com/D173277
2023-03-23 10:15:09 +00:00
Nicolas Chevobbe 65efa92222 Bug 1010150 - [devtools] Allow to pretty-print inline scripts. r=devtools-reviewers,ochameau.
To do this, we need to only have a single SourceMapGenerator instance for all
the inline scripts of an HTML file, for which we add mappings with offsets based
on where the inline script is in the HTML file.

To support that, we add a new prettyPrintInlineScript task, which takes a taskId
so we can have one SourceMapGenerator for a given taskId, that we then pass
to prettyFast.

A test is added to ensure different cases of inline scripts are pretty printed
as expected, that resulting console messages location are updated and that the
event tooltip in the inspector shows the pretty file as well.

`findColumnBreakpoint` helper was fixed to look into the correct location for
original file (which pretty-printed file are)
`assertLineIsBreakable` is modified to show the text of the line so it's easier
to debug failures.

Differential Revision: https://phabricator.services.mozilla.com/D170751
2023-03-22 22:02:10 +00:00
scar 4cf815ba6a Bug 1589474 The new performance panel icon in devtools should be highlighted in green when the profiler is running r=julienw
Added the ToolboxHighlightController.js to Highlight the Performance Tab in Devtools when when the Profiler is on.

Differential Revision: https://phabricator.services.mozilla.com/D172699
2023-03-22 17:17:49 +00:00
Nicolas Chevobbe d3637730d2 Bug 1823616 - [devtools] release tasks cycle 113 - Remove backward compatibility code. r=devtools-reviewers,devtools-backward-compat-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D173121
2023-03-22 14:50:22 +00:00
William Durand 86932ac9d6 Bug 1823456 - Enable additional devtools actions for temporarily loaded extensions for Android. r=rpl,jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D173053
2023-03-22 13:42:30 +00:00
Nicolas Chevobbe babc10bc6c Bug 1815937 - [devtools] Remove inline script displacement handling in source actor. r=devtools-reviewers,ochameau.
This is all made unnecessary by the previous patch of the stack.

Differential Revision: https://phabricator.services.mozilla.com/D170581
2023-03-21 17:27:50 +00:00
Nicolas Chevobbe 1de610bd27 Bug 1823399 - [devtools] Pass startColumn to createSource. r=devtools-reviewers,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D173060
2023-03-21 17:27:50 +00:00
Nicolas Chevobbe a1645740cc Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-21 17:27:48 +00:00
Julien Wajsberg 969e510983 Bug 1767774 - Remove a setTimeout in the profiler tests r=canaltinova
I spotted this setTimeout call while reviewing another patch, and
thought that it might be the cause for some of our intermittents.
It looks like that for some years now, we have this handy
waitForTabClosing function, that we can use instead.

Differential Revision: https://phabricator.services.mozilla.com/D173024
2023-03-21 12:16:49 +00:00
Marian-Vasile Laza 1c28d89a7e Backed out 3 changesets (bug 1823335, bug 1815937, bug 1823399) for devtools failures on browser_dbg-features-breakable-positions.js. CLOSED TREE
Backed out changeset f931921c97f2 (bug 1823399)
Backed out changeset 077d67ccc0d5 (bug 1823335)
Backed out changeset 103bf8d93883 (bug 1815937)
2023-03-21 00:01:11 +02:00
Nicolas Chevobbe 4aa1bc2655 Bug 1815937 - Set ScriptLoadContext column number for inline scripts. r=smaug,devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D170580
2023-03-20 19:25:19 +00:00
Nicolas Chevobbe 56579ac82d Bug 1822568 - [devtools] Fix browser_dbg-pretty-print-breakpoints-columns.js intermittent. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D172980
2023-03-20 10:02:50 +00:00
Alexandre Poirot 4c17964101 Bug 1822488 - [devtools] Display stacks when logging Component.Exception objects. r=devtools-reviewers,nchevobbe
We are current displaying stacks for Error but not for Component.Exception objects.

Differential Revision: https://phabricator.services.mozilla.com/D172708
2023-03-20 08:55:28 +00:00
Alexandre Poirot 9828f2bd31 Bug 1822488 - [devtools] Display stacktraces for DOMException's. r=devtools-reviewers,nchevobbe
We are currently showing stacks for Error-like objects but not for DOMExceptions.
console.log("foo", new Error("bar")) would print bar's stacktraces, while we wouldn't for: console.log("foo", new DOMException("bar")).

Should we merge DOMException and Error previewers?
DOMException is only having code and result attributes which Error objects don't have.

Differential Revision: https://phabricator.services.mozilla.com/D172707
2023-03-20 08:55:28 +00:00
Hubert Boma Manilla 9e2dc86bbd Bug 1818962 - [devtools] Refactor search modifiers actions and reducers r=ochameau,devtools-reviewers
This patch makes the SearchInput a connected component, This allows us cleanup
all the seperate actions and reducer logic and makes it easier to add new SearchInput
with modifers functionality.

Differential Revision: https://phabricator.services.mozilla.com/D171034
2023-03-18 18:59:47 +00:00
Hubert Boma Manilla 56f88f9ab8 Bug 1820200 - [devtools] Fix and enable browser_resources_network_events.js test r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D172581
2023-03-18 12:47:24 +00:00
Hubert Boma Manilla bbb52ed0bc Bug 1818806 [devtools] Local overrides feature in the debugger r=ochameau,devtools-backward-compat-reviewers,devtools-reviewers
Highlights for this patch
- Support for the script overrides feature
- Overrides for html files are not supported
- Add styling to indicate overrides
- Add mochitests

Depends on D163600

Differential Revision: https://phabricator.services.mozilla.com/D163610
2023-03-17 14:18:29 +00:00