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

4546 Коммитов

Автор SHA1 Сообщение Дата
Henrik Skupin 0a815d2001 Bug 1790559 - [devtools] Update MDN compat data (2022 September 13th week) r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157191
2022-09-13 11:59:38 +00:00
Nicolas Chevobbe 0f42f58871 Bug 1789973 - [devtools] Remove unused RemoteSettings script and update documentation. r=jdescottes.
Now that the script is run on automation, there's no need to have
a (different) version in tree.
The documentation is also updated to explain the current setup.

Differential Revision: https://phabricator.services.mozilla.com/D156930
2022-09-09 14:20:27 +00:00
Alexandre Poirot 573f380baf Bug 1789202 - [devtools] Expose ChromeUtils as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.ChromeUtils.)/d" $(git grep -l 'require("ChromeUtils")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .ChromeUtils./d" $(git grep -l 'loader.lazyRequireGetter(this, "ChromeUtils"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js + manual eslint fixes

Differential Revision: https://phabricator.services.mozilla.com/D156402
2022-09-09 07:22:51 +00:00
Alexandre Poirot 7f9229d43d Bug 1789201 - [devtools] Expose Services as a global to all DevTools modules. r=perftest-reviewers,nchevobbe,julienw,AlexandruIonescu
This will help transition to ES Modules as this symbol is exposed to them.

$ sed -ie "/require(.Services.)/d" $(git grep -l 'require("Services")' devtools/)
$ sed -ie "/loader.lazyRequireGetter(this, .Services./d" $(git grep -l 'loader.lazyRequireGetter(this, "Services"' devtools/)
+ the edition of builtin-modules.js + eslintrc.js
+ manual eslint fixes
+ removal of devtools-services in the debugger, except for jest tests

Differential Revision: https://phabricator.services.mozilla.com/D156401
2022-09-09 07:22:51 +00:00
Emilio Cobos Álvarez a11c622dc7 Bug 1786147 - Remove layout.css.webkit-line-clamp.enabled, and add a new pref to apply line-clamp to all BFCs. r=dholbert
It's always true, so remove it.

Add another pref to allow -webkit-line-clamp to work on all blocks
rather than just legacy -webkit-boxes, which seems something we should
try to look into, eventually.

Depends on D155181

Differential Revision: https://phabricator.services.mozilla.com/D155182
2022-09-07 23:57:18 +00:00
Olli Pettay 93acdfad59 Bug 1777574, automate CC zone handling, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D155084
2022-09-07 11:22:51 +00:00
Rob Wu f88bf80d5b Bug 1789245 - [devtools] Mark openDevTools as nullable for installTemporaryAddon r=devtools-backward-compat-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D156458
2022-09-05 17:06:16 +00:00
Julian Descottes 79b87a7b80 Bug 1789052 - [devtools] Fix storage inspector sorting logic r=nchevobbe
Two issues fixed:
- when sorting on one column, other column content should be re-arranged
- natural order sort was not symmetrical for dates and led to inconsistent sorting

Differential Revision: https://phabricator.services.mozilla.com/D156420
2022-09-05 13:00:15 +00:00
Alexandre Poirot 15211b3be5 Bug 1783821 - [devtools] Manual rewrites r=bomsy
In md files and code comments and mostly from common js files.

I'm moving away from require to load sys.mjs files so that we are closer
to what we do in mozilla-central.

Differential Revision: https://phabricator.services.mozilla.com/D154073
2022-09-05 12:29:57 +00:00
Henrik Skupin b87f7d7ff8 Bug 1788168 - [devtools] Remove Firefox 104 backward compat fallback code. r=jdescottes,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D156329
2022-09-05 11:37:48 +00:00
Alexandre Poirot bd186cfb62 Bug 1788536 - [devtools] Expose `descriptorType` on all Descriptor fronts. r=jdescottes
This will help differentiate all the various context debugged by devtools.

Differential Revision: https://phabricator.services.mozilla.com/D156133
2022-09-02 09:10:00 +00:00
nchevobbe 234ae43d37 Bug 1483662 - [devtools] Use `ChromeUtils.dateNow()` for timestamp of evaluation result packets. r=jdescottes,devtools-backward-compat-reviewers.
`ChromeUtils.dateNow()` has a higher precision than `Date.now()`, which is useful for ordering
of messages in the console output.

Differential Revision: https://phabricator.services.mozilla.com/D155548
2022-09-02 04:58:29 +00:00
nchevobbe 80001e9281 Bug 1483662 - [devtools] Use microSecondTimeStamp to build timeStamp for console-related resources. r=jdescottes.
We can get a higher precision timestamp from microSecondTimeStamp, which will be consumed
in the console client to re-order messages.
This fixes an issue where different type of resources (console-messages and error-messages)
emitted during the same timestamp would not appear in the order they should be in.
A test is added to make sure the fix is effective.

Differential Revision: https://phabricator.services.mozilla.com/D155546
2022-09-02 04:58:28 +00:00
Alexandre Poirot 09181ce3b3 Bug 1787409 - [devtools] Allow to open DevTools when installing an add-on remotely. r=nchevobbe,devtools-backward-compat-reviewers
I'm folding the helper_addons file as this is used only by this one test.

Differential Revision: https://phabricator.services.mozilla.com/D155686
2022-09-01 08:41:50 +00:00
Mark Banner c83937cb5a Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Alexandre Poirot e76144cd1f Bug 1687461 - [devtools] Enable SOURCE resource on all targets r=nchevobbe,devtools-backward-compat-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103376
2022-08-23 10:03:18 +00:00
Julian Descottes a3df09eb95 Bug 1786321 - [devtools] Update MDN compat data (2022 August 22nd week) r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D155230
2022-08-23 06:31:49 +00:00
Emilio Cobos Álvarez 9df7e6bca8 Bug 1782596 - Propagate preferred color-scheme to non-top frames. r=jwatt
The ColorSchemeMode::Preferred change doesn't make a difference (that
is, always use the preferred one), since when we only propagate from
top's embedder the embedder is chrome, which always has the preferred
color-scheme.

