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

24673 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 0ba3d9184b Bug 1756757 - [devtools] Remove assertEmptyLines being redundant with browser_dbg-breakable-lines.js test. r=bomsy
There was this unique check against non-breakable lines.
browser_dbg-breakable-lines.js now test this much more in depth.
This old unique assertion is not worth keeping.

Differential Revision: https://phabricator.services.mozilla.com/D139481
2022-02-24 18:02:50 +00:00
Alexandre Poirot 42304c5854 Bug 1756757 - [devtools] Stop using isPaused from debugger test and clarify existing pause/resume helpers. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D139480
2022-02-24 18:02:49 +00:00
Alexandre Poirot 61cfa47d1d Bug 1756757 - [devtools] Remove unused function from debugger's shared-head. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139479
2022-02-24 18:02:49 +00:00
Alexandre Poirot 581de03533 Bug 1756757 - [devtools] Remove log method in debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139478
2022-02-24 18:02:48 +00:00
Sean Feng e340530c5b Bug 1741671 - Remove browser_navigateEvents.js test r=ochameau
This test does a bunch of assertions for a series of events which
is complex and not reliable. It also becomes overly complicated when
Fission is enabled. Looks like this test isn't really needed, so
we are removing it.

Differential Revision: https://phabricator.services.mozilla.com/D139604
2022-02-24 16:45:49 +00:00
Butkovits Atila cf66e0f83c Bug 1721999 - disable browser_dbg-quick-open.js on Linux_64_debug for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D139603
2022-02-24 16:12:04 +00:00
Marian-Vasile Laza 5fb75770b2 Bug 1755907 - lint fix r=fix CLOSED TREE 2022-02-23 11:54:24 -08:00
Alexandre Poirot 4f6825b177 Bug 1755907 - [devtools] Enable eslint on debugger tests (except their test pages). r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139366
2022-02-23 18:38:26 +00:00
Alexandre Poirot 681e4456ef Bug 1755907 - [devtools] Fix eslint failure in debugger's xpcshell tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139384
2022-02-23 18:38:26 +00:00
Alexandre Poirot 4c2d26e1cf Bug 1756611 - [devtools] Manual eslint fixes against debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139368
2022-02-23 14:00:12 +00:00
Alexandre Poirot 7eebd0f157 Bug 1756611 - [devtools] Eslint autofixes for debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139367
2022-02-23 14:00:12 +00:00
Hubert Boma Manilla be1b3b1c98 Bug 1755960 - [devtools] Show the thread info in breakpoint list tooltip r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D130866
2022-02-23 12:53:33 +00:00
Julian Descottes b18a81ab2a Bug 1715632 - [devtools] Wait for the iframe to be loaded in browser_storage_cookies_navigation.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D139307
2022-02-23 12:11:32 +00:00
Alexandre Poirot 98d9426cf5 Bug 1755951 - [devtools] Prepare for the enabling of eslint on debugger tests. r=nchevobbe
After this patch, we only need to remove the ignore from /.eslintignore.

My goal originaly was to simply add `import-globals-from` comments in helpers.js
But because of cross dependencies between head.js and helpers.js, it wasn't so trivial.
I first tried to merge them into a unique head.js, but the EXAMPLE_URL symbol
should not be imported by tests external to the debugger.
So I aligned debugger to the common practice of naming the shared head file... shared-head.js!
Like the inspector is doing.
I also merged helpers/context.js into shared-head.js to simplify things a bit.

Because of that I had to tweak many tests outside of the debugger.

Differential Revision: https://phabricator.services.mozilla.com/D139099
2022-02-22 11:55:43 +00:00
Nicolas Chevobbe 5694c9dd41 Bug 1754946 - [devtools] Retrieve browsers from Remote Settings devtools-compatibility-browsers collection. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D138534
2022-02-22 08:59:12 +00:00
Nicolas Chevobbe e802b96258 Bug 1754946 - [devtools] Add Node script to populate Remote Settings devtools-compatibility-browsers collection. r=jdescottes.
This new script pulls the browsers data from the MDN npm package and create, update
and delete records on the `devtools-compatibility-browsers` collection.
A new record is created when a browser in MDN data is not retired, and is not
already in the collection.
A record is updated when the browser + version already exist in the collection,
but its status or name changed in MDN data.
A record is removed when its status on MDN is changed to "retired", or when it's
not in the MDN data anymore.

For running the script, you need to be connected to the Mozilla Corporate VPN,
and fill-in the `authHeaderValue` variable with the one that can be retrieved
from the Remote Settings collection UI.

