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

2426 Коммитов

Автор SHA1 Сообщение Дата
Joel Maher 5bf232d7af Bug 1776212 - cleanup e10s in manifest conditions for bc/dt. r=aryx,necko-reviewers,extension-reviewers,preferences-reviewers,dragana,zombie
Differential Revision: https://phabricator.services.mozilla.com/D150127
2022-06-23 17:49:07 +00:00
Nick Alexander 4c6dedd925 Bug 1768494 - Preserve devtools profile outside of ephemeral background profile. r=devtools-reviewers,nchevobbe
For `--backgroundtask ... --jsdebugger` invocations, the devtools
profile is kept inside the ephemeral background profile.  This means
that breakpoints, etc are not preserved across repeated debugging
invocations.  This change eases the debugging process.

Differential Revision: https://phabricator.services.mozilla.com/D145893
2022-06-22 04:05:26 +00:00
Emilio Cobos Álvarez 7829e5aab5 Bug 1774378 - Make select code harder to mess up. r=Gijs
Right now we rely on the menulist to be injected by hand in all the
relevant windows. Instead create it lazily, making the select code more
standalone.

The DevTools window was missing it, for example.

Differential Revision: https://phabricator.services.mozilla.com/D149620
2022-06-21 21:42:58 +00:00
Hubert Boma Manilla 58c7b8d171 Bug 1583179 - [devtools] Remove the reload and analyze performance buttons in the browser toolbox r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149610
2022-06-21 15:15:49 +00:00
Nicolas Chevobbe 1c4b4d8d2c Bug 1764346 - [devtools] Add Network Monitor Browser Toolbox test. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D149513
2022-06-21 11:45:52 +00:00
Iulian Moraru 64c0820aef Backed out changeset 91b52e450816 (bug 1774913) for causing dt failures on browser_rules_search-filter_context-menu.js. CLOSED TREE 2022-06-20 14:39:03 +03:00
Alexandre Poirot 506ba8eeb7 Bug 1770363 - [devtools] Fix iframe dropdown on target destruction from the MBT r=nchevobbe
This only fail on MBT because it still uses non-EFT
and the top level document is displayed in the iframe dropdown
via the old "listFrames/frameUpdate" codepath.
So that its frameData's id isn't related to a target actor
but rather to a frame of the parent-process/window-global target actor...

I'm adding test coverage for the regular web toolbox,
but the fix only reproduce in the context of the browser toolbox.

Depends on D149257

Differential Revision: https://phabricator.services.mozilla.com/D148793
2022-06-20 10:12:32 +00:00
Alexandre Poirot 8b8875909a Bug 1770363 - [devtools] Cover browser toolbox scope feature with a test around the iframe dropdown. r=nchevobbe
This add some minimal test coverage for the UI bits.

But more detailed test should rather be done around the TargetCommand API (browser_target_command_scope_flag.js).

Depends on D149256

Differential Revision: https://phabricator.services.mozilla.com/D149257
2022-06-20 10:12:32 +00:00
Alexandre Poirot 919272ebda Bug 1770363 - [devtools] Allow to pass any JSON value to ToolboxTask.spawn. r=nchevobbe
When passing an array, only booleans and number were accepted.
Also arrays were stringified to list of value coma separated,
as if arrays were refering to list of arguments.
That while passing a primitive value would be passed as a unique argument.

Clarify this by explicitely accepting arrays refering as list of argument,
or a primitive value being a unique argument.

I'm also fixing an issue with exceptions not being correctly reported.

Depends on D148527

Differential Revision: https://phabricator.services.mozilla.com/D149256
2022-06-20 10:12:31 +00:00
Alexandre Poirot d9d5317e43 Bug 1770363 - [devtools] Introduce on-demand multiprocess browser toolbox. r=nchevobbe
This introduces a checkbox in the iframe dropdown to enable/disable multiprocess debugging live.
Switching between:
 - debugging only the main process (all documents, workers and priviledged JS)
 - debugging all the processes (same, for each process, we will debug documents, workers, JS, ...)

This helps significantly speed up the browser toolbox when debugging only parent process resources,
while still allowing to switch to debug everything when required.

