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

22271 Коммитов

Автор SHA1 Сообщение Дата
Nicolas Chevobbe 212f847f52 Bug 1667526 - [devtools] Refactor and fix intermittent on browser_toolbox_options_enable_serviceworkers_testing.js. r=ladybenko.
We migrate the test to add_task and async functions and
properly set preferences at the beginning of the test.

Differential Revision: https://phabricator.services.mozilla.com/D103181
2021-01-29 15:00:16 +00:00
Nicolas Chevobbe 6ef703115e Bug 1689548 - [devtools] Don't simulate flash on screenshot when prefers-reduced-motion is enabled. r=ladybenko.
We also take this opportunity to simplify the simulateCameraFlash function by
using a simpler version of element.animate.

Differential Revision: https://phabricator.services.mozilla.com/D103457
2021-01-29 15:05:05 +00:00
Nicolas Chevobbe 2eaa5a9634 Bug 1687915 - [devtools] Display a warning message when the --selector argument passed to :screenshot does not match any node. r=ladybenko.
When the selector doesn't return any node, we log a warning on the page.
A test case is added in browser_jsterm_screenshot_command_selector.js to ensure
this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D102753
2021-01-29 15:04:52 +00:00
Julian Descottes 4dde3238fa Bug 1689572 - [devtools] Re-enable browser_animation_fission_switch-target.js r=ladybenko
The blocking bug 1611096 was resolved some time ago

Differential Revision: https://phabricator.services.mozilla.com/D103460
2021-01-29 14:59:28 +00:00
Julian Descottes f682e58f62 Bug 1689561 - [devtools] Remove unused isResponsiveDesignMode flag r=nchevobbe,mconley
This flag is no longer set anywhere since the old RDM implementation was removed in https://bugzilla.mozilla.org/show_bug.cgi?id=1585084

Differential Revision: https://phabricator.services.mozilla.com/D103459
2021-01-29 14:58:55 +00:00
Julian Descottes 9e73accb3e Bug 1689559 - [devtools] Remove devtools.target-switching.enabled preference r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103452
2021-01-29 14:37:21 +00:00
Julian Descottes 89b9f9f096 Bug 1687645 - [devtools] Try/catch calls to legacy resource listeners r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103176
2021-01-28 13:14:44 +00:00
Julian Descottes c61e417a18 Bug 1688569 - [devtools] Watch DOM mutation breakpoints on all targets r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D103072
2021-01-29 13:37:47 +00:00
Anurag Kalia 0552856184 Bug 1689282: Fix typo in devtools/docs/files/adding-files.md r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103350
2021-01-29 09:52:51 +00:00
Masayuki Nakano 796bb2f86e Bug 1689034 - part 1: Get rid of communication part between plugin process and widget in the main process r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103138
2021-01-28 08:23:33 +00:00
Sebastian Zartner 2ffc4487a8 Bug 1551571 - New inactive CSS rule to show warning when table-layout is used on non-table elements. r=fluent-reviewers,flod,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D101224
2021-01-28 13:32:49 +00:00
Julian Descottes f9ad45c76b Bug 1686241 - [devtools] Stop selecting the node front when expanding the markup view container r=nchevobbe
Depends on D103051.

Other browser devtools do not select the node on expand. Selecting the node can be quite slow when if many CSS rules apply to it.
This should allow exploring the tree of complex pages with less slowdowns.
An existing test is updated to assert the selected state of the node container before/after expanding it.

Differential Revision: https://phabricator.services.mozilla.com/D103052
2021-01-28 15:33:47 +00:00
Julian Descottes e3f9fa97e1 Bug 1686241 - [devtools] Use shared test helpers to toggle markup-view containers r=nchevobbe
The existing helper expandContainerByClick is modified to support the "altKey" option and reused in all tests that try to click on markup-view container expand-icons.
A similar collapseContainerByClick is also added for symmetry. Both methods will become identical once we stop selecting the node on expand and they will be merged.

Differential Revision: https://phabricator.services.mozilla.com/D103051
2021-01-26 16:34:33 +00:00
nchevobbe 15010b1abb Bug 1682220 - [devtools] Use nsiWorkerDebugger#windowIds instead of window reference in DevToolsWorkerChild. r=ochameau.
This also allow us to remove the ignoreExistingTargets option we had to workaround Bug 1673024.