Ultimately, this script should be executed automatically (see https://remote-settings.readthedocs.io/en/latest/support.html#how-do-i-automate-the-publication-of-records-forever)
And in such case, we could even have a call to the API that would ask for review
on the modified records, so member of the teams can check if everything is okay
with the automatic update.

Differential Revision: https://phabricator.services.mozilla.com/D138532
2022-02-22 08:59:11 +00:00
Alexandre Poirot f0b907270a Bug 1755906 - [devtools] Remove dos end of lines from debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139028
2022-02-21 21:17:02 +00:00
Alexandre Poirot 34969731af Bug 1755963 - [devtools] Use the browserId to identify which tab to be picked by a given tab descriptor. r=jdescottes,devtools-backward-compat-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139035
2022-02-21 18:20:53 +00:00
Nicolas Chevobbe 1896f79ed4 Bug 1756194 - [devtools] Remove unused devtools/shared/specs/timeline.js. r=jdescottes,devtools-backward-compat-reviewers.
We also remove the doc-loading event that isn't
consumed anywhere and seemd to be a relic of the
past when we had a timeline actor.

Differential Revision: https://phabricator.services.mozilla.com/D139132
2022-02-21 17:30:18 +00:00
Nicolas Chevobbe e86bbc8417 Bug 1755682 - [devtools] Avoid unnecessary function call and property access in EventEmitter._emit. r=ochameau.
Some profile were showing property access, so let's see if putting target[eventListeners]
in a variable is making things better.
Also, don't call logEvent when there's no need to. Even if the function has an
early exit when it won't do anything, there's still a cost to the function call.
In this patch, we're also shifting a few things around so we can bail out as
early as we can without doing anything we wouldn't need.

Differential Revision: https://phabricator.services.mozilla.com/D139112
2022-02-21 17:30:17 +00:00
Nicolas Chevobbe 8647c67170 Bug 1755682 - [devtools] Avoid using spread/rest operators when not necessary in EventEmitter. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D139018
2022-02-21 17:30:17 +00:00
Nicolas Chevobbe 8d5a1f6da1 Bug 1391261 - [devtools] Remove support for wildcard in EventEmitter. r=jdescottes.
Callsites are updated to listen to individual events instead.

Differential Revision: https://phabricator.services.mozilla.com/D139017
2022-02-21 17:30:16 +00:00
Nicolas Chevobbe 707df821c0 Bug 1755878 - [devtools] Remove EventEmitter constructor. r=ochameau.
It was only creating a Map and putting it in a property of the instance,
but the same Map can be created later, in `on`, when we really need it.

Differential Revision: https://phabricator.services.mozilla.com/D139016
2022-02-21 17:30:16 +00:00
Julian Descottes b138ba1676 Bug 1754066 - Prevent chrome and resource protocols for sourcemap helper r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D138773
2022-02-21 16:34:06 +00:00
Alexandre Poirot 084181bf62 Bug 1755736 - [devtools] Update line offsets in browser_dbg-breakable-positions.js according to sourcemaps-reload test page changes. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D139294
2022-02-21 14:32:10 +00:00
Alexandre Poirot bce38086e0 Bug 1755736 - [devtools] Test both original and generated sources being removed altogether. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138936
2022-02-21 13:16:36 +00:00
Alexandre Poirot 2e5629876f Bug 1755736 - [devtools] Test original source being removed and replaced in the bundle by a new original source. r=bomsy
I'm using a new dedicated bundle here so that we ensure that the bundle lines don't change and stay "breakable".
Otherwise the breakpoint wouldn't be hit on reload if the breakpoint become an empty line.
My goal here is to see what happens if the new bundle still hit the breakpoint even if the original source
was removed.

We might later revisit this behavior to remove this breakpoint.
It might be challenging to avoid hitting the breakpoint once on the first load.
It would require the server to know about sourcemap in order to ignore the breakpoint on early page load sequence.

Differential Revision: https://phabricator.services.mozilla.com/D138920
2022-02-21 13:16:36 +00:00
Alexandre Poirot 68235d36fa Bug 1755736 - [devtools] Make findSource debugger helper expect a filename instead of URL. r=bomsy
This helps stop doing a loose search and avoid bugs where
findSource("original.js") would match both original.js and replace-original.js.

I had to keep full URL support in order to match a source without any filename.
It might only be browser_markup_shadowdom_open_debugger.js and lots of sourcemap tests
using webpack:// URL and many source files with the same filename.
We could also have a distinct helper for these tests.

I tried to remove all cases where we were doing findSource(dbg, source.url)
and instead fo findSource(dbg, source).

Differential Revision: https://phabricator.services.mozilla.com/D138934
2022-02-21 13:16:35 +00:00
Julian Descottes 741da4d6d1 Bug 1752780 - [devtools] Do not force units when incrementing unitless CSS properties r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139144
2022-02-21 11:14:02 +00:00
osBins 3199694f9f Bug 1755656 - [devtools] Updated fixing-bugs doc for CSS changes. r=Honza
added `mach build faster` command to doc to show local changes.

Differential Revision: https://phabricator.services.mozilla.com/D139228
2022-02-21 10:32:24 +00:00
Emilio Cobos Álvarez 875b7d5b23 Bug 1756316 - Fix DevTools' menu code to deal with zoom. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139236
2022-02-21 09:50:15 +00:00
Hubert Boma Manilla 8f5994deff Bug 1755103 - [devtools] Make sure the line to assert is scrolled into view and rendered r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D139010
2022-02-18 16:00:49 +00:00
Julian Descottes fa92589bc2 Bug 1752770 - [devtools] Do not return full displaySpec as the hostname for webextension storage resources r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D139048
2022-02-18 15:06:57 +00:00
Nicolas Chevobbe 1ce87863e3 Bug 1755662 - [devtools] Speedup ConsoleApiCall component. r=jdescottes.
The formatReps function was iterating twice on all the parameters,
first with a map call, and then a reduce call, in which we were
recreating a new array for each parameter.
We turn this into a simple for loop so we'll iterate only once.
We also simplify the getObjectInspector function so it doesn't
create new objects when there's no need to.

Differential Revision: https://phabricator.services.mozilla.com/D138885
2022-02-18 14:51:31 +00:00
Nicolas Chevobbe 1b7cfb0901 Bug 1755909 - [devtools] Fix beta simulation perma fail on browser_console_webconsole_iframe_messages.js. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D139019
2022-02-18 13:26:29 +00:00
Alexandre Poirot 8e70c98ba4 Bug 1755536 - [devtools] Cover breakable columns data extensively. r=bomsy
This test doesn't ensure we correctly hit the column breakpoints, but rather focus on
asserting that we display and update the column breakpoints options correctly.
That, especially when the source content change across reloads.

Differential Revision: https://phabricator.services.mozilla.com/D138832
2022-02-18 08:49:29 +00:00
Julian Descottes 567e2e864a Bug 1518675 - [devtools] Wait for proper accordion item in flexbox test r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D138902
2022-02-17 14:00:58 +00:00
osBins 38ece30050 Bug 1754368 - fixed network-monitor block button padding. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D138938
2022-02-17 13:39:44 +00:00
Hubert Boma Manilla a08775443c Bug 1755199 - [devtools] Improving tests for syncing breakpoints in sourcemapped files when source content changes r=ochameau
Renaming browser_dbg-sourcemaps-reload.js -> browser_dbg-breakpoints-sourcemaps-reloading-with-source-changes.js

Differential Revision: https://phabricator.services.mozilla.com/D138057
2022-02-17 10:25:40 +00:00
patrickdemers6 0254ce5b17 Bug 1264621: open request in new tab when row is middle clicked r=Honza
Depends on D138655

Differential Revision: https://phabricator.services.mozilla.com/D138665
2022-02-17 09:26:59 +00:00
Claudia 5ba8f75906 Bug 1754371 - [devtools] Get Edit and resend action from the Headers panel to work r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138557
2022-02-16 20:53:11 +00:00
Julian Descottes 07eb8a003f Bug 1753196 - [devtools] RuleView: inherited properties marked as overridden incorrectly r=nchevobbe
When both the current and the earlier props for a given property name are inherited, the current prop should not be marked as overridden if the earlier prop was marked as !important.
!important should only come into play if the property where it was set is not inherited.
Regardless of this, properties are considered in descending order of specificity, so the earlier rule should take precedence.

Differential Revision: https://phabricator.services.mozilla.com/D138895
2022-02-16 15:15:33 +00:00
Claudia 56c59fb18d Bug 1744785 - [devtools] Adds a pref to persist edit and resend content across devtools sessions r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137996
2022-02-16 13:50:39 +00:00
Nicolas Chevobbe 7268203455 Bug 1460566 - [devtools] Fix intermittent on browser_console_webconsole_iframe_messages.js. r=Honza.
Also the test skipped checking iframe messages in the Browser Console, but it's
been a while since we fixed the issue mentionned there, so we can safely also
test the Browser Console.

Differential Revision: https://phabricator.services.mozilla.com/D138781
2022-02-16 10:47:06 +00:00
Nicolas Chevobbe 5ce75066a6 Bug 1755645 - [devtools] Don't unmanage actor if its "old" parent is the same as the "new" one. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D138881
2022-02-16 10:43:55 +00:00
Nicolas Chevobbe aebff1d36f Bug 1432343 - [devtools] Avoid cloning object in console messages reducer. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D138765
2022-02-16 09:03:16 +00:00
Nicolas Chevobbe 9cddc3c388 Bug 1432343 - [devtools] Mutate messagesById in console redux state. r=ochameau.
The property is renamed, prefixed with `mutable` to better highlight that it is
special; the associated selector is renamed as well.
The only change necessary was adding a `messageCount` prop to the `ConsoleOutput`
component so its lifecycle method could check if the number of messages changed.

Differential Revision: https://phabricator.services.mozilla.com/D138293
2022-02-16 09:03:16 +00:00
Nicolas Chevobbe 3df954cb4c Bug 1754697 - [devtools] Refactor webconsole state management of CSS Warnings matching elements. r=ochameau.
In order to store the matching elements of a CSS warnings, we were having a quite
generic `MESSAGE_UPDATE_PAYLOAD` action and `messagesPayloadById` property in the store.
This was used at some point to also store console.table data (which was retrieved
asynchronously), but is no longer true.
In this patch, we rename the action, property, selector, props and variable that
were using this to make it more specific to the CSS warning matching elements.

We also, directly pass message to messageGetMatchingElements as the component
calling the action already had access to it.

Tests that were using the action are updated so they're about CSS warnings (and
not console.table).

