Commit Graph
2770 Commits
Author SHA1 Message Date
Emilio Cobos Álvarez f7551929f8 Bug 1916098 - Remove appcontent box. r=dao,desktop-theme-reviewers,devtools-reviewers,tabbrowser-reviewers,nchevobbe
gNotificationBox doesn't go there anymore (it goes inside the toolbox),
so we have really no use for that.

Simplify how the devtools theme is set on the browser, so that it is set
on the root.

Differential Revision: https://phabricator.services.mozilla.com/D220769
2024-09-02 13:47:45 +00:00
Henrik Skupin 3a548b37ef Bug 1912237 - [devtools] Remove backward compatibility code for Firefox 131 release. r=devtools-backward-compat-reviewers,devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D219877
2024-08-23 17:22:32 +00:00
Julian Descottes b3199fda2b Bug 1914657 - [devtools] Move the network overrides to a shared toolbox reducer r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D219235
2024-08-23 17:19:58 +00:00
Gregory Pappas f3eccebb74 Bug 1914101 - Remove unused window parameter from KeyShortcuts.parseElectronKey r=devtools-reviewers,ochameau
It became unused in bug 1290227

Differential Revision: https://phabricator.services.mozilla.com/D219717
2024-08-21 11:39:20 +00:00
Alexandre Poirot a441733f0e Bug 1866818 - [devtools] Enable the JS tracer on remote debugging. r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
Display a warning message in the tracer sidebar when there could be a backward compat issue.

Differential Revision: https://phabricator.services.mozilla.com/D217745
2024-07-31 12:48:21 +00:00
Nicolas Chevobbe 110489843c Bug 1909819 - [devtools] Use Highlighter types constant. r=devtools-reviewers,ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D217692
2024-07-26 08:09:26 +00:00
Alexandre Poirot eb250b03ee Bug 1908695 - [devtools] Cover the debugger sidebar tracer output in damp. r=perftest-reviewers,devtools-reviewers,nchevobbe,afinder
Also prevent calling openSplitConsole when the console is already shown,
as it then breaks the internal state and would show the split console when switching to another panel.

Differential Revision: https://phabricator.services.mozilla.com/D213613
2024-07-24 16:57:07 +00:00
Alexandre Poirot 4c946b19bd Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-22 18:49:43 +00:00
Sandor Molnar 0e45f1b380 Backed out changeset b6571a4222fb (bug 1885054) for causing bug 1909068 CLOSED TREE 2024-07-22 18:24:44 +03:00
Nicolas Chevobbe 2fe126109a Bug 1908669 - [devtools] Use proper private properties and method in Selection. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D216964
2024-07-22 09:22:04 +00:00
Nicolas Chevobbe d12e2b31a9 Bug 1908669 - [devtools] Turn Selection into a proper ES6 class. r=devtools-reviewers,bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D216963
2024-07-22 09:22:04 +00:00
Nicolas Chevobbe b2fe6dce88 Bug 1907932 - [devtools] Pick detached-front parentNode from mutation's remove node. r=devtools-reviewers,ochameau.
When there's a mutation and the client sees that the currently selected node
isn't connected anymore, a detached-front event is emitted with a node we think
is the parent node of the removed node, and select it.

Unfortunately, we were picking the first node who was mutated as the one we
should select, without checking that this mutation was the one triggered by the
node removal.

The fix is pretty simple: only pick a parent node if the currently selected node
is in the list of removed nodes from the mutation.

We're not adding a specific test for it, the next patch on the queue (for Bug 1173057),
has a test which was failing intermittently without this fix.

Differential Revision: https://phabricator.services.mozilla.com/D216667
2024-07-18 13:25:58 +00:00
Alexandre Poirot c2af106622 Bug 1885054 - [devtools] Display tracer data in a debugger sidebar. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D204446
2024-07-18 09:02:06 +00:00
Alexandre Lissy ea2b903138 Bug 1906816 - Do not fail devtools many toggles test when process died r=ochameau,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D216009
2024-07-09 16:55:17 +00:00
Alexandre Poirot 56f1de2b31 Bug 1873060 - [devtools] Move JS tracer icon to the toolbox level. r=devtools-reviewers,nchevobbe
Also moving the LOG_METHODS from actors to specs so that the frontend
can import them from devtools/shared instead of devtools/server.

