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

20854 Коммитов

Автор SHA1 Сообщение Дата
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
Emma Malysz 7726722698 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 15:11:00 +00:00
Julian Descottes 41dc7a25a4 Bug 1649418 - Enable async stacks during DevTools mochitests r=loganfsmyth
Async stacks can provide valuable information when chasing intermittents.
But by default they are only enabled in debuggees, to avoid performance overhead.
Forcing javascript.options.asyncstack_capture_debuggee_only to false before running any
DevTools mochitest will ensure async stacks are available for all locations.

Differential Revision: https://phabricator.services.mozilla.com/D81694
2020-06-30 15:45:59 +00:00
Cosmin Sabou 4a382d7801 Backed out 4 changesets (bug 1640338, bug 1640778) for devtools failures on browser_dbg-toolbox-unselected-pause.js.
Backed out changeset 92cb02f03119 (bug 1640778)
Backed out changeset 6401dd804f28 (bug 1640338)
Backed out changeset cb4edb2627bb (bug 1640338)
Backed out changeset b2394d79f48f (bug 1640338)
2020-06-30 19:59:10 +03:00
Logan Smyth bbe144a63b Bug 1642397 - Part 3: Show query string in SourcesTree when files conflict. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81268
2020-06-29 18:51:57 +00:00
Logan Smyth 545d9c16ae Bug 1642397 - Part 2: Only pass sources-tree a query param if it should use it. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81267
2020-06-26 20:04:36 +00:00
Logan Smyth baf16e0a5f Bug 1642397 - Part 1: Handle unparseable URLs more consistently and handle query params. r=jlast,davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D81266
2020-06-26 19:27:54 +00:00
Logan Smyth bc1239373b Bug 1637883 - Bail on eager eval for same-compartment windows. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D81382
2020-06-29 05:17:59 +00:00
Brindusan Cristian cb08871bb0 Backed out changeset 4237adea1a08 (bug 1648373) for dt failures at browser_webconsole_stubs_network_event.js. CLOSED TREE 2020-06-30 18:29:15 +03:00
Yura Zenevich 17dc33c60a Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-06-30 14:53:07 +00:00
Yura Zenevich cae38c8a67 Bug 1640338 - do not cache current target on proxy accessible, instead always retrieve toolbox's target list's targetFront. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D81143
2020-06-26 18:29:53 +00:00
Yura Zenevich 8c1725004b Bug 1640338 - simplify accessibility proxy startup since we no longer need to initialize it until the panel is opened. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D77056
2020-06-30 14:53:07 +00:00
Yura Zenevich 770d1a4acd Bug 1640338 - remove accessibliity startup and startup functionality from tool definitions. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77055
2020-06-26 18:29:39 +00:00
Hubert Boma Manilla 7cf3a162e6 Bug 1648373 - Add slow requests indicator r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81629
2020-06-30 13:49:36 +00:00
Julian Descottes 772f4d693d Bug 1646636 - Skip tests with inspect element in same process frames if fission is enabled r=ochameau,perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D80815
2020-06-30 10:22:10 +00:00
Sonia Singla 350a03e726 Bug 1642852 - Adding section in getting started page. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81137
2020-06-30 06:09:47 +00:00
Matt Woodrow 751fe6358b Bug 1647557 - Implement RemoteWebProgress using CanonicalBrowsingContext instead of MessageManager. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D70626
2020-06-30 01:18:47 +00:00
Nicolas Chevobbe 269c35eaac Bug 1648875 - Fix stacktrace parsing when frame has multiple "@". r=loganfsmyth.
When parsing frames, we only need to retrieve the first "@" index to split
the frame string and get the function name on one side, and the location on the
other side.
This patch removes the regex-based search we were doing for a simpler character
search. A test is added to ensure this works as expected, and snapshots that were
highlighting the issue are updated.

Differential Revision: https://phabricator.services.mozilla.com/D81519
2020-06-29 15:05:31 +00:00
Nicolas Chevobbe b4e71553af Bug 1648017 - Disable console text-selection only evaluation in in-line mode. r=Honza.
This feature is great in editor mode, but can be confusing in in-line mode.
In inline mode, the input is cleared when you evaluate, so if you wrongfully
evaluated only a text selection, you may lose the whole input, and have to
type it again.
This patch disable the feature in inline mode, and modifies the existing test
so we make sure that this work as expected in both editor and inline mode.