Differential Revision: https://phabricator.services.mozilla.com/D138412
2022-02-16 09:03:15 +00:00
Tooru Fujisawa f98f70839d Bug 1755417 - Remove unused lastColumn_ field from SourceLocation. r=ochameau
Depends on D138761

Differential Revision: https://phabricator.services.mozilla.com/D138762
2022-02-16 00:12:59 +00:00
Tooru Fujisawa 9b2ab215bf Bug 1755406 - Part 1: Remove isHiddenSource. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138760
2022-02-16 00:12:58 +00:00
Julian Descottes e55dcb0dbb Bug 1755529 - [devtools] Add some documentation for debugger bin/bundle artifacts r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138764
2022-02-15 17:18:49 +00:00
Hubert Boma Manilla 0d42fabfa8 Bug 1755487 - [devtools] Update compatibility version for getSelectedSidebar r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D138792
2022-02-15 16:46:41 +00:00
Julian Descottes ca4179a2ff Bug 1755311 - Stop relying on "security.csp.enable" for tests in devtools/client/framework/tests r=devtools-reviewers,freddyb,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138770
2022-02-15 15:54:36 +00:00
colin_czb 66b2b6f8e0 Bug 1731734 - [devtools] Add basic dragging to update dimensions value in rule view. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128417
2022-02-15 12:52:45 +00:00
Alexandre Poirot d12210689c Bug 1751200 - [devtools] Set the session context for the webextension target. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D136486
2022-02-14 14:24:02 +00:00
Claudia 39ae6761a9 Bug 1754416 - [devtools] Fix narrow panel layout r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138308
2022-02-14 09:54:50 +00:00
Alexandre Poirot bc8af7f20e Bug 1730968 - [devtools] Fix typo preventing to remove data entries. r=bomsy
This probably had many side effects in the browser toolbox when debugging content processes.
But the main one was about not properly unregistering breakpoints when removing/disabling it.
This is only specific to content process targets, so this is only impacting the browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D138325
2022-02-13 21:01:04 +00:00
Alexandre Poirot fa1559c5bf Bug 1517383 - [devtools] Request a longer timeout for browser_toolbox_hosts.js. r=nchevobbe
Opening and closing toolbox allocate lots of objects
and the GC pauses between each task takes some time.
In addition to that, there is some leaked memory, which slow things down.
So that the test takes too much time to run on DEBUG builds.

Differential Revision: https://phabricator.services.mozilla.com/D138298
2022-02-11 20:37:52 +00:00
Alexandre Poirot 47c427b0fd Bug 1517383 - [devtools] Avoid exceptions while running changes sidebar tests. r=nchevobbe
We were trying to process style actor that did not relate to any stylesheet.
This ended up trying to create stylesheet resources with no stylesheet object,
and various exception because of that.

Differential Revision: https://phabricator.services.mozilla.com/D138328
2022-02-11 20:37:52 +00:00
Alexandre Poirot 31de87bdc6 Bug 1517383 - [devtools] Remove the history middleware. r=nchevobbe
This history middleware is bad as it forces leaking all action until firefox is closed.
This doesn't seem to be enough to reduce the runtime of browser_toolbox_hosts.js,
but this may help free more objects in test and reduce intermittent and timeouts.

I suspect that there is some other leaks happening in this toolbox host test.

Differential Revision: https://phabricator.services.mozilla.com/D138297
2022-02-11 20:37:52 +00:00
Hubert Boma Manilla 3e28857636 Bug 1753926 - [devtools] Improve the breakpoints reloading test r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D136737
2022-02-11 17:19:56 +00:00
Jan Odvarko 340fc67179 Bug 1753614 - [devtools] Rename mdn-utils file r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138410
2022-02-11 17:18:41 +00:00
Claudia 8ceed704c6 Bug 1745415 - [devtools] Makes the New Custom Request Panel the default in Nightly r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137868
2022-02-11 09:51:01 +00:00
Nicolas Chevobbe 98fbe382c9 Bug 1754453 - [devtools] Early exit getWarningGroupType when message can't be in a warningGroup. r=dthayer.
If the message isn't a warning or an info, it can't
be in a warningGroup, so we can exit the function
earlier and avoid useless checks.

Differential Revision: https://phabricator.services.mozilla.com/D138299
2022-02-11 06:06:19 +00:00
Hubert Boma Manilla 67566267d9 Bug 1753626 - [devtools] Repurpose browser_dbg-reload.js to test breakpoints on reload when source content changes r=ochameau
This repurposes browser_dbg-reload.js which tested breakpoints resync after reload when the source
content changes.
This renamed test (browser_dbg-breakpoints-reloading-with-source-changes.js) covers the expected behaviour after breakpoint shifting is removed.

The sceanarios covered are :-

- When new content is added and the breakpoint points to a different source code
- When the content changes and the breakpoint is on a non-breakable line
- When the content changes and the line for the breakpoint has been removed.

Currently we use IS_BREAKPOINT_SHIFTING_ENABLED to make the test pass with all the issues.

Also removing old example files that are no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D136720
2022-02-11 06:00:32 +00:00
nchevobbe 08b16c6113 Bug 1754477 - [devtools] Clear Workers console message cache in WebConsoleActor#clearMessagesCache. r=ochameau.
With Bug 1674336 fixed, we can properly clear worker messages.
A test is added to check this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D138315
2022-02-10 17:16:24 +00:00
Alexandre Poirot cf46b070ec Bug 1754189 - [devtools] Migrate browser_dbg-sourcemaps-reload.js to use the shared source map test. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D138138
2022-02-10 14:30:27 +00:00
Iulian Moraru 19da6bccd0 Backed out 3 changesets (bug 1517383) for causing multiple xpcshell failures. CLOSED TREE
Backed out changeset dabb45fc61d2 (bug 1517383)
Backed out changeset ee82d562286b (bug 1517383)
Backed out changeset ce2c2450ad04 (bug 1517383)
2022-02-10 14:09:25 +02:00
Iulian Moraru 2fb7711a91 Backed out 2 changesets (bug 1754477, bug 1674336) for causing devtools failures on browser_webconsole_console_logging_workers_api.js.
Backed out changeset c3fd724b3ba9 (bug 1754477)
Backed out changeset f7ad3ba32926 (bug 1674336)
2022-02-10 14:07:51 +02:00
Alexandre Poirot 127bc1d97e Bug 1517383 - [devtools] Request a longer timeout for browser_toolbox_hosts.js. r=nchevobbe
Opening and closing toolbox allocate lots of objects
and the GC pauses between each task takes some time.
In addition to that, there is some leaked memory, which slow things down.
So that the test takes too much time to run on DEBUG builds.

