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

22257 Коммитов

Автор SHA1 Сообщение Дата
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
Butkovits Atila 9ac3c18562 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
Emilio Cobos Álvarez c30e9de30a Bug 1688508 - Also enable the event on initialization.
MANUAL PUSH: Orange on browser_markup_shadowdom_dynamic.js on a
CLOSED TREE
2021-01-25 14:12:40 +01:00
Emilio Cobos Álvarez b74a3bb722 Bug 1688508 - Fire shadowrootattached only if devtools is observing the document. r=smaug
Much like devtools manages the existing stylesheet changed events.

This is tested by devtools/client/inspector/markup/test/browser_markup_shadowdom.js

Differential Revision: https://phabricator.services.mozilla.com/D102875
2021-01-25 11:30:51 +00:00
Dimi Lee e262560bd8 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 06:43:03 +00:00
Daisuke Akatsuka 851bbbd9d9 Bug 1688132: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D102672
2021-01-25 08:36:12 +00:00
Gerald Squelart 1338970d1b Bug 1688400 - Fixed English typo in about:profiling - r=fluent-reviewers,flod DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D102848
2021-01-24 06:09:49 +00:00
Brindusan Cristian dc813a31cc Backed out changeset 870a4ac0af45 (bug 1583901) for devtools failures at browser_rules_preview-tooltips-sizes.js. 2021-01-24 01:22:23 +02:00
Sebastian Zartner f6362f9f72 Bug 1583901 - New inactive CSS rule to show warning when fill-* or stroke-* is used on non-SVG-basic-shape and non-SVG-text elements. r=fluent-reviewers,flod,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D101295
2021-01-23 21:38:22 +00:00
Hubert Boma Manilla a62aa99a93 Bug 1688170 - [devtools] Enable browser resource tests for NETWORK & NETWORK STACKTRACE EVENTS r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D102706
2021-01-22 15:10:42 +00:00
Nicolas Chevobbe 9ef7faec7e Bug 1687485 - [devtools] Fix error count on navigation when console isn't enabled. r=ladybenko.
We used to not do anything on navigation for the error count
at the toolbox level, but the test we had to check that the
count was reset on navigation was working; this is because
there's a hook in the console panel to clear the error count
when the console is cleared, and in the test, the console panel
was selected.
This patch fixes that and adds a new test that run some assertion
on reload, without ever enabling the console panel.
Since some assertions seem redundant with the test we already had,
we remove them from the old test.

Differential Revision: https://phabricator.services.mozilla.com/D102325
2021-01-21 16:53:09 +00:00
Jared Wein d6647f3b6e Bug 1681421 - Read the label property instead of textContent to exclude hidden text. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D102613
2021-01-21 16:10:45 +00:00
Greg Tatum b9f323e9a1 Bug 1599774 - Localize about:profiling and DevTools perf panel; r=julienw,flod
This handles most of the localization, but will require a few follow-ups.

First off is Bug 1681539, which is for localizing profiler presets. There
isn't anything too weird about this for the DevTools and about:profilling
context, but requires a solution for the popup. The appmenu.ftl bundle
might need to be included.

I did not localize profiler feature list, nor the byte size computation.

Differential Revision: https://phabricator.services.mozilla.com/D99275
2021-01-21 15:49:42 +00:00
Yura Zenevich 2838080937 Bug 1687733 - add a11y exception to a11y clickable check in browser_webconsole_input_focus.js. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D102518
2021-01-21 14:44:09 +00:00
Mihai Alexandru Michis 7fd701f5b0 Backed out changeset acc496d59a30 (bug 1682220) after backing out Bug 1657130 for being its blocker.
CLOSED TREE
2021-01-21 14:11:55 +02:00