Commit Graph

22587 Commits

Author SHA1 Message Date
Alexandre Poirot
71dcc33581 Bug 1698554 - [devtools] Improve error logging when a request fails with a custom exception. r=nchevobbe
Like BrowsingContextTargetActor.detach which was throwing { error: wrongState }
and we were logging "(void 0)" because error.message was undefined,
while error was the thrown JS object.

Differential Revision: https://phabricator.services.mozilla.com/D107986
2021-03-19 10:04:48 +00:00
Butkovits Atila
cfce9044e0 Backed out 2 changesets (bug 1647845) for causing build bustages. CLOSED TREE
Backed out changeset 8822a2e578f2 (bug 1647845)
Backed out changeset 5a44095128e0 (bug 1647845)
2021-03-19 01:07:18 +02:00
Emily McDonough
d75c4dc4be Bug 1647845 Part 2 - Add page-size attribute to nsStyleStruct and property parsing r=emilio
This parsing is hidden behind the pref layout.css.page-size.enabled.

It isn't ideal that we parse this as a property, but we can't treat it as a
descriptor because of compatibility issues with other browsers. There are also
outstanding spec issues related to how descriptors like page-size are cascaded,
and whether the !important specifier is valid or not.

Differential Revision: https://phabricator.services.mozilla.com/D103958
2021-03-18 22:26:24 +00:00
Alexandre Poirot
c6ae78f964 Bug 1698491 - [devtools] Wait for resume(dbg) resolution in all debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D108430
2021-03-18 22:06:27 +00:00
Nicolas Chevobbe
8469f542e0 Bug 1697747 - [devtools] Ignore already destroyed root node resources in onResourceAvailable callback. r=jdescottes.
It looks like this reduces the number of failures in browser_toolbox_backward_forward_navigation.js.

Differential Revision: https://phabricator.services.mozilla.com/D107980
2021-03-18 16:53:55 +00:00
Alexandre Poirot
be9a714771 Bug 1698842 - [devtools] Avoid a few cases where targetFront is null during a client side target switching. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D108680
2021-03-18 16:28:29 +00:00
Alexandre Poirot
c261f0be80 Bug 1698842 - [devtools] Avoid notifying about already destroyed targets from TargetCommand. r=nchevobbe
This helps browser_toolbox_backward_forward_navigation.js passing with fission enabled.

Differential Revision: https://phabricator.services.mozilla.com/D108648
2021-03-18 16:28:29 +00:00
Alexandre Poirot
557c1c05cc Bug 1699432 - [devtools] Ignore connection closed when closing browser toolbox in tests. r=nchevobbe
This is to fix intermittent failure on all browser toolbox tests.
It looks like these patches make toolbox.destroy shuts down connection faster
and lead to evaluateJSAsync request still be pending while the connection is closed
and actors and fronts are destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D108630
2021-03-18 16:28:29 +00:00
Alexandre Poirot
ef448d774b Bug 1699432 - [devtools] Destroy TabDescriptor instead of Target from toolbox and tests. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D108577
2021-03-18 16:28:28 +00:00
Alexandre Poirot
5c242f881a Bug 1699432 - [devtools] Always listen to target-available and destroyed events from TargetCommand. r=nchevobbe,jdescottes
This is to allow destroying correctly the targets even if we aren't watching for additional targets.

Differential Revision: https://phabricator.services.mozilla.com/D108576
2021-03-18 16:28:28 +00:00
Alexandre Poirot
f4691adefc Bug 1699432 - [devtools] Bail out if DevToolsClient.close becomes reentrant. r=nchevobbe
Close method may be called by the transport on close.
This was highlighted by browser_target_from_url.js
Surprisingly devtools/shared/tests/xpcshell/test_debugger_client.js
tries quite hard to cover such issue, but we seem to get yet another type of reentrancy.
This probably depends on WebSocketTransport, which is a bit hard to get covered.
No test seems to be spawning a WebSocket DevToolsServer...

