Commit Graph

29103 Commits

Author SHA1 Message Date
Sandor Molnar
4ff746fbb3 Backed out changeset 23474d55f664 (bug 1936226) for causing xpc failures @ test_webextension_descriptor.js CLOSED TREE 2024-12-11 00:14:24 +02:00
Alexandre Poirot
faab93bf15 Bug 1935025 - [devtools] Sort worker targets alongside their related document in the evaluation context selector. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D231024
2024-12-10 18:30:59 +00:00
Alexandre Poirot
48953d5abb Bug 1413872 - [devtools] Display content script alongside their related targets in console context selector. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228885
2024-12-10 18:30:58 +00:00
Alexandre Poirot
3d12c85510 Bug 1413872 - [devtools] Sort debugger Source Tree and Threads panel with the same logic. r=devtools-reviewers,nchevobbe
While doing that, also improve the performance of the debugger by maintaining
the sorted list of threads in the reducer, so that we don't re-sort it in the selectors many times.

Differential Revision: https://phabricator.services.mozilla.com/D228725
2024-12-10 18:30:58 +00:00
Alexandre Poirot
2688dbc991 Bug 1413872 - [devtools] Display content script threads next to their related document in the debugger source tree. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228724
2024-12-10 18:30:57 +00:00
Alexandre Poirot
8417905eb2 Bug 1413872 - [devtools] Spawn dedicated target actors for Web Extension Content Scripts. r=devtools-backward-compat-reviewers,devtools-reviewers,rpl,nchevobbe
This should ultimately allow to pick up content script as an evaluation context in the console.

Differential Revision: https://phabricator.services.mozilla.com/D221035
2024-12-10 18:30:57 +00:00
Julian Descottes
89c3cc477d Bug 1936226 - [DevTools Release Tasks - Cycle 135] Remove backward compatibility code r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D231674
2024-12-10 13:33:47 +00:00
hjones
476bb0c534 Bug 1837658 - enable Stylelint length-zero-no-unit r=frontend-codestyle-reviewers,desktop-theme-reviewers,mtigley,settings-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,tabbrowser-reviewers,translations-reviewers,android-reviewers,backup-reviewers,nchevobbe,dao,mconley,tthibaud
This use of units for zero length occasionally gets flagged during theme reviews so it makes sense to establish our preference and automate checks via Stylelint.

Differential Revision: https://phabricator.services.mozilla.com/D230287
2024-12-10 00:28:49 +00:00
Alexandru Marc
3e0bc95dfb Backed out changeset f54c2498a7af (bug 1810427) for causing multiple regressions CLOSED TREE 2024-12-09 18:46:22 +02:00
Alexandre Poirot
10c106fb62 Bug 1935473 - [devtools] Restore 'threadGrip' method on paused object actors. r=hbenl,devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D231291
2024-12-09 13:33:39 +00:00
Nicolas Chevobbe
d00696f87e Bug 1934237 - [devtools] Set --theme-body-background in High Contrast Mode. r=devtools-reviewers,bomsy.
The variable is used as a text color in some places (e.g. the event tooltip Bubbling badge),
setting it avoid some contrast issues.

Differential Revision: https://phabricator.services.mozilla.com/D230666
2024-12-09 10:35:52 +00:00
Nicolas Chevobbe
c7570f4050 Bug 1934777 - [devtools] Fix disabled breakpoint style in CodeMirror 6. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D231129
2024-12-09 09:52:59 +00:00
Hubert Boma Manilla
8ea2c8fe39 Bug 1935553 - [devtools] Disable browser_dbg-breakpoints.js to enable uplift of cm6 revert r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D231428
2024-12-06 18:09:06 +00:00
Nicolas Chevobbe
d0fbeaeafa Bug 1899558 - [devtools] Add $$$ console utility to also search for elements in shadow roots. r=devtools-reviewers,jdescottes.
This is based on `$$` but extends it so it also look for potential matches in
the shadow DOM, recursively.
A test is added, as well as some documentation for the helper.

Differential Revision: https://phabricator.services.mozilla.com/D230908
2024-12-06 13:39:03 +00:00
Alexandru Marc
032cce7dd9 Backed out 2 changesets (bug 1767717, bug 1767716) for causing dt failures @ browser_dbg-windowless-service-workers.js CLOSED TREE
Backed out changeset dc7863fc4e19 (bug 1767717)
Backed out changeset cb2ae095e16f (bug 1767716)
2024-12-06 15:47:27 +02:00
Emilio Cobos Álvarez
f3d558c1b0 Bug 1935356 - Fix expectation of test_styles-applied.html
MANUAL PUSH: Trivial orange fix CLOSED TREE
2024-12-05 20:18:55 +01:00
Alexandre Poirot
2a85bde9b7 Bug 1933832 - [devtools] Remove all debugger node tests. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D230118
2024-12-05 16:30:06 +00:00
Alexandre Poirot
0b0da7f2af Bug 1767717 - [devtools] Fix browser_dbg-windowless-service-workers.js intermittents. r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D231130
2024-12-05 14:12:42 +00:00
Alexandre Poirot
aa77f262f9 Bug 1767716 - [devtools] Fix browser_dbg-windowless-service-workers-reload.js intermittents. r=devtools-reviewers,bomsy
* removeTab doesn't wait for full toolbox destruction
* we weren't waiting for the ContentTask involved when calling fetchFromWorker to complete after resume
* we were reloading the page while the Service Worker was still being registered