Differential Revision: https://phabricator.services.mozilla.com/D138298
2022-02-10 11:30:16 +00:00
Alexandre Poirot 6e0a591871 Bug 1517383 - [devtools] Avoid exceptions while running changes sidebar tests. r=nchevobbe
We were trying to process style actor that did not relate to any stylesheet.
This ended up trying to create stylesheet resources with no stylesheet object,
and various exception because of that.

Differential Revision: https://phabricator.services.mozilla.com/D138328
2022-02-10 11:30:16 +00:00
Alexandre Poirot 9b1bdd507e Bug 1517383 - [devtools] Remove the history middleware. r=nchevobbe
This history middleware is bad as it forces leaking all action until firefox is closed.
This doesn't seem to be enough to reduce the runtime of browser_toolbox_hosts.js,
but this may help free more objects in test and reduce intermittent and timeouts.

I suspect that there is some other leaks happening in this toolbox host test.

Differential Revision: https://phabricator.services.mozilla.com/D138297
2022-02-10 11:30:15 +00:00
nchevobbe 024839e002 Bug 1754477 - [devtools] Clear Workers console message cache in WebConsoleActor#clearMessagesCache. r=ochameau.
With Bug 1674336 fixed, we can properly clear worker messages.
A test is added to check this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D138315
2022-02-10 10:45:03 +00:00
Julian Descottes 34ef2c6677 Bug 1752843 - [devtools] Wait for toolbox panels reload and properly close tabs r=Honza
After fixing the initial failing test by both waiting for DevTools reload propertly and closing all debug tabs, the following test started failing.
Waiting for DevTools to properly update in this test seems to fix the intermittent(s?).

Differential Revision: https://phabricator.services.mozilla.com/D138010
2022-02-10 09:12:46 +00:00
Nicolas Chevobbe 4300b1ee8f Bug 1754142 - [devtools] Prevent layout shifting when filtered messages count updates. r=jdescottes.
Using font-variant-numeric: tabular-nums is enough to make
the layout more stable.

Differential Revision: https://phabricator.services.mozilla.com/D138116
2022-02-10 08:18:38 +00:00
Nika Layzell dabb46c84d Bug 1736371 - Default new actors to be refcounted, r=alwu,media-playback-reviewers,mccr8
The changes to ipdl actors were mechanical, and largely automated using
a script.

Differential Revision: https://phabricator.services.mozilla.com/D137237
2022-02-09 17:29:47 +00:00
Hubert Boma Manilla 5d54d1d30b Bug 1753594 - [devtools] Improve the add breakpoints in pretty printed sources test r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D137835
2022-02-09 16:04:44 +00:00
Jan Odvarko f5670ffaf1 Bug 1754397 - [devtools] Remove MDN links from the Network Monitor source r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D138259
2022-02-09 15:52:08 +00:00
Nicolas Chevobbe 6d56ea6fa9 Bug 1678645 - [devtools] Fix devtools/client/shared/test/browser_filter-editor-* intermittent. r=Honza.
Destroy created widget at the end of tests.

Differential Revision: https://phabricator.services.mozilla.com/D138158
2022-02-09 12:53:16 +00:00
Julien Wajsberg cfce22c3c8 Bug 1754195 - [profiler] Use the active tab view in nightly only r=canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D138163
2022-02-09 11:15:58 +00:00
Emilio Cobos Álvarez 4a152fdf3e Bug 1746248 - Style system and plumbing for mix-blend-mode: plus-lighter. r=jrmuizel,layout-reviewers,boris
Differential Revision: https://phabricator.services.mozilla.com/D137951
2022-02-09 03:15:52 +00:00
Hubert Boma Manilla e8424ded4d Bug 1753594 - [devtools] Improve removing breakpoints in pretty-printed files test r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D137743
2022-02-08 21:42:44 +00:00
Sai Hemanth B 61490f9305 Bug 1639179 - Add different preferences for 3 and 2-pane default tabs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137375
2022-02-08 15:04:09 +00:00
Nicolas Chevobbe 23e53df170 Bug 1753985- [devtools] Remove unused immutable reference. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D138014
2022-02-08 12:31:26 +00:00
Nicolas Chevobbe 5c95fb55d5 Bug 1643797 - [devtools] Improve Console message repeat performance. r=dthayer.
Differential Revision: https://phabricator.services.mozilla.com/D138013
2022-02-08 08:44:06 +00:00
Nicolas Chevobbe b49f881ab4 Bug 1753942 - [devtools] Check isNewMessageEvaluationResult through visibleMessages.r=dthayer.
We're checking if the last message is the result of an evaluation in `ConsoleOutput`
so we can scroll to the bottom.
But in order to do that, we're turning the messages map into an array, only to get
its last element, which was showing up in profiles.
We can retrieve the last added message id through `visibleMessages` as evaluation
and their results are never filtered.

Differential Revision: https://phabricator.services.mozilla.com/D137987
2022-02-08 06:16:56 +00:00
Nicolas Chevobbe b84cd06fc9 Bug 1753942 - [devtools] Remove MessageContainer defaultProps. r=dthayer.
The getter was showing up in a profile although it doesn't bring any value and
can safely be removed.

Differential Revision: https://phabricator.services.mozilla.com/D137986
2022-02-08 06:16:56 +00:00
Mark Banner 347f758519 Bug 1753652 - Change CommandBarButton tests to use debugButton as a simple function rather than a jsx element. r=nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D137871
2022-02-07 17:28:47 +00:00
Alexandre Poirot 78f1dd8fe4 Bug 1752160 - [devtools] Stop memoizing per source actor breakable columns. r=bomsy
This `_setBreakpointPositions` method is called from `setBreakpointPositions`, which is already memoized.
`ADD_BREAKPOINT_POSITIONS` will store in sources.js reducer the final breakable columns per source instead of per source actor,
and `getBreakpointPositionsForSource` is there to retrieve this cached data.

No other code rely to per source actor breakable columns.

