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

2295 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez b3522226e6 Bug 1738265 - Explicitly close some devtools menus in some tests. r=nchevobbe,devtools-reviewers
With the negative margin, some context menus that remain open start
getting events that would otherwise go to the content underneath
(and which the affected tests need to pass).

Close the context menus explicitly in the affected tests (this is
what would usually happen if a user clicked a context menu item
anyways).

Differential Revision: https://phabricator.services.mozilla.com/D129867
2021-11-02 11:03:51 +00:00
Sebastian Hengst 87ae3310ac Bug 1738449 - Set expected in browser_toolbox_window_reload_target_force.js channel agnostic. r=sefeng
The changes in bug 1468476 dropped the requirement to re-validate subdocuments
but only in Nightly (controlled by the preference
browser.soft_reload.only_force_validate_top_level_document. Outside Nightly the
expected header "max-age=0" has to be kept.

Differential Revision: https://phabricator.services.mozilla.com/D129978
2021-11-01 09:26:17 +00:00
Sean Feng 5283aecc5d Bug 1468476 - Make soft reload only force validates top level document r=necko-reviewers,nika,dragana,asuth
Currently, soft reload uses the `VALIDATE_ALWAYS` flag to not only
force revalidate the top level document, but also subresources.
This causes content to be refetched from the web even if there
are caches that are still valid and can be used.

Chrome already has such behaviour to not revalidate all resources.

Differential Revision: https://phabricator.services.mozilla.com/D122270
2021-10-28 16:11:56 +00:00
Hubert Boma Manilla acb42371b2 Bug 1737255 - [devtools] Remove backward compatibilty code for this.traits r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D129256
2021-10-22 19:41:10 +00:00
Julian Descottes 64526df84a Bug 1735359 - [devtools] Enable DevTools auto theme by default r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D128268
2021-10-21 21:08:24 +00:00
Julian Descottes c5893e82af Bug 1725182 - Ensure remaining tests within devtools/client are https-first compliant r=bomsy
Depends on D128931

One inspector test was missed in a previous bug, as well as all the framework browser-toolbox tests.

Differential Revision: https://phabricator.services.mozilla.com/D128991
2021-10-21 13:58:56 +00:00
Alexandre Poirot 79e4b59343 Bug 1736824 - [devtools] Fix "consoleFront is null" exception when reloading the page. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D129055
2021-10-21 10:21:22 +00:00
Joel Maher fed2831742 Bug 1727943 - turn on mochitest* tests that were skipped on win10-ccov and now pass. r=MasterWayZ
Differential Revision: https://phabricator.services.mozilla.com/D128817
2021-10-19 20:01:29 +00:00
Alexandre Poirot 971e021dba Bug 1717724 - [devtools] Remove attachConsole sequence. r=nchevobbe
This is one step forward removing target attach sequence on the client side.
So that we can notify about target front immediately from TargetCommand.

I had to tweak TargetMixin destroy to avoid failures in browser_dbg_listtabs-01.js
a call to targetFront.reconfigure was never resolving, because the target destroy
was stuck on this call to detach().
We were trying to call detach() while the descriptor was destroyed (from a server side notification).
The target being a child of descriptor it ends up destroy itself, but the request is meant to fail.

Depends on D118585

Differential Revision: https://phabricator.services.mozilla.com/D118586
2021-10-19 12:28:00 +00:00
Alexandre Poirot 876f60dacd Bug 1717724 - [devtools] Listen to inspectObject console actor event directly from the toolbox. r=nchevobbe
This code in TargetMixin was only used the Toolbox.
Let's avoid one unecessary onion layer.

Depends on D118583

Differential Revision: https://phabricator.services.mozilla.com/D118584
2021-10-19 12:27:59 +00:00
Julian Descottes 8130ddcaa7 Bug 1735660 - [devtools] Ensure tests within devtools/client/netmonitor are https-first compliant r=bomsy
A lot of tests need to disable https-first because of the proxy issue.

Differential Revision: https://phabricator.services.mozilla.com/D128640
2021-10-19 06:20:49 +00:00
Evgenia Kotovich 0d0980ee0d Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-18 09:26:33 +00:00
Julian Descottes 0fd5bdd82c Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-18 07:54:45 +00:00
Noemi Erli 2bba3cec69 Backed out changeset 2ab6bb03dcc1 (bug 1576768) for causing failures in test_double_submit.html CLOSED TREE 2021-10-18 02:05:57 +03:00
Andreea Pavel fe44c27442 Bug 1714106 - disable browser_webextension_dropdown.js on linux64 not debug r=intermittent-reviewers,MasterWayZ DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D128689
2021-10-17 16:53:28 +00:00
Evgenia Kotovich 3e3dff109c Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-17 14:59:14 +00:00
Iulian Moraru b3b30b910b Backed out changeset 8d4598bfbe3a (bug 1735358) for causing mochitest failures on browser_toolbox_theme_registration.js. CLOSED TREE 2021-10-16 00:21:51 +03:00
Julian Descottes d1f57ecd6d Bug 1735358 - [devtools] Switch back default theme from auto to light/dark r=nchevobbe
Depends on D128093

We will attempt to re-enable the auto theme by default in Bug 1735359

Differential Revision: https://phabricator.services.mozilla.com/D128239
2021-10-15 20:27:28 +00:00
Alexandru Michis dac6815201 Backed out changeset 7c08aa027893 (bug 1576768) for causing multiple failures.
CLOSED TREE
2021-10-15 16:52:43 +03:00
Evgenia Kotovich a8b32926fa Bug 1576768 - Automatically format .sjs files using prettier. r=Standard8,agi,zombie,extension-reviewers
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D128482
2021-10-15 12:58:11 +00:00
Alexandre Poirot 2d648e16b7 Bug 1735624 - [devtools] Avoid running allocation test on code coverage builds. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128407
2021-10-14 19:32:18 +00:00
Alexandre Poirot cab79b3212 Bug 1539502 - [devtools] Warn when late allocations happen when recording memory leaking. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D127778
2021-10-13 09:17:56 +00:00
Alexandre Poirot 5f31ca0d11 Bug 1539502 - [devtools] Prevent leaking all transient global while recording memory leaks. r=jdescottes
This is two reason for leaking the globals:
* The JIT/CachedIR that are introduced by trackingAllocationSites=true
and can be fixed by calling minimizeMemoryUsage to purge CachedIR objects.
* The Debugger::allocationsLog which relates to Debugger.Memory.drainAllocationLog
and can be fixed by calling drainAllocationLog to clear allocationsLog.
We also have to be careful about disable allocation site recording while doing the GCs.
On start and on stop.

Both were keeping strong references to the globals.

In this patch, I'm also extending the coverage of the AllocationTracker
to better assert what precise leaks are reported.

Differential Revision: https://phabricator.services.mozilla.com/D127777
2021-10-13 09:17:56 +00:00
htmlHxcker 94de76a61a Bug 1709137 - Use Multilocalization Helper for the Toolbox l10n helper r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128204
2021-10-12 16:50:00 +00:00
Nicolas Chevobbe 24b8144fdd Bug 1733421 - [devtools] Fix BrowserToolbox node picker. r=ochameau.
This patch sort of reverts to what existed before Bug 1731996, except
that we still handle hovering on iframe padding.

The "refactoring" that was done in Bug 1731996 made the Browser Toolbox nodePicker
misbehaving.
Unfortunately, it's hard to have a test for the Browser Toolbox nodePicker, as
when we use `BrowserTestUtils.synthesizeMouse` we explicitely pass the window
we want the event to happen in so we don't hit any of the propagation stopper
that might occur when using it manually.

Depends on D127224

Differential Revision: https://phabricator.services.mozilla.com/D127540
2021-10-12 15:36:20 +00:00
Emilio Cobos Álvarez a884350674 Bug 1670480 - Add an "auto" theme for devtools which follows the browser's color scheme. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D128093
2021-10-12 09:25:05 +00:00
Nicolas Chevobbe 425023fc57 Bug 1734785 - [devtools] Remove Promise.jsm usage in toolbox.js. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D127925
2021-10-11 16:30:04 +00:00
Cristian Tuns 5ae1cb8c99 Backed out 5 changesets (bug 1384527, bug 1734786, bug 1734782, bug 1734592, bug 1734785) for causing mochitest failures. CLOSED TREE
Backed out changeset fd5088801f6d (bug 1384527)
Backed out changeset 0752e08d7ec9 (bug 1734786)
Backed out changeset 038d15951e1a (bug 1734782)
Backed out changeset a6a1a9b835f4 (bug 1734785)
Backed out changeset aca421f634ea (bug 1734592)
2021-10-11 11:06:16 -04:00
Nicolas Chevobbe cecbb63684 Bug 1734785 - [devtools] Remove Promise.jsm usage in toolbox.js. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D127925
2021-10-11 14:03:14 +00:00
Julian Descottes 59e4f57a1c Bug 1734177 - [devtools] Ensure tests within devtools/client/framework are https-first compliant r=bomsy
Update all tests failing with https-first enabled

Differential Revision: https://phabricator.services.mozilla.com/D127560
2021-10-07 08:25:20 +00:00
Nicolas Chevobbe 3122576765 Bug 1733523 - [devtools] Handle moving node selection when selected node's target gets destroyed. r=jdescottes.
Toolbox's Selection instance listens for `mutations` walkerFront event in order to detect if the selected node
was removed from the DOM tree, and in such case, emits a `detached-front` event that can be consumed by
the markup view.
But, when an iframe gets removed and EFT (or Fission for a remote iframe) is enabled we don't get the `mutations` event.
To fix this, we add a `onTargetDestroyed` method to `Selection`, that we call from the toolbox.

This fixes the browser_inspector_delete-selected-node-* tests when EFT is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D127224
2021-10-05 09:58:19 +00:00
Michelle Goossens c159e29e05 Bug 1727943 - Part 2: Migrate mochitest, reftest and crashtest Windows 10 ccov suites from AWS to Azure r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D125350
2021-09-28 15:27:39 +00:00
Nicolas Chevobbe 3971522a79 Bug 1732627 - Remove usage of Promise.jsm in toolbox-hosts.js. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D126662
2021-09-28 10:13:58 +00:00
Alexandre Poirot fafbaf95cb Bug 1732120 - [devtools] Remove FrameTargetActor in favor of WindowGlobalTargetActor. r=nchevobbe,devtools-backward-compat-reviewers
This intermediate actor is no longer useful for a while.
(Since we dropped the LocalTabProxy. I think since we introduced the TabDescriptor?)

I updated actor-hierarchy.md significantly as it was quite outdated!
We would probably benefit having a section dedicated to the WatcherActor.

Differential Revision: https://phabricator.services.mozilla.com/D126373
2021-09-27 12:16:12 +00:00
Alexandre Poirot 97cd4b0fcd Bug 1732120 - [devtools] Rename BrowsingContextTargetActor to WindowGlobalTargetActor. r=nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D126367
2021-09-27 12:16:11 +00:00
Jan Odvarko ebc700ddd0 Bug 1731772 - [devtools] Link to the documentation about allocation tests r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D126225
2021-09-27 10:25:33 +00:00
Alexandre Poirot f8ecd0518d Bug 1732254 - [devtools] Record allocation while reloading the test page without devtools opened. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126467
2021-09-27 09:06:28 +00:00
Alexandre Poirot 1d4970d0bc Bug 1732253 - [devtools] Share code for all panel's reload tests. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126466
2021-09-27 09:06:27 +00:00
Alexandre Poirot 8db27bf2d7 Bug 1731530 - [devtools] Implement TrackedObjects.track in the content process. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D126082
2021-09-23 08:45:49 +00:00
Alexandre Poirot 9f31f931ea Bug 1731630 - [devtools] Record leaks when reloading the page for all panels. r=jdescottes
We should probably tweak the test page to include logs and sources...

Differential Revision: https://phabricator.services.mozilla.com/D126112
2021-09-23 07:35:24 +00:00
Nicolas Chevobbe 4cedd06060 Bug 1731764 - [devtools] Rename DevTools fission pref panel into DevToools experimental pref panel. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D126222
2021-09-22 05:08:18 +00:00
Butkovits Atila 4b46b9b45b Backed out 3 changesets (bug 1719939, bug 1726437, bug 1730262) for causing failures on test_browserGlue_migration_ctrltab_recently_used_order.js.
Backed out changeset ea1653e9644f (bug 1719939)
Backed out changeset 01f90db715a7 (bug 1726437)
Backed out changeset c0e23b2acfbb (bug 1730262)
2021-09-21 05:15:31 +03:00
Junjie Ying 9b3839d3ba Bug 1719939 - Remove last fragments of code manually checking the browser.proton.enabled pref. r=mhowell
Differential Revision: https://phabricator.services.mozilla.com/D125345
2021-09-21 00:03:49 +00:00
Alexandre Poirot 21221bbbe0 Bug 1731352 - [devtools] Prevent exception from Toolbox code when closing the toolbox. r=jdescottes
This is similar to bug 1728815, but now the toolbox itself is being destroyed and clears commands.
But we can also check if the related target is destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D126055
2021-09-20 21:13:58 +00:00
Julian Descottes 2ef0665663 Bug 1676427 - [devtools] Remove unused toggleDragging API from toolbox.js r=nchevobbe
Depends on D125939

The custom drag:start and drag:end events are the main implementation difference I found between debugger's splitbox and the shared splitbox.
However I didn't find any usage for the classname it was setting, so I propose to remove it.

I tried to extensively use the splitters and didn't spot any issue.

Differential Revision: https://phabricator.services.mozilla.com/D125940
2021-09-17 15:55:10 +00:00
Alexandre Poirot 357de99729 Bug 1729925 - [devtools] Avoid leaking toolbox's redux store and ultimately targets. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125542
2021-09-16 14:43:46 +00:00
Alexandre Poirot a28cc00244 Bug 1729925 - [devtools] Avoid leaking commands from toolbox. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D125541
2021-09-16 14:43:46 +00:00
Alexandre Poirot 68d00cfd01 Bug 1729925 - [devtools] Avoid leaking commands from NodePicker. r=nchevobbe
Also avoid creating a NodePicker during toolbox's destroy.

Differential Revision: https://phabricator.services.mozilla.com/D125539
2021-09-16 14:43:45 +00:00
Alexandre Poirot 7bdd811f3a Bug 1729925 - [devtools] Ensure clearing references and unmounting all React components. r=nchevobbe
We still do leak Toolbox/Inspector and some Documents.
Unmounting the React components and nullifying references to them
seems to allow clearing a few React component instances.

We weren't unmounting the splitBox/toolsidebar, nor destroying ruleViewSideBar instance.

Differential Revision: https://phabricator.services.mozilla.com/D125536
2021-09-16 14:43:44 +00:00
Alexandre Poirot 22f5501a3f Bug 1729925 - [devtools] Avoid leaking Commands/DevToolsClient/Fronts when closing the toolbox. r=nchevobbe
Currently, we do leak the Toolbox/Inspector and some Documents when
closing the toolbox.
So that these classes are kept in memory, while not nullifying all its references
to client classes.

By adding these few nullications we can at least avoid leaking the fronts and commands.

(also fix a failure due to null markup.walker in browser_rules_add-rule-with-menu.js)

Differential Revision: https://phabricator.services.mozilla.com/D125535
2021-09-16 14:43:44 +00:00