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

20386 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot d27ee059ff Bug 1783813 - [devtools] Unify debugger initialization and thread selection. r=bomsy
We are updating more things when selecting a thread than when opening the debugger.
Let's use a unique codepath when it comes to handle a new top level target.

Differential Revision: https://phabricator.services.mozilla.com/D151552
2022-08-17 16:13:35 +00:00
Cosmin Sabou 1b5339504f Bug 1784520 - Mark browser_accessibility_relation_navigation.js as passing on a11y-checks after being fixed in bug 1688007. r=jdescottes,bomsy DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D154598
2022-08-17 02:36:02 +00:00
Luke Swiderski f018493dd7 Bug 1764248 - Add composition event-listener breakpoints r=bomsy
Add compositionstart, compositionupdate and compositionend
to keyboard event-listener-breakpoints.
Add mochitests for each.
Add comment to mochitest.

Differential Revision: https://phabricator.services.mozilla.com/D153627
2022-08-15 06:42:00 +00:00
Emilio Cobos Álvarez a7401488af Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 23:13:41 +00:00
Marian-Vasile Laza 7f5e2711c6 Backed out 3 changesets (bug 1784265) for causing reftest failures on flex-emulation-1.xhtml. CLOSED TREE
Backed out changeset 415da4b53bdd (bug 1784265)
Backed out changeset e27b21c54b1f (bug 1784265)
Backed out changeset fcb1a053fbe2 (bug 1784265)
2022-08-13 01:14:13 +03:00
Emilio Cobos Álvarez a2ec6564f3 Bug 1784265 - Drop support for flex attribute values other than 0 and 1. r=dholbert,mconley,preferences-reviewers
This makes it easier to get parity between legacy and regular flex
without having to either have tons of arbitrary attribute selectors in
the xul sheet, nor adding attribute lookup hacks to the html flexbox
layout.

Also, reimplement the remaining supported flex attribute-values (0 and 1)
purely in terms of CSS rules in xul.css (regardless of whether
emulate-moz-box-with-flex is enabled).

In practice these are pretty uncommon and the style attribute does the
trick in every case I've tried.

Add a debug-only assertion to ensure we preserve behavior for now.

Add a new test with another behavior difference between flexbox
emulation and old xul layout because the old reftest now passes. Use
replaced elements, which in modern flex are treated differently.

Differential Revision: https://phabricator.services.mozilla.com/D154394
2022-08-12 19:34:34 +00:00
Nicolas Chevobbe 22f3a599f5 Bug 1783373 - [devtools] Pass isPrivate property to Downloads.createDownload. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D154528
2022-08-12 16:53:15 +00:00
Hubert Boma Manilla 90178fe177 Bug 1779359 - Update Content-Length when message body changes r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153477
2022-08-12 15:47:28 +00:00
Nicolas Chevobbe 450f0ae918 Bug 1784467 - [devtools] Add icon for select node in accessibility tree. r=jdescottes.
Since the select node in inspector simply re-use the inspector icon,
we're doing here, using a sized-down version of the a11y panel icon.

Differential Revision: https://phabricator.services.mozilla.com/D154509
2022-08-12 13:10:05 +00:00
Nicolas Chevobbe 484afc4d26 Bug 1688007 - [devtools] Add localized inspectIconTitle prop in Accessible.js . r=jdescottes.
This will add proper titles to the icons we display in the accessibility
panel to select a node in the Accessibility Tree or in the inspector (if it's
a dom node).
Assertions are added in tests to ensure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D154406
2022-08-12 13:10:04 +00:00
Nicolas Chevobbe 39880dc213 Bug 1784073 - [devtools] Fix ESLint consistent-return failures in devtools/client/debugger/src/utils/. r=bomsy.
Depends on D154244

Differential Revision: https://phabricator.services.mozilla.com/D154245
2022-08-12 07:00:36 +00:00
Nicolas Chevobbe a77c3be794 Bug 1784071 - [devtools] Remove debugger specific eslint override for consistent-return rule. r=bomsy.
Instead, we put all the failing file into devtools eslintrc.js.

Differential Revision: https://phabricator.services.mozilla.com/D154244
2022-08-12 07:00:36 +00:00
Emilio Cobos Álvarez ff538cab0e Bug 1784349 - Don't use -moz-bool-pref for flexbox -moz-box emulation. r=dholbert,perftest-reviewers,sparky
Use a bool pref media query which allows dynamic changes to get
reflected instantly.

Differential Revision: https://phabricator.services.mozilla.com/D154449
2022-08-11 23:22:52 +00:00
Alexandre Poirot 57effca3b9 Bug 1779284 - [devtools] Stop maintaining a duplicate of the target list in the debugger frontend. r=bomsy
Instead we can fully rely on TargetCommand.

