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

25686 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes db1646506f Bug 1796168 - [devtools] Fix storage inspector scroll issue with flexbox r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D159877
2022-10-20 17:09:12 +00:00
Julian Descottes 408c97e28c Bug 1664511 - [devtools] Resolve inline & inherited-inline selectors for rule-editor on demand r=nchevobbe
unique selectors for inline and inherited inline rules will be retrieved on demand.

Differential Revision: https://phabricator.services.mozilla.com/D159721
2022-10-20 16:22:41 +00:00
Florian Quèze baad7da439 Bug 1795047 - Power use feature string should clarify what's available on each platform, r=canaltinova,dlrobertson.
Differential Revision: https://phabricator.services.mozilla.com/D159685
2022-10-20 16:01:51 +00:00
Cristian Tuns 68f6550eb9 Backed out changeset 94963e082433 (bug 1795047) for causing mochitest failures on performance-new/utils.js CLOSED TREE 2022-10-20 10:40:59 -04:00
Florian Quèze d167696f69 Bug 1795047 - Power use feature string should clarify what's available on each platform, r=canaltinova,dlrobertson.
Differential Revision: https://phabricator.services.mozilla.com/D159685
2022-10-20 13:40:33 +00:00
Alexandre Poirot 92e780826d Bug 1794773 - [devtools] gDevTools.showToolbox should wait for toolbox to be "raised". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D159142
2022-10-20 10:10:37 +00:00
Hubert Boma Manilla ea88455c73 Bug 1795595 - [devtools] Add 'Copy as PowerShell' command to request list context menu r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D157711
2022-10-19 19:57:31 +00:00
Alexandre Poirot db00f7fb1e Bug 1792856 - [devtools] Convert leftover dependencies of performance-new to absolute URLs. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158342
2022-10-19 18:16:22 +00:00
Alexandre Poirot 6490d8c632 Bug 1792856 - [devtools] Use absolute URLs to import modules in devtools/client/performance-new. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D158341
2022-10-19 18:16:22 +00:00
nchevobbe bce2a203a8 Bug 1795876 - [devtools] Change toggle selector highlighter icon. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D159686
2022-10-19 15:57:08 +00:00
Emilio Cobos Álvarez e83fac1f59 Bug 1795944 - Remove descriptionheightworkaround. r=Gijs
Stuff wraps properly now with flexbox emulation.

Differential Revision: https://phabricator.services.mozilla.com/D159621
2022-10-19 11:55:29 +00:00
Marian Laza 00f993530e Backed out changeset b7cdb0cf84b6 (bug 1785277) for causing devtools failures on browser_dbg-quick-open.js. CLOSED TREE 2022-10-19 10:43:20 +03:00
Julian Descottes 33a058288a Bug 1553064 - [devtools] Update aboutdebugging base colors based on current common.css r=nchevobbe
Create some css variables matching the ones found in common.css (we cannot import common.css as is, as it brings too many default styles not
scoped to a specific classname etc...).

The main changes should be around the colors of links and of the selected category in the left sidebar

The separator in the sidebar also uses different colors in light/dark theme, mostly to be able to follow the base border color.

Differential Revision: https://phabricator.services.mozilla.com/D159664
2022-10-19 06:47:55 +00:00
Emilio Cobos Álvarez 8efc69073b Bug 1795933 - Remove now unnecessary and broken XUL workaround. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D159612
2022-10-18 20:47:29 +00:00
Mark Banner 2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Mark Banner 69a9e3e717 Bug 1792341 - Migrate most of the rest of toolkit/modules/ to be system ES modules. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158451
2022-10-18 11:21:25 +00:00
Hubert Boma Manilla 6350f564a9 Bug 1785277 - [devtools] Add sourceActorId to location r=ochameau
This patch tries to cover a few things :-

1) The `location` object now also maintains an optional `sourceActorId` property

2) `selectSource` now takes an optional `sourceActor` argument which is used to
   augument the `location` object and passed to `selectLocation` then onto
   `loadSourceText` function to load the specific source text.

