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

17594 Коммитов

Автор SHA1 Сообщение Дата
Ben Delevingne ba70fdae23 Bug 1667634 - Order WS message column context menu consistently. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D93484
2020-10-15 10:36:58 +00:00
Csoregi Natalia e0eb861a18 Backed out 4 changesets (bug 1633712) for leaks. CLOSED TREE
Backed out changeset 03553b300b86 (bug 1633712)
Backed out changeset 19c8ea0b43df (bug 1633712)
Backed out changeset 6eaa4d12b58c (bug 1633712)
Backed out changeset 10f97f47c883 (bug 1633712)
2020-10-15 09:36:36 +03:00
Nicolas Chevobbe 1e17daf388 Bug 1633712 - [devtools] Create WorkerTargets as soon as possible. r=ochameau,devtools-backward-compat-reviewers.
This patch adds support for dedicated worker targets in the Watcher actor.
Shared and Service workers are not handled yet.

In a similar manner to what we already have for frame targets, we add a worker-helper
file that will communicate with a JsWindowActor pair spawned on each document,
that will  manage workers (DevToolsWorkerParent/DevToolsWorkerChild).

For a given document, the DevToolsWorkerChild will enumerate the existing workers
related to it, as well as add an event listener to be notified when workers are
being registered and unregistered, and communicate that back to the DevToolsWorkerParent
on the main thread, so worker targets creation and destruction are notified by
the Watcher actor (via target-available-form and target-destroyed-form events).

When a worker is created, the DevToolsWorkerChild for the document the worker
was spawned from will create a WorkerTargetActor, that will live in the worker
thread (using worker-connector.js), passing it resources the Watcher is currently
listening for. It will also handle communication between the main thread and the
worker thread, when the watcher listen to new resources (or stop watching resources).

A WorkerTargetFront is created so the client can be notified about available
resources (via the resource-available-form event, emitted from the worker target).

Tests are added in the next patches of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D85399
2020-10-15 05:17:52 +00:00
Nicolas Chevobbe cc39cc39db Bug 1669956 - [devtools] Remove unused/unnecessary files from the reps folder. r=jdescottes.
There was an image folder, relic of an ancient time where
we needed to support the launchpad. We don't use those images anymore,
so the folder is removed.
The remaining files in the tset folder weren't used, so we remove
this folder as well.
Finally, there was a redux middleware folder, containing a thunk
and a waituntilService middleware. Those 2 modules already exist
in the codebase, so we can use those from the test that were using
the reps-specific version (with little adjustments).

This marks the end of the work for this bug.

Differential Revision: https://phabricator.services.mozilla.com/D93488
2020-10-14 14:40:09 +00:00
Nicolas Chevobbe b647f8cc2e Bug 1669956 - [devtools] Fix webconsole mocha tests. r=jdescottes.
Update babel config to transpile reps files.

Depends on D93480

Differential Revision: https://phabricator.services.mozilla.com/D93481
2020-10-14 13:19:38 +00:00
Nicolas Chevobbe d765e6f1c0 Bug 1669956 - [devtools] Fix compatibility jest tests. r=jdescottes.
The babel config needed to be tweaked in order to transpile the reps files.

Depends on D93395

Differential Revision: https://phabricator.services.mozilla.com/D93480
2020-10-14 12:00:07 +00:00
Nicolas Chevobbe bad5162eda Bug 1669956 - [devtools] Fix debugger jest tests. r=jdescottes.
Edit babel config to be able to parse reps file

Differential Revision: https://phabricator.services.mozilla.com/D93395
2020-10-14 11:57:54 +00:00
Nicolas Chevobbe 796b378898 Bug 1669956 - [devtools] Fix Reps support for the JSON Viewer. r=Honza.
This turns all the existing reps modules into AMD modules,
so they can be loaded in the JSON Viewer without trouble.
This means we had to change the test configuration so Reps
jest test can run.

Differential Revision: https://phabricator.services.mozilla.com/D93394
2020-10-14 14:52:11 +00:00
Nicolas Chevobbe 920274b3f6 Bug 1669956 - [devtools] Move object inspectors tests to devtools/client/shared/component/test/node. r=jdescottes.
For some reason the stubs needed to be updated (maybe an enzyme/jest update?)

