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

25615 Коммитов

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