Differential Revision: https://phabricator.services.mozilla.com/D107988
2021-03-18 16:28:27 +00:00
Sebastian Zartner
5b882432c3 Bug 1693147 - Use toggle button for switching between raw and formatted request view. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D107356
2021-03-18 12:46:47 +00:00
Cosmin Sabou
1b1db8ad9c Backed out 8 changesets (bug 1631451, bug 1698842) for xpcshell failures on test_breakpoint-25.js. CLOSED TREE
Backed out changeset 0d9035ed5c50 (bug 1698842)
Backed out changeset 55166c719cd2 (bug 1698842)
Backed out changeset 8cc10a259de1 (bug 1631451)
Backed out changeset bc9072114706 (bug 1631451)
Backed out changeset b5cb78fd1f61 (bug 1631451)
Backed out changeset da765754e3a8 (bug 1631451)
Backed out changeset d7a1c44ea37c (bug 1631451)
Backed out changeset 810bdfa0d899 (bug 1631451)
2021-03-18 02:35:30 +02:00
Alexandre Poirot
642795fcff Bug 1698842 - [devtools] Avoid a few cases where targetFront is null during a client side target switching. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D108680
2021-03-17 23:46:39 +00:00
Alexandre Poirot
ddb7719619 Bug 1698842 - [devtools] Avoid notifying about already destroyed targets from TargetCommand. r=nchevobbe
This helps browser_toolbox_backward_forward_navigation.js passing with fission enabled.

Differential Revision: https://phabricator.services.mozilla.com/D108648
2021-03-17 23:46:39 +00:00
Alexandre Poirot
11f0c12d40 Bug 1631451 - [devtools] Ignore connection closed when closing browser toolbox in tests. r=nchevobbe
This is to fix intermittent failure on all browser toolbox tests.
It looks like these patches make toolbox.destroy shuts down connection faster
and lead to evaluateJSAsync request still be pending while the connection is closed
and actors and fronts are destroyed.

Differential Revision: https://phabricator.services.mozilla.com/D108630
2021-03-17 23:46:38 +00:00
Alexandre Poirot
97f2421098 Bug 1631451 - [devtools] Control DevToolsClient closure from Descriptor instead of Target. r=nchevobbe,jdescottes
Still use a shouldCloseClient flag, but instead of closing the client from the target's destruction,
from which we should ignore cross process target switching,
we now close it from the descriptor destruction.
Descriptor destruction should only happen when the toolbox is meant to be closed.

Differential Revision: https://phabricator.services.mozilla.com/D106835
2021-03-17 23:46:38 +00:00
Alexandre Poirot
62af4ea387 Bug 1631451 - [devtools] Destroy target front via Watcher's target-destroyed-form. r=nchevobbe,jdescottes
That, instead of tabDetached event, fired on the target actor themself.

Differential Revision: https://phabricator.services.mozilla.com/D108578
2021-03-17 23:46:37 +00:00
Alexandre Poirot
b6ea5cc58d Bug 1631451 - [devtools] Destroy TabDescriptor instead of Target from toolbox and tests. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D108577
2021-03-17 23:46:37 +00:00
Alexandre Poirot
4445a9ee50 Bug 1631451 - [devtools] Always listen to target-available and destroyed events from TargetCommand. r=nchevobbe,jdescottes
This is to allow destroying correctly the targets even if we aren't watching for additional targets.

Differential Revision: https://phabricator.services.mozilla.com/D108576
2021-03-17 23:46:37 +00:00
Alexandre Poirot
1c1911097e Bug 1631451 - [devtools] Bail out if DevToolsClient.close becomes reentrant. r=nchevobbe
Close method may be called by the transport on close.
This was highlighted by browser_target_from_url.js
Surprisingly devtools/shared/tests/xpcshell/test_debugger_client.js
tries quite hard to cover such issue, but we seem to get yet another type of reentrancy.
This probably depends on WebSocketTransport, which is a bit hard to get covered.
No test seems to be spawning a WebSocket DevToolsServer...

Differential Revision: https://phabricator.services.mozilla.com/D107988
2021-03-17 23:46:36 +00:00
Henry Vincent
cc89c462df Bug 1699146 - Fix typo in error message created by Front base class r=ochameau First bug fix. Fixed typo, and then the linter wanted the code slightly reformatted.
Differential Revision: https://phabricator.services.mozilla.com/D108881
2021-03-17 23:45:49 +00:00
Markus Stange
e3927f3261 Bug 1697338 - Remove unused -moz-default-appearance values -moz-mac-vibrancy-light/dark, and the system colors of the same name. r=emilio
Starting with macOS 10.14, the generic light/dark vibrancy is deprecated, and semantic vibrancy names are preferred.
If we ever need more vibrancy, we can add new values with semantic names.

Depends on D107910

Differential Revision: https://phabricator.services.mozilla.com/D108152
2021-03-17 16:50:08 +00:00
Emma Malysz
07e9a5b088 Bug 1691140, add Task Manager to browser tools menu for proton r=mconley,fluent-reviewers,flod
Revert changes that added Task Manager to help menu.
With proton disabled, it should remain in the "More" section

