Commit Graph

23992 Commits

Author SHA1 Message Date
Norisz Fay
212a384c46 Backed out 5 changesets (bug 1740438) for causing xpcshell failures on test_action-toggle-recording-allocations.js CLOSED TREE
Backed out changeset 28518fbe3077 (bug 1740438)
Backed out changeset f33ea874875c (bug 1740438)
Backed out changeset f20e36b0d1d4 (bug 1740438)
Backed out changeset 2f166a7bc13b (bug 1740438)
Backed out changeset 9d9bcf855ceb (bug 1740438)
2021-11-15 12:40:16 +02:00
Julian Descottes
9a7494f5c7 Bug 1740438 - [devtools] Remove backward compatibility code for recordAllocations target configuration option r=devtools-reviewers,bomsy
Depends on D130847

Differential Revision: https://phabricator.services.mozilla.com/D130848
2021-11-15 08:46:37 +00:00
Julian Descottes
2c9b193c11 Bug 1740438 - [devtools] Remove backward compatibility code for clearPickerSupport trait r=devtools-reviewers,bomsy
Depends on D130846

Differential Revision: https://phabricator.services.mozilla.com/D130847
2021-11-15 08:46:37 +00:00
Julian Descottes
d55289222a Bug 1740438 - [devtools] Remove backward compatibility code for typename browsingContextTarget r=devtools-reviewers,bomsy
Depends on D130845

Differential Revision: https://phabricator.services.mozilla.com/D130846
2021-11-15 08:46:36 +00:00
Julian Descottes
fd96986f11 Bug 1740438 - [devtools] Remove backward compatibility code for useChildTargetToFetchChildren r=devtools-reviewers,bomsy
Depends on D130844

Differential Revision: https://phabricator.services.mozilla.com/D130845
2021-11-15 08:46:36 +00:00
Julian Descottes
793ef6b2aa Bug 1740438 - [devtools] Remove backward compatibility code for event-breakpoints trait r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130844
2021-11-15 08:46:35 +00:00
Julian Descottes
167e19ec64 Bug 1737790 - [devtools] Color picker should fallback on getClosestBackgroundColor for elements without quads r=nchevobbe
The getBackgroundColor already has fallback paths for several situations.
We now use the fallback in case getAdjustedQuads returned an empty array.

A browser mochitest is added to cover this issue as well.

Differential Revision: https://phabricator.services.mozilla.com/D130750
2021-11-15 08:44:46 +00:00
Nicolas Chevobbe
674b6582ba Bug 1740454 - [devtools] Fix a11y panel react warnings. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130855
2021-11-15 07:00:03 +00:00
Mats Palmgren
a36baa4d58 Bug 1706346 part 3 - [css-lists] Remove the internal '-moz-list-reversed' CSS property that is no longer needed. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D129957
2021-11-14 03:49:36 +00:00
Daisuke Akatsuka
d5a15f449b Bug 1740857: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D131035
2021-11-12 08:07:15 +00:00
Hiroyuki Ikezoe
db5de169ad Bug 1692708 - Add cancelScrollAnimation and use it in window_bug1369072.html and browser_scroll.js. r=botond
Both window_bug1369072.html and browser_scroll.js have a pattern something like;

1) Call synthesizeKey to scroll an element
2) Wait a scroll event
3) Test something
4) (Re)set the scroll position to (0, 0) by calling Element.scrollTop and
   Element.scrollLeft or scrollTo.

With the new transmogrification the step 4) will not reset the scroll position
if there's an on-going scroll animation in APZ triggered by the synthesizeKey.

To avoid the situation where there's an on-going animation at the step 4), we
destroy the corresponding scrollable frame and reconstruct it so that it
clobbers the animation.

Differential Revision: https://phabricator.services.mozilla.com/D130852
2021-11-12 07:54:17 +00:00
Marian-Vasile Laza
539896f064 Backed out 3 changesets (bug 1726281, bug 1625309) for causing mochitest failures on browser_popup-profiler-states.js. CLOSED TREE
Backed out changeset 3c997d7eac8d (bug 1726281)
Backed out changeset 9ad8265a7c22 (bug 1625309)
Backed out changeset 801a44944072 (bug 1625309)
2021-11-11 02:14:36 +02:00
Markus Stange
c200137e29 Bug 1726281 - Allow symbolication WebChannel requests for profiler tabs that weren't opened by a profile capturing action. r=julienw
This makes it easier to symbolicate profiles that were captured to a file
without symbolication.

Differential Revision: https://phabricator.services.mozilla.com/D122928
2021-11-10 21:20:35 +00:00
Markus Stange
a78624d8f9 Bug 1625309 - Use /from-browser. r=julienw
This was implemented in https://github.com/firefox-devtools/profiler/pull/3466.