Differential Revision: https://phabricator.services.mozilla.com/D154931
2022-08-22 14:23:09 +00:00
Boris Chiou ac0a5cdfb4 Bug 1785329 - Enable animation-composition on Nightly. r=hiro
It seems that making animation shorthand supports animation-composition may be
very tricky, so it's unlikely to include animation-composition into the
shorthand for now, per spec issue:
https://github.com/w3c/csswg-drafts/issues/6946.

WebKit also supports the longhand only on STP (Safari Technology Preview), so
it should be fine to enable the longhand property only on Firefox Nightly,
for experiemental testing.

Differential Revision: https://phabricator.services.mozilla.com/D154934
2022-08-17 23:39:55 +00:00
Mark Banner 53b35796e0 Bug 1784699 - Add more ESLint worker annotations to test files. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D154601
2022-08-15 16:50:31 +00:00
colin_czb dfc111cbd0 Bug 1778268 - [devtools] Preview support for Headers objects r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D153893
2022-08-11 06:27:20 +00:00
Alexandre Poirot 3e81a727d3 Bug 1775503 - [devtools] Prevent showing content process request when the browser toolbox focuses on the parent process. r=bomsy
This is still one blind spot with privileged request done by content processes.
They aren't related to any BrowsingContext/WindowGlobal and there isn't any
attribute on channel/loadInfo which helps knowing they originates from a content process.

Differential Revision: https://phabricator.services.mozilla.com/D150014
2022-08-10 20:18:02 +00:00
Julian Descottes 6bed5799c5 Bug 1783893 - [devtools] Changes view should rely on the computed property name r=nchevobbe
Similar to the fix done for values in Bug 1590031, now focused on property names.

Differential Revision: https://phabricator.services.mozilla.com/D154124
2022-08-10 16:18:53 +00:00
Alexandre Poirot bb70a506eb Bug 1783670 - [devtools] Avoid performance regression of Front.watchFronts API. r=nchevobbe
The Front.watchFronts API is sparsly used whereas we always instantiate
two EventEmitter and emit two events for all the Fronts.
We can avoid doing that unless we start using this API only on a couple of fronts.

Differential Revision: https://phabricator.services.mozilla.com/D153957
2022-08-09 11:38:15 +00:00
Gerald Squelart 6cd5fee5d2 Bug 1571089 - Remove the "leaf" profiler feature - r=canaltinova
We currently support stack walking everywhere, and when it fails, we fall back
to leaf stacks. The leaf option is a bit confusing in how it works, and doesn't
provide much value.

Differential Revision: https://phabricator.services.mozilla.com/D153695
2022-08-08 12:29:43 +00:00
Butkovits Atila 1a455850f9 Backed out changeset 523ef50a4e16 (bug 1571089) for causing xpcshell failures at test_ext_geckoProfiler_schema.js. CLOSED TREE 2022-08-08 13:21:54 +03:00
Gerald Squelart 24f16538a9 Bug 1571089 - Remove the "leaf" profiler feature - r=canaltinova
We currently support stack walking everywhere, and when it fails, we fall back
to leaf stacks. The leaf option is a bit confusing in how it works, and doesn't
provide much value.

Differential Revision: https://phabricator.services.mozilla.com/D153695
2022-08-08 08:43:43 +00:00
Boris Chiou 82bf45d69f Bug 1746528 - Remove aspect-ratio preference. r=emilio
We shipped this in Firefox 89, one year ago. It should be okay to drop
this preference now.

Differential Revision: https://phabricator.services.mozilla.com/D153680
2022-08-04 17:58:03 +00:00
Nicolas Chevobbe 97a292123e Bug 1782904 - [devtools] Fix browser_resources_console_messages with --verify. r=bomsy.
The test is failing when running multiple times, as we get cached
messages from previous test run.
We suffix the message with a timestamp to avoid this.

