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

23276 Коммитов

Автор SHA1 Сообщение Дата
Dana Keeler a3a8d74a08 Bug 1712983 - memoize decoded certificates in devtools to avoid unnecessary work r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D118555
2021-07-19 20:15:49 +00:00
Alex Lopez 77ce415604 Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-19 16:04:25 +00:00
Alexandre Poirot 79a3ae0b0f Bug 1720512 - [devtools] Avoid storing and restoring broken breakpoints. r=jdescottes,bomsy
This is a bit surprising that broken breakpoints are stored
as the frontend seems to try to do a couple of assertions:
https://searchfox.org/mozilla-central/rev/c0fc8c4852e927b0ae75d893d35772b8c60ee06b/devtools/client/debugger/src/utils/breakpoint/index.js#84-106

But at least, now, we start using same assertions in both sides.

Differential Revision: https://phabricator.services.mozilla.com/D120002
2021-07-19 15:30:34 +00:00
Alexandre Poirot 0173541929 Bug 1720785 - Re-enable a few test with bfcacheInParent disabled. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D120023
2021-07-19 13:04:02 +00:00
Nicolas Chevobbe 3dd22f3100 Bug 1713072 - [devtools] Fix storage inspector cross process navigation when fission is disabled. r=ochameau.
In the ParentProcessStorage class, we are listening for window-global-created/destroyed
event to notify the client that hosts can be added/removed.
But in case of bfcache navigation, those events are not emitted.

In order to fix this issue, we forward pageshow and pagehide events from the
DevToolsFrameChild to the DevToolsFrameParent, where the watcher actor can emit
those events, which we'll be listened to by the ParentProcessStorage.

Test cases are added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D118325
2021-07-19 12:29:44 +00:00
Hubert Boma Manilla 2a0959fb49 Bug 1720115 - [devtools] Also check thread state resources where reason => 'resumeLimit' to maintain pauseTargets count r=jdescottes
This fixes an issue where when pausing in two distinct targets, and doing
a stepping, the debbuger tab highlight is still on when all the paused
thread have resumed.

The issue here is that the _pausedTargets count was not updated when a
step is done, so it goes out of sync.

Differential Revision: https://phabricator.services.mozilla.com/D119624
2021-07-19 11:39:31 +00:00
Sonia Singla 28ced48ac1 Bug 1659266 - Remove layout.css.prefixes.columns. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D120057
2021-07-19 09:20:14 +00:00
Fabien CASTERS 854143e8a5 Bug 1721126 - [devtools] Add Code Mirror HTTP mode in SourceEditor. r=bomsy,nchevobbe.
Differential Revision: https://phabricator.services.mozilla.com/D119904
2021-07-19 07:25:02 +00:00
Butkovits Atila a07f790e42 Backed out changeset e1921c5112d8 (bug 1696251) for causing bustages complaining about 'CommandContext'. CLOSED TREE 2021-07-16 20:35:55 +03:00
Alex Lopez 190e03aaab Bug 1696251 - Replace self with command_context where possible in existing mach commands. r=mhentges,webdriver-reviewers,perftest-reviewers,whimboo
This step removes all the dependencies of mach commands to
having a MachCommandBase as the `self` by using the `command_context`
argument instead. This also removes any remaining statefulness from those
classes that implement mach commands, ultimately making it easier to move
existing commands out of classes in a follow-up.

Differential Revision: https://phabricator.services.mozilla.com/D118058
2021-07-16 15:51:29 +00:00
Julian Descottes 9f48d08b79 Bug 1717893 - [devtools] Avoid blank inspector if iframe selector matches non-iframe element r=bomsy
Fix an edge case which can lead to an empty markup view after reload.

Differential Revision: https://phabricator.services.mozilla.com/D119983
2021-07-16 15:04:58 +00:00
Sebastian Zartner 2b831a7170 Bug 1719567 - [devtools] Fixed test case devtools/client/netmonitor/test/browser_net_search-results.js. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D119818
2021-07-16 12:16:10 +00:00
Alexandre Poirot fccb304b45 Bug 1625026 - [devtools] Accept final about:blank documents in DevToolsFrameChild. r=jdescottes
This helps create targets in the browser toolbox for tabs loaded directly against about:blank.