Differential Revision: https://phabricator.services.mozilla.com/D122923
2021-11-10 21:20:35 +00:00
Markus Stange
b72813b697 Bug 1625309 - Remove the frame script and instead use the WebChannel to expose the profile and symbolication. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D121933
2021-11-10 21:20:34 +00:00
Clinton
1882c3b3e7 Bug 1710284 - Copying CSS Rules manually from the Devtools Inspector inserts extra indentation r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D130549
2021-11-10 20:15:45 +00:00
Nicolas Chevobbe
1541e545c6 Bug 1740548 - [devtools] Fix browser_rules_selector-highlighter-iframe-picker.js intermittent. r=ochameau.
Make the test wait until we don't have an active highlighter anymore.

Differential Revision: https://phabricator.services.mozilla.com/D130888
2021-11-10 17:03:22 +00:00
Nicolas Chevobbe
8de52475ac Bug 1740456 - [devtools] Check existence of inspector panel before using it in registerInspectorExtensionSidebar. r=jdescottes.
The method was throwing if the toolbox was opened with a panel different than
the inspector one but for which we do initialize the inspector front (e.g. Accessibility Panel).

Differential Revision: https://phabricator.services.mozilla.com/D130854
2021-11-10 16:59:23 +00:00
Nicolas Chevobbe
24877826e3 Bug 1740296 - [devtools] Fix accessibility test names. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130765
2021-11-10 16:30:08 +00:00
Paul Adenot
6ae686a644 Bug 1739408 - Add new WebRTC threads in the Media profiler preset. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D130473
2021-11-10 15:15:52 +00:00
Nicolas Chevobbe
37a6a78645 Bug 1739115 - [devtools] Add a section for xpcshell debugging in recurring devtools tasks documentation. r=bomsy,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D130267
2021-11-10 14:55:37 +00:00
Nicolas Chevobbe
779b2e96eb Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 14:51:06 +00:00
Nicolas Chevobbe
57cd75a819 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe
1983c64a23 Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 14:51:05 +00:00
Nicolas Chevobbe
062332598e Bug 1730148 - [devtools] Add a onSelect argument to targetCommand.watchTargets . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 14:51:04 +00:00
Nicolas Chevobbe
bdbcfaa7e8 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 14:51:04 +00:00
Cristian Tuns
e72368c08e Backed out 5 changesets (bug 1738915, bug 1739061, bug 1730148) for causing mochitest failures on browser_resources_document_events.js CLOSED TREE DONTBUILD
Backed out changeset 24c1a120bb77 (bug 1739061)
Backed out changeset eb9953fd3252 (bug 1738915)
Backed out changeset 9bd72db885eb (bug 1730148)
Backed out changeset 819078e24fa6 (bug 1730148)
Backed out changeset a0e706688adc (bug 1730148)
2021-11-10 07:07:57 -05:00
Nicolas Chevobbe
f0d4406586 Bug 1739061 - [devtools] Remove skip-if annotation on console context selector tests. r=ochameau.
Those tests are passing with Fission enabled, as well as with EFT enabled.
it would be better to not skip them, so we remove the annotation, and use specific
assertions to handle cases where the tests shouldn't pass.

Differential Revision: https://phabricator.services.mozilla.com/D130244
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe
d18f89ee77 Bug 1738915 - [devtools] Set webconsole context when selecting frame in iframe picker. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130180
2021-11-10 10:44:52 +00:00
Nicolas Chevobbe
c27ad7085f Bug 1730148 - [devtools] Handle onTargetSelected in DOM panel. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D130332
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
4ea74879bb Bug 1730148 - [devtools] Add a onSelect argument to targetCommand.watchTargets . r=ochameau.
This will allow panels to react to a given target being selected in the iframe picker
when EFT is enabled.
We add support for onTargetSelected in the inspector and add a few test cases
for it (checking that highlighters are hidden when selecting a frame, checking
that selecting an iframe and then removing it does update the markup view).

Differential Revision: https://phabricator.services.mozilla.com/D130177
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
8a4f2c2c22 Bug 1730148 - [devtools] Use targetCommand to populate iframe picker when EFT is enabled. r=ochameau.
The iframe picker code is refactored a bit so it's easier to follow.
This patch makes it so we support both EFT and non EFT scenarios.

Differential Revision: https://phabricator.services.mozilla.com/D130241
2021-11-10 10:44:51 +00:00
Nicolas Chevobbe
a938f83a91 Bug 1737967 - [devtools] Replace usage of lodash debounce with DevTools own debounce method. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D130460
2021-11-10 06:37:54 +00:00
Julian Descottes
1db1989ee5 Bug 1737690 - [devtools] Use a devtools css variable for the auto theme notification text color r=Honza
Using --theme-contrast-color. Sadly --theme-contrast-background looks pretty bad in dark theme, so we can't use the background color.
But the text color itself is fine against --theme-selection-background-hover, so let's use this

