Commit Graph

20886 Commits

Author SHA1 Message Date
Samarjeet
a6b5a3e545 Bug 1546394: Netmonitor load blockedurls r=nchevobbe,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72669
2020-07-03 13:50:35 +00:00
Samarjeet
622594643a Bug 1546394 Adds :block <url> command similar to netmonitor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D69803
2020-06-27 09:22:23 +00:00
Hubert Boma Manilla
5c7609974f Bug 1648240 - Persist Headers url preview accross requests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81897
2020-07-03 13:18:50 +00:00
Julian Descottes
54f3b99b28 Bug 1645563 - Wrap application panel updateWorkers method in safeAsyncMethod r=ladybenko
Depends on D81677

We recently introduced a modification to updateWorkers in order to swallow errors after destroy.
Since I am suggesting to add a helper to take care of a similar issue in Toolbox::highlight I think we could also apply it here.

Differential Revision: https://phabricator.services.mozilla.com/D81679
2020-07-02 16:15:03 +00:00
Julian Descottes
fe59cbb542 Bug 1645563 - Enable browser_dbg-scopes-duplicated.js on windows platform r=nchevobbe
Depends on D81676

Differential Revision: https://phabricator.services.mozilla.com/D81677
2020-07-02 16:12:54 +00:00
Julian Descottes
284d5a7625 Bug 1645563 - Wrap Toolbox::highlight & unhighlight methods in safeAsyncMethod r=nchevobbe
Depends on D81675

This should fix the intermittents related to pending highlight requests when toolbox is destroyed.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1645563#c21 for additional context

Differential Revision: https://phabricator.services.mozilla.com/D81676
2020-07-02 16:14:15 +00:00
Julian Descottes
2417b69d3f Bug 1645563 - Introduce devtools helper to swallow rejections under a condition r=nchevobbe
We very often have to introduce a pattern in our async methods in order to "swallow"
async errors if a panel was destroyed, if the toolbox was destroyed etc...

This is not an issue in a regular usage of the toolbox, but it can lead to many intermittent failures.
One solution could be to always wait for all requests to be completed before shutting down tests.
Another approach is to have an easy way of swallowing errors when a certain condition is true.

The helper added here will run the provided method in a try catch, and will only bubble up errors if the provided check fails.

Differential Revision: https://phabricator.services.mozilla.com/D81675
2020-07-02 16:19:46 +00:00
Julian Descottes
a26e2b6eca Bug 1650347 - Update gecko-profile argument names in DAMP documentation r=Honza
Spotted while looking at Bug 1649771, the DAMP documentation is outdated.

Differential Revision: https://phabricator.services.mozilla.com/D82170
2020-07-03 11:42:39 +00:00
Nicolas Chevobbe
b7e4bda832 Bug 1649753 - Remove unused EnvironmentFront. r=jdescottes,devtools-backward-compat-reviewers.
Differential Revision: https://phabricator.services.mozilla.com/D82143
2020-07-03 11:27:25 +00:00
Coroiu Cristina
697891333d Backed out 2 changesets (bug 1646854) for devtools failures at devtools/shared/resources/tests/browser_resources_target_destroy.js on a CLOSED TREE
Backed out changeset f3f1407d5eae (bug 1646854)
Backed out changeset 1a71c8facf72 (bug 1646854)
2020-07-03 14:29:10 +03:00
Razvan Caliman
7db1990e8c Bug 1649736 - Remove backwards compatibility checks for responsiveActor.setElementPickerState(). r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D81846
2020-07-02 22:44:36 +00:00
Alexandre Poirot
7877b9650e Bug 1646854 - Introduce code to be able to listen for resources from the parent process. r=jdescottes,nchevobbe,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D80285
2020-07-03 08:53:37 +00:00
Alexandre Poirot
bfa7b78f6a Bug 1646854 - Rename onResourceAvailable to notifyResourceAvailable. r=nchevobbe
This is to align with notifyTargetAvailable and notifyTargetDestroyed.