Differential Revision: https://phabricator.services.mozilla.com/D137285
2022-02-07 17:04:33 +00:00
Jan Odvarko 6da05abb10 Bug 1753426 - [devtools] Fix documentation links in the source code r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137748
2022-02-07 13:08:10 +00:00
Hubert Boma Manilla 9b7023d61f Bug 1753159 - [devtools] Fix intermittent caused by not waiting for the source r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D137978
2022-02-07 11:48:33 +00:00
Hikota Nakatani 2d9e31bf06 Bug 1751626 - Fix the color of selected item r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137926
2022-02-05 09:29:44 +00:00
Claudia 38636e81ce Bug 1745412 - [devtools] Allows user to disable existing HTTP Headers and the params in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137685
2022-02-04 17:45:10 +00:00
Claudia f3d314c604 Bug 1745413 - [devtools] Allows user to see a list of (read only) headers in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137684
2022-02-04 17:45:10 +00:00
Claudia ebf7c00a00 Bug 1745408 - [devtools] Allows user to edit/add/remove URL parameters in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137306
2022-02-04 17:45:09 +00:00
Claudia c3213e0dad Bug 1745409 - [devtools] Allows user to edit/add/remove HTTP Headers in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D137287
2022-02-04 17:45:09 +00:00
Jan Odvarko fb670e2709 Bug 1744752 - [devtools] Browser Toolbox documentation link should be fixed r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137749
2022-02-04 13:20:42 +00:00
Norisz Fay f20c5c07db Backed out changeset 3e8efb4985f7 (bug 1753426) for causing multiple devtools failures 2022-02-04 16:17:25 +02:00
Jan Odvarko 0d6fafe87e Bug 1753426 - [devtools] Fix documentation links in the source code r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137748
2022-02-04 11:40:50 +00:00
Marian-Vasile Laza d4e226ac2b Backed out changeset b0f8e402178c (bug 1753413) for causing perfdocs lint failures. CLOSED TREE 2022-02-03 21:36:02 +02:00
Sylvestre Ledru a6fa94d220 Bug 1753413 - lint fix r=fix CLOSED TREE 2022-02-03 21:09:57 +02:00
Sylvestre Ledru caaedeee98 Bug 1753413 - fx doc: Remove whitespaces, trailing lines & windows CR r=andi,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D137741
2022-02-03 18:34:58 +00:00
Nicolas Chevobbe 319761998f Bug 1752342 - [devtools] Fix isFrameWithChildTarget for iframe blocked by CSP. r=jdescottes.
The function was returning true as long as the passed element
was an iframe and EFT was enabled.
But if the passed iframe was blocked by a CSP rule, it would
still return true, although we wouldn't actually have a dedicated
document, nor a target, for that iframe, which would lead to
issues in the inspector when trying to fetch the iframe children.
We fix this by adding a new `isFrameBlockedByCSP` util, which  uses
`nsIContentPolicy#shouldLoad` with the iframe url so we can check if the iframe
is blocked by CSP, and in such case, return false.
We're also using this new function in the `NodeActor#form` method to set a `numChildren`
of `0` when the iframe is blocked (so in the inspector, the expand icon will be
hidden for the element), as well as in `WalkerActor#_getChildren` to return an
empty array when called with an iframe blocked by CSP.

A new test is added to check the iframe nodeFront properties and usage of
`WalkerFront#children` with those. We allow to set a specific pref to bypass
the guard in the children method in order to properly check that the root issue
of a given bug was fixed.

Differential Revision: https://phabricator.services.mozilla.com/D137667
2022-02-03 17:48:32 +00:00
Julian Descottes b5d88e3cb3 Bug 1752796 - [devtools] Fix image links in devtools/docs/user/page_inspector/ui_tour/index.rst r=Honza
Missing semicolon in some image links

Differential Revision: https://phabricator.services.mozilla.com/D137403
2022-02-03 15:55:03 +00:00
angelina 458f2e55fe Bug 1656852 click on a link in Network Headers Panel r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D129426
2022-02-03 12:19:48 +00:00
Nicolas Chevobbe 25f744e03a Bug 1750273 - [devtools] Fix intermittent failures in browser_jsterm_evaluation_context_selector_targets_update.js. r=bomsy.
Wait for "host-changed" events in the test so things are settled when the
toolbox gets destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D137669
2022-02-03 06:15:13 +00:00
Hubert Boma Manilla 586dd7d714 Bug 1751677 - [devtools] Refactor duplicate functions tests to assert pausing r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D137179
2022-02-02 15:33:19 +00:00
Hubert Boma Manilla 80a936f31b Bug 1751677 - [devtools] Cleanup tests to use shared clickGutter function r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D137138
2022-02-02 08:27:43 +00:00
Julian Descottes 7459563bc9 Bug 1753164 - [devtools] Fix clipping in IE icon r=nchevobbe
Depends on D137603

Differential Revision: https://phabricator.services.mozilla.com/D137604
2022-02-02 07:44:04 +00:00
Julian Descottes f5cb79e8ea Bug 1753164 - [devtools] Update Firefox icon in compatibility panel r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D137603
2022-02-02 07:44:04 +00:00
Nicolas Chevobbe 4f5f778ea4 Bug 1753029 - [devtools] Add safe guard to avoid reparenting iframe nodeFront with wrong target. r=jdescottes.
This can be seen as a hot fix for Bug 1752342. Here we're not fixing the
root cause of the issue, but rather adding a protection mecanism so we don't
completely crash/freeze the inspector/the browser.
A follow-up bug will take care of Bug 1752342.

Differential Revision: https://phabricator.services.mozilla.com/D137450
2022-02-02 06:14:46 +00:00
Nicolas Chevobbe 6334321853 Bug 1753041 - [devtools] Remove devtools/shared/compatibility/yarn.lock. r=daisuke.
The README is updated so we don't add it back.

Differential Revision: https://phabricator.services.mozilla.com/D137533
2022-02-02 06:06:50 +00:00
Hubert Boma Manilla e2e48a7ee4 Bug 1752737 - [devtools] Wait for original.js to be available before assertion r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D137511
2022-02-01 16:35:23 +00:00
Nicolas Chevobbe 4720422807 Bug 1752660 - [devtools] Fix erroneous layer information on imported stylesheets. r=jdescottes.
Check if ownerRule.layerName is null, rather than checking
the property exists.
A test case is added in browser_rules_layer.js.

Differential Revision: https://phabricator.services.mozilla.com/D137447
2022-02-01 06:31:10 +00:00
Joel Maher 2bc7f27716 Bug 1750834 - Enable devtools on fission everywhere. r=mccr8,releng-reviewers,gbrown
Differential Revision: https://phabricator.services.mozilla.com/D136533
2022-01-31 18:09:41 +00:00
Julian Descottes 8370a28bb9 Bug 1742436 - [devtools] Use private fields in client node-picker r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D131270
2022-01-31 17:03:55 +00:00
Nicolas Chevobbe daa2e7c639 Bug 1750911 - [devtools] Reduce confusion around displayed browser icons in compatibility panel. r=jdescottes,fluent-reviewers,flod.
In order to make it more clear what the browser icons mean in the compatibility
panel, we move the title attribute that was set on individual browser icon to
the browser icon list instead, in which we put the full list of unsupported
browser (with their name and version), prefixed with a "Compatibility issues in:"
label.