Differential Revision: https://phabricator.services.mozilla.com/D108055
2021-03-17 15:44:17 +00:00
Nicolas Chevobbe
6534ca6963 Bug 1642599 - [devtools] Enable all console messages server support everywhere. r=ochameau,devtools-backward-compat-reviewers.
When enabling the watcher support, we end up having duplicate platform messages as we
received them both from the content process and the parent process (the messages are cloned).

A couple test cases are added to ensure we handle all kind of messages properly.

Depends on D107648

Differential Revision: https://phabricator.services.mozilla.com/D103285
2021-03-17 10:04:44 +00:00
Nicolas Chevobbe
4ad66686de Bug 1642599 - [devtools] Don't handle CSS messages in content processes. r=ochameau.
We're getting those messages directly from the frame targets, so we can safely
ignore them in the content process.
A test case is added in a following patch in this queue.

Differential Revision: https://phabricator.services.mozilla.com/D108632
2021-03-17 10:04:44 +00:00
Nicolas Chevobbe
26a0d5c543 Bug 1642599 - [devtools] Add test for webextension messages in Browser Console. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D108394
2021-03-17 10:04:43 +00:00
Nicolas Chevobbe
95dc829a7c Bug 1642599 - [devtools] Revert Bug 1697453. r=ochameau.
The patch for Bug 1697453 made it so we weren't dispatching resources tied to
a target being destroyed. This revealed an issue when adding a test for webextension
popup messages, where the target is being destroyed before the browser console can
consume it (see following patches in this queue).
Since Bug 1697453 was only done to try to make `browser_toolbox_backward_forward_navigation.js`
pass when fission is enabled, and given it's still failing, let's revert this
patch for now and reassess if this is needed, and if so, if we shoul only do that
for some specific resources.

Differential Revision: https://phabricator.services.mozilla.com/D108631
2021-03-17 10:04:43 +00:00
nchevobbe
ada2cfd902 Bug 1642599 - [devtools] Don't use watchers in browser console/toolbox if devtools.browsertoolbox.fission is disabled. r=ochameau.
We bail out early in TargetList#hasTargetWatcherSupport and ResourceWatcher#hasResourceWatcherSupport
if we're in the browser toolbox or browser console and the pref is disabled.

Depends on D107410

Differential Revision: https://phabricator.services.mozilla.com/D107648
2021-03-17 10:04:43 +00:00
Noemi Erli
b4700b1965 Backed out 2 changesets (bug 1647845) for causing assertions in nsStyleStruct.cpp CLOSED TREE
Backed out changeset 1564d93002de (bug 1647845)
Backed out changeset bc1815fb4405 (bug 1647845)
2021-03-16 23:01:50 +02:00
Emily McDonough
626bdb9278 Bug 1647845 Part 2 - Add page-size attribute to nsStyleStruct and property parsing r=emilio
This parsing is hidden behind the pref layout.css.page-size.enabled.

It isn't ideal that we parse this as a property, but we can't treat it as a
descriptor because of compatibility issues with other browsers. There are also
outstanding spec issues related to how descriptors like page-size are cascaded,
and whether the !important specifier is valid or not.

Differential Revision: https://phabricator.services.mozilla.com/D103958
2021-03-16 19:54:27 +00:00
Hubert Boma Manilla
b93a9b2e09 Bug 1687954 - [devtools] Use thread configuration actor for POE functionality r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D107991
2021-03-16 17:26:11 +00:00
Hubert Boma Manilla
723e6c0a0f Bug 1687954 - [devtools] Add thread configuration actor r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107116
2021-03-16 17:26:10 +00:00
Butkovits Atila
a9b018d197 Bug 1694274 - disable browser_storage_indexeddb_navigation.js on Linux_64 for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108609
2021-03-16 14:43:43 +00:00
Nicolas Chevobbe
541c0424bf Bug 1698565 - [devtools] Fix browser_toolbox_backward_forward_navigation.js. r=ochameau.
The test wasn't doing a target switch, which it was supposed to do, so this patch
fixes that.
The other issue was that in the case we're navigating back and forth immediately,
we might get into cases where the `goForward` command was ignored. The fix here
is to use `waitForLocationChange` which does wait just enough so the navigation
was taken into account.

Differential Revision: https://phabricator.services.mozilla.com/D108477
2021-03-16 11:45:54 +00:00
Alexandre Poirot
04c65fe8e2 Bug 1694352 - [devtools] Avoid debugging addons that are still starting up. r=nchevobbe,rpl
Differential Revision: https://phabricator.services.mozilla.com/D108032
2021-03-16 10:31:50 +00:00
Alexandre Poirot
de406c7ac2 Bug 1694352 - [devtools] Throw explicit error when connecting to a web extension that got destroyed. r=nchevobbe
Better acknowledge that connectToFrame may resolve null in case of
destroyed addon while connectToFrame was processing.