Depends on D146891

Differential Revision: https://phabricator.services.mozilla.com/D148527
2022-06-20 10:12:31 +00:00
Julian Descottes 04713f06d1 Bug 1774913 - [devtools] Enable devtools tests depending on emptyClipboard r=nchevobbe
After Bug 666254 was fixed, we should be able to run those checks on all platforms

Differential Revision: https://phabricator.services.mozilla.com/D149689
2022-06-20 06:03:37 +00:00
criss a3c52529a8 Backed out 5 changesets (bug 1770363) for causing mochitest failures on browser_ext_addon_debugging_netmonitor.js
Backed out changeset d29f5041fd98 (bug 1770363)
Backed out changeset a91879be9b4a (bug 1770363)
Backed out changeset 27e78762006f (bug 1770363)
Backed out changeset 18a6433fd24a (bug 1770363)
Backed out changeset 5cdcd2318a9f (bug 1770363)
2022-06-16 21:57:46 +03:00
Alexandre Poirot f66447e8f4 Bug 1770363 - [devtools] Fix iframe dropdown on target destruction from the MBT r=nchevobbe
This only fail on MBT because it still uses non-EFT
and the top level document is displayed in the iframe dropdown
via the old "listFrames/frameUpdate" codepath.
So that its frameData's id isn't related to a target actor
but rather to a frame of the parent-process/window-global target actor...

I'm adding test coverage for the regular web toolbox,
but the fix only reproduce in the context of the browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D148793
2022-06-16 17:19:07 +00:00
Alexandre Poirot b1e9c1549c Bug 1770363 - [devtools] Cover browser toolbox scope feature with a test around the iframe dropdown. r=nchevobbe
This add some minimal test coverage for the UI bits.

But more detailed test should rather be done around the TargetCommand API (browser_target_command_scope_flag.js).

Differential Revision: https://phabricator.services.mozilla.com/D149257
2022-06-16 17:19:06 +00:00
Alexandre Poirot ccce618e97 Bug 1770363 - [devtools] Allow to pass any JSON value to ToolboxTask.spawn. r=nchevobbe
When passing an array, only booleans and number were accepted.
Also arrays were stringified to list of value coma separated,
as if arrays were refering to list of arguments.
That while passing a primitive value would be passed as a unique argument.

Clarify this by explicitely accepting arrays refering as list of argument,
or a primitive value being a unique argument.

I'm also fixing an issue with exceptions not being correctly reported.

Differential Revision: https://phabricator.services.mozilla.com/D149256
2022-06-16 17:19:06 +00:00
Alexandre Poirot bc48a30433 Bug 1770363 - [devtools] Introduce on-demand multiprocess browser toolbox. r=nchevobbe
This introduces a checkbox in the iframe dropdown to enable/disable multiprocess debugging live.
Switching between:
 - debugging only the main process (all documents, workers and priviledged JS)
 - debugging all the processes (same, for each process, we will debug documents, workers, JS, ...)

This helps significantly speed up the browser toolbox when debugging only parent process resources,
while still allowing to switch to debug everything when required.

Differential Revision: https://phabricator.services.mozilla.com/D148527
2022-06-16 17:19:06 +00:00
Tetsuharu Ohzeki 4af14e7f3f Bug 1508688 - Add `UNSAFE_` prefix to React deprecated lifecycle methods in devtools/client/framework/. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D149479
2022-06-16 10:03:09 +00:00
Alexandre Poirot 70ceb24d7e Bug 1676208 - [devtools] Force keepAlive on browser toolbox test server. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D149354
2022-06-15 09:20:06 +00:00
Alexandre Poirot a49f0276c4 Bug 1773037 - [devtools] Disable safe mode and session restore in the browser toolbox. r=nchevobbe
The safe mode dialog will be displayed instead of the browser toolbox when the previous browser
toolbox has been closed too brutaly. This happens every now and then.

Also, when you opened a URL from the browser toolbox, this will then trigger a transient
browser window that appears and immediately disappear when opening the browser toolbox
all next time you start it. It might be related to session restore, but it looks like it is not enough
to get rid of this blinking window.