Differential Revision: https://phabricator.services.mozilla.com/D137004
2022-01-31 14:22:04 +00:00
Julian Descottes 6cd5358827 Bug 1752546 - [devtools] Update about:debugging tab list when a page navigates in the connected runtime r=bomsy
About:debugging seems to be the only consumer of the tabListChanged event at this point.
One of the internal events used by about:debugging was not properly handled. Added a minor fix to change that and added a new mochitest for about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D137293
2022-01-31 12:58:25 +00:00
Julian Descottes 5c16e42779 Bug 1743618 - [devtools] Update links in release tasks page to show up as actual links r=Honza
Depends on D137282

Not sure if this regressed after a sphinx update, but the links are not clickable at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D137283
2022-01-31 12:32:33 +00:00
Julian Descottes 0f17c8c689 Bug 1743618 - [devtools] Fix link to service worker test page in release tasks docs r=Honza
This link has not been working for a while, switching to an MDN example page.
We should still come up with example pages hosted on a domain owned by devtools team if possible
(and not on the personal github account of a team member :) )

Depends on D137141

Differential Revision: https://phabricator.services.mozilla.com/D137282
2022-01-31 12:32:33 +00:00
Nicolas Chevobbe 3fc9c13854 Bug 1747410 - [devtools] Fix intermittent in browser_storage_cookies_navigation.js . r=jdescottes.
Guard `Toolbox#updateFrameButton` with `isDestroying` so the call to `this.target`
later in `_commandIsVisible` doesn't throw because `this.commands` is null.

Differential Revision: https://phabricator.services.mozilla.com/D136713
2022-01-31 06:02:19 +00:00
Andreea Pavel 80dc3acfcc Bug 1744778 - format indentation in disabling condition DONTBUILD 2022-01-30 15:10:39 +02:00
Andreea Pavel 13694a7cf7 Bug 1744565 - disable browser_resources_sources.js on linux64 and win10_2004 opt r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137390
2022-01-30 12:02:50 +00:00
Alexandre Poirot e75e22366c Bug 1752535 - [devtools] Extend the coverage of breakable lines in the source editor. r=bomsy
This patch introduce a new test helper to more easily test a page that reloads with an updated content.
This especially take care of source map support.

Differential Revision: https://phabricator.services.mozilla.com/D137162
2022-01-30 09:04:27 +00:00
Alexandre Poirot fff697ff74 Bug 1751203 - [devtools] Drop WebExtensionTargetActor.allowSource. r=jdescottes
As we are already filtering the JS Globals via _shouldAddNewGlobalAsDebuggee,
there is no need to filter out the JS Sources.
We do want all the sources for all the WebExtension globals.

Differential Revision: https://phabricator.services.mozilla.com/D136507
2022-01-28 13:54:27 +00:00
Sebastian Zartner 35d420e4f5 Bug 1746831 - Added option to the Settings panel for toggling custom formatters. r=nchevobbe,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D136781
2022-01-28 12:40:30 +00:00
Daisuke Akatsuka 97081774ea Bug 1752491: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D137260
2022-01-28 09:37:00 +00:00
Jan Odvarko 82482e661f Bug 1752319 - [devtools] Fix MDN links in DevTools contributor docs r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D137141
2022-01-28 09:02:26 +00:00
Nicolas Chevobbe ce4db50d26 Bug 1752313 - [devtools] Remove unused StyleRuleFront#parentRule. r=jdescottes.
This was only used in a chrome test, so we can remove the front getter,
as well as the property on the actor form.

Differential Revision: https://phabricator.services.mozilla.com/D137137
2022-01-28 07:15:12 +00:00
Nicolas Chevobbe fb87cbbfc6 Bug 1752262 - [devtools] Check media query element in rule view in simulation test. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D137108
2022-01-28 07:15:11 +00:00
Nicolas Chevobbe d6056f777a Bug 1751417 - [devtools] Rule view filtering should handle ancestor rules data. r=jdescottes.
This ensures @media and @layer information can be searched for and properly highlighted
in the rule view.
A test is added to check various cases.

Differential Revision: https://phabricator.services.mozilla.com/D137107
2022-01-28 07:15:11 +00:00
Nicolas Chevobbe 3d387c3710 Bug 1751417 - [devtools] Display all ancestor media queries and layers in rule view. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D136882
2022-01-28 07:15:11 +00:00
Nicolas Chevobbe 1305423dd5 Bug 1752257 - [devtools] Remove unused Rule#sourceLink. r=jdescottes.
This allows us to get rid of `_getSourceText` that was only called from `sourceLink`.

Differential Revision: https://phabricator.services.mozilla.com/D137106
2022-01-27 16:27:39 +00:00
Nicolas Chevobbe a67545b68c Bug 1752255 - [devtools] Remove unused StyleRuleFront#getOriginalLocation. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D137105
2022-01-27 16:27:39 +00:00
Alexandre Poirot 1d5e55cb27 Bug 1750952 - [devtools] Stop exposing all reducers from selectors. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136892
2022-01-27 16:19:16 +00:00
Alexandre Poirot 04e9956947 Bug 1750952 - [devtools] Migrate all expressions selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136891
2022-01-27 16:19:16 +00:00
Alexandre Poirot 5ce285893a Bug 1751933 - [devtools] Migrate all source-actors selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136890
2022-01-27 16:19:15 +00:00
Alexandre Poirot 37e5aa3408 Bug 1751933 - [devtools] Migrate all sources selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136889
2022-01-27 16:19:14 +00:00
Alexandre Poirot f35a4627a4 Bug 1751932 - [devtools] Migrate all pause selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136888
2022-01-27 16:19:14 +00:00
Alexandre Poirot 84e2217080 Bug 1751926 - [devtools] Migrate all pending-breakpoints selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136887
2022-01-27 16:19:14 +00:00
Alexandre Poirot d4e38bcb1c Bug 1751926 - [devtools] Migrate all breakpoints selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136886
2022-01-27 16:19:13 +00:00
Nicolas Chevobbe 453c3d2ade Bug 1646113 - [devtools] Add IE to compatibility panel browser list. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D137146
2022-01-27 15:55:29 +00:00
Norisz Fay c1beee2e91 Bug 1744778 - disable browser_aboutdebugging_addons_debug_popup.js on Win10_2004 64 bits for frequent failures. r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D137037
2022-01-27 13:40:52 +00:00
Claudia 50fa24f109 Bug 1745410 - [devtools] Allows user to edit the request body (POST body) in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136633
2022-01-27 10:07:21 +00:00
Claudia 015a4e298b Bug 1745395 - [devtools] Makes URL input into a multi-line text area in New Custom Request Panel r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136478
2022-01-27 10:07:21 +00:00
Alexandre Poirot bea7ff1402 Bug 1751851 - [devtools] Migrate all ui selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136862
2022-01-27 08:31:42 +00:00
Alexandre Poirot 47cee65f87 Bug 1751851 - [devtools] Migrate all source-tree selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136861
2022-01-27 08:31:42 +00:00
Alexandre Poirot 703b5c1d33 Bug 1751851 - [devtools] Migrate all quick-open selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136860
2022-01-27 08:31:41 +00:00
Alexandre Poirot 18174d4f0c Bug 1751851 - [devtools] Migrate all project-text-search selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136859
2022-01-27 08:31:41 +00:00
Alexandre Poirot 1cf1c87327 Bug 1751851 - [devtools] Migrate all preview selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136858
2022-01-27 08:31:41 +00:00
Alexandre Poirot 05a36f0d48 Bug 1751851 - [devtools] Migrate all file-search selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136857
2022-01-27 08:31:40 +00:00
Alexandre Poirot 1801acf3d0 Bug 1751851 - [devtools] Migrate all exceptions selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136856
2022-01-27 08:31:40 +00:00
Alexandre Poirot d922ca4ee4 Bug 1751851 - [devtools] Migrate all event-listeners selectors to a selector module. r=bomsy
I'm also sorting the import from index.js in order to help the maintenance of this list.