Differential Revision: https://phabricator.services.mozilla.com/D117913
2021-07-15 13:58:30 +00:00
Alexandre Poirot aa3263e294 Bug 1625026 - [devtools] Accept about:blank documents in frame target helpers. r=jdescottes
The check from `shouldNotifyWindowGlobal` was only used from frame-target helper, from the parent process.
The only case it was filtering out was for browser toolbox watcher,
where we were filtering out tabs with about:blank loaded in a content process.
We weren't having any issues around about:blank with tab watchers.
I added test coverage for tab watchers, but they were already passing.

The check in DevToolsFrameChild was wrong with the browser toolbox codepath.
We don't have any browserId. This wasn't throwing because shouldNotifyWindowGlobal
was rejecting the about:blank documents.
This issue was catched by browser_console_content_object_in_sidebar.js,
which probably only involve about:blank documents.

Differential Revision: https://phabricator.services.mozilla.com/D117466
2021-07-15 13:58:29 +00:00
Alexandre Poirot 4eabf1bdd8 Bug 1720184 - [devtools] Fix browser toolbox against mochitests. r=jdescottes
Worker targets only set threadActor late, quite asynchronously.
So that the target is registered in TargetCommand, but we can't call target.getFront
without having it to throw.

Differential Revision: https://phabricator.services.mozilla.com/D119672
2021-07-14 14:06:47 +00:00
Iulian Moraru cab1e7c3c1 Backed out changeset 7a1d15397ad9 (bug 1720184) for causing xpcshell failures on test_pause_exceptions-04.js. CLOSED TREE 2021-07-14 02:40:04 +03:00
Markus Stange d46be492d2 Bug 1719935 - Remove unused "gzipped" option from ActorReadyGeckoProfilerInterface. r=canaltinova
ActorReadyGeckoProfilerInterface is used in two contexts:
 - For the perf actor, which is used when the profiler is used from the
   devtools Performance panel or via remote debugging (on about:debugging), and
 - On about:profiling, which only exercises a subset of the interface's methods
   because about:profiling does not have any UI for capturing profiles.

There are three other ways to capture profiles:
 - The global browser keyboard shortcuts (implemented in DevToolsStartup.jsm)
 - Clicking the toolbarbutton directly (implemented in popup/menu-button.jsm.js)
 - Clicking the Capture button inside the popup (implemented in popup/panel.jsm.js)

These three other ways use functions in popup/background.jsm.js to capture the profile.
They do not call ActorReadyGeckoProfilerInterface.getProfileAndStopProfiler().

When the ActorReadyGeckoProfilerInterface instance for the perf actor is created,
we pass { gzipped: false }. Consequently, ActorReadyGeckoProfilerInterface.getProfileAndStopProfiler()
is only ever called with gzipped: false. So the option can be removed.

The other three ways to capture profiles, which use captureProfile in
popup/background.jsm.js, always get the gzipped profile because captureProfile
calls Services.profiler.getProfileDataAsGzippedArrayBuffer().

Differential Revision: https://phabricator.services.mozilla.com/D119561
2021-07-13 21:43:46 +00:00
Alexandre Poirot 02c26be2f3 Bug 1720184 - [devtools] Fix browser toolbox against mochitests. r=jdescottes
Worker targets only set threadActor late, quite asynchronously.
So that the target is registered in TargetCommand, but we can't call target.getFront
without having it to throw.

Differential Revision: https://phabricator.services.mozilla.com/D119672
2021-07-13 21:28:57 +00:00
Claudia 8469ab6280 Bug 1708386 - [devtools] Add an evaluation result message when using the `copy` helper. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D119612
2021-07-13 13:05:00 +00:00
Tooru Fujisawa cc92ef732d Bug 1708448 - Move property and element functions into js/public/PropertyAndElement.h. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D119619
2021-07-13 11:52:42 +00:00
Masayuki Nakano 3169bc5de5 Bug 1720252 - Get rid of "dom.input_events.beforeinput.enabled" from tests r=smaug
`beforeinput` event was shipped and it won't be disabled for avoiding confusion
of web developers. So, we can drop the pref setting of
"dom.input_events.beforeinput.enabled" in our tests.

Depends on D119716

Differential Revision: https://phabricator.services.mozilla.com/D119729
2021-07-13 10:02:12 +00:00
Nicolas Chevobbe 06c5735c82 Bug 1715908 - [devtools] Replace usage of navigate with DOCUMENT_EVENT dom-loading resource in service worker legacy listener. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D118670
2021-07-13 08:46:18 +00:00
Nicolas Chevobbe 204de9f82f Bug 1715908 - [devtools] Flush resources on dom-loading.r=ochameau.
This fixes intermittent failures on browser_target_list_service_workers_navigation.js
that were appearing with the next patch on the queue (switching to dom-loading resource
in legacy service worker watcher).

