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

21652 Коммитов

Автор 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 4c0fda2660 Bug 1633712 - [devtools] Add a console message resource test for worker targets. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D88770
2020-10-15 05:18:58 +00:00
Nicolas Chevobbe 12e26edc41 Bug 1633712 - [devtools] Add test cases to browser_target_list_tab_workers and remove the fission fail-if. r=jdescottes.
Check that when removing iframes, we're notified about the worker unregistration,
and check that the target list works as expected when we have multiple iframes
on same origin (both remote and same-origin as main document).

Differential Revision: https://phabricator.services.mozilla.com/D88769
2020-10-15 05:19:23 +00: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 54da2bd313 Bug 1633712 - [devtools] Move shouldNotifyWindowGlobal and getAllRemoteBrowsingContexts to a util file. r=ochameau.
These functions will be used by the worker-helper.js module as well.

Differential Revision: https://phabricator.services.mozilla.com/D92751
2020-10-15 05:11:58 +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
Alexandre Poirot b5d324284b Bug 1667282 - [devtools] Fix browser_resources_network_events.js intermittent. r=bomsy
We should only assert `updates` attribute on resource-updated,
as we aren't guaranteed how many updates we will have in resource-available.
That's because of resource throttling. Updates may be coalesced into available,
but we can't predict how many.

Differential Revision: https://phabricator.services.mozilla.com/D93337
2020-10-14 13:03:31 +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
Jan Odvarko da6a32c342 Bug 1662653: [devtools] Update MDN compat data r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D93070
2020-10-13 15:14:38 +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
Narcis Beleuzu 0cc97d7a9e Backed out changeset f71a318e2dfc (bug 1662653) for dt failures on browser_rules_css-compatibility-check-add-fix.js CLOSED TREE 2020-10-13 18:07:04 +03: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
JulianWels b88cf407ac Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 12:27:26 +00:00
Mihai Alexandru Michis 55dd1dbe43 Backed out changeset b3fb1b5bbe34 (bug 1608074) for causing bustages in XMLHttpRequestMainThread.cpp
CLOSED TREE
2020-10-13 14:55:06 +03:00
JulianWels 2ae8134434 Bug 1608074 - Set channel ReferrerInfo in privileged code instead of referrer header r=nchevobbe,mixedpuppy,valentin
Differential Revision: https://phabricator.services.mozilla.com/D59856
2020-10-13 10:39:11 +00:00
Jan Odvarko d0ecf61755 Bug 1662653 - [devtools] Update MDN compat data r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D93070
2020-10-13 01:05:37 +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 4d7f2e708f Bug 1669681 - [devtools] Ignore detach errors when purging Front requests r=ochameau
Depends on D92756

Detach errors can happen when a target is being destroyed.
Historically, those errors were swallowed in the TargetFront mixin.
However this logic became outdated when we started purging requests during Front::destroy.

This results in non-actionable error messages logged frequently while using DevTools.
This changeset updates the logic in target-mixin.js in order to swallow errors due to purged requests.

Differential Revision: https://phabricator.services.mozilla.com/D92757
2020-10-12 08:12:53 +00:00
Julian Descottes d4c1319148 Bug 1669681 - [devtools] Stop processing packet responses in destroyed Fronts r=ochameau
Depends on D93030

All Front requests are purged before the Front is destroyed.
In theory there is no reason to process packets after the Front has been destroyed.
It will only create cryptic error messages.

Differential Revision: https://phabricator.services.mozilla.com/D92756
2020-10-12 08:13:06 +00:00
Julian Descottes e1074b5ab6 Bug 1669681 - [devtools] Send tabDetached event before the forwardingCancelled event in content-process-connector r=ochameau
Depends on D93029

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/D93030
2020-10-12 08:13: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