Differential Revision: https://phabricator.services.mozilla.com/D99648
2021-01-28 13:23:45 +00:00
Hubert Boma Manilla 15a8aa84e8 Bug 1637920 - [devtools] Legacy listeners support for SSE events r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D102585
2021-01-27 13:37:25 +00:00
Nicolas Chevobbe 36456c9b0e Bug 1686723 - [devtools] Remove unused network throttling code from RDM client code. r=bomsy,devtools-backward-compat-reviewers.
Now that network resources are enabled on the server, RDM is using the network actor
to control network throttling.
We can remove all the RDM client code that was still trying to call the responsive actor.
We can't remove the methods from the ResponsiveActor yet though, since the Netmonitor
will use it when there's no network resource server side support, which is still
the case for the Browser Toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D102766
2021-01-27 14:38:45 +00:00
Nicolas Chevobbe 94f2937a1d Bug 1686723 - [devtools] Observe network activity from resourceWatcher instead of webconsole listener. r=bomsy.
This patch switches all the calls to `startListeners["NetworkActivity"]` to watching
for network resources instead.
We take this opportunity to refactor them to improve readability.

Differential Revision: https://phabricator.services.mozilla.com/D102700
2021-01-27 14:38:37 +00:00
smolnar 9a65616767 Backed out 2 changesets (bug 1686723) for causing failures in browser_network_throttling. CLOSED TREE
Backed out changeset 1471a0e93735 (bug 1686723)
Backed out changeset 1c4e9624bd68 (bug 1686723)
2021-01-27 15:35:52 +02:00
Nicolas Chevobbe 4694da1dc3 Bug 1686723 - [devtools] Remove unused network throttling code from RDM client code. r=bomsy,devtools-backward-compat-reviewers.
Now that network resources are enabled on the server, RDM is using the network actor
to control network throttling.
We can remove all the RDM client code that was still trying to call the responsive actor.
We can't remove the methods from the ResponsiveActor yet though, since the Netmonitor
will use it when there's no network resource server side support, which is still
the case for the Browser Toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D102766
2021-01-27 12:52:23 +00:00
Nicolas Chevobbe 529944b522 Bug 1686723 - [devtools] Observe network activity from resourceWatcher instead of webconsole listener. r=bomsy.
This patch switches all the calls to `startListeners["NetworkActivity"]` to watching
for network resources instead.
We take this opportunity to refactor them to improve readability.

Differential Revision: https://phabricator.services.mozilla.com/D102700
2021-01-27 12:52:20 +00:00
wartmanm 1f79601bf1 Bug 1599917 - [devtools] Retrieve object properties for debugger inline preview r=nchevobbe
`generateInlinePreview` had a typo (`actorID` -> `actor`) that prevented object properties from being loaded,
so on a given line, we would show the whole object in the inline preview instead of only the property being used
(e.g. if line is `const y = x.a`, we want the preview only for `x.a`, not for the whole `x` object).

A test case is added to ensure we don't regress this in the future, and object inspector jest tests are updated
so they don't throw.

Differential Revision: https://phabricator.services.mozilla.com/D100064
2021-01-27 12:33:56 +00:00
Belén Albeza aee6631d9c Bug 1687923 - Add navigation tests for the storage panel r=jdescottes
This adds a navigation test for every storage type (except Extension storage) in the storage panel. They currently pass on Fission, but fail when Fission is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D102412
2021-01-27 10:51:19 +00:00
Nicolas Chevobbe 7fd71ffb1f Bug 1438979 - [devtools] Re-enable browser_webconsole_network_messages_expand.js. r=bomsy.
The test is split in two to make it easier to read.
The test was quite old and still had references to the Params panel, which is
now removed.
The test was also failing when checking the stacktrace, and this was due to an
issue from the webconsole messsage reducer where we would completly replace
the `networkMessagesUpdateById` on NETWORK_MESSAGES_UPDATE, and that would lead
to the stracktrace being removed.
In the Stacktrace component, we prevent fetching the stacktrace if it's already
available.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2021-01-27 09:37:23 +00:00
Sebastian Zartner 23fbcf2d92 Bug 1671457 - Fixed incorrect inactive CSS warning for text-overflow r=jdescottes
Corrected the warning about when text-overflow has no effect including different settings for overflow-x and overflow-y depending on the writing mode.

Depends on D102814

Differential Revision: https://phabricator.services.mozilla.com/D102815
2021-01-25 23:20:29 +00:00
Sebastian Zartner 05898b6c22 Bug 1671457 - Put vertical writing mode check into separate method r=jdescottes
In order to be able to reuse the check for whether a note has a vertical writing mode, the logic got split out from the table track parent method into its own method.