Differential Revision: https://phabricator.services.mozilla.com/D80900
2020-07-02 22:09:51 +00:00
Matthew Noorenberghe
72c4e83fb7 Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-03 08:25:51 +00:00
Christoph Kerschbaumer
5c8e547bd8 Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-03 08:12:22 +00:00
Emma Malysz
596d4bd960 Bug 1648638, remove profiler panel from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81413
2020-07-02 16:42:46 +00:00
Narcis Beleuzu
9d8472510e Backed out 2 changesets (bug 1145314) for mochitest failures on test_bug995943.xhtml . CLOSED TREE
Backed out changeset 0500cb344e6f (bug 1145314)
Backed out changeset f524ffe669ca (bug 1145314)
2020-07-02 20:50:46 +03:00
Julian Descottes
8f530a3e07 Bug 1618059 - Extract the storage extension live reload test r=ochameau,davidwalsh
The failure only occurs locally when I use an attached target for the test_panel_live_reload mochitest.
And it only happens if we perform the `extension.upgrade` call during the test.
Most of the time it seems linked to a "frameUpdated" event fired when the webextension is being updated.
But even after commenting out the event, the test remains intermittent (albeit with a much lower frequency)

A first option would be to expose a new API on the webextension descriptor front in order to create
detached targets.

But it seems that isolating the live_reload test in a dedicated file also fixes the intermittent.
It makes the fix a bit obscure, and it probably means we won't look into the issue much furhter but
I would prefer to avoid test-only APIs in the codebase.

Differential Revision: https://phabricator.services.mozilla.com/D81322
2020-07-02 15:56:00 +00:00
Christoph Kerschbaumer
bfc3fb787d Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 15:03:52 +00:00
Nicolas Chevobbe
d5ffb31381 Bug 1623283 - Rename Pool#actor into getActorByID. r=jdescottes.
We take this opportunity to remove Pool.get as well,
which was doing exactly the same thing as Pool.actor

This highlighted a couple issues in Reps:
- LongString were relying on the isGrip function, which was only checking that
  the actor property was truthy. So it was matching LongStringFront which had
  the actor method. This is modified by using the isLongString helper instead.
- The Object rep was building all the reps for the object properties, even in
  TINY mode, where the result was only used to check the length. In the Accessibility
  panel, it can happen that an plain object containing front properties is passed
  to Rep. It was fine before because this was short-circuited by the Accessor rep
  which was only checking the truthiness of a `get` property. With `get` being
  removed, the default Rep was used, which is Object, and we were hitting a
  recursion loop, as some of the properties of fronts are cycle references.
  There should be a fix in the Accessibility panel to _not_ pass fronts, but we
  also "fix" it from here by simply not building sub-properties for the object
  when we're in TINY mode.

Differential Revision: https://phabricator.services.mozilla.com/D81971
2020-07-02 15:07:12 +00:00
Anwesha
c8deaf1fb8 Bug 1622734 - Replaced nodeFront.parent() with nodeFront.walkerFront r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81877
2020-07-02 13:01:19 +00:00
Julian Descottes
ad853d54fe Bug 1634466 - Add a simple performance marker to capture the number of messages added r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81973
2020-07-02 09:39:55 +00:00
Csoregi Natalia
355f38ec2f Backed out 2 changesets (bug 1145314) for node debugger failure. CLOSED TREE
Backed out changeset 550f9596f16b (bug 1145314)
Backed out changeset 93dbc3fe146a (bug 1145314)
2020-07-02 12:37:06 +03:00
Razvan Caliman
5b6373fb8b Bug 1649738 - Log an error when calling targetFront.actorHasMethod() for an unknown or uninitialized actor. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D81850
2020-07-02 08:52:20 +00:00
Christoph Kerschbaumer
5e32e6565e Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 08:17:17 +00:00
Noemi Erli
38031f5d4b Backed out 4 changesets (bug 1648858) for causing toolchains bustages
Backed out changeset 8ead55149095 (bug 1648858)
Backed out changeset 94f58715cbde (bug 1648858)
Backed out changeset 36fe4ce13340 (bug 1648858)
Backed out changeset 0ccf9b057fe1 (bug 1648858)
2020-07-02 11:00:02 +03:00
Sebastian Zartner
9dec37a853 Bug 1597245 - Disable 'Delete Node' option for document nodes. r=jdescottes
Added nodes of type DOCUMENT_NODE to the excluded types for deletion.

In order to test the context menu options for document nodes a new helper function getFrameDocument() got introduced that returns the document node of an iFrame.