Differential Revision: https://phabricator.services.mozilla.com/D119511
2021-07-13 08:46:18 +00:00
Alexandre Poirot 0aae4b0803 Bug 1717005 - [devtools] Simplify nested event loop management. r=jdescottes,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D118174
2021-07-12 21:04:56 +00:00
Alexandre Poirot e260f44463 Bug 1717005 - [devtools] Stop using unsafeSynchronize. r=jdescottes,bomsy
I don't think it was any useful to block synchronously on the call to `doResume`.
In the past it used to send an event to the client synchronously,
it may have been important back then.

test_nesting-03.js is still covering nested event loop by using two clients.

Differential Revision: https://phabricator.services.mozilla.com/D118173
2021-07-12 21:04:55 +00:00
Sam Foster 3bb9aa63ff Bug 1699631 - Move the reload icon into toolkit. r=harry,preferences-reviewers,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119554
2021-07-12 20:45:08 +00:00
Marian-Vasile Laza 4e2bd249f2 Backed out changeset c47653711a25 (bug 1699631) for causing node devtools failures. CLOSED TREE 2021-07-12 21:04:22 +03:00
Sam Foster 08af461236 Bug 1699631 - Move the reload icon into toolkit. r=harry,preferences-reviewers,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119554
2021-07-12 17:26:16 +00:00
Nicolas Chevobbe 80f1e7fb5f Bug 1709997 - [devtools] Add AbortController support to EventEmitter. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D119510
2021-07-12 07:13:13 +00:00
Md. Pial Ahamed f1b127ad86 Bug 1716822 - Switch to JavaScript stack by default in active tab view r=julienw
Switches to the JavaScript stacks by default when capturing profile
with active tab view (with the "web developer" preset)
Also refactors previous ternary condition for better readability

Differential Revision: https://phabricator.services.mozilla.com/D119305
2021-07-09 17:36:18 +00:00
Hubert Boma Manilla 7c78b05911 Bug 1717050 - Network events and network stacktrace events no longer depend on their orders r=nchevobbe
Previously, we worked with the assumption the NETWORK_STACKTRACE_EVENT resources will always
come before NETWORK_EVENT resources. Even though that's the order they are sent on the backend.
There is no gurantee when it comes through the resource watcher api, this becomes obvious with
server side target-switching on. Ideally there should not be dependency on the order. This patch
fixes that and fixes these 2 tests browser_net_initiator.js and browser_net_cause_source_map.js.

See https://bugzilla.mozilla.org/show_bug.cgi?id=1717050#c0 and https://bugzilla.mozilla.org/show_bug.cgi?id=1717050#c3
for exact commands to run the tests

Differential Revision: https://phabricator.services.mozilla.com/D119494
2021-07-09 16:28:56 +00:00
Nicolas Chevobbe 905139f295 Bug 1719835 - [devtools] Fix beta simulation perma fail on browser_webconsole_stubs_page_error.js. r=bomsy.
The error message seems to be different in Nighly and Beta,
but I wasn't able to find any pref that is driving this.
Since the error message itself isn't super relevant, and given
that we're at the end of the cycle, this patch is only modifying
the expression so we get a different error.

Differential Revision: https://phabricator.services.mozilla.com/D119520
2021-07-09 15:13:07 +00:00
Nicolas Chevobbe 4c8b080864 Bug 1710306 - [devtools] Fix missing scrollbar in webconsole network message response tab. r=bomsy.
The selector that was used to not show toolbars in the console
input was also matching the codeMirror instance in the network
detail response tab. This is fixed by making the selector more
specific.

Differential Revision: https://phabricator.services.mozilla.com/D119192
2021-07-09 14:45:47 +00:00
Nicolas Chevobbe 0d7c8bac26 Bug 1643427 - [devtools] Remove devtools.main.f12_* probes and associated code. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D119378
2021-07-09 14:42:03 +00:00
Hubert Boma Manilla a004c88f02 Bug 1719823 - [devtools] Add getWatchExpressionLabel helper r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D119504
2021-07-09 12:39:31 +00:00
danfragoso b231099850 Bug 1703167 - [devtools] Replaces aboutdevtools footer-link display to inline. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D118996
2021-07-09 09:43:53 +00:00
Butkovits Atila 076f80a4d5 Bug 1715866 - disable browser_dbg-link-reload.js on Linux_asan and Win_64 for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D119246
2021-07-09 06:46:00 +00:00
Butkovits Atila 30acf0bec1 Bug 1675445 - disable browser_accessibility_mutations.js on Linux_64_fission for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D119244
2021-07-09 06:19:58 +00:00
Alexandre Poirot a8b63322a6 Bug 1717739 - Ensure waiting for all breakpoint to be set while loading the debugger. r=nchevobbe
This will prevent these pending request during toolbox shutdown highlighted in browser_keybindings_01.js.