Differential Revision: https://phabricator.services.mozilla.com/D231126
2024-12-05 14:12:42 +00:00
Nicolas Chevobbe
525d37fcab Bug 1934618 - [devtools] Only assert using keyword in browser_dbg-preview.js when explicit resource management is supported. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D230932
2024-12-05 11:04:29 +00:00
Nicolas Chevobbe
439bfe91fa Bug 1934382 - [devtools] Only assert SuppressedError in browser_webconsole_errors.js when they're supported. r=devtools-reviewers,jdescottes.
The pref that we use to enable explicit resource management only works
on Nightly, which is why we're getting test failures on beta simulation.

Differential Revision: https://phabricator.services.mozilla.com/D230931
2024-12-05 11:04:28 +00:00
Julian Descottes
b707c7373a Bug 1903496 - [devtools] Add tests for file URL in netmonitor r=devtools-reviewers,bomsy
Depends on D230656

Differential Revision: https://phabricator.services.mozilla.com/D230657
2024-12-05 09:41:20 +00:00
Julian Descottes
47c22f4b9e Bug 1903496 - [devtools] Exclude file channels for chrome and resource schemes from content toolboxes r=devtools-reviewers,bomsy
Depends on D230650
We cannot rely on the triggering principal to filter out chrome://
and resource:// file channels so explicitly check the originalURI

Differential Revision: https://phabricator.services.mozilla.com/D230656
2024-12-05 09:41:20 +00:00
Julian Descottes
f3be7ae4c3 Bug 1903496 - [devtools] Add proper support for file requests in netmonitor r=devtools-reviewers,bomsy
Depends on D230649

Will add a test in the next revision.
This brings the file requests on par with data requests.
The response tab for those requests should now be properly populated.
The same data can be expected on file network events as on regular ones
so we no longer need to special case it.

Differential Revision: https://phabricator.services.mozilla.com/D230650
2024-12-05 09:41:19 +00:00
Luca Greco
38a13671ae Bug 1925291 - Add Extensions Button panel a new per-item messagebar. r=willdurand,fluent-reviewers,desktop-theme-reviewers,dao,flod,devtools-reviewers,ochameau
Depends on D229902

Differential Revision: https://phabricator.services.mozilla.com/D229904
2024-12-04 18:42:21 +00:00
mark
c3ede7ef3f Bug 1931919 - Use shared page width token CSS var on about:debugging pages r=reusable-components-reviewers,devtools-reviewers,jdescottes,hjones
Differential Revision: https://phabricator.services.mozilla.com/D229509
2024-12-04 17:03:14 +00:00
mark
83f02eafc2 Bug 1931919 - Add shared tokens to about:debugging pages r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D229512
2024-12-04 17:03:14 +00:00
Hubert Boma Manilla
7932a2e8e2 Bug 1935101 - [devtools] Remove the codemirror next pref from debugger preferences r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D231077
2024-12-04 15:45:12 +00:00
Sebastian Zartner
ef23c3fa5b Bug 1901985 - [devtools] Handle 'content-visibility' property in inactive CSS. r=devtools-reviewers,fluent-reviewers,bolsson,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D230727
2024-12-04 12:20:54 +00:00
Alexandre Poirot
4e81b58f14 Bug 1933764 - [devtools] Prevent reset breakpoint disable on page reload. r=devtools-reviewers,nchevobbe
Only reset breakpoint disabling when the user explicitely ask to add a new breakpoint.

Differential Revision: https://phabricator.services.mozilla.com/D230430
2024-12-03 22:23:41 +00:00
Alexandre Poirot
979b077956 Bug 1918267 - [devtools] Avoid waiting for replies of hanging processes in DevTools communications made to content processes. r=devtools-reviewers,jdescottes
DevTools currently broadcast its data to all processes (in order to reach all service workers, which may run in arbitrary processes).
We expect for the queries to be processed in the content process before replying back to the client/frontend in the related RDP request.

But, in some case, some content process may be stuck on a CC or slow page script.
When this happens, DevTools would be blank on opening or very slow to operate.

Let's try to avoid waiting for any query send to process which timed out on any past query.