Differential Revision: https://phabricator.services.mozilla.com/D148515
2022-06-08 08:25:27 +00:00
Hubert Boma Manilla 8acd16def6 Bug 1764348 - Pause / Resume should toggle listening to network resources r=ochameau
With this patch Pause and Resume, now stop and start listening to network requests.

Differential Revision: https://phabricator.services.mozilla.com/D148488
2022-06-07 12:18:49 +00:00
Tooru Fujisawa a767536cca Bug 1772093 - Part 1: Use plain object for lazy getter in devtools/client/framework/. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D147897
2022-06-06 07:09:52 +00:00
Tooru Fujisawa 7fe9e3ef7e Bug 1772093 - Part 0: Eagerly import some modules in devtools/. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D148178
2022-06-06 07:09:51 +00:00
Tooru Fujisawa 823c668f50 Bug 1772351 - Part 1: Stop calling ChromeUtils.defineModuleGetter for AppConstants. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148164
2022-06-06 04:42:08 +00:00
Molnar Sandor 77402a5caa Backed out 15 changesets (bug 1772313, bug 1772351, bug 1772360) for causing xpc failures in telemetry/tests/unit/test_SocketScalars.js CLOSED TREE
Backed out changeset c8b0a2ed239e (bug 1772360)
Backed out changeset 1922adad6abe (bug 1772351)
Backed out changeset 6d3634cce489 (bug 1772351)
Backed out changeset f03968a9d053 (bug 1772351)
Backed out changeset e7a38ef90fe4 (bug 1772351)
Backed out changeset b389e7654771 (bug 1772313)
Backed out changeset 59a33598ff51 (bug 1772313)
Backed out changeset ab60885a8a93 (bug 1772313)
Backed out changeset aad8efac9d05 (bug 1772313)
Backed out changeset 4378e519a8e7 (bug 1772313)
Backed out changeset 302ac54741f8 (bug 1772313)
Backed out changeset 74c59f9fd51c (bug 1772313)
Backed out changeset 575fb877c56c (bug 1772313)
Backed out changeset 2eaa68f10b19 (bug 1772313)
Backed out changeset 4a8b3ba193dc (bug 1772313)
2022-06-06 07:04:25 +03:00
Tooru Fujisawa 5ff7b51845 Bug 1772351 - Part 1: Stop calling ChromeUtils.defineModuleGetter for AppConstants. r=florian
Differential Revision: https://phabricator.services.mozilla.com/D148164
2022-06-06 02:49:12 +00:00
Michael Ratcliffe 3133e874e5 Bug 1771608 - Eliminate mozilla/reject-osfile eslint warning in devTools code r=devtools-reviewers,perftest-reviewers,jdescottes,sparky
## Removed Some Osfile.jsm and ChromeUtils Dependencies

```diff
-  const { OS } = require("resource://gre/modules/osfile.jsm");

And / Or

-  const ChromeUtils = require("ChromeUtils");
```

- devtools/client/memory/actions/io.js
- devtools/client/memory/utils.js
- devtools/client/netmonitor/src/har/har-menu-utils.js
- devtools/client/responsive/test/browser/browser_screenshot_button.js
- devtools/client/shared/remote-debugging/adb/adb-binary.js
- devtools/client/shared/screenshot.js
- devtools/client/styleeditor/StyleEditorUI.jsm
- devtools/client/styleeditor/StyleSheetEditor.jsm
- devtools/client/webconsole/components/Input/JSTerm.js
- devtools/client/webconsole/test/browser/stub-generator-helpers.js
- devtools/server/actors/heap-snapshot-file.js
- devtools/server/actors/storage.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_01.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_02.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_03.js
- devtools/shared/DevToolsUtils.js
- devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js
- devtools/shared/tests/xpcshell/test_fetch-file.js
- testing/talos/talos/tests/devtools/addon/content/tests/toolbox/screenshot.js

## IOUtils.read()

```diff
-  OS.File.read(path);
+  IOUtils.read(path);
```