Differential Revision: https://phabricator.services.mozilla.com/D102814
2021-01-25 22:59:26 +00:00
Alexandre Poirot f5a8824095 Bug 1657435 - [devtools] Migrate from getAllDocShellsInSubtree to getAllBrowsingContextsInSubtree in DevTools. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D103027
2021-01-26 17:31:12 +00:00
smolnar ee306d7507 Backed out changeset 60746aad382b (bug 1438979) for causing dt failures in browser_webconsole_network_messages_openinnet. CLOSED TREE 2021-01-26 16:52:02 +02:00
Nicolas Chevobbe 84cab1d99c Bug 1438979 - [devtools] Re-enable browser_webconsole_network_messages_expand.js. r=bomsy.
The test is split in two to make it easier to read.
The test was quite old and still had references to the `Params` panel, which was
renamed to `Request`.
The test was also failing when checking the stacktrace, and this was due to an
issue from the webconsole messsage reducer where we would completely replace
the `networkMessagesUpdateById` on NETWORK_MESSAGES_UPDATE, and that would lead
to the stracktrace being removed.
In the Stacktrace component, we prevent fetching the stacktrace if it's already
available.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2021-01-26 13:50:15 +00:00
Alexandre Poirot 43cc7423e5 Bug 1651391 - Display remote type in the browser toolbox context selector. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88082
2021-01-26 13:37:56 +00:00
Mark Banner 6f70e91a5d Bug 1687235 - Enable ESLint rule no-setter-return for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D102154
2021-01-26 13:44:01 +00:00
Brindusan Cristian 70ab748bed Backed out 5 changesets (bug 1687235) for mochitest failures at test_menulist_null_value.xhtml. CLOSED TREE
Backed out changeset 638c802ca1d1 (bug 1687235)
Backed out changeset ec830b771bce (bug 1687235)
Backed out changeset a7c933ddecfd (bug 1687235)
Backed out changeset c36493fb0599 (bug 1687235)
Backed out changeset 6eb33ad5d460 (bug 1687235)
2021-01-26 10:58:43 +02:00
Mark Banner 49127400c8 Bug 1687235 - Enable ESLint rule no-setter-return for devtools. r=jdescottes
Depends on D102153

Differential Revision: https://phabricator.services.mozilla.com/D102154
2021-01-18 10:30:49 +00:00
Alexandre Poirot f8db9e9055 Bug 1687657 - [devtools] Avoid attaching the thread actor in the context of the browser console. r=nchevobbe
Thread actor's options are shared across all the toolboxes,
so that when you set any type of breakpoints, they will be passed to all the thread actor.
All the thread actor, of all the toolboxes.
So that when you set a breakpoint in the content toolbox,
they may be set in the browser toolbox and also in the browser console.

Here, we avoid doing anything around the thread actor when we are in the context
of the browser console, so that we avoid setting up any type of breakpoint.
They are set when calling ThreadActor.attach().

Differential Revision: https://phabricator.services.mozilla.com/D102907
2021-01-25 17:02:36 +00:00
Nicolas Chevobbe c813df8f28 Bug 1686720 - [devtools] Add a test for :screenshot --selector . r=jdescottes.
This adds a test for the :screenshot command with the --selector argument.
We're also checking that using the command while selecting another target
in the context selector works as expected.
The test is skipped on non-fission since the context selector isn't enabled
when fission is disabled.

Differential Revision: https://phabricator.services.mozilla.com/D102597
2021-01-25 06:25:36 +00:00
Nicolas Chevobbe 5dd649daec Bug 1686720 - [devtools] Check :screenshot behaviour on pages with remote frames. r=jdescottes.
This patch modified the existing test for :screenshot ${filename} to actually
check some pixels of the resulting file.
The test document is modified to include 2 iframes, one remote and the other one
on the same origin, with different background colors so we can check in the test
that the content of the iframes are rendered in the screenshot.

We add a `fail-if=fission` annotation to the test since our screenshot support
does not support rendering remote iframe when fission is enabled. This should
be fixed with the work on Bug 1678483, and the fail-if would highlight that.

Differential Revision: https://phabricator.services.mozilla.com/D102596
2021-01-25 06:25:29 +00:00
Nicolas Chevobbe 3b53af2f47 Bug 1687948 - [devtools] Add test for fullpage screenshot of website with fixed element. r=jdescottes.
A fix was made in Bug 961832 to ensure fixed elements would be rendered at the
right position in the screenshot when the page was scrolled down.
Unfortunately there wasn't any test associated, so this patch adds one.
A new helper function is added into shared-head so we can assert the color of
an image at a given position.

The test does fails if we revert the changes made in Bug 961832.

Differential Revision: https://phabricator.services.mozilla.com/D102595
2021-01-25 06:25:21 +00:00
Nicolas Chevobbe f355fa3951 Bug 1687948 - [devtools] Move helper_screenshot_node.js content to shared-head. r=jdescottes.
We're going to use some of the function provided by this
helper in console tests, so it feels better to move the
content of the file in shared-head so all panels can benefit
from it.