Differential Revision: https://phabricator.services.mozilla.com/D153719
2022-08-04 09:57:09 +00:00
Nicolas Chevobbe 7f28a968a6 Bug 1782916 - [devtools] Remove backward-compatibility code for clearResource. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D153598
2022-08-04 09:31:26 +00:00
Nicolas Chevobbe 86f24f5938 Bug 1782527 - [devtools] Change devtools.chrome-debug-mode default value to parent-process. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153432
2022-08-04 07:42:33 +00:00
Tooru Fujisawa 2f165c8211 Bug 1781061 - Part 10: Add eager evaluation test for reused iterator. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D153450
2022-08-04 06:41:18 +00:00
Tooru Fujisawa 2c5e8810b4 Bug 1781061 - Part 9: Add eager evaluation test for crafted iterable. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D153162
2022-08-04 06:41:18 +00:00
Sandor Molnar 5e3d30ed51 Backed out changeset 823d61b8ec47 (bug 1782527) for causing dt failures. 2022-08-03 20:55:03 +03:00
Julian Descottes 74ce47ded5 Bug 1782661 - [devtools] Update json5 vendored library to v2.2.1 r=nchevobbe
Compare https://github.com/json5/json5/compare/v2.1.0%E2%80%A6v2.2.1

Differential Revision: https://phabricator.services.mozilla.com/D153602
2022-08-03 16:20:53 +00:00
Mark Banner a6855db57e Bug 1330099 - Enable object-shorthand eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153567
2022-08-03 14:57:05 +00:00
Mark Banner 7428be4a86 Bug 1782008 - Remove now unnecessary .eslintrc.js files. r=webcompat-reviewers,extension-reviewers,media-playback-reviewers,pip-reviewers,denschub,rpl,alwu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D152736
2022-08-03 11:16:20 +00:00
Nicolas Chevobbe f452753063 Bug 1782527 - [devtools] Change devtools.chrome-debug-mode default value to parent-process. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153432
2022-08-03 05:41:08 +00:00
Ryan VanderMeulen e0fe0f67a9 Bug 1782859 - Update protobuf to version 21.4. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D153547
2022-08-03 03:49:13 +00:00
Nicolas Chevobbe caa3dd6326 Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 09:33:19 +00:00
Bogdan Szekely f9a469e37c Backed out 5 changesets (bug 1777253, bug 1776853) for causing devtools failures on browser_console_modes.js CLOSED TREE
Backed out changeset dbd68a657d6f (bug 1777253)
Backed out changeset f401150fb142 (bug 1776853)
Backed out changeset 209aade12fc6 (bug 1776853)
Backed out changeset dc24308ff8ef (bug 1776853)
Backed out changeset ea98ed858bae (bug 1776853)
2022-08-01 10:43:40 +03:00
Nicolas Chevobbe 68cffb97a0 Bug 1777253 - [devtools] Remove content messages from console when switching to parent process only mode. r=jdescottes.
We remove all messages from target destroy with `isModeSwitching`, as well as
prune unhandled resources in the WebconsoleWrapper queues.
Finally, we also cleanup the resource command pendingEvents so we don't receive
resources after the target was destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D152031
2022-08-01 06:55:56 +00:00
Nicolas Chevobbe 9a96297e35 Bug 1781726 - [devtools] Pass an `isModeSwitching` property to `onTargetDestroyed` callback param when switching modes. r=jdescottes,devtools-backward-compat-reviewers.
We pass `isModeSwitching` to `unwatchTargets` from the target command when the
pref is changed.
On the server, we then pass it to the various places which might call `notifyTargetDestroyed`,
so we can pass the flag in the `target-destroyed-form` event, which we can then
pass to TargetCommand#onDestroyed callbacks.`

Differential Revision: https://phabricator.services.mozilla.com/D152758
2022-07-29 14:30:07 +00:00
Tooru Fujisawa 60be63b763 Bug 1732543 - Part 2: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152350
2022-07-26 02:37:51 +00:00
Tooru Fujisawa b3c8ed8937 Bug 1609432 - Part 6: Add eager evaluation testcase. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D152348
2022-07-26 02:37:51 +00:00
Hubert Boma Manilla 2ac354b5ee Bug 1778672 - Disable Network listening in the Browser Toolbox until the Netmonitor is opened r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151414
2022-07-21 08:58:14 +00:00
Julian Descottes f04f586b94 Bug 1780332 - [devtools] Update MDN compat data (2022 July 18th week) r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D152249
2022-07-20 08:54:06 +00:00
Alexandre Poirot 890956dcd2 Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +00:00
Hubert Boma Manilla 15ba96c004 Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-18 10:13:58 +00:00
Kagami Sascha Rosylight e87a2aeb9c Bug 1769290 - Part 25: Apply mozilla-js-handle-rooted-typedef against devtools r=andi
There are some uses without `JS::` namespace in `devtools/`. The autofix adds `JS::` everywhere and this patch intentionally keeps that for consistency, given that most of the code uses `JS::`.

Differential Revision: https://phabricator.services.mozilla.com/D151792
2022-07-14 17:00:25 +00:00