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

25630 Коммитов

Автор SHA1 Сообщение Дата
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