Differential Revision: https://phabricator.services.mozilla.com/D102752
2021-01-25 22:56:19 +00:00
Alexandre Poirot f3a46eb347 Bug 1687292 - [devtools] Remove unecessary await for TargetList.destroy usages. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D102191
2021-01-25 17:02:07 +00:00
Daniel Holbert f790641b12 Bug 1688538: Add a code-comment to explain why devtools shouldn't warn for "inactive" properties that are inherited-by-default. r=jdescottes
DONTBUILD because this is a code-comment-only change.

Differential Revision: https://phabricator.services.mozilla.com/D102886
2021-01-25 19:29:13 +00:00
Dimi Lee 5151175654 Bug 1589074 - Fix devtools mochitest failures after changing default referrer policy to strict-origin-when-cross-origin. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88551
2021-01-25 13:26:58 +00:00
Julian Descottes 2beda3c365 Bug 1687296 - [devtools] Reuse the selectNodeInFrames helper in all MBT inspector tests r=nchevobbe
Depends on D102783

Differential Revision: https://phabricator.services.mozilla.com/D102898
2021-01-25 18:18:36 +00:00
Julian Descottes f5330720d3 Bug 1687296 - [devtools] Add a test for breaking on DOM mutation in a remote frame r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102783
2021-01-25 17:16:17 +00:00
Alexandre Poirot f24db0027d Bug 1662129 - [devtools] Wait for initial debugger statement breakpoint in browser_dbg-pause-points.js. r=nchevobbe
As we weren't waiting for pause when calling the first debugger statement,
things were very much confused in `stepOvers`. We were asserting the initial debugger statement frame,
while, in `stepOvers` waiting for the first step over "paused" event.

Differential Revision: https://phabricator.services.mozilla.com/D102896
2021-01-25 16:57:19 +00:00
Alexandre Poirot 667a88f93a Bug 1662129 - [devtools] Wait for EVALUATE_EXPRESSIONS actions from browser_dbg-expressions.js r=nchevobbe
The two "location" expressions being added, removed and re-added
are mixed up in the UI if we don't wait for the evaluation of the first,
before removing and re-adding it.

Differential Revision: https://phabricator.services.mozilla.com/D102323
2021-01-25 09:38:36 +00:00
Alexandre Poirot a7e9af8f81 Bug 1662129 - [devtools] Rename ensureSourceActor to waitForSourceActorToBeRegisteredInStore. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102290
2021-01-25 09:38:34 +00:00
Alexandre Poirot dd9ea44555 Bug 1662129 - [devtools] Introduce breakpoint resource. r=nchevobbe,jdescottes
This is the simple step, where we move the ThreadFront code related to pauses
from Debugger frontend to a legacy listener.
The next patch is the hard one, which will replace paused/resumed events by resources.

It may sound weird to have pause and resume to becomes resources,
as they aren't really resources. These are transcient events, which we don't
really want to record. We especially do not really care to save them in the ResourceWatcher cache.

But, by becoming resources, we benefit from the resources framework, which allows to:
* listen and emit such event as early as the page/target starts loading
* do not depend on a particular front to be ready/attached on the frontend
* once we communicate to the watcher we care about breakpoints, we do register the breakpoint listening code for all the targets.
(we no longer have to do a per-target work in the frontend)

Differential Revision: https://phabricator.services.mozilla.com/D88851
2021-01-25 09:40:34 +00:00
Butkovits Atila f6b5550998 Merge mozilla-central to autoland. CLOSED TREE 2021-01-25 19:37:13 +02:00
Butkovits Atila 69babd862d Backed out 11 changesets (bug 1589074) for causing failures on test_DownloadCore.js.
Backed out changeset 10e37ec238ee (bug 1589074)
Backed out changeset a306f2483d73 (bug 1589074)
Backed out changeset b7a0d73a2885 (bug 1589074)
Backed out changeset da996dc79d5d (bug 1589074)
Backed out changeset 3cffd4570c8e (bug 1589074)
Backed out changeset 9fe67741eb5a (bug 1589074)
Backed out changeset e8e6d9a6b90d (bug 1589074)
Backed out changeset 78df7f0ccb31 (bug 1589074)
Backed out changeset 712f147c5a41 (bug 1589074)
Backed out changeset f093f3c48807 (bug 1589074)
Backed out changeset 454beae0f635 (bug 1589074)
2021-01-25 14:57:00 +02:00
Dimi Lee b036c4ede3 Bug 1589074 - Fix devtools mochitest failures after changing default referrer policy to strict-origin-when-cross-origin. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88551
2021-01-25 13:26:58 +00:00
Emilio Cobos Álvarez 09c872c3ef Bug 1688325 - Make textarea default padding 2px on all platforms. r=dholbert,jdescottes
This matches other browsers, and the default themed textareas on Windows
too.

To be landed after the soft freeze, just in case, of course.

Differential Revision: https://phabricator.services.mozilla.com/D102843
2021-01-25 12:33:28 +00:00