This fixes duplicated calls made to top level thread actor.
This was only happening with toolbox not using the Watcher Actor.
i.e. the non-multiprocess Browser Toolbox, Browser Content Toolbox and may be worker toolboxes from about:debugging.

Differential Revision: https://phabricator.services.mozilla.com/D151643
2022-08-11 15:05:41 +00:00
Alexandre Poirot e123b2fef7 Bug 1782364 - [devtools] Test files with encoded characters in the debugger. r=bomsy
This at least ensure that the sources display with the right display in the Source Tree.

Differential Revision: https://phabricator.services.mozilla.com/D154082
2022-08-11 15:01:49 +00:00
Cristian Tuns 22cace401e Backed out changeset 1b9afbfab196 (bug 1783858) for causing devtools failures on browser_dbg-features-wasm.js CLOSED TREE 2022-08-11 10:18:26 -04:00
Nicolas Chevobbe 4a3e629847 Bug 1783858 - [devtools] Directly pass text and mode when creating a new CodeMirror document in the debugger. r=ochameau.
We used to create the document, then set the text and the mode, which seemed to
trigger unecessary updates in CodeMirror.
Since CodeMirror document can take an initial value and mode, we make this a possibility
in the source editor, and use it from the debugger codebase.

We take this as an opportunity to move the `getMode` function to `source-document.js` as
it's only used from there, and put the logic to not highlight big files there.
The unit test for the function are moved to the same folder the function now lives in,
and are adapted to the new signature.

Differential Revision: https://phabricator.services.mozilla.com/D154096
2022-08-11 12:48:49 +00:00
Julian Descottes 3296472cd1 Bug 1782979 - [devtools] Remove unused method getBlockingEndTime from har-builder.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D153606
2022-08-11 11:44:48 +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
Julian Descottes 77b3b7923d Bug 1783606 - [devtools] Avoid unnecessary markupview updates for the unavailable children feature r=nchevobbe
We had false positives due to false != undefined comparisons.
Make sure to convert relevant form values to booleans

Differential Revision: https://phabricator.services.mozilla.com/D153931
2022-08-08 19:59:01 +00:00
Alexandre Poirot a470d864c4 Bug 1735748 - [devtools] Disable all DevTools reload shortcuts in the Browser Toolbox, but replicate the local-build-only full reload shortcut. r=jdescottes,nchevobbe
This replicates the key shortcut implemented by browser-development-helpers.js.

Differential Revision: https://phabricator.services.mozilla.com/D128478
2022-08-08 16:55:32 +00:00
Butkovits Atila 370cad1212 Backed out changeset 48d2a85f55af (bug 1783606) for causing failure at browser_inspector-iframe.js. CLOSED TREE 2022-08-08 19:33:03 +03:00
Ben Hearsum 622826bf1d Bug 1766636: ensure Browser Content Toolbox groups with the correct Windows taskbar icon r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D152461
2022-08-08 15:59:38 +00:00
Julian Descottes 0913fc9b15 Bug 1783606 - [devtools] Avoid unnecessary markupview updates for the unavailable children feature r=nchevobbe
We had false positives due to false != undefined comparisons.
Make sure to convert relevant form values to booleans

Differential Revision: https://phabricator.services.mozilla.com/D153931
2022-08-08 14:44:06 +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
Nicolas Chevobbe 3e947ca78d Bug 1782667 - [devtools] Start multiprocess browser toolbox when running mochitests with --jsdebugger. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153599
2022-08-08 06:15:43 +00:00
Nicolas Chevobbe 45a749c7be Bug 1783160 - [devtools] Use private fields and methods in BrowserToolboxLauncher. r=jdescottes.
Tests were using the internal `_dbgProcess` and `_dbgProfilePath` properties, which
we migrate to private properties.
We now pass those properties as part of the `run` event that those tests are
setting up, so we can run assertions on those object.
Finally, we take this as an opportunity to clean `browser_dbg-chrome-create.js`.
Since it was the only callsite using `onClose`, and given that we directly call
the `close` method, we can remove the `onClose` from the signature of `BrowserToolboxLauncher`.

