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

23766 Коммитов

Автор SHA1 Сообщение Дата
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
Nicolas Chevobbe 3c196757b1 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 08:19:27 +00:00
Nicolas Chevobbe 58313c2a2f 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 08:19:27 +00:00
Boris Chiou ac12e63d6f Bug 1676784 - Part 2: Add animation-timeline into animation shorthand. r=emilio
We use the same rule as blink: serialize the animation-timeline if
it is not the default value.

Differential Revision: https://phabricator.services.mozilla.com/D126451
2021-10-01 00:38:55 +00:00
Boris Chiou 397e076032 Bug 1676784 - Part 1: Add animation-timeline longhand property in style system. r=emilio
This patch adds the animation-timeline longhand property. For
shorthand, we will do that in the next patch.

This patch includes the aut-generated code in
devtools/shared/css/generated/properties-db.js, by `./mach devtools-css-db`.

Note:
1. we will use this property in Bug 1676791. For now, only make sure
   we parse it and serialize it correctly.
2. The syntax of animation-timeline may be updated, based on the spec
   issue: https://github.com/w3c/csswg-drafts/issues/6674.
   However, it's not a big problem to update it later, so we still can
   prototype this property based on the current version of spec.

Differential Revision: https://phabricator.services.mozilla.com/D126450
2021-10-01 00:38:54 +00:00
colin_czb 8df5d9f9e5 Bug 1654257 - change isImage filter to detect images with wrong MIME. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D126620
2021-09-30 15:56:14 +00:00
Nicolas Chevobbe bee999e8cd Bug 1730475 - [devtools] Handle sources with class static block. r=bomsy
The associated plugin is added to the babel config (and different locations where
we're using babel parsing).
The existing class for the getSymbols jest test is modified to include a few of
the latest class syntax (public and private properties, static block, ...).

Differential Revision: https://phabricator.services.mozilla.com/D126771
2021-09-30 13:53:54 +00:00
Nicolas Chevobbe 33dccdfd74 Bug 1730475 - [devtools] Update babel-core and associated packages. r=jdescottes.
In order to include the class statick block plugin, babel-core needs to be updated.
And as babel-core is updated, other packages relying on it also need to be updated.
One of them is jest, which requires a few changes in the test setting + a workaround
for CodeMirror test.
A few snapshots are updated as some methods changed their return values.
Finally, we're forcing the workerjs babel core dependency so it doesn't use a different
version. We should probably either update the dependency on jlast's repo, or directly
put the workerjs in tree, but we can do that on a dedicated bug.

Differential Revision: https://phabricator.services.mozilla.com/D126770
2021-09-30 13:53:53 +00:00
Emilio Cobos Álvarez ba9d04e317 Bug 1733340 - Regenerate devtools db.
MANUAL PUSH: Bustage fix CLOSED TREE
2021-09-30 15:31:05 +02:00
Nicolas Chevobbe 202e3edf26 Bug 1679539 - [devtools] Remove Promise.jsm usage in fronts. r=bomsy.
The change in the NodeFront caused one test to fail. Switching getLongString function
to an async function fixes the test (and makes it easier to read).

Depends on D127077

Differential Revision: https://phabricator.services.mozilla.com/D127078
2021-09-30 12:28:49 +00:00