Differential Revision: https://phabricator.services.mozilla.com/D93391
2020-10-14 11:49:57 +00:00
Nicolas Chevobbe 07807e84a1 Bug 1669956 - [devtools] Fix accessibility jest test. r=jdescottes.
Since the accessibility import the ObjectInspector, we need to add another
babel transformer to take care of it.

Differential Revision: https://phabricator.services.mozilla.com/D93389
2020-10-14 11:44:42 +00:00
Nicolas Chevobbe 49e674d823 Bug 1669956 - [devtools] Move reps test to the devtool/client/shared/component/test/node folder. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93378
2020-10-14 11:50:00 +00:00
Nicolas Chevobbe d750e62ad7 Bug 1669956 - [devtools] Run devtools shared components jest tests. r=jdescottes.
This allows the jest tests for the shared components to be run in the devtools-node task.

For some reason, the snapshots needed to be updated (it looked like we were
missing some bits?).

Differential Revision: https://phabricator.services.mozilla.com/D93376
2020-10-14 11:37:28 +00:00
Nicolas Chevobbe b90077d183 Bug 1669956 - [devtools] Update debugger bundles. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93375
2020-10-14 11:34:48 +00:00
Nicolas Chevobbe 6047021d99 Bug 1669956 - [devtools] Override bundled reps.css with the original one. r=jdescottes.
The file should now only impact reps, and not mention ObjectInspector or Tree.
The ObjectInspector.css and Tree.css files are added into jar.mn.
Panels using the object inspector component (console and debugger), need to import
all 3 css files, while panels only using reps benefit from a lighter reps.css file.

Differential Revision: https://phabricator.services.mozilla.com/D93374
2020-10-14 13:12:11 +00:00
Nicolas Chevobbe 021bd19c64 Bug 1669956 - [devtools] Fix loading reps from the debugger. r=jdescottes.
ObjectInspector-related flow types are migrated/merge into the debugger types
file.

Differential Revision: https://phabricator.services.mozilla.com/D93373
2020-10-14 11:36:38 +00:00
Nicolas Chevobbe 203fb1fd7f Bug 1669956 - [devtools] Move Tree component to devtools/client/shared and remove devtools-components. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93372
2020-10-14 11:32:58 +00:00
Nicolas Chevobbe cd1c9e51c2 Bug 1669956 - [devtools] Enable eslint for devtools/client/shared/components/reps. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93370
2020-10-14 11:33:16 +00:00
Nicolas Chevobbe 15547ae76c Bug 1669956 - [devtools] Fix require paths in reps folder. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93358
2020-10-14 11:24:21 +00:00
Nicolas Chevobbe 7d6dc35518 Bug 1669956 - [devtools] Remove classnames usage in ObjectInspector components. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93356
2020-10-14 11:24:29 +00:00
Nicolas Chevobbe c054be38ef Bug 1669956 - [devtools] Update require paths to reps modules. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93354
2020-10-14 11:24:17 +00:00
Nicolas Chevobbe af4bb5e2f6 Bug 1669956 - [devtools] Add moz.build in devtools/client/shared/components/reps. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93352
2020-10-14 11:24:14 +00:00
Nicolas Chevobbe c14ad4e144 Bug 1669956 - [devtools] Remove devtools-reps from debugger codebase. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93351
2020-10-14 11:24:07 +00:00
Nicolas Chevobbe 8ce3fd5303 Bug 1669956 - [devtools] Remove flow annotations from reps and object inspector. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93348
2020-10-14 11:20:32 +00:00
Nicolas Chevobbe 4bfc529b0d Bug 1669956 - [devtools] Remove reps bundle. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93347
2020-10-14 11:32:49 +00:00
Nicolas Chevobbe d959034890 Bug 1669956 - [devtools] Move reps to devtools/client/shared/components/reps . r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93345
2020-10-14 11:24:10 +00:00
Daisuke Akatsuka 41e2c566d4 Bug 1662653: [devtools] Use other experimental properties instead of appearance. r=Honza
Depends on D93070