3) A new selector `getFirstSourceActorForGeneratedSource` to select the source actor to load the
source text.

4) `LoadSourceText`now always track the selected source actor (which should load the source text)
   each time a location is selected.

Differential Revision: https://phabricator.services.mozilla.com/D155952
2022-10-18 06:58:27 +00:00
Julian Descottes e4d67ccf9d Bug 1795466 - [devtools] Avoid loading the NetworkHelper in jsonview converter-child r=ochameau
Depends on D159219

Differential Revision: https://phabricator.services.mozilla.com/D159456
2022-10-17 19:56:20 +00:00
Julian Descottes 6454ae749e Bug 1788762 - [devtools] Load the NetworkObserver modules in DevToolsLoader if invisibleToDebugger is set r=ochameau
Depends on D156989

Differential Revision: https://phabricator.services.mozilla.com/D159219
2022-10-17 19:56:19 +00:00
Julian Descottes 2eb3f7edbb Bug 1788762 - [devtools] Code cleanup devtools ChannelMap.sys.mjs r=ochameau
Depends on D156968

Cleanup of the ChannelMap class
- use private fields
- move static method to module-local method
- add comments
- rename methods to match behavior

Differential Revision: https://phabricator.services.mozilla.com/D156989
2022-10-17 19:56:19 +00:00
Julian Descottes 989055a6f7 Bug 1788762 - Migrate devtools network observer to an ES module r=ochameau
This is a very basic migration from commonjs modules to ESM for all modules related to network observation.
A few classes have been introduced instead of prototype-based classes, but otherwise the code remains mostly untouched.

We can followup to introduce private fields and methods if there's interest?

Differential Revision: https://phabricator.services.mozilla.com/D156968
2022-10-17 19:56:18 +00:00
Benjamin VanderSloot 066e83f229 Bug 1793647, part 1 - Create new Sec-Fetch-Dest value for WebIdentity (FedCM), r=freddyb,webdriver-reviewers,whimboo
This is to keep up with WHATWG Fetch https://github.com/whatwg/fetch/pull/1495 .
Also revised to not include the new destination type in the RequestDestination enum, per https://github.com/whatwg/fetch/pull/1500 .

I added an element to nsIContentPolicy::nsContentPolicyType as my starting point and
proceeded from there, following the instructions at the end of the internal enum.

Differential Revision: https://phabricator.services.mozilla.com/D158657
2022-10-17 16:07:50 +00:00
Alexandre Poirot 8a17dbe4c5 Bug 1794687 - [devtools] Remove immutable from debugger and remove seamless-immutable. r=bomsy
immutable in vendor is still used by the memory panel

Differential Revision: https://phabricator.services.mozilla.com/D159108
2022-10-17 12:23:20 +00:00
Alexandre Poirot d26f4e4413 Bug 1794694 - [devtools] Remove async to generated source map dependency. r=bomsy
This seems to have no impact on anything.
Also removing some other useless attributes in package.json.

Differential Revision: https://phabricator.services.mozilla.com/D159107
2022-10-17 12:23:20 +00:00
Alexandre Poirot 783b50a65a Bug 1794694 - [devtools] Fold devtools-wasm-dwarf into devtools-source-map package. r=bomsy
Having two distinct packages doesn't look so helpful.

Differential Revision: https://phabricator.services.mozilla.com/D159106
2022-10-17 12:23:19 +00:00
Alexandre Poirot d024ae6975 Bug 1794683 - [devtools] Avoid devtools-source-map magic mapping. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D159105
2022-10-17 12:23:19 +00:00
Marian-Vasile Laza 0a2eba79c2 Backed out changeset df665f4e7d53 (bug 1795595) for causing devtools failures on browser_net_copy_as_powershell.js. CLOSED TREE 2022-10-17 02:18:40 +03:00
Hubert Boma Manilla aa7bbddd46 Bug 1795595 - [devtools] Add 'Copy as PowerShell' command to request list context menu r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D157711
2022-10-16 22:01:17 +00:00
Alexandre Poirot 94b0ede386 Bug 1793604 - [devtools] Inject JSM/ESM globals directly from Loader.jsm/sys.mjs. r=jdescottes
ESM can't be loaded while loading.
So that Loader.jsm/sys.mjs can't load builtin-modules.js with itself loading Loader.jsm/sys.mjs.
We do that in order to inject JSM/ESM globals from builtin-modules.js.
Let's instead inject the few globals of JSM/ESM directly from Loader.