- devtools/client/aboutdebugging/test/browser/helper-real-usb.js
- devtools/client/netmonitor/src/har/har-menu-utils.js
- devtools/client/shared/remote-debugging/adb/adb-binary.js
- devtools/client/styleeditor/StyleSheetEditor.jsm
- devtools/client/webconsole/components/Input/JSTerm.js
- devtools/client/webconsole/test/browser/browser_jsterm_file_load_save_keyboard_shortcut.js
- devtools/client/webconsole/test/browser/browser_webconsole_context_menu_export_console_output.js
- devtools/shared/DevToolsUtils.js

## IOUtils.write()

```diff
-  OS.File.writeAtomic(filePath, fileContent);
+  IOUtils.write(filePath, fileContent);
```

- devtools/client/webconsole/test/browser/stub-generator-helpers.js
- devtools/shared/DevToolsUtils.js
- devtools/shared/tests/xpcshell/test_fetch-file.js

## PathUtils.split()

```diff
-  OS.Path.split(path);
+  PathUtils.split(path);
```

- devtools/client/styleeditor/StyleSheetEditor.jsm

## PathUtils.join()

```diff
-  OS.Path.join(path, filename);
+  PathUtils.join(path, filename);
```

NOTE: If `filename` is an absolute path then `OS.Path` will ignore `path` and use `filename` but `PathUtils` will try to concatenate both paths. If filename can be an absolute path we need to use `PathUtils.isAbsolute()` and `PathUtils.joinRelative()` to make our desired behaviour explicit.

- devtools/client/debugger/test/mochitest/browser_dbg-chrome-create.js
- devtools/client/shared/remote-debugging/adb/adb-binary.js
- devtools/client/styleeditor/StyleSheetEditor.jsm
- devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js

## PathUtils.isAbsolute() and PathUtils.joinRelative()

```diff
-  filename = OS.Path.join(path, filename);
+  filename = PathUtils.isAbsolute(filename)
+    ? filename
+    : PathUtils.joinRelative(path, filename);
```

- devtools/client/shared/screenshot.js

## IOUtils.remove()

```diff
-  OS.File.remove(filePath);
+  IOUtils.remove(filePath);
```

- devtools/client/framework/test/browser_toolbox_screenshot_tool.js
- devtools/client/responsive/test/browser/browser_screenshot_button.js
- devtools/client/responsive/test/browser/browser_screenshot_button_warning.js
- devtools/client/shared/test/shared-head.js
- devtools/client/webconsole/test/browser/browser_console_screenshot.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_file.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_fixed_header.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_selector.js
- testing/talos/talos/tests/devtools/addon/content/tests/toolbox/screenshot.js

## PathUtils.toFileURI()

```diff
-  OS.Path.toFileURI(filePath);
+  PathUtils.toFileURI(filePath);
```

- devtools/client/framework/test/browser_toolbox_screenshot_tool.js
- devtools/client/responsive/test/browser/browser_screenshot_button.js
- devtools/client/shared/test/shared-head.js
- devtools/client/webconsole/test/browser/browser_console_screenshot.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_file.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_fixed_header.js
- devtools/client/webconsole/test/browser/browser_jsterm_screenshot_command_selector.js

## PathUtils.filename()

```diff
-  OS.Path.basename(path),
+  PathUtils.filename(path),
```

- devtools/client/memory/actions/io.js
- devtools/client/memory/utils.js
- devtools/client/styleeditor/StyleEditorUI.jsm
- devtools/client/styleeditor/StyleSheetEditor.jsm

## IOUtils.copy()

```diff
-  OS.File.copy(path, dest);
+  IOUtils.copy(path, dest);
```

- devtools/client/memory/actions/io.js

## IOUtils.stat()

```diff
-  OS.File.stat(filePath);
+  IOUtils.stat(filePath);
```

The objects that these `stat()` versions return differ from one another. This hasn't made much difference to the codebase but our changed usage is included here for completeness:

```diff
-      this._fileModDate = info.lastModificationDate.getTime();
+      this._fileModDate = info.lastModified;
```