Differential Revision: https://phabricator.services.mozilla.com/D119393
2021-07-08 16:40:41 +00:00
Jon Coppeard 1d0551a941 Bug 1719661 - Replace JS helper thread option with TaskController thread option in about:profiling r=julienw,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D119394
2021-07-08 16:37:07 +00:00
Alexandre Poirot 857004dbe9 Bug 1688830 - Wait for pause and resume action when opening the debugger. r=nchevobbe
It prevents having actions which are still pending when closing the toolbox.
Like `fetchScopes` when running browser_dbg-continue-to-here-click.js.

Differential Revision: https://phabricator.services.mozilla.com/D119388
2021-07-08 13:40:02 +00:00
Alexandre Poirot 10a90f5347 Bug 1715916 - Disable browser_storage_dynamic_windows.js on debug builds. r=nchevobbe DONTBUILD
Slow runtimes highlight race conditions explain in bugzilla comment 3,
which aren't trivial to address. So better disable this test on debug builds for now.
And at least keep it running on opt.

Differential Revision: https://phabricator.services.mozilla.com/D119323
2021-07-08 11:58:38 +00:00
nchevobbe 74dab27c3a Bug 1712284 - [devtools] Display Error cause in Error rep. r=bomsy
Depends on D119055

Differential Revision: https://phabricator.services.mozilla.com/D119056
2021-07-08 06:56:40 +00:00
nchevobbe edbf81e7ac Bug 1712284 - [devtools] Include cause property in Error preview grip. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D119055
2021-07-08 06:56:39 +00:00
Sebastian Zartner dccbf7e896 Bug 1713301 - Fixed display of raw request or reponse data when clicking on search results. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D116955
2021-07-07 21:14:21 +00:00
Nicolas Chevobbe bddd302c14 Bug 1719248 - [devtools] Better handle actorIDs in webconsole stubs. r=bomsy.
Instead of manually replacing actorIDs in `getCleanedPacket`, we're introducing
a `replaceActorIds` option to `getSerializedPacket` that will replace all actorIDs
occurences with a fake one.
That way, we won't have to modify `getCleanedPacket` each time a new property is
added on a grip.

Depends on D119096

Differential Revision: https://phabricator.services.mozilla.com/D119167
2021-07-07 15:28:51 +00:00
Claudia 175e38fb6d Bug 1715988 - [devtools] Match incomplete search terms in status-code:search. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D118177
2021-07-07 14:52:58 +00:00
Jonathan Kew bf3113343b Bug 1716841 - Update font-size-adjust keywords to match CSSWG resolution in csswg-drafts/#6288. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D118198
2021-07-07 11:58:40 +00:00
Julian Descottes 7b4d8f9ca0 Bug 1716960 - [devtools] Initialize the inspector UI only after handling the first root node r=ochameau,nchevobbe
Depends on D118474

This patch improves the inspector initialization in order to make it more resilient to race issues which can occur with watchTargets.
watchTargets might resolve before all targets have been processed, in case some targets become available after the watchTargets call already started.

After this patch, the inspector initialization flow should be easy to track from the init method:
- first we initialize the splitter (this is a mandatory first step before we attempt to create any other UI, including the markup view)
- then we watch for targets and resources
- when we receive the first root node resource, we initialize the markup view
- when watchResources resolves, the first root node should have been processed, the markup view is initialized and the various inspector fronts are also initialized
- finally we go back to init() and finish initializing the UI

Differential Revision: https://phabricator.services.mozilla.com/D118475
2021-07-07 07:27:02 +00:00
Julian Descottes 4d517c0048 Bug 1716960 - [devtools] Reorder inspector initialization methods r=nchevobbe
Depends on D118473

This changeset is purely moving code around. The various inspector initialization methods are spread all over inspector.js, which makes it difficult to follow.
Here we try to sort them more or less in the order in which they should be invoked.

Differential Revision: https://phabricator.services.mozilla.com/D118474
2021-07-07 07:27:02 +00:00