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

20980 Коммитов

Автор SHA1 Сообщение Дата
Razvan Caliman 1ad6fbabbc Bug 1607756 - Extract node picker from HighlighterActor. r=ochameau,devtools-backward-compat-reviewers
Moved the node picker functionality from `HighlighterActor` to a standalone `NodePicker` class used by `WalkerActor`.
`WalkerActor`/`WalkerFront` was already used to [emit node picker events](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/shared/specs/walker.js#65-79) listened to by the client. This was kept intact.

The alternative to introduce a new `NodePickerActor` had issues when emitting events because the `NodeFront` payload ended up being managed by the `NodePickerFront` and not the `WalkerFront` (see: https://searchfox.org/mozilla-central/source/devtools/shared/protocol/types.js#337,346). There isn't a strong reason to introduce a new `NodePickerActor` considering that the functionality is already dependent on `WalkerActor` to [attach the hovered / picked nodes](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/server/actors/highlighters.js#435-441).

As we progress with changes in D81526 and [Bug 1623667](https://bugzilla.mozilla.org/show_bug.cgi?id=1623667), the standalone [HighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#111-517) will go away completely. It is just a wrapper around `BoxModelHighlighter` and `SimpleOutlineHighlighter`, both of which are already supported by [CustomHighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#523-652) that provides all the other highlighters.

NOTE: D81476 is removing `SimpleOutlineHighlighter` , thus adding to the reasons for dropping `HighlighterActor` once tests and call sites are updated to get highlighters via the highlighter manager logic changes introduced by D81526

Differential Revision: https://phabricator.services.mozilla.com/D81525
2020-07-08 09:32:46 +00:00
Daisuke Akatsuka 924741ad11 Bug 1651240: Update MDN compat data. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D82626
2020-07-08 09:20:20 +00:00
Itiel 254111665f Bug 1650895 - Force LTR the font origin url in the Fonts panel r=rcaliman
Also improve the CSS code a bit for fonts.css

Differential Revision: https://phabricator.services.mozilla.com/D82436
2020-07-08 08:35:52 +00:00
Julian Descottes c137a1324d Bug 1650453 - Regenerate devtools/client/debugger/dist/parser-worker.js r=nchevobbe
Depends on D82212

Differential Revision: https://phabricator.services.mozilla.com/D82366
2020-07-07 17:14:45 +00:00
Julian Descottes a99306e1b0 Bug 1650453 - Remove rejected words violations in devtools source code files r=nchevobbe
Depends on D82568

Differential Revision: https://phabricator.services.mozilla.com/D82212
2020-07-07 17:10:13 +00:00
Julian Descottes 30590c42ac Bug 1651127 - Remove extra blank line debugger in CSS files r=nchevobbe
Depends on D82567

stylelint seems to check for extra blank lines after performing a `yarn upgrade`

Differential Revision: https://phabricator.services.mozilla.com/D82568
2020-07-08 06:44:11 +00:00
Julian Descottes 9962c74e1e Bug 1651127 - Update debugger jest ast spec test after yarn upgrade r=nchevobbe
Depends on D82566

Differential Revision: https://phabricator.services.mozilla.com/D82567
2020-07-08 06:36:05 +00:00
Julian Descottes 155a3c5e88 Bug 1651127 - Update debugger jest tests snapshots r=nchevobbe
Depends on D82564

Output of running `yarn run test-ci -u`

Differential Revision: https://phabricator.services.mozilla.com/D82566
2020-07-08 06:21:52 +00:00
Julian Descottes a9656ded14 Bug 1651127 - Regenerate debugger bundles after a yarn upgrade r=nchevobbe
Simple output of running `yarn upgrade && node bin/bundle.js`

Differential Revision: https://phabricator.services.mozilla.com/D82564
2020-07-08 06:27:18 +00:00
Alexandre Poirot de043a8da3 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-07 13:40:01 +00:00
Alexandre Poirot e1c1588e32 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-07 13:39:58 +00:00
Julian Descottes 7014578c42 Bug 1619221 - Remove non-parent-intercept codepath in devtools client r=daisuke
Depends on D81346

Differential Revision: https://phabricator.services.mozilla.com/D82193
2020-07-07 15:22:32 +00:00
Julian Descottes e897d9edf5 Bug 1619221 - Remove service-workers-debug-helper and check isParentIntercept in device actor r=ladybenko,daisuke
Depends on D81344

If we only care about isParentInterceptEnabled, a dedicated module should no longer be relevant.

Differential Revision: https://phabricator.services.mozilla.com/D81346
2020-07-07 15:21:54 +00:00
Julian Descottes 17460eb5c7 Bug 1619221 - Remove can-debug-sw-updated event r=ladybenko,daisuke,devtools-backward-compat-reviewers
Depends on D81343

All the client side consumers for the event have been removed.
Since we don't support forward compatibility, we can simply remove the event.

Differential Revision: https://phabricator.services.mozilla.com/D81344
2020-07-07 15:20:10 +00:00
Julian Descottes 84f6f1cbe2 Bug 1619221 - Stop updating the application panel when multi-e10s changes r=ladybenko
Depends on D81342

See previous revision, same logic applies to the application panel.

Differential Revision: https://phabricator.services.mozilla.com/D81343
2020-07-07 15:19:02 +00:00
Julian Descottes ce35f944d6 Bug 1619221 - Stop updating the aboutdebugging UI when multi-e10s changes r=daisuke,ladybenko
Depends on D81341

Moving forward, we do not plan to support the old service worker implementation anymore.
The only reason why we needed to update ServiceWorker UI dynamically was for the old implementation.
With the new implementation, there cannot be any change after the application starts so we don't need to react to events.

Differential Revision: https://phabricator.services.mozilla.com/D81342
2020-07-07 15:16:15 +00:00
Julian Descottes 7ed45304a8 Bug 1619221 - Remove backward compat code for the multi-e10s-updated event r=ladybenko
This backward compat code can be safely removed since FF69 is out of the backward compatibility window.

Differential Revision: https://phabricator.services.mozilla.com/D81341
2020-07-07 15:15:55 +00:00
Neil Deakin 5cf56b802f Bug 1650690, remove frame scripts from devtools animation tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82307
2020-07-07 11:35:15 +00:00
Neil Deakin 36c00b6af2 Bug 1650690, remove frame scripts from inspector tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82306
2020-07-07 11:35:03 +00:00
goncharov 9a1ef55f96 Bug 1649548 - Autocomplete list events are not propagated to input. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82239
2020-07-07 12:08:38 +00:00
Nicolas Chevobbe 3991838f8d Bug 1646669 - Fix CodeMirror secondary cursor color. r=Itiel.
Differential Revision: https://phabricator.services.mozilla.com/D82346
2020-07-07 11:37:58 +00:00
Julian Descottes 4b8b29c396 Bug 1650510 - Wait for requests to settle in all browser_aboutdebugging_addons_debug_* tests r=daisuke
Depends on D82362

Differential Revision: https://phabricator.services.mozilla.com/D82363
2020-07-07 08:09:33 +00:00
Julian Descottes 3b4194393d Bug 1650510 - Rewrite browser_aboutdebugging_addons_debug_* using regular test APIs r=daisuke
When switching from a dedicated addon toolbox to an about:devtools-toolbox tab, we did a minimal migration for the browser_aboutdebugging_addons_debug_* tests.
They used to inject a "toolbox test script" in the process of the addon toolbox. But we could have updated them with regular test APIs, async/await patterns etc.

Doing the migration now in preparation for adding calls to waitForRequestsToSettle in the next changeset.

Differential Revision: https://phabricator.services.mozilla.com/D82362
2020-07-07 08:09:24 +00:00
Sebastian Hengst 7847e18297 Backed out 3 changesets (bug 1145314) on request from ckerschb for regressions (e.g. bug 1650951)
Backed out changeset 664cc562ddf3 (bug 1145314)
Backed out changeset 9640a9d093c7 (bug 1145314)
Backed out changeset 5492ac0e42f7 (bug 1145314)
2020-07-07 09:32:27 +02:00
Tiger Oakes 601089853c Bug 1605688 - Strip alpha when opaque, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82266
2020-07-06 16:34:54 +00:00
Dorel Luca 8f18f8e4c5 Backed out changeset 5cbcce6ef3e5 (bug 1649548) for Mochitest failures in components/test/chrome/test_searchbox-with-autocomplete.html. CLOSED TREE 2020-07-06 18:22:39 +03:00
goncharov 6067030bfd Bug 1649548 - Autocomplete list events are not propagated to input. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82239
2020-07-06 13:51:27 +00:00
Kriyszig ca79ded3e3 Bug 1644428 - Cleanup: Arrange actions, reducers, imports and function in alphabetical order r=daisuke,mtigley
This patch does the following cleanup:
* Arrange actions in alphabetical order
* Arrange reducers in alphabetical order
* Arrange imports in alphabetical order
* Arrange functions in alphabetical order

This keeps it consistent with the code style in the compatiblity directory

Depends on D81443

Differential Revision: https://phabricator.services.mozilla.com/D82057
2020-07-03 17:23:57 +00:00
Kriyszig 30282112dd Bug 1644428 - Added tests to verify Compatiblity Panel reacting to DOM mutations r=daisuke,mtigley
The tests cover the following test cases:
* Dynamic addition of inline style
* Dynamic change of classlist - addition and removal of class
* Inline style change via the rule-view
* Dynamic addition of nodes with issues
* Dynamic addition of nodes whose children have issues
* Dynamic removal of node with issue
* Dynamic removal of node whose children have issue

Differential Revision: https://phabricator.services.mozilla.com/D81443
2020-07-03 17:22:59 +00:00
Kriyszig 6a6c70267a Bug 1644428 - Enable Compatibility Panel to react to dynamic DOM node insertion and deletion r=daisuke,mtigley
Currently the Compatibility Panel doesn't react to dynamic DOM
node addition and removal which poses a problem for websites that
depend on client side rendering using the modern framework and
render contents based on dynamic API calls. The updation fails
when switching between routes on a single page application.
In this patch, we use inspector's `markupmutation` event to listen
to `childList` and `customElementDefined` events which cover these
DOM mutations.
Whenever we find a node being added or removed, we compute compatibility
issues for the newly added nodes and remove references to the removed
nodes in the compatibility panel.

Differential Revision: https://phabricator.services.mozilla.com/D80170
2020-07-03 17:22:41 +00:00
Kriyszig bb4caa35ae Bug 1644428 - Enable Compatibility Panel to react to attribute Mutations r=daisuke,mtigley
Compatibility panel doesn't react to programmatic attribute changes
caused as a result of JavaScript execution.
This patch uses inspector's `markupmutation` event to listen to
markup mutations and react to attribute changes dynamically.
Whenever a node undergoes a programmatic inline attribute change
that is not monitored by Resource Watcher currently, the issues
linked to the node is revaluated and updated.

Differential Revision: https://phabricator.services.mozilla.com/D79333
2020-07-03 17:22:14 +00:00
Julian Descottes 0649d657d4 Bug 1650221 - Wait until storage is ready after extension upgrade in test_extension_storage_actor_upgrade.js r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D82166
2020-07-06 09:56:55 +00:00
Razvan Maries 8e16712a62 Backed out 3 changesets (bug 1645234) for build bustages and Lint failure. CLOSED TREE
Backed out changeset 75276e64701b (bug 1645234)
Backed out changeset 16212aa46253 (bug 1645234)
Backed out changeset e66593529bc3 (bug 1645234)
2020-07-04 18:44:49 +03:00
Johann Hofmann 73101fe616 Bug 1645234 - Add a test for document.requestStorageAccess error messages. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80972
2020-07-04 15:17:01 +00:00
Johann Hofmann 6c5dfb4ff6 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-04 15:17:01 +00:00
Yura Zenevich 20d5203a82 Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-07-03 23:52:16 +00:00
Yura Zenevich 68203518be 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-07-03 23:52:14 +00:00
Yura Zenevich cea0dcd04d 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-07-03 23:52:12 +00:00
Yura Zenevich 433f8eecfc Bug 1640338 - remove accessibliity startup and startup functionality from tool definitions. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D77055
2020-07-03 23:52:10 +00:00
Julian Descottes 3ec6af87ab Bug 1650155 - Remove remaining mentions of whitelist in files using allowMatchingRejectionsGlobally r=Gijs
Depends on D82059

Differential Revision: https://phabricator.services.mozilla.com/D82061
2020-07-03 16:57:25 +00:00
Julian Descottes 3e1e4c22b6 Bug 1650155 - Rename PromiseTestUtils.whitelistRejectionsGlobally to allowMatchingRejectionsGlobally r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82059
2020-07-03 17:01:29 +00:00
Florian Quèze 668686ae05 Bug 1621015 - Profiler popup button should be split into a start/stop button, and a down arrow, r=julienw.
Differential Revision: https://phabricator.services.mozilla.com/D77680
2020-07-03 14:28:17 +00:00
Nicolas Chevobbe d225d7ad21 Bug 1644186 - Add ResourceTransformers. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81831
2020-07-03 12:21:31 +00:00
Nicolas Chevobbe 52507b5218 Bug 1644186 - Move helper functions to helper files. r=ochameau.
Functions to create object actors are put in helper files so they
can be used by other consumers than the console messages watcher.

Differential Revision: https://phabricator.services.mozilla.com/D81490
2020-07-03 12:11:36 +00:00
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
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