Differential Revision: https://phabricator.services.mozilla.com/D93297
2020-10-13 11:29:10 +00:00
Nicolas Chevobbe 0f899895ad Bug 1660609 - [devtool] Fix browser_console_devtools_loader_exception.js failure on Beta. r=ladybenko.
This test was failing on Beta because we are using the targetList to wait for
a given source to be available, in order to avoid pending connection to the
server (that were happening when the targetList was trying to attach the thread
of the target), but on Beta, for the browser console, we don't listen for anything
with the targetList if the Browser Toolbox fission pref is disabled.
To fix the test, we check the pref and wait for the target only if it's enabled.

Differential Revision: https://phabricator.services.mozilla.com/D92877
2020-10-13 16:42:22 +00:00
Nicolas Chevobbe 2a7a8a65bb Bug 1660609 - [devtools] Fix browser_jsterm_hide_when_devtools_chrome_enabled_false.js failures on Beta. r=ladybenko.
This test was using the browser console targetList to wait for a specific worker
target to be available. This was failing on Beta because for the Browser Console,
we only listen for workers if the browser toolbox fission pref is enabled, which
is the case on Nightly, but not on Beta.

To fix the test, we check the pref and wait for the target only if it's enabled.

Differential Revision: https://phabricator.services.mozilla.com/D92876
2020-10-13 16:41:48 +00:00
Julian Descottes e7e1ce40d9 Bug 1669000 - [devtools] Add fail-if=fission for browser_dbg_WorkerTargetActor.attach.js r=smaug,ochameau
This test perma fails on Fission since session-history-in-parent was enabled.
The test asserts workers retrieved from BrowsingContext targets as follows:
- go to page1, check we can get worker1
- go to page2, check we can get worker2
- go back to page1, check we can get worker1

On the last step, after navigating back, we are unable to retrieve the worker1 on page1

