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

25401 Коммитов

Автор SHA1 Сообщение Дата
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
Sandor Molnar 8aada8ee04 Backed out 2 changesets (bug 1595491) for causing build bustages in docshell/base/BrowsingContext.cpp CLOSED TREE
Backed out changeset 3687b7153c44 (bug 1595491)
Backed out changeset 91d87de145e3 (bug 1595491)
2022-08-12 19:50:20 +03:00
Andreas Farre f50b89fd60 Bug 1595491 - Part 2: Adapt test files to <embed> and <object> behaving more like <iframe>. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D148118
2022-08-12 15:48:27 +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 137fce8f67 Bug 1772155 - [devtools] Move all session data entry processing into a dedicated module. r=nchevobbe
This will help keep target-actor-mixin generic and move each data entry processing
to a dedicated module.

Differential Revision: https://phabricator.services.mozilla.com/D147881
2022-08-11 21:27:00 +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
Emilio Cobos Álvarez e23e2a0212 Bug 1783934 - Add a chrome-only -moz-box-layout: legacy | flex, and use that to implement flexbox emulation. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D154153
2022-08-10 19:46:37 +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
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
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 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
Julian Descottes cfa35e439a Bug 1770415 - [devtools] Update documentation about sw debugging r=devtools-reviewers,nchevobbe
Outdated information and screenshots about sw debugging from the application panel.

Differential Revision: https://phabricator.services.mozilla.com/D152158
2022-08-04 12:09:29 +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
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