Differential Revision: https://phabricator.services.mozilla.com/D81241
2020-07-02 00:53:51 +00:00
Matthew Noorenberghe
501e1cf686 Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-02 03:36:39 +00:00
Razvan Maries
3dc54daa55 Backed out 4 changesets (bug 1648858) for SM bustages. CLOSED TREE
Backed out changeset 5a612e42b77d (bug 1648858)
Backed out changeset 3a1b5e883a4e (bug 1648858)
Backed out changeset 816eaac72512 (bug 1648858)
Backed out changeset 8ae692d68b1b (bug 1648858)
2020-07-02 05:54:53 +03:00
Matthew Noorenberghe
8e5f8dd33a Bug 1648858 - Move d3.js from devtools/ to third_party/js/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-02 02:34:44 +00:00
Gerald Squelart
56736f31c3 Bug 1648507 - Distinguish pausing sampling only from pausing the whole profiler - r=canaltinova,perftest-reviewers,geckoview-reviewers,agi
The profiler can be "paused", which stops sampling, and since bug 1578329 stops markers as well.

Some test suites use pausing between tests (to better differentiate the tests, to keep the profiler ready to run, and to lower the amount of recorded data). But this causes problems with some tracing markers, as their matching ends have not been recorded (e.g., an end marker is missing), which show up as very loooong markers.
To solve this, we need to be able to pause sampling only, but keep recording markers.
But we still need to be able to pause the whole profiler, in particular before capturing, to avoid recording anything around that time.

This big patch is mostly mechanical changes: Wherever there are "Pause" and "Unpause/Resume" profiler functions, we add matching "PauseSampling" and "UnpauseSampling/ResumeSampling" functions that only impact the periodic sampling loop; And existing "Pause/Unpause/Resume" imply pausing sampling as well.
Exceptions and extra work:
- nsIProfiler (the JS API) already had `Pause/ResumeSampling()`, which misleadingly paused everything! Now they do the right thing, and we have `Pause/Resume()` as well.
- All tests using `Pause/ResumeSampling()` now use `Pause/Resume()`, except for Talos tests that only pause sampling between tests; Added some extra `Pause()` calls to pause everything before capturing profiles.
- GeckoJavaSampler doesn't handle pausing/resuming everything, this should be done in a follow-up bug.
- Sampling-only pauses are not streamed into JSON. If needed, we should follow-up, with potential work on the front-end to deal with these.

Differential Revision: https://phabricator.services.mozilla.com/D81492
2020-07-02 01:36:27 +00:00
Sarah Bird
d1626da38c Bug 1647501 - Rename "test slave" -> "test machine", r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81908
2020-07-02 01:06:01 +00:00
Nathan Froyd
e8a7ef44ae Bug 1649263 - stop cargo-culting headers in AutoMemMap.h; r=glandium
We use `MOZ_RAII` and `MOZ_ASSERT` in this file, so we need their
corresponding headers.

Differential Revision: https://phabricator.services.mozilla.com/D81601
2020-07-01 13:39:04 +00:00
Nicolas Chevobbe
e19e7c943a Bug 1649710 - Fix EnvironmentFront constructor. r=jdescottes.
The constructor signature was wrong, as protocol.js calls it with a targetFront
instead of the expected "form".
The self-management isn't making much sense, and there's no need for this front
to be different than others.
test_framebindings-07.js, which was directly instantiating EnvironmentFronts is
modified to not do this anymore.
This allow us remove the getBindings method from the front, as it was only used
from this test.

Differential Revision: https://phabricator.services.mozilla.com/D81838
2020-07-01 13:31:31 +00:00
Alexandre Poirot
b36c0b6859 Bug 1646459 - Support target-switching without a toolbox. r=jdescottes
We might be able to move even more code from LocalTabTarget to TargetList,
but here is the minimal modification, which allows to update the target,
without requiring a Toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D80161
2020-07-01 10:41:27 +00:00
Alexandre Poirot
cac2b4e08d Bug 1646459 - Only stop and start listening to legacy listeners in case of top level target switching. r=jdescottes
We don't have to and shouldn't unregister and re-register the Watcher actor listeners
in case of top level target switching. As, Watcher actor is independant from the top level target
and we might loose some events by doing so. One main goal of Watcher actor was about that.
Being independant from the lifecycle of the top level target.

Differential Revision: https://phabricator.services.mozilla.com/D80160
2020-07-01 08:57:43 +00:00
Alexandre Poirot
eb6ee3d07d Bug 1646459 - Merge most of TargetList.switchToTarget into TargetList._onTargetAvailable. r=jdescottes
In a near future, target switching should be notified by the watcher actor,
via a target-available-form event.
So that all the logic around target switching should rather be into this RDP event listener.