Differential Revision: https://phabricator.services.mozilla.com/D81333
2020-06-29 11:49:29 +00:00
Daisuke Akatsuka de90f65570 Bug 1646974: Add a test for the stylesheet which is loaded as internal. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D80807
2020-06-26 09:21:58 +00:00
Daisuke Akatsuka 14e2eb6c29 Bug 1646974: Introduce and use isInDevToolsContext flag. r=Honza,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D80623
2020-06-29 09:34:54 +00:00
Razvan Maries 4b75bbe39d Bug 1618059 - Disabled test_extension_storage_actor.js on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D81406
2020-06-29 08:17:39 +00:00
Nicolas Chevobbe 0398ff5ec9 Bug 1648795 - Fix devtools/shared/resources/tests/browser_resources_several_resources.js. r=jdescottes.
We were only checking a number of received resources, and as we're listening to
the parent process, any error messages emitted by the platform would hinder the
test. This patch changes the test to expect specific resources instead.

Differential Revision: https://phabricator.services.mozilla.com/D81354
2020-06-29 05:18:17 +00:00
Razvan Maries 69fe4f3c2f Bug 1645563 - Disabled browser_dbg-scopes-duplicated.js on Windows. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D81399
2020-06-26 20:38:30 +00:00
Logan Smyth 48aeb2fe30 Bug 1644075 - Make sure that injected scripts have no URL. r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D81376
2020-06-27 05:19:51 +00:00
Julian Descottes 6169f8ceee Bug 1637793 - Catch updateWorkers errors occurring after app panel destroy r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D78633
2020-06-26 12:39:47 +00:00
Marco Zehe 5dfb4493c4 Bug 1648011 - Give the All Tabs overflow button a tooltip, r=nchevobbe,flod,Honza
This pertains to both the inspector side bar as well as the net monitor tabs.

Differential Revision: https://phabricator.services.mozilla.com/D80829
2020-06-26 07:50:29 +00:00
Nicolas Chevobbe 90123a987c Bug 1648458 - Add a test to assert resource watcher destruction when associated target actor is destroyed. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81034
2020-06-26 06:58:55 +00:00
Marco Zehe 0e1ed3a46b Bug 1648069 - Make the Changes view a document for screen readers, r=yzen
Also make it focusable so screen readers will pick up even the "no changes yet" scenario and won't skip over it.

Differential Revision: https://phabricator.services.mozilla.com/D80865
2020-06-26 00:15:21 +00:00
Zibi Braniecki 8ce6deaff2 Bug 1641719 - Don`t set 0 state in TreeView on first click. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D79322
2020-06-26 00:14:23 +00:00
Sebastian Zartner 63db1cbfbc Bug 1635970 - Extended support for XPath expressions in Inspector search. r=jdescottes
The limitation to expressions starting with a slash was lifted in order to allow searching via other possible XPath expressions like `id("foo")` or `(//div)[2]`.

Differential Revision: https://phabricator.services.mozilla.com/D80963
2020-06-25 18:32:40 +00:00
Razvan Caliman 1c03261951 Bug 1644789 - Wait for Rule view to update before interacting with Flexbox toggle r=gl
By the looks of the [screenshot of the failing test](https://firefoxci.taskcluster-artifacts.net/QIl2Xbs1T5CfvCoUtWkK5w/0/public/test_info//mozilla-test-fail-screenshot_g8P5sS.png), the Rules view isn't updated to reflect the styles for the flex container. Looks like a race condition.

This patch ensures that the test waits for the [Rules view to update](https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/devtools/client/inspector/rules/rules.js#980) before attempting to click on the swatch to toggle the Flexbox highlighter.

Differential Revision: https://phabricator.services.mozilla.com/D81035
2020-06-25 16:36:44 +00:00
Belén Albeza f08228b977 Bug 1642947 - Enable application panel in all channels r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D81112
2020-06-25 15:02:52 +00:00