Differential Revision: https://phabricator.services.mozilla.com/D215085
2024-07-09 15:19:05 +00:00
Sandor Molnar d22465071b Backed out 5 changesets (bug 1873060, bug 1906291) for causing talos perma failures @ jstracer/jstracer.js CLOSED TREE
Backed out changeset 6f0fa044aa35 (bug 1906291)
Backed out changeset 53b5ad4055ed (bug 1906291)
Backed out changeset d72f48618f38 (bug 1906291)
Backed out changeset 17873318ca4a (bug 1906291)
Backed out changeset f3c126a6f60b (bug 1873060)
2024-07-09 02:50:07 +03:00
Alexandre Poirot ca845feadc Bug 1873060 - [devtools] Move JS tracer icon to the toolbox level. r=devtools-reviewers,nchevobbe
Also moving the LOG_METHODS from actors to specs so that the frontend
can import them from devtools/shared instead of devtools/server.

Differential Revision: https://phabricator.services.mozilla.com/D215085
2024-07-08 13:10:39 +00:00
Alexandre Poirot 78346d4d1e Bug 1903792 - [devtools] Open the profiler on the stack chart by default when recording a JS trace. r=devtools-reviewers,profiler-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D214460
2024-06-26 17:46:05 +00:00
Alexandre Poirot 2022c2d1a4 Bug 1903980 - [devtools] Test devtools closing while iframe are being destroyed. r=devtools-reviewers,nchevobbe
Without the previous changeset, DevTools may become blank and require to close the tab to be functional again.

Differential Revision: https://phabricator.services.mozilla.com/D214520
2024-06-25 22:15:09 +00:00
Stanca Serban 42dc0c0d04 Backed out 3 changesets (bug 1903980) for causing mochitests failures in browser_ext_devtools_inspectedWindow_targetSwitch.js. CLOSED TREE
Backed out changeset dfc931e24fa6 (bug 1903980)
Backed out changeset 30115e39cbbe (bug 1903980)
Backed out changeset a33f0cac5d62 (bug 1903980)
2024-06-23 04:42:18 +03:00
Alexandre Poirot ec4103e670 Bug 1903980 - [devtools] Test devtools closing while iframe are being destroyed. r=devtools-reviewers,nchevobbe
Without the previous changeset, DevTools may become blank and require to close the tab to be functional again.

Differential Revision: https://phabricator.services.mozilla.com/D214520
2024-06-21 21:41:40 +00:00
Alexandre Poirot df9fea0485 Bug 1901644 - [devtools] Uncapsulate CONSOLE_MESSAGE resource. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D213225
2024-06-18 18:33:18 +00:00
Alexandre Poirot b3a441a1d3 Bug 1901788 - [devtools] Consider iframe target as resuming on destruction. r=devtools-reviewers,nchevobbe
The throttling prevents the removed iframe from emitting a THREAD_STATE resumed resource.
Instead, we should consider the related TARGET_DESTROYED event and resume on target destruction.

Differential Revision: https://phabricator.services.mozilla.com/D213929
2024-06-18 16:25:00 +00:00
Emilio Cobos Álvarez a898423415 Bug 1902896 - Remove unnecessary fallback font family. r=devtools-reviewers,nchevobbe
system-ui should be enough. It's also equivalent to -apple-system on
macOS right now.

Differential Revision: https://phabricator.services.mozilla.com/D213881
2024-06-17 10:50:34 +00:00
Hubert Boma Manilla 4e49e8d2c5 Bug 1900475 - [devtools] Fix Proptypes boolean to bool r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D212490
2024-06-04 08:24:57 +00:00
Alexandre Poirot 20bff98320 Bug 1898490 - [devtools] Ignore closing content processes when trying to open DevTools. r=devtools-reviewers,nchevobbe
The issue is that some calls to JSProcess Actor's would throw when trying to reach
content processes that get destroyed while DevTools are opening.
We have to reach out all the content processes as navigations may spawn
document in a process other than the currently's debugged tab's process.

We should ignore these failures. There isn't any explicit flag on DOM Process object
to identify destroyed processes, but `canSend` is a good fallback.

