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

23775 Коммитов

Автор SHA1 Сообщение Дата
Julien Wajsberg cc3ace47ca Bug 1730893 - [devtools profiler] Properly localize buttons in the profiler popup r=jdescottes,fluent-reviewers,desktop-theme-reviewers,nbaumgardner,harry,flod
This fixes a warning when Fluent translates these buttons: previously it
was removing the content, which we don't control. The proper way is
assigning attributes instead.

This also required touching the style a bit.

Differential Revision: https://phabricator.services.mozilla.com/D127678
2021-10-08 11:47:34 +00:00
Julien Wajsberg 4d7362750c Bug 1730893 - [devtools profiler] Localize the profiler button using Fluent instead of properties r=jdescottes,fluent-reviewers,nbaumgardner,flod
The profiler popup widget was using the old properties-based way of
translating its label and tooltips. Moreover the tooltips weren't
translated anymore when recording/capturing. This patch fixes this by
moving to Fluent and using Fluent to change the button's tooltips when
the state changes.

Differential Revision: https://phabricator.services.mozilla.com/D127677
2021-10-08 11:47:33 +00:00
Nicolas Chevobbe 65571eff11 Bug 1734427 - [devtools] Fix CSSStyleSheet Rep title. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D127803
2021-10-08 11:40:10 +00:00
Oriol Brufau 267f3e2334 Bug 1675584 - [devtools] Await TabChanged event in selectJsonViewContentTab. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D126751
2021-10-08 11:08:06 +00:00
Butkovits Atila a8ca7acd1e Bug 1726270 - disable browser_target_command_service_workers_navigation.js on Linux_64_opt and Win_64 for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D127799
2021-10-07 15:13:18 +00:00
Julian Descottes 59e4f57a1c Bug 1734177 - [devtools] Ensure tests within devtools/client/framework are https-first compliant r=bomsy
Update all tests failing with https-first enabled