Differential Revision: https://phabricator.services.mozilla.com/D136855
2022-01-27 08:31:39 +00:00
Alexandre Poirot b44cd5b678 Bug 1751851 - [devtools] Migrate all ast selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136854
2022-01-27 08:31:39 +00:00
Alexandre Poirot f92cb088f2 Bug 1751851 - [devtools] Remove unused getFramework selector. r=bomsy
Only this jest test was using it.

The react component is using this one instead:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/actions/sources/symbols.js#26-28
which depends on tabs reducer's framework attribute, which uses the ast's getSymbols selector:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/components/shared/SourceIcon.js#44
https://searchfox.org/mozilla-central/source/devtools/client/debugger/src/utils/tabs.js#35-38

Differential Revision: https://phabricator.services.mozilla.com/D136853
2022-01-27 08:31:39 +00:00
Julien Wajsberg c68e923e27 Bug 1639716 - [devtools performance] Capture profiles only in non-private windows r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129518
2022-01-26 17:26:23 +00:00
Julien Wajsberg 66e3718376 Bug 1639716 - [devtools performance] Change a few test helpers so that the window can be specified r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134338
2022-01-26 17:26:23 +00:00
Julien Wajsberg 900b1c7aeb Bug 1639716 - [devtools performance] Cleanup: pass the openAboutProfiling function from panel.js for more simplicity r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129421
2022-01-26 17:26:22 +00:00
Julien Wajsberg 44769eadc9 Bug 1639716 - [devtools performance] Remove all actor code related to the profiler locking mechanism by private browsing r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129420
2022-01-26 17:26:22 +00:00
Julien Wajsberg c579c9f617 Bug 1639716 - [devtools performance] Use the traits to control the call to the removed functionality r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129419
2022-01-26 17:26:21 +00:00
Julien Wajsberg 58c4dd6381 Bug 1639716 - [devtools performance] Add a property to the root actor's traits and pass all traits to the gInit function r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129418
2022-01-26 17:26:21 +00:00
Julien Wajsberg ff988ebecd Bug 1639716 - [profiler] Remove the profiler disabling by private browsing r=jdescottes,gerald,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D129417
2022-01-26 17:26:21 +00:00
Nicolas Chevobbe 8d7ccd7eda Bug 1731612 - [devtools] Display layer name in the rule view. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D136620
2022-01-26 13:01:47 +00:00
Nicolas Chevobbe c72e9161e6 Bug 1751899 - [devtools] Remove compatibility panel Feedback button. r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D136996
2022-01-26 12:46:44 +00:00
Benjamin VanderSloot f13ae1008d Bug 1750000 - Make tests in devtools/client/test/ dFPI compatible, r=jdescottes,anti-tracking-reviewers,timhuang
We are fixing mochitests that fail when network.cookie.cookieBehavior = 5, i.e. when we enable Total Cookie Protection.
This is most often due to the test assuming that an origin will always have access to its storage state when embedded as
a third party.

My approach: Add third-party storage permission for the net domain when included on the com domain.
This allows the cache for the net domain to be shared in the way that this test is expecting.