Differential Revision: https://phabricator.services.mozilla.com/D212118
2024-05-31 17:51:41 +00:00
Sandor Molnar e029566f26 Backed out changeset bd636e92feb0 (bug 1898490) for causing dt failures @ browser_toolbox_many_toggles.js 2024-05-31 00:41:02 +03:00
Alexandre Poirot e2cac04880 Bug 1898490 - [devtools] Ignore closing content processes when trying to open DevTools. r=devtools-reviewers,nchevobbe
The issue is that some calls to JSProcess Actor's would throw when trying to reach
content processes that get destroyed while DevTools are opening.
We have to reach out all the content processes as navigations may spawn
document in a process other than the currently's debugged tab's process.

We should ignore these failures. There isn't any explicit flag on DOM Process object
to identify destroyed processes, but `canSend` is a good fallback.

Differential Revision: https://phabricator.services.mozilla.com/D212118
2024-05-30 18:42:40 +00:00
Alexandre Poirot eeadbc4866 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-27 09:53:54 +00:00
Cristian Tuns d0272b92b7 Backed out 8 changesets (bug 1651518, bug 1883847) dt failures in nsTArray.h. CLOSED TREE
Backed out changeset 481558275c1d (bug 1651518)
Backed out changeset 5337435e8bca (bug 1651518)
Backed out changeset 8fe0c1a4da7f (bug 1651518)
Backed out changeset 840a0d9db260 (bug 1651518)
Backed out changeset eaab9de5819d (bug 1651518)
Backed out changeset cf71de92d782 (bug 1651518)
Backed out changeset d778691464db (bug 1651518)
Backed out changeset af28e5f719e8 (bug 1883847)
2024-05-22 09:02:19 -04:00
Alexandre Poirot 34e5032104 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-22 11:50:44 +00:00
Cristina Horotan ca70119cfa Backed out 8 changesets (bug 1651518, bug 1883847) for causing damp failures at toolbox/browser-toolbox.js CLOSED TREE
Backed out changeset 4ec70db12f48 (bug 1651518)
Backed out changeset b2b138889ad6 (bug 1651518)
Backed out changeset efda5c09b0ea (bug 1651518)
Backed out changeset b0de4113f8fb (bug 1651518)
Backed out changeset 03cf235d2a80 (bug 1651518)
Backed out changeset 58e71c27f1fd (bug 1651518)
Backed out changeset f7fb390c3965 (bug 1651518)
Backed out changeset b8a2473c47c0 (bug 1883847)
2024-05-22 04:00:53 +03:00
Alexandre Poirot 3d2406db93 Bug 1651518 - [devtools] Ensure spawning DistinctSystemPrincipalLoader.sys.mjs only once. r=devtools-reviewers,nchevobbe
This is important to spawn this ESM only once between regular and browser toolbox,
and especially between various callsites used by the browser toolbox.
Otherwise we may start loading modules in two distinct system loaders
and may have inconsistancies when using `instanceof`.

Differential Revision: https://phabricator.services.mozilla.com/D207432
2024-05-21 14:09:33 +00:00
Alexandre Poirot be63276971 Bug 1770282 - [devtools] Fix browser_toolbox_toolbar_overflow_button_visibility.js intermittent. r=devtools-reviewers,nchevobbe
This is MacOS specific.

Differential Revision: https://phabricator.services.mozilla.com/D210899
2024-05-20 16:03:25 +00:00
Julian Descottes 5a2ab6d6db Bug 1895434 - [devtools] Stop forcing the Performance panel to be displayed in the Browser Toolbox r=devtools-reviewers,nchevobbe
We used to force the preferences for the new performance panel to true for the Browser Toolbox to avoid showing the old performance panel, regardless of the preferences set by the user for their regular devtools.

However, now that the old performance panel is gone, it should be fine to let users decide if they want the panel or not via the devtools Settings panel.
Also the performance panel is on by default, so it shouldn't make it more complicated to profile on clean profiles.