Differential Revision: https://phabricator.services.mozilla.com/D108031
2021-03-16 10:31:50 +00:00
Julian Descottes
d839168584 Bug 1698681 - [devtools] Remove unused DevTools module non-react-subscriber.js r=nchevobbe
This module is not used in mozilla central https://searchfox.org/mozilla-central/search?path=&q=non-react-subscriber and was added a long time ago https://bugzilla.mozilla.org/show_bug.cgi?id=1200798

Differential Revision: https://phabricator.services.mozilla.com/D108527
2021-03-16 08:26:11 +00:00
Julian Descottes
e0cfe2d83c Bug 1698553 - [devtools] Update DevTools release doc to include same-version smoke tests r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D108523
2021-03-16 08:25:56 +00:00
Nicolas Chevobbe
1a58b5f681 Bug 1696862 - [devtools] Don't filter out webextensions in shouldNotifyWindowGlobal. r=jdescottes.
This prevented existing webextension documents targets to not be created, which
caused a few issues (couldn't expand webextension browser element in the inspector,
missing webextension messages in the browser console when watcher support is enabled, …).

A test is added for the inspector test case (for the console, a test already exists).

Depends on D108394

Differential Revision: https://phabricator.services.mozilla.com/D108453
2021-03-15 15:26:42 +00:00
Alexandre Poirot
f372284a06 Bug 1697869 - [devtools] Unify all destroy-alike sequences in target actors. r=nchevobbe
For now, we have:
 - detach
 - exit
 - destroy
all complexly interleaved.
Some detach and exit won't lead to actor destruction, and may lead to pending actor
still registered in pools...

Differential Revision: https://phabricator.services.mozilla.com/D108062
2021-03-15 14:45:33 +00:00
Alexandre Poirot
ebbbcc765b Bug 1697490 - [devtools] Stop considering that thread with no frames are running. r=nchevobbe,bomsy
The previous algorithm was ignoring THREAD_STATE resources.
We should consider thread as being paused or running based on these events,
which will fire RESUME and PAUSED actions.

Differential Revision: https://phabricator.services.mozilla.com/D107831
2021-03-15 12:08:03 +00:00
Alexandre Poirot
d91c285ded Bug 1697490 - [devtools] Pull isPaused state from per-thread data. r=nchevobbe,bomsy
This help get rid of the redundant threadcx.isPaused attribute,
which isn't trivial to maintain as it duplicates a per thread data.
The SELECT_THREAD codepath was especially special as we bound isPaused
to perThreadData.frames being defined or not.
But "frames" is having a very different behavior from isPaused.

Following changeset is going to revisit how we define that a thread is paused.

Differential Revision: https://phabricator.services.mozilla.com/D107830
2021-03-15 12:08:02 +00:00
Alexandre Poirot
009ff7ef0e Bug 1697490 - [devtools] Stop using isPaused from thread context. r=nchevobbe,bomsy
This is mostly a prep work for the next changeset.
So that we can pull the isPaused information from the already existing per-thread state object.

Differential Revision: https://phabricator.services.mozilla.com/D107829
2021-03-15 12:08:02 +00:00
Alexandre Poirot
115eda2c56 Bug 1697490 - [devtools] Remove unused attributes and functions from pause reducer. r=nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D107828
2021-03-15 12:08:01 +00:00
Alexandre Poirot
9b162e01f3 Bug 1697490 - [devtools] Wait for thread to be running against after resume in all debugger tests. r=nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D107827
2021-03-15 12:08:01 +00:00
Gerald Squelart
29484a6f2b Bug 1687631 - Add cpu profiler feature to stack-walking profiling tests - r=florian,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D107599
2021-03-15 11:54:44 +00:00
Gerald Squelart
e6e59a38c3 Bug 1687631 - about:profiling CPU Utilization is now recommended and in all presets - r=florian
Also since the front-end handling is now deployed, there is no need to mention the deploy preview URL anymore.

Differential Revision: https://phabricator.services.mozilla.com/D107597
2021-03-15 11:54:43 +00:00
Jan Odvarko
f62cae8410 Bug 1658876 - [devtools] Avoid including its own cloning and build instructions in docs. r=nchevobbe
Removing DevTools specific build instructions in favor of https://firefox-source-docs.mozilla.org/setup/index.html

Differential Revision: https://phabricator.services.mozilla.com/D108182
2021-03-15 11:41:14 +00:00
Alexandre Poirot
ec618b289e Bug 1696375 - [devtools] Move Targets tests to commands folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D105615
2021-03-15 08:08:38 +00:00