- devtools/client/memory/test/browser/browser_memory_transferHeapSnapshot_e10s_01.js
- devtools/client/memory/test/xpcshell/head.js
- devtools/client/memory/test/xpcshell/test_action-export-snapshot.js
- devtools/client/styleeditor/StyleSheetEditor.jsm
- devtools/server/actors/heap-snapshot-file.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_01.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_02.js
- devtools/server/tests/xpcshell/test_MemoryActor_saveHeapSnapshot_03.js
- devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js

## IOUtils.setPermissions

```diff
-  OS.File.setPermissions(filePath, { unixMode: 0o744 });
+  IOUtils.setPermissions(filePath, 0o744);
```

- devtools/client/shared/remote-debugging/adb/adb-binary.js

## IOUtils.makeDirectory

```diff
-  OS.File.makeDir(path);
+  IOUtils.makeDirectory(path);
```

- devtools/client/shared/remote-debugging/adb/adb-binary.js

## IOUtils.exists

```diff
-  OS.File.exists(path);
+  IOUtils.exists(path);
```

- devtools/client/shared/remote-debugging/adb/adb-binary.js
- devtools/client/shared/screenshot.js
- devtools/client/webconsole/test/browser/browser_jsterm_file_load_save_keyboard_shortcut.js
- devtools/client/webconsole/test/browser/browser_webconsole_context_menu_export_console_output.js

## PathUtils.profileDir, PathUtils.localProfileDir and PathUtils.tempDir

```diff
-    const profileDir = OS.Constants.Path.profileDir;
+    const profileDir = PathUtils.profileDir;
```

We can reduce reliance on `Osfile.jsm` in another bug bug this is a small step in that direction.

- devtools/client/shared/remote-debugging/adb/adb-binary.js
- devtools/server/actors/storage.js
- devtools/shared/heapsnapshot/HeapSnapshotFileUtils.js

## IOUtils.getChildren(storagePath)

`IOUtils` does not have a direct equivalent of `OS.File.DirectoryIterator()` so we need to iterate more explicitely using `IOUtils.getChildren()`.

```diff
- async findStorageTypePaths(storagePath) {
-   const iterator = new OS.File.DirectoryIterator(storagePath);
-   const typePaths = [];
-
-   await iterator.forEach(entry => {
-     if (entry.isDir) {
-       typePaths.push(entry.path);
-     }
-   });
-
-   iterator.close();
-   return typePaths;
- }

+ async findStorageTypePaths(storagePath) {
+   const children = await IOUtils.getChildren(storagePath);
+   const typePaths = [];
+
+   for (const path of children) {
+     const exists = await IOUtils.exists(path);
+     if (!exists) {
+       continue;
+     }
+
+     const stats = await IOUtils.stat(path);
+     if (stats.type === "directory") {
+       typePaths.push(path);
+     }
+   }
+
+   return typePaths;
+ }

```

- devtools/server/actors/storage.js

## Misc

Made `IOUtils` and `PathUtils` available to DevTools modules.

```diff
   HeapSnapshot,
+  IOUtils,
   L10nRegistry,
   Localization,
   NamedNodeMap,
   NodeFilter,
+  PathUtils,
   StructuredCloneHolder,
   TelemetryStopwatch,
```

- devtools/shared/loader/builtin-modules.js

Differential Revision: https://phabricator.services.mozilla.com/D147589
2022-06-02 21:13:56 +00:00
Alexandre Poirot 782ca9d04e Bug 1770527 - [devtools] Fix and ensure that browser toolbox close when closing Firefox. r=jdescottes
Either of the two changes fixes the reported issue.

On the frontend side, we weren't listening to DevToolsClient/connection close.
So that there was no guarantee that the Browser Toolbox would close if the remote connection is lost.
We were actually depending on Launcher.close to be called (it is called correctly)
and complete `dbgProcess.kill()`, which apparently doesn't always work during shutdown.

It looks like `SubProcess.kill` was made slower and didn't always had time to complete
because on the server side, the Parent Process Target actor was trying
to switch from browser.xhtml to chrome://extensions/content/dummy.xhtml.
But this document is being destroyed and the target as well as all children
actors and watchers were still trying to debug stuff and were all throwing.