Differential Revision: https://phabricator.services.mozilla.com/D210148
2024-05-13 11:41:13 +00:00
Andrew Halberstadt a680bcd3e1 Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 20:39:09 +00:00
Stanca Serban 3dbb534055 Backed out 2 changesets (bug 1868440) for gecko decision task broken. CLOSED TREE
Backed out changeset 4b22948d849a (bug 1868440)
Backed out changeset 837bdcb3694a (bug 1868440)
2024-04-18 21:25:43 +03:00
Andrew Halberstadt ef4f1e168b Bug 1868440 - [ci] Upgrade taskcluster-taskgraph to v7.4.0, r=perftest-reviewers,geckoview-reviewers,ci-and-tooling,devtools-reviewers,taskgraph-reviewers,releng-reviewers,mach-reviewers,omc-reviewers,jmaher,hneiva,aminomancer,jari,dom-storage-reviewers,afinder,asuth,bhearsum,owlish
Differential Revision: https://phabricator.services.mozilla.com/D206260
2024-04-18 17:50:50 +00:00
Yi Xiong Wong bef11a2dc2 Bug 1880914 - Move browser/tab closing functions. r=Gijs,perftest-reviewers,devtools-reviewers,fxview-reviewers,sessionstore-reviewers,sfoster,kshampur
Differential Revision: https://phabricator.services.mozilla.com/D206197
2024-04-08 17:21:01 +00:00
Alexandre Poirot 6c428aaabd Bug 1866814 - [devtools] Merge all DevTools JS Actors into a single DOM Process JS Actor. r=devtools-reviewers,nchevobbe
* The formers JSWindow Actors used independently to create Target Actor for WindowGlobals, Web workers and Service workers
  are all unified behind a single JSProcess Actor pair which was only used to create target actors for DOM Content Processes.
* The DevToolsProcess JSProcess actor now actively monitor the currently watched target types
  in order to start and stop listeners specific to each target type.
  We no longer rely on JSWindow Actors to observe WindowGlobal instantiations.

* `watchedByDevTools` is now consistantly set from each WindowGlobal's content process, via the WindowGlobalTargetActor.
  With the new setup, the parent process no longer track WindowGlobal/BrowsingContext's and so there is no
  natural place to flag them. While, in the content process, the target actor is an obvious place.
  There is just one trick in window global target watcher in order to also set this flag on initial about blank documents.

* `browser-element-host` Session Data is now slightly more simple. It works like any other similar session data attribute.
  But we have to ignore any pending exception coming up from updateDomainSessionDataForServiceWorkers call as that be still pending
  while the toolbox closes, which make the JS Process Actor be unregistered,
  and ultimately make the underlying sendQuery promise be rejected.
* The `loader` is made specific to each Watcher/connection and put in the connections map,
  so that we can better support content toolbox & browser toolbox usecases
  and we have a unique place to define the loader per watcher/connection.

* browser_target_command_detach.js: detach is no longer enough. It wouldn't stop watching and prevent the re-instantiation
  of the target actor. We now have to stop watching for targets. This actually better match what happens on toolbox closing.
  This test was meant as a unit test for covering remote debugging reusing the same DevToolsClient for debugger the same tab.
* `browser_toolbox_watchedByDevTools`. The management of watchedByDevTools is now driven from the content process.
  And because the DevTools Server and especially the watcher actor is destroyed without an explicit RDP request
  that the toolbox destruction is waiting for, we can't rely on closeToolbox to know
  when the server is fully cleaned up.

Differential Revision: https://phabricator.services.mozilla.com/D203409
2024-04-02 08:54:51 +00:00
Alexandre Poirot d7f3cddc7f Bug 1888171 - [devtools] Convert Browser Loader to ESM. r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D205867
2024-03-28 15:15:24 +00:00
Cristian Tuns db7b2a330c Backed out 3 changesets (bug 1866814) for causing bc failures browser_ext_devtools_inspectedWindow_targetSwitch.js CLOSED TREE
Backed out changeset 5d59dd808307 (bug 1866814)
Backed out changeset f503f5d02d1e (bug 1866814)
Backed out changeset d27f783be149 (bug 1866814)
2024-03-28 08:37:11 -04:00
Alexandre Poirot ee299a8d02 Bug 1866814 - [devtools] Merge all DevTools JS Actors into a single DOM Process JS Actor. r=devtools-reviewers,nchevobbe
* The formers JSWindow Actors used independently to create Target Actor for WindowGlobals, Web workers and Service workers
  are all unified behind a single JSProcess Actor pair which was only used to create target actors for DOM Content Processes.