Differential Revision: https://phabricator.services.mozilla.com/D130754
2021-11-09 15:52:31 +00:00
Nicolas Chevobbe
3b6ea985b0 Bug 1739990 - Fix perf regression in getInScopeLines. r=jdescottes.
The patch for Bug 1737993 did a very readable but not performant replacement
of lodash `without` usage in `getInScopeLines`.
This patch changes things a bit so we get a similar level of performance as
what we had before, when using `without`.
For this we :
- make `getOutOfScopeLines` returns a `Set` so checking inclusion is faster
- create the final array of "in scope lines" using a for loop and assigning
  line number when needed, and then filtering out empty slots.

Differential Revision: https://phabricator.services.mozilla.com/D130742
2021-11-09 14:37:43 +00:00
Gerald Squelart
2cc9f2df7f Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-08 23:59:37 +00:00
Julian Descottes
2078bf262e Bug 1731323 - [devtools] Use a shared test helper to wait for all loaded panels in browser_aboutdebugging_addons_debug_reload.js r=Honza
This changeset adds a new shared helper which allows to wait for all the loaded panels of a toolbox.
We might use this by default in our navigation helper, but that should be done in a follow up.

Differential Revision: https://phabricator.services.mozilla.com/D130616
2021-11-08 16:24:05 +00:00
Nicolas Chevobbe
2125a049e6 Bug 1739371 - [devtools] Fix browser_inspector_command_findNodeFrontFromSelectors.js intermittent. r=ochameau.
The 0 timeout wasn't enough on some platform, so we reload the page before calling
the method; since we're targetting an iframe that takes a few seconds to load,
the call should time out every time.

Differential Revision: https://phabricator.services.mozilla.com/D130612
2021-11-08 14:25:49 +00:00
Hubert Boma Manilla
8318c4c60b Bug 1738941 - [devtools] Resume the toolbox state if paused on target destroyed r=ochameau
Enabled an existing test relating to Bug 1722305, that tests the fix in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D130256
2021-11-08 14:04:35 +00:00
Julian Descottes
f93ec5ae05 Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 12:29:02 +00:00
Narcis Beleuzu
cc1b82440a Backed out changeset 1f2fde2975bb (bug 1731770) for dt failure on browser_net_details_copy.js . CLOSED TREE 2021-11-08 14:27:34 +02:00
Claudia
efa834cd24 Bug 1731770 - [devtools] Persit expanded nodes state in the Response Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128190
2021-11-08 10:57:39 +00:00
Marian-Vasile Laza
483bf912d9 Backed out changeset 2635e89a1790 (bug 1733671) for causing mochitest failures on browser_parsable_css.js. CLOSED TREE 2021-11-08 13:21:34 +02:00
Nicolas Chevobbe
8713b908e0 Bug 1739215 - [devtools] Revert click to sendMouseEvent in browser_webconsole_location_styleeditor_link.js. r=bomsy.
The test is tagged as `fail-if= a11y_checks`, but as patch for Bug 1738124 switched
to Element.click, we don't get the expected failure anymore (since the a11y_check
task does not perform assertion on element.click).
Let's revert to the original behavior so we can still see that the test need
some a11y work.

Differential Revision: https://phabricator.services.mozilla.com/D130610
2021-11-08 10:21:18 +00:00
Julian Descottes
6af510632f Bug 1733671 - [devtools] Support dark mode for aboutdebugging profiler popup header r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D130408
2021-11-08 09:59:50 +00:00
Julian Descottes
b57daab268 Bug 1737865 - [devtools] Do not treat xpcshell targets as parent process targets r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D130212
2021-11-08 08:03:08 +00:00
angelina
97cdc02a03 Bug 1733285 List xhtml in HTML filter r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D128267
2021-11-05 14:01:39 +00:00
Julian Descottes
d78bdfe181 Bug 1731323 - [devtools] Wait for panel reload in browser_aboutdebugging_addons_debug_reload.js r=Honza
Reuse helper from shared-head.js to wait for the currently selected panel to be reloaded in the intermittent test.

Differential Revision: https://phabricator.services.mozilla.com/D130154
2021-11-05 10:20:09 +00:00
Cristian Tuns
1aeac93d23 Backed out 5 changesets (bug 1738627) for causing xpcshell failures on test_ext_geckoProfiler_schema.js CLOSED TREE
Backed out changeset 42d385d7da97 (bug 1738627)
Backed out changeset edeb3a338954 (bug 1738627)
Backed out changeset 98f02e35134d (bug 1738627)
Backed out changeset 711daa6dd24b (bug 1738627)
Backed out changeset 49e12753a40c (bug 1738627)
2021-11-05 05:12:28 -04:00
Gerald Squelart
ddfe54e593 Bug 1738627 - Add experimental "... - All Threads" options in about:profiling - r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D130012
2021-11-05 05:52:29 +00:00