Differential Revision: https://phabricator.services.mozilla.com/D153733
2022-08-08 06:15:42 +00:00
Nicolas Chevobbe 58442a77e9 Bug 1783160 - [devtools] Turn BrowserToolboxLauncher into an ES6 class. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153732
2022-08-08 06:15:41 +00:00
Marian-Vasile Laza 6f557d1aab Backed out 3 changesets (bug 1782667, bug 1783160) for causing talos damp failures CLOSED TREE
Backed out changeset 64a7bac097fa (bug 1782667)
Backed out changeset 224af553eeb8 (bug 1783160)
Backed out changeset ea22879de5e1 (bug 1783160)
2022-08-05 10:14:54 +03:00
Barret Rennie 6f5b726ae5 Bug 1772916 - Port osfile.jsm usage to IOUtils in devtools/client/ r=nchevobbe
The bulk was removed in bug 1771608, but some vestigial bits were missed.

We cannot yet fix the remaining import in devtools/shared/ until we have a way
to replace osfile.jsm in a content process.

Differential Revision: https://phabricator.services.mozilla.com/D153700
2022-08-04 20:03:22 +00:00
Nicolas Chevobbe 7a46b06fb8 Bug 1782667 - [devtools] Start multiprocess browser toolbox when running mochitests with --jsdebugger. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153599
2022-08-04 15:33:26 +00:00
Nicolas Chevobbe c4bac4b0e5 Bug 1783160 - [devtools] Use private fields and methods in BrowserToolboxLauncher. r=jdescottes.
Tests were using the internal `_dbgProcess` and `_dbgProfilePath` properties, which
we migrate to private properties.
We now pass those properties as part of the `run` event that those tests are
setting up, so we can run assertions on those object.
We also emit the event with `emitForTests` to make it clear those properties
are only accessed outside of the class from tests.
Finally, we take this as an opportunity to clean `browser_dbg-chrome-create.js`.
Since it was the only callsite using `onClose`, and given that we directly call
the `close` method, we can remove the `onClose` from the signature of `BrowserToolboxLauncher`.

Differential Revision: https://phabricator.services.mozilla.com/D153733
2022-08-04 15:33:25 +00:00
Nicolas Chevobbe aef87097e6 Bug 1783160 - [devtools] Turn BrowserToolboxLauncher into an ES6 class. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D153732
2022-08-04 15:33:25 +00:00
Nicolas Chevobbe e7a7608563 Bug 1782908 - [devtools] Turn off styleeditor transition on browser_toolbox_styleeditor.js. r=jdescottes.
The devtools-triggered transition when editing a stylesheetseems to trigger an assertion failure

Depends on D153432

Differential Revision: https://phabricator.services.mozilla.com/D153722
2022-08-04 14:29: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 2b6cd60aea Bug 1781061 - Part 0: Do not use Array.from in eager evaluation test. r=nchevobbe
`Array.from` on an iterable object internally calls
`%ArrayIteratorPrototype%.next`, which is effectful.

The later patches will add more coverage inside for-of loop inside
self-hosted JS, and that will expose the call on `obj[Symbol.iterator]().next`,
which can be `%ArrayIteratorPrototype%.next` or any other function.

Differential Revision: https://phabricator.services.mozilla.com/D153153
2022-08-04 06:41:14 +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 fa741a93ea Bug 1330099 - Disable ESlint rule object-shorthand in devtools tests where required to keep tests passing. r=jdescottes
Depends on D153537

Differential Revision: https://phabricator.services.mozilla.com/D153566
2022-08-03 14:57:05 +00:00
Mark Banner 1c23a90c8e Bug 1782008 - Remove now unnecessary ESLint test definitions from other .eslintrc.js files. r=mossop,media-playback-reviewers,alwu
Differential Revision: https://phabricator.services.mozilla.com/D153216
2022-08-03 11:16:20 +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
Mark Banner 4cb7265185 Bug 1782819 - Enable some ESLint rules for devtools to be consistent with the rest of mozilla-central. r=jdescottes
Depends on D153536

Differential Revision: https://phabricator.services.mozilla.com/D153537
2022-08-03 08:24:21 +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
Nicolas Chevobbe 27cd48bb58 Bug 1778852 - [devtools] Don't watch console messages resources from worker when worker messages are cloned to main thread. r=jdescottes.
When opening the debugger, we do watch worker targets in case we need to honor
some breakpoints.
If you started the console at some point, this will start watching console messages
resources, within the worker thread.
The issue is that if the `dom.worker.console.dispatch_events_to_main_thread` has
its default value, the worker messages are cloned from the worker thread to the
main thread, so when we start the debugger, we get duplicated messages: the cloned
ones, and the ones directly from the worker.
To fix this, we forward the value of the pref to the worker target so we can
bail out when it tries to watch for console messages.

Differential Revision: https://phabricator.services.mozilla.com/D153471
2022-08-03 05:28:06 +00:00
Nicolas Chevobbe ba30834aad Bug 1616273 - [devtools] Wait for webconsole reloaded event in _watchForPanelReload. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D63184
2022-08-02 10:06:56 +00:00