* The DevToolsProcess JSProcess actor now actively monitor the currently watched target types
  in order to start and stop listeners specific to each target type.
  We no longer rely on JSWindow Actors to observe WindowGlobal instantiations.

* `watchedByDevTools` is now consistantly set from each WindowGlobal's content process, via the WindowGlobalTargetActor.
  With the new setup, the parent process no longer track WindowGlobal/BrowsingContext's and so there is no
  natural place to flag them. While, in the content process, the target actor is an obvious place.
  There is just one trick in window global target watcher in order to also set this flag on initial about blank documents.

* `browser-element-host` Session Data is now slightly more simple. It works like any other similar session data attribute.
  But we have to ignore any pending exception coming up from updateDomainSessionDataForServiceWorkers call as that be still pending
  while the toolbox closes, which make the JS Process Actor be unregistered,
  and ultimately make the underlying sendQuery promise be rejected.
* The `loader` is made specific to each Watcher/connection and put in the connections map,
  so that we can better support content toolbox & browser toolbox usecases
  and we have a unique place to define the loader per watcher/connection.

* browser_target_command_detach.js: detach is no longer enough. It wouldn't stop watching and prevent the re-instantiation
  of the target actor. We now have to stop watching for targets. This actually better match what happens on toolbox closing.
  This test was meant as a unit test for covering remote debugging reusing the same DevToolsClient for debugger the same tab.
* `browser_toolbox_watchedByDevTools`. The management of watchedByDevTools is now driven from the content process.
  And because the DevTools Server and especially the watcher actor is destroyed without an explicit RDP request
  that the toolbox destruction is waiting for, we can't rely on closeToolbox to know
  when the server is fully cleaned up.

Differential Revision: https://phabricator.services.mozilla.com/D203409
2024-03-28 10:47:17 +00:00
Norisz Fay 8b02ae61da Backed out 2 changesets (bug 1887872) for causing dt failures on browser_dbg-old-breakpoint.js CLOSED TREE
Backed out changeset b32b818f2175 (bug 1887872)
Backed out changeset 705494857aed (bug 1887872)
2024-03-27 21:22:10 +02:00
Alexandre Poirot 1ec9670095 Bug 1887872 - [devtools] Set breakpoints on toolbox opening. r=devtools-reviewers,devtools-backward-compat-reviewers,bomsy
Register them as soon as we open devtools, instead of waiting for debugger panel opening.
So that breakpoints can work even if we did not open debugger panel yet.
So far, only debugger statement would force the opening of the debugger.

This allows to remove the redundant code from debugger frontend.

Also clarify in this patch that thread-utils exports thread configurations.

Differential Revision: https://phabricator.services.mozilla.com/D205772
2024-03-27 17:04:34 +00:00
artem manushenkov 0c607a8763 Bug 1731635 [devtools] Add option to disable split console r=nchevobbe,fluent-reviewers,devtools-reviewers,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D204142
2024-03-27 06:34:50 +00:00
Emilio Cobos Álvarez 1c20c25eda Bug 232598 - Return null for unset attributes in XUL. r=smaug,devtools-reviewers,omc-reviewers,zombie,nchevobbe,settings-reviewers,application-update-reviewers,credential-management-reviewers,mossop,aminomancer,bytesized,issammani,sessionstore-reviewers,dao
I just got bit by this in bug 1873833, let's just fix it. There isn't
all that much stuff depending on it anymore.

Differential Revision: https://phabricator.services.mozilla.com/D204496
2024-03-18 09:15:07 +00:00
artem manushenkov 0f7d9b6173 Bug 1763961 [devtools] Make unchecking "Pick an element from the page" in "Available Toolbox Buttons" disable hotkey for opening element picker/inspector r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D203948
2024-03-13 12:47:28 +00:00
Alexandre Poirot 486f2de3dd Bug 1883947 - [devtools] Expand netmonitor test coverage in the Browser Toolbox. r=devtools-reviewers,nchevobbe
Cover opening the details panel and verify that one header is displayed.

Differential Revision: https://phabricator.services.mozilla.com/D203956
2024-03-11 14:21:06 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00