Differential Revision: https://phabricator.services.mozilla.com/D93251
2020-10-13 12:59:59 +00:00
Ben Delevingne 3dfaad2d7f Bug 1582699 - [devtools] Consolidate thunk middlewares. r=nchevobbe
Merge `thunk-with-options` behavior directly into `thunk`, update `thunk` and `thunk-with-options` callsites and finally remove now unused `thunk-with-options` (as well as netmonitor's own `thunk`)

Depends on D92888

Differential Revision: https://phabricator.services.mozilla.com/D93195
2020-10-13 07:45:52 +00:00
Ben Delevingne 14aa4fcf8e Bug 1582699 - [devtools] Update thunk actions to take an object as an argument. r=nchevobbe
In short, thunk actions are changing from a signature with 2 parameters (dispatch and getState): `(dispatch, getState)`, to an object that contains those properties: `({ dispatch, getState })`.
This is done so we can merge thunk and thunk-with-options

Differential Revision: https://phabricator.services.mozilla.com/D92888
2020-10-13 07:48:12 +00:00
Ben Delevingne db9a05f7cd Bug 1669693 - [devtools] fix WebSocket message keyboard navigation. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D92884
2020-10-12 11:46:51 +00:00
Ben Delevingne ff7ffd0451 Bug 1667751 - Parse STOMP within SockJS WebSocket messages. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D92374
2020-10-12 11:15:16 +00:00
Razvan Maries 3292353471 Bug 1667115 - Disabled browser_net_simple-request-data.js on multiple platforms. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93129
2020-10-12 10:44:59 +00:00
Andreea Pavel b03f44cff7 Bug 1661641 - disable browser_net_fission_switch_target.js on fission win/linux 64 bits r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93128
2020-10-12 10:34:55 +00:00
Andreea Pavel 3d18de3f43 Bug 1665482 - disable browser_inspector_fission_frame_navigation.js on fission win/linux 64 bits r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93141
2020-10-12 10:36:19 +00:00
Julian Descottes a9480f8030 Bug 1669681 - [devtools] Send tabDetached event before the forwardingCancelled event in frame-connector r=ochameau
Emitting "forwardingCancelled" will result in purging requests on the target front, which almost equates to destroying the front.
We should emit the "tabDetached" event before that to avoid emitting events on already destroyed fronts.

Differential Revision: https://phabricator.services.mozilla.com/D93029
2020-10-12 08:13:29 +00:00
Miguel Roncancio d50a7cff43 Bug 1593933 - [devtools] Navigating should close existing console.group messages. r=nchevobbe
When a navigation message is added into the store, reset the currentGroup property
This adds a test to ensure the fix works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D92778
2020-10-12 08:36:19 +00:00
Julian Descottes 252349d915 Bug 1659969 - [devtools] Add Debugger test for sources from remote frames r=ochameau
Depends on D92687

Differential Revision: https://phabricator.services.mozilla.com/D87583
2020-10-12 07:59:23 +00:00
Alexandre Poirot 0206cdf1ec Bug 1659969 - [devtools] Pass TargetMixin.targetType to debugger codebase in order to distinguish the targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92687
2020-10-12 07:08:16 +00:00
Alexandre Poirot 64d85172e7 Bug 1659969 - [devtools] Use isTopLevel attribute to know if a given target is the "main one". r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D92686
2020-10-12 07:08:14 +00:00
Miguel Roncancio 1a817a17ed Bug 1440068 - Fix filtering on console groups r=nchevobbe
Bug 1440068 - Fix filtering on console groups.

implement more thorough check of collapsed group messages

expand test suite

Differential Revision: https://phabricator.services.mozilla.com/D91065
2020-10-12 06:41:33 +00:00
Razvan Caliman 22dbe9a21d Bug 1668265 - [devtools] Ensure node picker reacts to inspector fronts as they become available or destroyed r=ochameau
When a page is refreshed, the inspector fonts associated with targets within are destroyed and recreated.

The node picker didn't observe for this behavior. When a page was refreshed, it kept picking against dead fronts and ignored the newly created fronts, thus leaving users confused. This is an issue in popular web dev workflows like Hot Module Reloading, where the page may end up being refreshed. See [Bug1352121#c4](https://bugzilla.mozilla.org/show_bug.cgi?id=1352121#c4)

This patch makes the node picker listen for targets and inspector fronts as they become available or get destroyed. If node picking isn't explicitly stopped by either clicking a node or pressing the Escape key, node picking continues onto the refreshed page or to new page (same behavior as in Firefox Release).

Differential Revision: https://phabricator.services.mozilla.com/D92779
2020-10-10 08:09:41 +00:00
Andreea Pavel 0b2240bc6e Bug 1657807 - disable browser_rules_css-compatibility-add-rename-rule.js on win/linux 64bits r=ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D92772
2020-10-09 19:03:21 +00:00
Brad Werth f99f295b79 Bug 1669628 Part 2: Removing fast enough timing checks on intermittent test browser/browser_touch_simulation.js. r=jdescottes
This is a timing test that includes checks on whether an event happened "fast
enough". Those checks are too hard to dial in between short enough to be
relevant and long enough to ensure it's never intermittent. This change takes
them out while preserving the rest of the test, including the checks that some
events happen after a "slow enough" delay.

Differential Revision: https://phabricator.services.mozilla.com/D92954
2020-10-09 08:06:15 +00:00
Alexandre Poirot 342c1ad0be Bug 1669545 - [devtools] Print internal error codes instead of only "Blocked" when there is not explicit blocking reason. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92657
2020-10-09 13:45:55 +00:00
Julian Descottes d7ae84a6e5 Bug 1670191 - [devtools] Remove mentions about remote debugging in target-mixin r=nchevobbe
Remote debugging in those method names and comments refered to e10s.
Nowadays remote debugging is rather used to talk about remote "browser" debugging, via about:debugging.
The comments give the false impression that those events are only used for about:debugging, which is not true.

Differential Revision: https://phabricator.services.mozilla.com/D93063
2020-10-09 12:22:28 +00:00
Emilio Cobos Álvarez 4d89ea6d7c Bug 1654866 - Make style inspector account for UA/chrome sheets and quirks properly. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D92633
2020-10-09 11:56:18 +00:00
Itiel 98722ba7f7 Bug 1668624 - Fix the arrow part of the Profiler panel not being colored the same as the header when the info section is expanded r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D92126
2020-10-08 20:32:59 +00:00
Sylvestre Ledru cad53f4804 Bug 1588458 - Replace dxr links by searchfox in the code/test r=kats,sparky
Differential Revision: https://phabricator.services.mozilla.com/D92792
2020-10-08 14:02:40 +00:00