Differential Revision: https://phabricator.services.mozilla.com/D127560
2021-10-07 08:25:20 +00:00
Jens Stutte 4d80c6e50e Bug 1731564: Use motivated SpinEventLoopUntil inside devtools/*. r=devtools-reviewers,jdescottes
Depends on D126957

Differential Revision: https://phabricator.services.mozilla.com/D127099
2021-10-07 08:06:11 +00:00
june wilde 692c22b993 Bug 1670058 - support Global Privacy Control signal; r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126966
2021-10-07 07:55:30 +00:00
Jon Barson 373f4c8629 Bug 1733063 hides light and dark mode buttons in the inspector when no chrome on window r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127744
2021-10-07 07:18:59 +00:00
Marian-Vasile Laza 18fb16c542 Backed out 18 changesets (bug 1731564) for causing build bustages on SpinEventLoopUntil. CLOSED TREE
Backed out changeset 0464dbdc8584 (bug 1731564)
Backed out changeset 0d996df13545 (bug 1731564)
Backed out changeset 5630a0e7a109 (bug 1731564)
Backed out changeset 37b41d187cdb (bug 1731564)
Backed out changeset d37700fa60b6 (bug 1731564)
Backed out changeset b0ce7db44b99 (bug 1731564)
Backed out changeset aa5ec3aa1535 (bug 1731564)
Backed out changeset 73b648f1fa70 (bug 1731564)
Backed out changeset bb8fb0f9833e (bug 1731564)
Backed out changeset 0d8905144f5d (bug 1731564)
Backed out changeset 2cfb094a1ec3 (bug 1731564)
Backed out changeset 78d3b0257a6a (bug 1731564)
Backed out changeset e9d32926e93c (bug 1731564)
Backed out changeset 874cab520ce5 (bug 1731564)
Backed out changeset d8071cc32bd9 (bug 1731564)
Backed out changeset 283c5393cbbc (bug 1731564)
Backed out changeset 317bc38e3de5 (bug 1731564)
Backed out changeset 53e3f4862439 (bug 1731564)
2021-10-07 00:09:19 +03:00
Jens Stutte 286cf9a99a Bug 1731564: Use motivated SpinEventLoopUntil inside devtools/*. r=devtools-reviewers,jdescottes
Depends on D126957

Differential Revision: https://phabricator.services.mozilla.com/D127099
2021-10-06 19:45:12 +00:00
Alexandru Michis 485a54ca75 Backed out changeset b61b692cfbce (bug 1670058) for causing bustages in nsHttpChannel.cpp
CLOSED TREE
2021-10-05 19:49:52 +03:00
june wilde e864a69420 Bug 1670058 - support Global Privacy Control signal; r=smaug,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126966
2021-10-05 15:00:30 +00:00
Sebastian Hengst 81b2fc9463 Bug 1732635 - skip browser_net_response_CORS_blocked.js on Linux opt with a11y checks until the frequent failure gets resolved. r=bomsy DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D127532
2021-10-05 13:29:43 +00:00
Nicolas Chevobbe 3122576765 Bug 1733523 - [devtools] Handle moving node selection when selected node's target gets destroyed. r=jdescottes.
Toolbox's Selection instance listens for `mutations` walkerFront event in order to detect if the selected node
was removed from the DOM tree, and in such case, emits a `detached-front` event that can be consumed by
the markup view.
But, when an iframe gets removed and EFT (or Fission for a remote iframe) is enabled we don't get the `mutations` event.
To fix this, we add a `onTargetDestroyed` method to `Selection`, that we call from the toolbox.

This fixes the browser_inspector_delete-selected-node-* tests when EFT is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D127224
2021-10-05 09:58:19 +00:00
Julien Wajsberg ece5495dbe Bug 1681539 - [devtools performance] Localize all presets r=jdescottes,fluent-reviewers,flod
This uses the new FTL file to provide localizations for all presets in
all profiler UIs.

Differential Revision: https://phabricator.services.mozilla.com/D125216
2021-10-05 09:13:13 +00:00
Julien Wajsberg 4aaeddecc1 Bug 1681539 - [devtools performance] Move all of the popup initialization to one function in popup.jsm.js r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126205
2021-10-05 09:13:13 +00:00
Julian Descottes 7d07cc475f Bug 1726288 - [devtools] Wait for browser reload in RDM when reload was triggered by the server r=nchevobbe
The initial implementation was missing that the server could also decide to reload the browser

Differential Revision: https://phabricator.services.mozilla.com/D127462
2021-10-05 08:33:42 +00:00
Nicolas Chevobbe f8d23aaa81 Bug 1733539 - [devtools] Fix NodeActor#waitForFrameLoad. r=jdescottes.
`waitForFrameLoad` was waiting for the `DOMContentLoaded` if the document `readyState`
wasn't "complete".
But `readyState` can be "interactive", which means `DOMContentLoaded` was already
emitted. In such case, `waitForFrameLoad` would wait forever.
This would cause blank markup view in the inspector panel if a node was selected
in an iframe and the page would be passed the "loading" `readyState`, but still
in the "interactive" phase.

The fix is simple: only wait for `DOMContentLoaded` if `readyState` is "loading".

The existing test we have for checking selecting node in iframe and reloading
is modified; we include a slow loading image in the iframe, which will make it
stay in the "interactive" state a bit longer.
Without the fix, the test was failing nicely, highlighting the issue.

Differential Revision: https://phabricator.services.mozilla.com/D127282
2021-10-05 08:12:31 +00:00
Nicolas Chevobbe 199df53ac3 Bug 1733380 - [devtools] Fix browser_resources_console_messages_navigation.js when EFT is enabled. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D127223
2021-10-05 08:11:24 +00:00
Nicolas Chevobbe 04c5f7a99a Bug 1730165 - [devtools] Only notify about stylesheets of the target window when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D127222
2021-10-05 08:11:23 +00:00
Julian Descottes 6ba3c14ca8 Bug 1733272 - [devtools] Fix intermittent errors during browser console destroy r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D127270
2021-10-05 08:07:10 +00:00
Jan Odvarko ff42b6b16c Bug 1723925 - [devtools] Add documentation to update the simulated-devices list for RDM r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127419
2021-10-05 07:47:18 +00:00
alwu 929314f612 Bug 1730020 - part2 : add profiler markers to show additional information. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D126148
2021-10-04 22:30:10 +00:00
Butkovits Atila 80c02069eb Backed out 4 changesets (bug 1730020) for causing build bustages. CLOSED TREE
Backed out changeset 580203e4b76a (bug 1730020)
Backed out changeset b57ce3e0f39f (bug 1730020)
Backed out changeset 085fb78aac06 (bug 1730020)
Backed out changeset 8799f103c043 (bug 1730020)
2021-10-04 21:33:41 +03:00
alwu 5acf83da7a Bug 1730020 - part2 : add profiler markers to show additional information. r=padenot
Differential Revision: https://phabricator.services.mozilla.com/D126148
2021-10-04 17:34:51 +00:00
Nicolas Chevobbe f5be830a61 Bug 1733643 - [devtools] Remove Promise.jsm usage in devtools/shared/security/socket.js. r=ochameau.
We take this opportunity to refactor the `_authenticate` method.
Since it's already an async function, we don't have to explicitely return
Promise objects.

Differential Revision: https://phabricator.services.mozilla.com/D127283
2021-10-04 11:39:22 +00:00
Nicolas Chevobbe bec4228e80 Bug 1732881 - [devtools] Remove references to devtools.testing.enableServerWatcherSupport. r=ochameau.
The pref isn't consumed anywhere, we can remove it.

Differential Revision: https://phabricator.services.mozilla.com/D127396
2021-10-04 11:34:01 +00:00
Nicolas Chevobbe edccb66d0f Bug 1733039 - [devtools] Fix walkerFront#findNodeFront method for EFT/Fission. r=ochameau.
The top-level target walker was used to find elements, where we should use the
walker front of the nodeFront we have at hand.
The function was also checking if the node we're searching was associated with
this walker, which, with EFT, won't be the case as soon as we have to go through
an iframe.

Differential Revision: https://phabricator.services.mozilla.com/D126909
2021-10-04 06:10:51 +00:00
Nicolas Chevobbe dba9e436d3 Bug 1732906 - [devtools] Refactor eyedropper show/hide methods. r=ochameau.
With EFT, tests using the eyedropper were failing because of the isXul check
done when the eyedropper gets hidden: the document.documentElement property
was null at this point and the isXul method was throwing.
This patch replace the isXul check with a check on the presence of an abortController
property, which we do now set in the `show` method.

Differential Revision: https://phabricator.services.mozilla.com/D126808
2021-10-04 06:10:50 +00:00
Nicolas Chevobbe 9fbadc5245 Bug 1732690 - [devtools] Fix GeometryHighlighter in iframes. r=jdescottes.
The highlighter wasn't working on remote iframe as we were trying to retrieve it
from the top-level inspector front.

Differential Revision: https://phabricator.services.mozilla.com/D126807
2021-10-04 06:10:50 +00:00
Nicolas Chevobbe 9963aa1325 Bug 1732334 - [devtools] Fix CSS Shape Editor on iframe with dedicated target. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D126806
2021-10-04 06:10:50 +00:00
Nicolas Chevobbe c57a8de641 Bug 1730170 - [devtools] Fix inspector search when EFT is enabled. r=bomsy.
We were getting results of nodes in iframes twice: from the iframe target
as well as from the top-level target.

Differential Revision: https://phabricator.services.mozilla.com/D126067
2021-10-01 16:24:51 +00:00
Nicolas Chevobbe eac369edb3 Bug 1730162 - [devtools] Don't get grids from frames in LayoutActor#getGrids when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D126065
2021-10-01 16:24:50 +00:00
Nicolas Chevobbe 552d9edc73 Bug 1730167 - [devtools] Replace usage of isRemoteFrame with isFrameWithChildTarget. r=ochameau.
`isRemoteFrame` was used as a way to know if an iframe was tracked by its own target.
Since we can now have dedicated targets for every iframe, we need to check if a given
iframe is tracked by its dedicated target.

Differential Revision: https://phabricator.services.mozilla.com/D126805
2021-10-01 16:24:50 +00:00
Nicolas Chevobbe 4b38bd2b8a Bug 1730167 - [devtools] Use appropriate walker front to retrieve frame children when EFT is enabled in a11y panel. r=ochameau.
This is a similar change to what was done to node actors in the previous patch
of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D126804
2021-10-01 16:24:50 +00:00
Nicolas Chevobbe 295c4f6eff Bug 1730167 - [devtools] Use appropriate walker front to retrieve frame children when EFT is enabled. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D126064
2021-10-01 16:24:49 +00:00
Hubert Boma Manilla 941d8e798a Bug 1733557 - [devtools] Remove componentDidCatch in PrimaryPanesComponent r=nchevobbe
This removes  the componentDidCatch in the PriamryPanes Component which swallows errors
of its child components.
As we have the AppErrorBoundary Component now, all debbuger errors show bubble all the way up.

Differential Revision: https://phabricator.services.mozilla.com/D127247
2021-10-01 15:28:53 +00:00
Christoph Kerschbaumer d3b12b23cf Bug 1733333: Update tests within devtools/shared/ to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127098
2021-10-01 13:46:10 +00:00
Alexandre Poirot c14411e54a Bug 1727838 - [devtools] Avoid leaking InspectorFront via the STYLESHEET resource listener. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D123920
2021-10-01 11:36:48 +00:00
Cristian Tuns ec323ff033 Backed out 9 changesets (bug 1733039, bug 1730167, bug 1732334, bug 1730170, bug 1730162, bug 1732690, bug 1732906) for causing mochitest failures. CLOSED TREE
Backed out changeset bf18a96d849f (bug 1733039)
Backed out changeset f2419a8c8c5f (bug 1732906)
Backed out changeset 3ff8cca764f1 (bug 1732690)
Backed out changeset 1107e4f2779f (bug 1732334)
Backed out changeset 090410cf3b8c (bug 1730170)
Backed out changeset d253c4bf94ac (bug 1730162)
Backed out changeset 6075634c3db2 (bug 1730167)
Backed out changeset 11370a6988be (bug 1730167)
Backed out changeset 6f2825300e65 (bug 1730167)
2021-10-01 06:23:01 -04:00
Christoph Kerschbaumer e7d8bd5215 Bug 1732259: Update tests within devtools/client/webconsole/test to work with https-first enabled r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126485
2021-10-01 08:51:24 +00:00
Julian Descottes 316d273d3f Bug 1733464 - [devtools] Fix webconsole stubs and node tests for https-first r=nchevobbe
It is slightly more complicated than expected because we have an issue capturing 404 from httpd.js in DevTools when using HTTPS (see Bug 1733420).

Therefore the stub for network events, which generates 404 requests, is not using https://example.com but http://mochi.test:8888

Differential Revision: https://phabricator.services.mozilla.com/D127161
2021-10-01 08:42:35 +00:00
Nicolas Chevobbe 48c08d8615 Bug 1733039 - [devtools] Fix walkerFront#findNodeFront method for EFT/Fission. r=ochameau.
The top-level target walker was used to find elements, where we should use the
walker front of the nodeFront we have at hand.
The function was also checking if the node we're searching was associated with
this walker, which, with EFT, won't be the case as soon as we have to go through
an iframe.

Differential Revision: https://phabricator.services.mozilla.com/D126909
2021-10-01 08:19:30 +00:00
Nicolas Chevobbe d70c24affe Bug 1732906 - [devtools] Refactor eyedropper show/hide methods. r=ochameau.
With EFT, tests using the eyedropper were failing because of the isXul check
done when the eyedropper gets hidden: the document.documentElement property
was null at this point and the isXul method was throwing.
This patch replace the isXul check with a check on the presence of an abortController
property, which we do now set in the `show` method.

Differential Revision: https://phabricator.services.mozilla.com/D126808
2021-10-01 08:19:30 +00:00
Nicolas Chevobbe 807a90b00d Bug 1732690 - [devtools] Fix GeometryHighlighter in iframes. r=jdescottes.
The highlighter wasn't working on remote iframe as we were trying to retrieve it
from the top-level inspector front.

Differential Revision: https://phabricator.services.mozilla.com/D126807
2021-10-01 08:19:29 +00:00
Nicolas Chevobbe 2a111dbf7f Bug 1732334 - [devtools] Fix CSS Shape Editor on iframe with dedicated target. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D126806
2021-10-01 08:19:29 +00:00
Nicolas Chevobbe 0aef0dd112 Bug 1730170 - [devtools] Fix inspector search when EFT is enabled. r=bomsy.
We were getting results of nodes in iframes twice: from the iframe target
as well as from the top-level target.

Differential Revision: https://phabricator.services.mozilla.com/D126067
2021-10-01 08:19:28 +00:00
Nicolas Chevobbe b4dad3bd47 Bug 1730162 - [devtools] Don't get grids from frames in LayoutActor#getGrids when EFT is enabled. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D126065
2021-10-01 08:19:28 +00:00
Nicolas Chevobbe bc4eb07f63 Bug 1730167 - [devtools] Replace usage of isRemoteFrame with isFrameWithChildTarget. r=ochameau.
`isRemoteFrame` was used as a way to know if an iframe was tracked by its own target.
Since we can now have dedicated targets for every iframe, we need to check if a given
iframe is tracked by its dedicated target.

Differential Revision: https://phabricator.services.mozilla.com/D126805
2021-10-01 08:19:28 +00:00