Correctly destroying the parent process target actor when browser.xhtml is closed
seems to allow SubProcess.kill to complete...
And thanks to client's closed listener, even if we stop killing the process,
the browser toolbox process will close by itself.

Differential Revision: https://phabricator.services.mozilla.com/D148128
2022-06-02 20:26:43 +00:00
Iulian Moraru 43e6873145 Backed out 4 changesets (bug 1764348, bug 1771277) for causing multiple dt failures. CLOSED TREE
Backed out changeset 21c03813c9d0 (bug 1771277)
Backed out changeset 0ee89f81d7da (bug 1764348)
Backed out changeset 47658c248d9e (bug 1764348)
Backed out changeset 712947c3a514 (bug 1764348)
2022-06-02 23:13:28 +03:00
Hubert Boma Manilla 61afb77264 Bug 1764348 - Pause / Resume should toggle listening to network resources r=ochameau
With this patch Pause and Resume, now stop and start listening to network requests

Differential Revision: https://phabricator.services.mozilla.com/D146445
2022-06-02 14:35:24 +00:00
Alexandre Poirot 2c2ef59588 Bug 1771088 - [devtools] Ensure instantiating only one Loader when debugging the system principal. r=jdescottes
We were instantiating one new Loader per DevToolsFrameChild instance.
This patch tries to share this loader with all the instances as well as share it
with the one used to load DevToolsServer when we are running in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D147257
2022-06-01 14:38:36 +00:00
Gabriele Svelto fd3fc54c5d Bug 1771875 - Add BrowserTestUtils.reloadTab() and use it everywhere r=mconley,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D147732
2022-06-01 09:34:05 +00:00
Tooru Fujisawa f4e0a88160 Bug 1764717 - Part 19: Use findMessageByType and findMessagesByType tests in other directories. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D147039
2022-05-24 10:06:05 +00:00
Tooru Fujisawa c0b4d71d4f Bug 1764717 - Part 17: Use findMessageVirtualizedByType and findMessagesVirtualizedByType in tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D147037
2022-05-24 10:06:04 +00:00
Nicolas Chevobbe 2fde15757f Bug 1766602 - [devtools] Speedup jump to styleeditor from inspector. r=jdescottes.
In `viewSourceInStyleEditor`, we used to first load the styleeditor, and then
select the stylesheet and show the panel. This mean that when clicking on a location
from the rule view, there would be some delays before we show any feedback to the user.
Since the load promise for the panel only settles once we watched for all existing
stylesheets and loaded their content for each of them, it could take a while in
cases where we have lots of stylesheets, like in the BrowserToolbox.

So here we modify `viewSourceInStyleEditor` to directly select the styleeditor and
passing it a stylesheet that can be added right away, in case the panel wasn't
loaded yet, without waiting for the stylesheets to be watched.

We take this as an opportunity add a test when `viewSourceInStyleEditor` is called
with a stylesheet not used on the page, and check that it does open a view-source tab.

Differential Revision: https://phabricator.services.mozilla.com/D146540
2022-05-20 06:24:37 +00:00
Alexandre Poirot b798b2e643 Bug 1529621 - [devtools] Make all panel's destroy method be synchronous. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D146533
2022-05-17 16:45:13 +00:00
Julian Descottes e91cbfb2f4 Bug 1767759 - [devtools] Wait for toolbox-ready in browser_about-devtools-toolbox_reload.js r=devtools-reviewers,nchevobbe
The test was only waiting for addTab to resolve, waiting for the proper toolbox-ready event could reduce intermittent issues.

Differential Revision: https://phabricator.services.mozilla.com/D146530
2022-05-17 07:01:10 +00:00
Nicolas Chevobbe 2dae975b96 Bug 1668219 - [devtools] Remove prefs used in old perf panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D145536
2022-05-06 17:16:30 +00:00
Nicolas Chevobbe 073b56709e Bug 1668219 - [devtools] Remove now unused performance-recording actor and front. r=julienw,devtools-backward-compat-reviewers.
Remove files that were only used by this actor as well.

