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

4554 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 8010ef0166 Bug 1789980 - [devtools] Stop exposing `indexedDB` to all DevTools modules. r=jdescottes
This symbol is specific to documents and isn't available in JSM/ESM.
So it will be best to keep it manually crafter from the modules.
It appears that only async-storage depends on the overloaded indexedDB
object created by devtools/shared/indexed-db.

Differential Revision: https://phabricator.services.mozilla.com/D157424
2022-09-20 12:52:27 +00:00
Alexandre Poirot 8c0ef6b298 Bug 1789980 - [devtools] Migrate all callsites using require("chrome") to use Components.* global symbols. r=jdescottes,perftest-reviewers,AlexandruIonescu
This will help transition to ES Modules as we won't be able to expose a magic "chrome" ESM.
Also, most of these symbols are exposed as global already.
All but:
* `components` which is `Components`,
* `CC` which is `Components.Constructor`,
* `Cm` which is `Components.manager`.

$ sed -ie "/require(.chrome.)/d" $(git grep -l 'require("chrome")' devtools/)
+ manual edits for all three exceptions

Differential Revision: https://phabricator.services.mozilla.com/D156936
2022-09-20 12:52:27 +00:00
Alexandre Poirot c7d60e285f Bug 1789980 - [devtools] Stop exposing require("chrome"), instead expose Components.* as globals. r=jdescottes
This will actually make commonjs module behave like JSM/ESM.
Where you have access to Components, Cc, Ci, Cu and Cr as globals.

This patch is based on the usage of Sandbox's wantComponents,
which will expose all these globals for us.
Then, I'm handling the special cases of Services and ChromeWorker,
which have nothing to do with Components.* APIs.

Differential Revision: https://phabricator.services.mozilla.com/D156935
2022-09-20 12:52:26 +00:00
Alexandre Poirot 3ce07c3d24 Bug 1789980 - [devtools] Import "wantGlobalProperties" symbols from the module Sandbox. r=jdescottes
That, instead of involving the "debuggerSandbox", which is only meant
for exposing the "Debugger" symbol.

Differential Revision: https://phabricator.services.mozilla.com/D156934
2022-09-20 12:52:26 +00:00
criss 49eaaa607e Backed out 2 changesets (bug 1667090, bug 1788605) for causing Xpcshell failures on test_css-properties-db.js. CLOSED TREE
Backed out changeset cee98ae67ea4 (bug 1788605)
Backed out changeset 404e0b4bcd0f (bug 1667090)
2022-09-15 12:13:28 +03:00
Frederic Wang fe1762c548 Bug 1667090 - Implement CSS font-size: math and math-depth properties. r=emilio
The font-size math keyword is implemented. It behaves as a font-size: 1em
with the extra fixup due to math-level change (and other legacy MathML
attributes). After that change, the CSS for math-level / font-size: math
is behaving as per the specification, so the math-depth is turned in
nightly.

The adjusting function for font-size: math is modified so that it's
executed only if both font-size: math (otherwise the spec says no scale
should apply) and math-depth (otherwise the scale is 1 and function exists
early anyway) are set on the element. Also checking if the current node
has a scriptsizemultiplier rule applied to use MathML3's scaling is
incorrect. Instead this is changed to check if a non-default
scriptsizemultiplier is set.

Differential Revision: https://phabricator.services.mozilla.com/D91744
2022-09-15 08:14:49 +00:00
Ryan VanderMeulen 083930f0c5 Bug 1790929 - Update protobuf to version 21.6. r=markh
Differential Revision: https://phabricator.services.mozilla.com/D157391
2022-09-15 01:33:24 +00:00
Julian Descottes 87ef6aa2ff Bug 1790753 - [devtools] Track all devtools sockets in DevToolsSocketStatus r=ochameau,Gijs
The DevToolsSocketStatus could be misleading for any usage other than the current one from browser.js since it misses browser toolbox sockets

This patch allows the singleton to track all sockets but changes the API to allow consumers to exclude browser toolbox sockets.

Differential Revision: https://phabricator.services.mozilla.com/D157300
2022-09-14 19:11:22 +00:00
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