This isn't ideal, but as Loader is meant to be removed when moving to ESM...

Differential Revision: https://phabricator.services.mozilla.com/D158583
2022-10-14 12:19:42 +00:00
Alexandre Poirot a6539ba47e Bug 1793604 - [devtools] Convert Loader.jsm to ESM. r=perftest-reviewers,geckoview-reviewers,preferences-reviewers,owlish,kshampur,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158582
2022-10-14 12:19:42 +00:00
Emilio Cobos Álvarez 4b88cfc83f Bug 1794499 - Make RDM intrinsic size not affect the rest of the browser area. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D159284
2022-10-13 16:28:59 +00:00
Zachary Svoboda 5826d189b0 Bug 1327754 - Automatically focus json viewer scroll panel r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158893
2022-10-13 13:50:39 +00:00
wartmanm d4a79c57da Bug 1767213 - JSPropertyProvider should use current stackframe for eager evaluation r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158456
2022-10-13 12:02:07 +00:00
Raphael Ferrand 063018d40f Bug 1430471 - [devtools] Display grid-template-areas value on multiple lines. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D156382
2022-10-13 10:19:05 +00:00
Fabien CASTERS ae7bf66b29 Bug 1632030 - Network's raw headers text selection doesn't persist r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D119782
2022-10-13 10:17:06 +00:00
Alexandre Poirot aad605e498 Bug 1792848 - [devtools] Use absolute URLs to import modules in devtools/shared. r=Honza,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D158643
2022-10-12 15:56:22 +00:00
Tim Chevalier 2244e565d8 Bug 1765477: Allow wrapping ExtendedPrimitives in dom::MaybeWrapValue() r=edgar,nchevobbe
The dom::MaybeWrapValue() method was calling `isObject()` rather than
`hasObjectPayload()`, causing an assertion failure when passed a value
representing an ExtendedPrimitive (record or tuple). This was causing a crash
when evaluating a record or tuple literal either in the navigation bar or
the developer console. In addition, js::ToBooleanSlow() was missing a case
for ExtendedPrimitives, which would also cause an assertion failure in the
same scenario.

For documentation, I also added explicit assertions to dom::...Wrap...()
methods defined in BindingUtils.h that aren't expected to support
ExtendedPrimitives.

I also added placeholders for pretty-printing records and tuples in the
console (fully rendering these values is left for Bug 1772157).

Depends on D156494