Differential Revision: https://phabricator.services.mozilla.com/D80159
2020-07-01 09:38:25 +00:00
Alexandre Poirot
b89c002409 Bug 1646459 - Merge Toolbox.switchToTarget into Toolbox._onTargetAvailable. r=jdescottes
Target switching should be implemented differently.
I think switchToTarget may have been introduce before TargetList?
But top level target switching should be handled via onTargetAvailable.
It happens when onTargetAvailable is called with a targetFront with isTopLevel=true,
and isTargetSwitching argument is true.

Differential Revision: https://phabricator.services.mozilla.com/D80158
2020-07-01 08:57:33 +00:00
Dorel Luca
675da38265 Backed out 4 changesets (bug 1648858) for Browser-chrome failures on content/test/static/browser_all_files_referenced.js. CLOSED TREE
Backed out changeset 2a107eabe00c (bug 1648858)
Backed out changeset 1622eb497b04 (bug 1648858)
Backed out changeset f5770886187d (bug 1648858)
Backed out changeset 3a9ae16f63c9 (bug 1648858)
2020-07-01 12:27:26 +03:00
Matthew Noorenberghe
b550937547 Bug 1648858 - Move d3.js from devtools/ to toolkit/. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D81437
2020-07-01 06:33:05 +00:00
Emma Malysz
aa836962ab Bug 1648639, remove containers, help view, and developer panels from main view and place in template r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D81257
2020-06-30 22:40:15 +00:00
Yura Zenevich
9af969dee0 Bug 1602054 - add cold open DAMP test for the accessibility panel. r=perftest-reviewers,jdescottes,Bebe
This is a brand new (and first) DAMP talos test for accessibility panel. "accessibility.cold-open" is similar to other cold open tests such as inspector one. It opens accessibility panel, waits for its UI to render and then closes the toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D80512
2020-06-30 10:26:19 +00:00
Butkovits Atila
b707f6e54b Backed out changeset fa56a4ad6f4a (bug 1605688) for devtools failures on browser_devtools_api_destroy.js. CLOSED TREE 2020-07-01 02:17:31 +03:00
Tiger Oakes
abbe84b2d7 Bug 1605688 - Strip alpha when opaque, r=jdescottes,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D76062
2020-06-30 14:49:42 +00:00
Greg Tatum
d8dddd8673 Bug 1625044 - Do not run the profiler private browsing test on linux; r=julienw
I spent some time looking into this, and the Linux runs when opening up the
popup and the private browser are not working consistently. The popupshown
and popuphidden events are not firing consistently. It's probably good enough
to just disable this test on Linux, as it's mainly a UI test, and it works
on the other platforms.

Differential Revision: https://phabricator.services.mozilla.com/D81602
2020-06-30 19:46:21 +00:00
Greg Tatum
41bd757afa Bug 1625044 - Handle profile popup showing more correctly in tests; r=julienw
Some intermittents were caused by the failure to ensure the popup was closed.
This patch creates a new API that explicitly ensures that the popup is actually
closed in the patch.

It also adds a listener to the popupshown and popuphidden events dispatched by
the XUL elements to ensure that we're not just relying on a single requestAnimationFrame
tick.

Differential Revision: https://phabricator.services.mozilla.com/D79332
2020-06-30 19:45:08 +00:00
David Walsh
d28db00623 Bug 1648145 - Show 'Main Thread' label for top level main thread in sources tree r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D80916
2020-06-30 16:18:39 +00:00
Stepan Stava
87e5663562 Bug 1647693 - Add sourceActorId to 'message' object for log points r=loganfsmyth
Makes `sourceId` available in  the `resource.message` object for log points from 'resourceWatcher' to better address sources than only by `fileName`.

Differential Revision: https://phabricator.services.mozilla.com/D80642
2020-06-30 18:31:32 +00:00
Hubert Boma Manilla
c6f4a0a285 Bug 1648373 - Add slow requests indicator r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81629
2020-06-30 16:54:55 +00:00
Butkovits Atila
277ed87531 Backed out changeset 3c400bb0cd01 (bug 1648639) for bc failures on browser_panel_keyboard_navigation.js. 2020-06-30 21:35:06 +03:00