Differential Revision: https://phabricator.services.mozilla.com/D136601
2022-01-25 12:08:25 +00:00
Nicolas Chevobbe 8aa8d1be36 Bug 1685187 - [devtools] Fix browser_resources_document_events.js intermittent. r=ochameau.
The test was failing in some case because interactiveEvent and completeEvent had
the same timestamp (which is still valid).
The test is modified to check greater or equal instead of strict greater.
Note that this test still has intermittent around willNavigateEvent and
loadingEvent (see https://searchfox.org/mozilla-central/rev/a2c26b9b49a521f4be39559ca1ca9c345a237c70/devtools/server/actors/webconsole/listeners/document-events.js#11-34)

Differential Revision: https://phabricator.services.mozilla.com/D136839
2022-01-25 08:18:17 +00:00
Hubert Boma Manilla bc42c77238 Bug 1748621 - [devtools] Add tests for blackboxing a source r=nchevobbe
The tests covers most of the blackbox functionality
Notably it covers issues fixed in D135393 and D135614

Differential Revision: https://phabricator.services.mozilla.com/D135496
2022-01-25 08:12:00 +00:00
Randell Jesup acfbcd62fe Bug 1747261: enable ServiceWorker process-isolation for all domains r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D134505
2022-01-24 19:38:01 +00:00
Nicolas Chevobbe a039ea5752 Bug 1747195 - [devtools] Put rule media query above the selector. r=jdescottes.
This is preliminary work before showing the @layer information above the rule view as well.

Differential Revision: https://phabricator.services.mozilla.com/D136619
2022-01-24 16:36:35 +00:00
Nicolas Chevobbe 352cbd5a78 Bug 1749551 - [devtools] In event-collector, only hide jump to debugger button when no source actor were created. r=ochameau.
We don't need to have specific check for dom0 event listeners as the debugger
button should be show as long as we managed to create a source actor.
We can remove usage of `script.source.element` alltogether as we don't need
it for not showing the line number in the location (the line is 0 in such case,
and we already discriminate for such value).

A test case is added to ensure that the debugger can be opened from the
event tooltip on a dom0 event.

Differential Revision: https://phabricator.services.mozilla.com/D136461
2022-01-24 12:54:05 +00:00
Alexandre Poirot 748da20408 Bug 1751235 - [devtools] Fix isPopup flag for iframes loaded via window.open(url, "iframe-name"). r=nchevobbe
This flag should really only be true for document loaded in distinct tabs.

Differential Revision: https://phabricator.services.mozilla.com/D136505
2022-01-24 10:16:04 +00:00
Alexandre Poirot 6abf4cdc59 Bug 1751207 - [devtools] Allow debugging popups when a toolbox is opened for its opener tab. r=nchevobbe
This is only an issue when devtools.popups.debug is false,
when it is true, the toolbox is move and a warning message is printed
if we request to open a new toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D136498
2022-01-24 10:16:04 +00:00
Julian Descottes 2f5682b0df Bug 1751214 - [devtools] Bypass cache in browser_resources_network_events_parent_process.js for test-verify r=ochameau
depends on D136705

Differential Revision: https://phabricator.services.mozilla.com/D136707
2022-01-24 09:27:03 +00:00
Julian Descottes 4876669254 Bug 1751480 - [devtools] Update line:column asserts in browser_resources_network_events_parent_process.js to be more explicit r=ochameau
Depends on D136703

Differential Revision: https://phabricator.services.mozilla.com/D136705
2022-01-24 09:27:03 +00:00
Julian Descottes d0a70b106a Bug 1751480 - [devtools] Force devtools.browsertoolbox.fission in browser_resources_network_events_parent_process.js r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D136703
2022-01-24 09:27:02 +00:00
Sai Hemanth B 5993bb3819 Bug 1748805 - Add setOverflowHighlight method to ReadOnlyEditor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D136688
2022-01-24 07:15:51 +00:00
Butkovits Atila 5ad2b9480a Merge autoland to mozilla-central. a=merge 2022-01-22 23:47:38 +02:00
Steve Fink 2984f44b93 Bug 1746090 - Switch RootList::init from taking an AutoCheckCannotGC token to returning one r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D135297
2022-01-22 01:34:45 +00:00
Alexandre Poirot d3c1ec720d Bug 1751032 - [devtools] Migrate all tabs selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136399
2022-01-21 16:01:01 +00:00
Alexandre Poirot 6688d3c8fb Bug 1751031 - [devtools] Migrate all thread selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136398
2022-01-21 16:01:00 +00:00
Julian Descottes dabf47a8db Bug 1636262 - [devtools] Update Edge browser icon for the compatibility panel r=nchevobbe
The SVG was created from scratch, so no issue with licensing hopefully

Differential Revision: https://phabricator.services.mozilla.com/D136595
2022-01-21 13:18:15 +00:00
Nicolas Chevobbe 161c5b7679 Bug 1669968 - [devtools] Remove lodash from tree.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136173
2022-01-21 12:48:22 +00:00
Nicolas Chevobbe e66b0059a3 Bug 1737978 - [devtools] Remove lodash memoize usage. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136172
2022-01-21 12:48:22 +00:00
Claudia 6748189c7e Bug 1745411 - [devtools] - Allows user to clear the content of the New Custom Request Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136162
2022-01-21 12:23:41 +00:00
Claudia 840135fa1c Bug 1745396 - [devtools] Create a drop down list to HTTP Method in New Custom Request Panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136025
2022-01-21 12:23:41 +00:00
Noemi Erli 3da595ab6f Backed out 10 changesets (bug 1746090) for causing failures in HeapSnapshot.cpp CLOSED TREE
Backed out changeset 132c6be41ec2 (bug 1746090)
Backed out changeset aea63ceb5ff5 (bug 1746090)
Backed out changeset 42586bdfd56f (bug 1746090)
Backed out changeset 86dfecd590e8 (bug 1746090)
Backed out changeset 92a55bc8c1c8 (bug 1746090)
Backed out changeset 3a282a6b5f65 (bug 1746090)
Backed out changeset fe5ac63668b4 (bug 1746090)
Backed out changeset a0b1735ffffd (bug 1746090)
Backed out changeset 2f7a62b93266 (bug 1746090)
Backed out changeset b9b4558c03dc (bug 1746090)
2022-01-21 02:58:48 +02:00
Steve Fink fb8fc947c7 Bug 1746090 - Switch RootList::init from taking an AutoCheckCannotGC token to returning one r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D135297
2022-01-20 23:40:29 +00:00
Alexandre Poirot d11e2bcabb Bug 1747371 - [devtools] Set the session context for the parent process target. r=nchevobbe
We were missing cached image request and probably CSP blocked request
from the parent process because of this.
We are spawning a NetworkEventContentWatcher for the parent process target.
That's semi-intentional. This might better be done via a parent process resource type,
like NETWORK_EVENT. But the current Resource framework doesn't allow to do that easily.

So that we currently spawn the NetworkEventContentWatcher (and NetworkEventStackTraceWatcher)
against the parent process target actor as a "FRAME" resource type.
This is handy as we need at least one of these two watchers for the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D136325
2022-01-20 13:20:33 +00:00
olaoluwa 994590ea3f Bug 1711396- updating grid-gap to make it detectable by the css inspector and adding gap.js test. r=Oriol,devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128666
2022-01-20 08:45:53 +00:00
Nicolas Chevobbe 1937921909 Bug 1737977 - [devtools] Remove lodash isEqual usage. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136171
2022-01-20 07:21:11 +00:00
Nicolas Chevobbe 258b5b15d1 Bug 1737976 - [devtools] Remove lodash isEmpty usage. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136169
2022-01-20 07:21:10 +00:00
Nicolas Chevobbe 7032fd4fcc Bug 1737974 - [devtools] Remove lodash has usage. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D136167
2022-01-20 07:21:10 +00:00
Nicolas Chevobbe 95d313e862 Bug 1750514 - [devtools] Remove lodash-move. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D136166
2022-01-20 07:21:09 +00:00
Nicolas Chevobbe 49d84414bf Bug 1750505 - [devtools] Remove lodash uniqBy usage. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D136165
2022-01-20 07:21:09 +00:00
Nicolas Chevobbe c00196fd3f Bug 1737980 - [devtools] Remove lodash omit usage. r=bomsy.
It was only used in storeExpressions, where we can replace it by storing only the input property
instead of removing the value property from the object we store.

Differential Revision: https://phabricator.services.mozilla.com/D136164
2022-01-20 07:21:09 +00:00
Marian-Vasile Laza 5e48e30b98 Backed out 10 changesets (bug 1746090) for causing build bustages on TestingFunctions.cpp. CLOSED TREE
Backed out changeset edbf96722e4b (bug 1746090)
Backed out changeset f4e4bf6ba8ff (bug 1746090)
Backed out changeset c288fe1c6c84 (bug 1746090)
Backed out changeset 2b0caa13d0fc (bug 1746090)
Backed out changeset 1ed9d77885c6 (bug 1746090)
Backed out changeset 54a60388fb11 (bug 1746090)
Backed out changeset a9c16e721533 (bug 1746090)
Backed out changeset 774bdb9939a9 (bug 1746090)
Backed out changeset 5c5742535301 (bug 1746090)
Backed out changeset ff509fe4671d (bug 1746090)
2022-01-20 02:39:17 +02:00
Steve Fink aea0c2fa07 Bug 1746090 - Switch RootList::init from taking an AutoCheckCannotGC token to returning one r=jonco
Differential Revision: https://phabricator.services.mozilla.com/D135297
2022-01-20 00:23:10 +00:00
Dana Keeler b543bb3a2a Bug 1750089 - remove weak certificate signature error console message r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D135943
2022-01-19 21:24:47 +00:00
Henrik Skupin 8fae55637f Bug 1750915 - [devtools] Remove backward compatible code for WebExtension targets supporting the watcher. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136348
2022-01-19 19:15:20 +00:00
Henrik Skupin b497281e7f Bug 1750915 - [devtools] Remove backward compatible comment for new "parentInnerWindowId" attribute. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D136347
2022-01-19 19:15:20 +00:00