Differential Revision: https://phabricator.services.mozilla.com/D229960
2024-12-03 17:54:17 +00:00
Andrea Marchesini
633f536c0e Bug 1929358 - Remove warning messages for lax-by-default in non-nightly env, r=edgul,cookie-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D230923
2024-12-03 15:10:58 +00:00
Sandor Molnar
6d60c1be25 Bug 1919451 - Remove a11y_check annotation on 'browser_fontinspector_all-fonts.js' r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D230918
2024-12-03 13:07:52 +00:00
Alexandre Poirot
8d42e0c604 Bug 1929934 - [devtools] Fix browser_dbg-javascript-tracer-sidebar.js intermittent on Windows. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D230085
2024-12-03 12:24:34 +00:00
Sandor Molnar
99595e068d Backed out 2 changesets (bug 1904733, bug 1929934) for causing perma dt leackcheck failures @ nsDocShell CLOSED TREE
Backed out changeset 2cfe84db3815 (bug 1904733)
Backed out changeset da71c0914291 (bug 1929934)
2024-12-03 12:49:04 +02:00
Alexandre Poirot
f4b19b2682 Bug 1904733 - [devtools] Fix browser_toolbox_many_toggles.js intermittent on MacOS. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D230863
2024-12-03 09:20:57 +00:00
Alexandre Poirot
f9fa54acfa Bug 1929934 - [devtools] Fix browser_dbg-javascript-tracer-sidebar.js intermittent on Windows. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D230085
2024-12-03 09:20:57 +00:00
Tooru Fujisawa
a2b2011774 Bug 1934690 - Stop using global this in worker-loader.sys.mjs. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D230838
2024-12-03 07:08:47 +00:00
Abhijeet Chawla(ff2400t)
460a77a217 Bug 1810464 - Stop using UNSAFE_componentWillMount in devtools/client/inspector/animation/components/PauseResumeButton.js r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D229263
2024-12-02 21:25:06 +00:00
Tooru Fujisawa
081d1db593 Bug 1934077 - Update filename label to use sys.mjs. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D230584
2024-12-02 21:17:46 +00:00
Tooru Fujisawa
2e6d6edbfc Bug 1934056 - Update devtools document to use ESM-based API. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D230571
2024-12-02 21:17:45 +00:00
Tooru Fujisawa
a7b25dca83 Bug 1934044 - Update obsoleve comments about JSM in devtools. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D230562
2024-12-02 21:17:45 +00:00
Alexandre Poirot
0ec1cd33eb Bug 1767784 - [devtools] Fix browser_browser_toolbox_l10n_buttons.js intermittent on linux. r=devtools-reviewers,jdescottes
Better wait for the async update of these settings to be fully applied.

Differential Revision: https://phabricator.services.mozilla.com/D230797
2024-12-02 16:57:24 +00:00
Alexandre Poirot
dbee9fc7ad Bug 1933194 - [devtools] Display the Web Extension Fallback document with explicit name. r=devtools-reviewers,nchevobbe
This special document is used as a fallback when the extension as no document active yet.
This used to be described as "Top" or "Main Thread", which wasn't accurate.
It isn't the parent document of any others, nor is it main thread of anything.

Differential Revision: https://phabricator.services.mozilla.com/D230117
2024-12-02 16:20:00 +00:00
Alexandre Poirot
0fc6329f4b Bug 1933194 - [devtools] Fix target titles when debugging Web Extensions. r=devtools-reviewers,nchevobbe
* Display target's url's pathname instead of repeating the addon name for all documents.
* Display addon name in Debug Target Info header (instead of current target name).
* Display current target's url and title (if available) in toolbox window title.

Differential Revision: https://phabricator.services.mozilla.com/D230116
2024-12-02 16:19:59 +00:00
Alexandru Marc
451e3e03f2 Backed out changeset e7660a1ea32a (bug 1918267) for causing dt failures @ browser_target_command_browser_workers.js 2024-12-02 16:34:58 +02:00
Hubert Boma Manilla
9d91932ac9 Bug 1873657 - [devtools] Stop using the parser worker for determining JSX and typescript jsx r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D198021
2024-12-02 11:55:19 +00:00
Alexandre Poirot
c4bc8d49af Bug 1918267 - [devtools] Avoid waiting for replies of hanging processes in DevTools communications made to content processes. r=devtools-reviewers,jdescottes
DevTools currently broadcast its data to all processes (in order to reach all service workers, which may run in arbitrary processes).
We expect for the queries to be processed in the content process before replying back to the client/frontend in the related RDP request.

But, in some case, some content process may be stuck on a CC or slow page script.
When this happens, DevTools would be blank on opening or very slow to operate.

Let's try to avoid waiting for any query send to process which timed out on any past query.

Differential Revision: https://phabricator.services.mozilla.com/D229960
2024-12-02 09:36:06 +00:00
Frederik Braun
ff30393802 Bug 1934227 - Remove spurious vim commands from code comments r=necko-reviewers,devtools-reviewers,nchevobbe,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D230659
2024-11-30 13:09:10 +00:00
Rubicon
f88b7660f8 Bug 1755647 - Fire change event on window.screen.orientation. r=devtools-reviewers,nchevobbe.
The change event is fired in ResponseActor.dispatchOrientationChangeEvent, along side the orientationchange event.

Differential Revision: https://phabricator.services.mozilla.com/D230266
2024-11-29 16:32:34 +00:00