Differential Revision: https://phabricator.services.mozilla.com/D145464
2022-05-06 17:16:29 +00:00
Nicolas Chevobbe eab2a86cbe Bug 1668219 - [devtools] Remove now unused performance actor and front. r=julienw,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D145463
2022-05-06 17:16:28 +00:00
Nicolas Chevobbe e1f5f32c3a Bug 1668219 - [devtools] Remove isNewPerfPanelEnabled target configuration. r=bomsy,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D145460
2022-05-06 17:16:26 +00:00
Nicolas Chevobbe faee16015f Bug 1668219 - [devtools] Remove devtools.performance.new-panel-enabled preference. r=julienw.
Remove occurences of the pref (except in devtools/client/performance, which
will be removed further in the stack).

Differential Revision: https://phabricator.services.mozilla.com/D145459
2022-05-06 17:16:26 +00:00
Nicolas Chevobbe f7ae125a11 Bug 1668219 - [devtools] Remove new perf panel setting in DevTools Settings panel. r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D145458
2022-05-06 17:16:26 +00:00
Greg Tatum c8a4b709d5 Bug 1767537 - Update pseudolocalization docs; r=platform-i18n-reviewers,dminor
Differential Revision: https://phabricator.services.mozilla.com/D145374
2022-05-05 16:25:32 +00:00
Julian Descottes 83a6b29109 Bug 1764077 - [devtools] Add an option to disable 'drag to update' feature in Rule View r=nchevobbe,fluent-reviewers,flod
We should have a way to disable the feature. The RuleView will dynamically update whenever the preference is flipped

Differential Revision: https://phabricator.services.mozilla.com/D144727
2022-04-27 08:38:31 +00:00
Andreea Pavel 29fe73260b Bug 1756616 - disable browser_browser_toolbox_debugger.js on linux64 debug r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D144703
2022-04-26 13:57:38 +00:00
Alexandre Poirot 9aec23c0fe Bug 1594639 - [devtools] Ensure reusing browser toolbox custom binary path on reload. r=nchevobbe
I tried various approaches around the session restore, but this isn't reliable.
Using an environment variable is much easier and also help making the path global
for the whole instance in case we close and reopen it.

Differential Revision: https://phabricator.services.mozilla.com/D143695
2022-04-21 12:14:39 +00:00
Alexandre Poirot 96e520678a Bug 1594639 - [devtools] Pass option dictionary to BrowserToolboxLauncher.init. r=nchevobbe
This will be slightly easier to understand which argument we pass.

Differential Revision: https://phabricator.services.mozilla.com/D143694
2022-04-21 12:14:39 +00:00
Alexandre Poirot c5c771622b Bug 1764505 - [devtools] Allow recording the browser toolbox startup by setting MOZ_BROWSER_TOOLBOX_PROFILER_STARTUP=1. r=nchevobbe
You can run:
```
$ MOZ_BROWSER_TOOLBOX_PROFILER_STARTUP=1 ./mach run --jsdebugger
```
This will open a first browser toolbox for which we will record its startup.
Then, open a second browser toolbox, and open the recorded profile from its performance panel.

Differential Revision: https://phabricator.services.mozilla.com/D143567
2022-04-20 15:15:07 +00:00
Alexandre Poirot d9782d91c8 Bug 1764505 - [devtools] Enable the new profiler on the browser toolbox. r=nchevobbe,julienw
This will help debug browser toolbox performance.
The performance panel displayed in the first browser toolbox is a bit pointless,
you better have to use the toolbar icon so that you avoid having all DevTools noise.
This enabling is actually mostly meant for the second browser toolbox you can open,
which will debug the first browser toolbox.
In this second browser toolbox, you will be able to record the first browser toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D143566
2022-04-20 15:15:07 +00:00
Alexandre Poirot ee871dd92b Bug 1764505 - [devtools] Migrate Tool's definition isTargetSupport to isToolSupported. r=nchevobbe
And pass a toolbox instead of only the toplevel target.
It helps identify the browser toolbox and easily enable/disable tools for it.

Differential Revision: https://phabricator.services.mozilla.com/D143628
2022-04-20 15:15:06 +00:00