Differential Revision: https://phabricator.services.mozilla.com/D148062
2022-10-12 15:00:35 +00:00
Alexandre Poirot f2210e7cfb Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-10-11 20:33:53 +00:00
Alexandre Poirot a6ca7867b4 Bug 1700909 - [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes
Note that this depends on the following patch, in order to destroy commands from the toolbox.
Commands have always been destroying the related client. This was a significant simplification in test.
So that I had to reverse the default value of shouldCloseClient and only toggle it to false
where it is strictly needed. Ideally only for about:debugging toolboxes (and two tests).

Differential Revision: https://phabricator.services.mozilla.com/D158206
2022-10-11 20:33:52 +00:00
Alexandre Poirot fabc8ef6ab Bug 1700909 - [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157944
2022-10-11 20:33:52 +00:00
Alexandre Poirot 8d47c73dbc Bug 1700909 - [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes
Also move iKnownTab to gDevTools.hasToolboxForTab as it feel more natural.

Differential Revision: https://phabricator.services.mozilla.com/D157943
2022-10-11 20:33:51 +00:00
Alexandre Poirot 572118ed63 Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-10-11 20:33:51 +00:00
Hubert Boma Manilla 5dc9073bec Bug 1237593 - [devtools] Test breakpoints on sources generated from source map with sections r=ochameau
Breakpoints seem to now work with sources generated from sourcemaps where the
mappings are defined in the sections property.

Differential Revision: https://phabricator.services.mozilla.com/D158424
2022-10-11 13:39:24 +00:00
Hubert Boma Manilla 21cb412b0d Bug 1794367 - [devtools] Remove backward compatibility code for 105 r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158937
2022-10-10 15:29:38 +00:00
Hubert Boma Manilla 07c72beec9 Bug 1794379 - [devtools] Update MDN compat data (October 2022) r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158943
2022-10-10 15:28:42 +00:00
Cristian Tuns 169dfc929e Backed out 5 changesets (bug 1700909) for causing mochitest failures CLOSED TREE
Backed out changeset a49f15f66ed4 (bug 1700909)
Backed out changeset 5a6b15eb1e12 (bug 1700909)
Backed out changeset 67b12d0e350b (bug 1700909)
Backed out changeset 4e6312ea547a (bug 1700909)
Backed out changeset c49eab385e1c (bug 1700909)
2022-10-10 10:38:03 -04:00
Alexandre Poirot 3b965e8556 Bug 1793760 - [devtools] Remove custom mappings for react modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158666
2022-10-10 11:45:00 +00:00
Alexandre Poirot e7aee2779a Bug 1793760 - [devtools] Use same URL for development version of react. r=jdescottes
When using --enable-debug-js-modules in mozconfig,
today, we ship the modules with different filename and so different URLs.

This won't work once the modules will become ES Modules
as we would load the modules from a fixed URL and there won't be
any way to hack the module loader anymore.

So, we should rather have the build system to ship the right file
(production or dev version), using the same filename and URL.

Unfortunately, I didn't find any easier way to rename a file from moz.build

Differential Revision: https://phabricator.services.mozilla.com/D158665
2022-10-10 11:44:59 +00:00
Alexandre Poirot 0f9e47bbec Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes,extension-reviewers,willdurand
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-10-10 11:28:08 +00:00
Alexandre Poirot 46401b90e9 Bug 1700909 - [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes
Note that this depends on the following patch, in order to destroy commands from the toolbox.
Commands have always been destroying the related client. This was a significant simplification in test.
So that I had to reverse the default value of shouldCloseClient and only toggle it to false
where it is strictly needed. Ideally only for about:debugging toolboxes (and two tests).

Differential Revision: https://phabricator.services.mozilla.com/D158206
2022-10-10 11:28:07 +00:00
Alexandre Poirot a88bde58b5 Bug 1700909 - [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157944
2022-10-10 11:28:07 +00:00
Alexandre Poirot 5197c39b9c Bug 1700909 - [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes
Also move iKnownTab to gDevTools.hasToolboxForTab as it feel more natural.

Differential Revision: https://phabricator.services.mozilla.com/D157943
2022-10-10 11:28:06 +00:00
Alexandre Poirot ad12d3c26b Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-10-10 11:28:05 +00:00
Pierre de La Morinerie b3c78f36f0 Bug 1769534 - preserve NBSP when copying HTML content. r=hsivonen
To workaround the historical lack of 'white-space: pre', when an user
wants to compose HTML text with several consecutive spaces, WYSIWYG
HTML editors insert an alternating pattern of SPACE and NBSP to avoid
spaces being collapsed.

This is why browsers, when copying HTML content, usually strip all NBSP
from the copied text.

This commit changes the copying behavior, to strip only NBSP that were
potentially generated by an editor (and preserve the others).

The heuristic used is "An NBSP adjacent to a regular space doesn't make
sense, and can be replaced by a regular space". This detects the
alternating pattern of SPACE/NBSP, but also a space followed by a long
sequence of NBSP (because a line break would occur anyway in that case).

NB: included is a change that makes devtools use regular spaces
(rather than NBSPs) to indent stacktrace frames. This prevent NBSPs from
appearing in the clipboard when copying a stacktrace.

Attribution: the actual nsPlainTextSerializer changes were written by
Rachel Martin <rachel@betterbird.eu>, as a part of Betterbird.

Differential Revision: https://phabricator.services.mozilla.com/D149644
2022-10-10 06:41:41 +00:00
Jonathan Kew d69f7c1c95 Bug 1791778 - CSS support for the font-palette property. r=emilio
This is just the CSS parsing, not yet connected to the rendering back-end.

Differential Revision: https://phabricator.services.mozilla.com/D157957
2022-10-07 23:00:44 +00:00
Noemi Erli 5b0216e320 Backed out 9 changesets (bug 1791778, bug 1791782, bug 1791780, bug 1791777) for causing build bustages in TestCOLRv1.cpp CLOSED TREE
Backed out changeset aeb44b79bf31 (bug 1791782)
Backed out changeset 292fd3a1b6dd (bug 1791782)
Backed out changeset 9947218170d0 (bug 1791780)
Backed out changeset 528b4c022a44 (bug 1791778)
Backed out changeset c734ff661a66 (bug 1791778)
Backed out changeset 6585dd386ee3 (bug 1791777)
Backed out changeset af4243189ef1 (bug 1791777)
Backed out changeset a47ae5f76514 (bug 1791777)
Backed out changeset 24ce615e77fd (bug 1791777)
2022-10-08 00:08:57 +03:00
Jonathan Kew a43494e78c Bug 1791778 - CSS support for the font-palette property. r=emilio
This is just the CSS parsing, not yet connected to the rendering back-end.

Differential Revision: https://phabricator.services.mozilla.com/D157957
2022-10-07 18:58:52 +00:00
Eemeli Aro 955fd0d21a Bug 1734217 - Clean up neterror element display logic and tests. r=prathiksha
The neterror page serves a number of different use cases, which effectivly pick and choose elements from the page's DOM to display. Previously this logic was partly defined in the HTML, partly in the CSS, and partly in JS, using a couple of different methods. This change normalises all of that such that:
- All optional elements are initially hidden.
- Hiding is always controlled by an element's `hidden` attribute.
- Setting a CSS `display` style does not override the `hidden` attribute.

In addition to making the page easier to reason about, this allows for the CSS styles of the page to not be considered essential for its display, which means that they (and their dependencies) do not need to be included in `toolkit/themes/shared/minimal-toolkit.jar.inc.mn`.

The HTML and CSS of the page are also somewhat simplified, leaving out unused or unnecessary elements and styles.

Some tests affected by these changes are cleaned up to be slightly less flaky. Some are set to be skipped in verify mode under OS X, as they have a tendency to time out in chaos mode.

Differential Revision: https://phabricator.services.mozilla.com/D157726
2022-10-07 18:40:29 +00:00
Cristian Tuns 18e597b504 Backed out 9 changesets (bug 1791777, bug 1791780, bug 1791778, bug 1791782) for causing build bustages on TestCOLRv1.cpp CLOSED TREE
Backed out changeset f145a34cfbc1 (bug 1791782)
Backed out changeset 2f12216fbeda (bug 1791782)
Backed out changeset 61bd2a4496bf (bug 1791780)
Backed out changeset 4e4eb99a7fd9 (bug 1791778)
Backed out changeset 32d171a28810 (bug 1791778)
Backed out changeset e317795cd27a (bug 1791777)
Backed out changeset 5e32d5a01917 (bug 1791777)
Backed out changeset cf87497dbead (bug 1791777)
Backed out changeset 586c735b005e (bug 1791777)
2022-10-07 13:46:43 -04:00
Jonathan Kew 77f08967e0 Bug 1791778 - CSS support for the font-palette property. r=emilio
This is just the CSS parsing, not yet connected to the rendering back-end.

Differential Revision: https://phabricator.services.mozilla.com/D157957
2022-10-07 16:53:34 +00:00
Norisz Fay 30ef428f43 Backed out 9 changesets (bug 1791780, bug 1791782, bug 1791778, bug 1791777) for causing multiple mochitest failures CLOSED TREE
Backed out changeset 6de1ade5a9b6 (bug 1791782)
Backed out changeset ce96452a38a1 (bug 1791782)
Backed out changeset 7cc8e027f5a7 (bug 1791780)
Backed out changeset 8e023280032c (bug 1791778)
Backed out changeset 26d65d76d02a (bug 1791778)
Backed out changeset a98dd552df64 (bug 1791777)
Backed out changeset 766386309ee5 (bug 1791777)
Backed out changeset 7de66a218ba4 (bug 1791777)
Backed out changeset 1d17c257444e (bug 1791777)
2022-10-07 17:36:38 +03:00
Jonathan Kew 66b445f7fa Bug 1791778 - CSS support for the font-palette property. r=emilio
This is just the CSS parsing, not yet connected to the rendering back-end.

Differential Revision: https://phabricator.services.mozilla.com/D157957
2022-10-07 12:16:52 +00:00
Alexandre Poirot 76aed8f004 Bug 1793575 - [devtools] Convert jsdebugger.jsm to jsdebugger.sys.mjs. r=Honza,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158571
2022-10-06 14:21:22 +00:00
Alexandre Poirot 79f3e6c0de Bug 1793573 - [devtools] Convert loader-plugin-raw.jsm to loader-plugin-raw.sys.mjs. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158574
2022-10-05 16:07:26 +00:00
Alexandre Poirot 38067ca23e Bug 1793573 - [devtools] Convert devtools test JSMs to ESMs. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158573
2022-10-05 16:07:26 +00:00
Alexandre Poirot 99b6c8357e Bug 1793573 - [devtools] Convert DevToolsSocketStatus.jsm to DevToolsSocketStatus.sys.mjs. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158572
2022-10-05 16:07:25 +00:00
Emilio Cobos Álvarez b7554c3c36 Bug 1793505 - Prevent stylesheet media query list from affecting the minimum size of the style editor panel. r=devtools-reviewers,ochameau
Intrinsic sizing of scrollers affecting min-sizes of containing boxes is
one of those annoying behaviors of modern flexbox unfortunately, but
it's easy to fix using containment.

Differential Revision: https://phabricator.services.mozilla.com/D158556
2022-10-05 14:46:02 +00:00
Julian Descottes 1d51c801d1 Bug 1790583 - DevTools release task service worker test page link is outdated. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D157201
2022-10-04 05:52:53 +00:00
Alexandre Poirot c7fa1991af Bug 1793396 - [devtools] Fix webconsole mocha tests with absolute URLs require paths. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158490
2022-10-03 18:57:13 +00:00
Alexandre Poirot 23691e0542 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot 7241a21575 Bug 1793395 - [devtools] Use absolute URLs for all custom loader's require. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158488
2022-10-03 18:57:12 +00:00
Alexandre Poirot 821cf2500c Bug 1792849 - [devtools] Use absolute URLs to import modules in devtools/server. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158487
2022-10-03 18:57:12 +00:00
Oriol Brufau fbeff4caf4 Bug 1792886 - Enable contain-intrinsic-size by default. r=emilio
Intent to ship: https://groups.google.com/a/mozilla.org/g/dev-platform/c/QtMpDO5ZHk8

Differential Revision: https://phabricator.services.mozilla.com/D158368
2022-10-01 13:46:04 +00:00
Alexandre Poirot 3c30cbb44f Bug 1792847 - [devtools] Allow node/jest to load modules from absolute resource:// URLs. r=jdescottes
Note that TreeView is blocked by jsonview, and only devtools/client is being moved to resource:// URIs

Differential Revision: https://phabricator.services.mozilla.com/D158325
2022-09-30 15:17:40 +00:00
Alexandre Poirot a9666fedb4 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/webconsole. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158380
2022-09-30 15:17:40 +00:00
Alexandre Poirot fa37432f92 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/shared. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158379
2022-09-30 15:17:39 +00:00
Alexandre Poirot e3e094dade Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/responsive. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158378
2022-09-30 15:17:38 +00:00
Alexandre Poirot 13bf78b543 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/netmonitor. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158377
2022-09-30 15:17:38 +00:00
Alexandre Poirot 98abe37f2b Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/memory. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158376
2022-09-30 15:17:37 +00:00
Alexandre Poirot b411b9189a Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/inspector. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158375
2022-09-30 15:17:37 +00:00
Alexandre Poirot 45219fd0d3 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/fronts. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158374
2022-09-30 15:17:36 +00:00
Alexandre Poirot 4d3ab74a9f Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/framework. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158373
2022-09-30 15:17:36 +00:00
Alexandre Poirot 0bcdaf30bc Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/dom. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158372
2022-09-30 15:17:35 +00:00
Alexandre Poirot 3b29f7936d Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/application. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158371
2022-09-30 15:17:35 +00:00
Alexandre Poirot e752207fe9 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/aboutdebugging. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158370
2022-09-30 15:17:35 +00:00
Alexandre Poirot 47287a1b67 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/accessibility. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158369
2022-09-30 15:17:34 +00:00
Alexandre Poirot 4dc40e1b02 Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client. r=jdescottes,nchevobbe
Everywhere but:
* the debugger (to be done independently)
* jsonview (uses custom resource:// URLs)
* dependencies of jsonview in client/shared (reps, react, and two components)
* one dependency of performance-new (fluent-react)

This will greatly help migrating to ES Modules which don't support path and only URLs or relatives.

Differential Revision: https://phabricator.services.mozilla.com/D158324
2022-09-30 15:17:34 +00:00
Emilio Cobos Álvarez 9dccf6f405 Bug 1792473 - Use modern flex emulation in devtools. r=devtools-reviewers,jdescottes
This shouldn't have any behavior change, other than avoiding XUL / CSS
interaction issues.

I had to tweak a bit a few of the webconsole split styles to preserve
behavior (even though without the styles it ends up working out because
the collapsed console would be out of view anyways).

The reason for the changes are:

 * visibility: collapse doesn't prevent min-height from applying on
   modern flexbox. So just collapse it using height properly. We need to
   use !important, at least on height, to override the style attribute
   set by the splitter.

 * Tweak the splitting setup of the console a bit more to match legacy
   behavior.

 * I need to contain: size on some scrollers and replaced elements so
   that they flex properly rather than taking as much space as they need
   (this kinda sucks but oh well). We could set min-width/height: 0
   instead if you think it's easier to understand but contain is more
   robust.

I needed to adjust the test since the fractional part of the container
wasn't getting rounded on my machine, but that's a pre-existing issue
that happens with my DPI settings both before and after the patch.

Differential Revision: https://phabricator.services.mozilla.com/D158183
2022-09-29 20:58:54 +00:00
Hubert Boma Manilla 76f92f2e43 Bug 1784535 - [devtools] Make sure the selected request swtiches r=ochameau
Lets  explicitly wait wait for the new request to get selected, as intermittently the test
likely fails beacuse we might be waiting for the request headers of the previous selected request instead
of the current one.

Differential Revision: https://phabricator.services.mozilla.com/D158345
2022-09-29 20:09:25 +00:00
Butkovits Atila 166ef2beaa Backed out changeset d79027c38f41 (bug 1792473) for causing failure at test_focus_general.xhtml. CLOSED TREE 2022-09-29 21:26:52 +03:00
Emilio Cobos Álvarez 3dae11bbf0 Bug 1792473 - Use modern flex emulation in devtools. r=devtools-reviewers,jdescottes
This shouldn't have any behavior change, other than avoiding XUL / CSS
interaction issues.

I had to tweak a bit a few of the webconsole split styles to preserve
behavior (even though without the styles it ends up working out because
the collapsed console would be out of view anyways).

The reason for the changes are:

 * visibility: collapse doesn't prevent min-height from applying on
   modern flexbox. So just collapse it using height properly. We need to
   use !important, at least on height, to override the style attribute
   set by the splitter.

 * Tweak the splitting setup of the console a bit more to match legacy
   behavior.

 * I need to contain: size on some scrollers and replaced elements so
   that they flex properly rather than taking as much space as they need
   (this kinda sucks but oh well). We could set min-width/height: 0
   instead if you think it's easier to understand but contain is more
   robust.

I needed to adjust the test since the fractional part of the container
wasn't getting rounded on my machine, but that's a pre-existing issue
that happens with my DPI settings both before and after the patch.

Differential Revision: https://phabricator.services.mozilla.com/D158183
2022-09-29 16:50:35 +00:00
Emilio Cobos Álvarez 8415bfe87f Bug 1792656 - Use style attribute to set min-width on toolbox host frame. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D158271
2022-09-29 16:44:31 +00:00
Andreea Pavel ce81b30f6f Backed out 5 changesets (bug 1700909) for failing browser_ext_addon_debugging_netmonitor.js on a CLOSED TREE
Backed out changeset 9bc3e4820f59 (bug 1700909)
Backed out changeset 998c0ec4f9d3 (bug 1700909)
Backed out changeset 6f6fe066fc38 (bug 1700909)
Backed out changeset e53aaf8ffe5b (bug 1700909)
Backed out changeset 3dbeffe25878 (bug 1700909)
2022-09-29 19:40:43 +03:00
Alexandre Poirot bf8918c2e9 Bug 1700909 - [devtools] Migrate gDevTools.showToolbox from descriptor to commands. r=jdescottes
This migrate gDevTools.showToolbox, but also the Toolbox now receives a commands right away,
and no longer need to create commands out of the descriptor front.

I'm removing browser_two_tabs as it is focusing on testing Tab Descriptors (RootFront.listTabs+getTab)
and Tab targets (TabDescriptor.getTarget).
Using getTarget on descriptor is legacy codepath for a while now.
We should now rather cover commands instead of these low level RDP methods.

Differential Revision: https://phabricator.services.mozilla.com/D157796
2022-09-29 14:43:26 +00:00
Alexandre Poirot 28c70e4209 Bug 1700909 - [devtools] Migrate DescriptorMixin.shouldCloseClient to Commands. r=jdescottes
Note that this depends on the following patch, in order to destroy commands from the toolbox.
Commands have always been destroying the related client. This was a significant simplification in test.
So that I had to reverse the default value of shouldCloseClient and only toggle it to false
where it is strictly needed. Ideally only for about:debugging toolboxes (and two tests).

Differential Revision: https://phabricator.services.mozilla.com/D158206
2022-09-29 14:43:26 +00:00
Alexandre Poirot 2c56cb21c3 Bug 1700909 - [devtools] Migrate descriptorFromURL to commandsFromURL. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157944
2022-09-29 14:43:25 +00:00
Alexandre Poirot f72de72ca8 Bug 1700909 - [devtools] Migrate TabDescriptorFactory to LocalTabCommandsFactory. r=jdescottes
Also move iKnownTab to gDevTools.hasToolboxForTab as it feel more natural.

Differential Revision: https://phabricator.services.mozilla.com/D157943
2022-09-29 14:43:25 +00:00
Alexandre Poirot a0a5dd10cc Bug 1700909 - [devtools] Stop exposing Toolbox.descriptorFront. r=jdescottes
Instead we should we querying Toolbox.commands.descriptorFront.

Differential Revision: https://phabricator.services.mozilla.com/D157942
2022-09-29 14:43:24 +00:00
Mark Banner 8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Alexandre Poirot 75672c3505 Bug 1791969 - [devtools] Migrate lazyRequireGetter for JSM to ChromeUtils.defineModuleGetter. r=jdescottes
There was some imports of sys.mjs which I migrated to `ChromeUtils.defineESModuleGetters`.

Differential Revision: https://phabricator.services.mozilla.com/D158129
2022-09-28 16:20:08 +00:00