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

21236 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 06dea32c55 Bug 1657899 - Do not assume any resource order in browser_resources_stylesheets.js - part 2 r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D86360
2020-08-08 00:42:21 +00:00
Butkovits Atila 996e816c65 Backed out changeset e71e10688704 (bug 1634030) for failure at browser_shim_disable_devtools.js CLOSED TREE 2020-08-08 03:46:14 +03:00
Emma Malysz 77f8ca0ed1 Bug 1634030: lazify main app menu r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D84014
2020-08-07 22:02:32 +00:00
Varun Dey 918fb21e6a Bug 1642769 - Show TypeScript icon for .tsx extension. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D86141
2020-08-07 20:36:18 +00:00
Julian Descottes 705e65c932 Bug 1652445 - Fix highlighters overlay to react to frame navigation r=rcaliman
Depends on D84973

This was highlighted by browser_grids_grid-list-on-iframe-reloaded.js which fails without this fix.

Differential Revision: https://phabricator.services.mozilla.com/D84974
2020-08-07 12:24:10 +00:00
Julian Descottes 6e5145a87c Bug 1652445 - Use root node resource to detect navigation for all frames r=rcaliman,ochameau
Depends on D85599

The WalkerActor is currently responsible for watching navigations and exposes them to the client.
However, this is communicated to the client differently depending on what kind of frame navigates.
If the top frame of the target navigates, this will be exposed via the watchRootNode API (onDestroyed/onAvailable callbacks will be triggered)
If an inner frame navigates, mutations will be emitted: "frameLoad"/"documentUnload" + a fake "childList" mutation.

On the client side, we have to handle both very similarly which leads to some duplication.
Also "frameLoad"/"documentUnload" are one of the last "immediateMutations" which usually means they should not have been mutations in the first place.

The goal here is to use the watchRootNode API for all frames.

Differential Revision: https://phabricator.services.mozilla.com/D84973
2020-08-07 12:16:51 +00:00
Julian Descottes 40eb2a0d73 Bug 1652445 - Remove skipped & outdated test browser_inspector-mutations-frameload.js r=ochameau
Depends on D85598

This test relies on mutations which are no longer emitted for most navigations and which will no longer be emitted at all with the next patches.
It has been disabled for 9 months and should be removed.

Differential Revision: https://phabricator.services.mozilla.com/D85599
2020-08-07 12:16:44 +00:00
Julian Descottes 58de59ca2b Bug 1652445 - Remove backward compatibility code for newRoot mutations r=rcaliman
Depends on D85597

newRoot mutations are no longer emitted by any server we support, we can remove the corresponding client code.

Differential Revision: https://phabricator.services.mozilla.com/D85598
2020-08-07 12:16:42 +00:00
Julian Descottes efef5c970b Bug 1652445 - Remove outdated traits from NodeActor r=rcaliman
Depends on D84972

Differential Revision: https://phabricator.services.mozilla.com/D85597
2020-08-07 12:15:02 +00:00
Julian Descottes 1d0130e4df Bug 1652445 - Rename WalkerActor _ref method and _refMap property r=gl
_ref is renamed to _getOrCreateNodeActor to better reflect the purpose of the method.
_refMap is renamed to _nodeActorsMap

The test helper inspector-helpers was also directly querying _refMap.
This has been replaced by a call to the public API getNode.

Differential Revision: https://phabricator.services.mozilla.com/D84972
2020-08-07 12:14:37 +00:00
Belén Albeza b6de344d69 Bug 1653998 - View source of worker from the Application panel r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86039
2020-08-07 12:47:34 +00:00
Stepan Stava 99cb02ee89 Bug 1657074 - Refactor 'toggleJavaScript' mochitest helper function to make it reusable r=nchevobbe
As suggested in revision [[ https://phabricator.services.mozilla.com/D81678#inline-485161| D81678 ]] the current `toggleJavaScript` function is used for toggling one menu item in the debugger settings.

This patch refactors this function to be reusable by other tests.

Differential Revision: https://phabricator.services.mozilla.com/D86038
2020-08-07 12:23:27 +00:00
Richard Sherman 155b24b9c7 Bug 1581641 - Enable codemirror's code folding in editor mode r=nchevobbe
Adding code folding to console when in editor mode.

Differential Revision: https://phabricator.services.mozilla.com/D85901
2020-08-07 11:10:17 +00:00
Julian Descottes e57c2589f9 Bug 1655016 - Do not assume any resource order in browser_resources_stylesheets.js r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D86254
2020-08-07 06:08:27 +00:00
Kriyszig 5808376a46 Bug 1643961 - Remove the backwards compatibility check for CompatibilityActor r=daisuke,mtigley
The backwards compatibility checks existed to support devtools
backend for version older than FF79. Now that FF79 has hit the
release channel, these tests for older backend can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D86142
2020-08-06 22:39:57 +00:00
Kriyszig 916bc8b129 Bug 1649021 - Add tests for CSS Compatibility Tooltip r=mtigley,daisuke DONTBUILD
The CSS Compatibility Tooltip tests cover the following cases:
* Check if the contents of the tooltip match the rendered template
* Check compatible rules aren't falsely marked incompatible
* Check incompatible rules are marked correct with icon appearing next to it
* Check toggling rule disable hides the icon
* Check adding rules updates the compatibilility status
* Check the compatibility icon disappears if a fix is added

Differential Revision: https://phabricator.services.mozilla.com/D84218
2020-08-06 11:06:39 +00:00
Kriyszig d0b13329e8 Bug 1649021 - Add tooltip in rules panel to highlight CSS compatiblity issues for particular declaration r=mtigley,daisuke,flod,ckerschb DONTBUILD
Use CompatibilityActor to fetch the compatiblity information for
a particular CSS declaration and show a tooltip for the
incompatible CSS declaration that may cause issue on platform

Differential Revision: https://phabricator.services.mozilla.com/D81474
2020-08-06 04:41:34 +00:00
Kriyszig 039a9c85b1 Bug 1649018 - Expose compatibility computation for CSS declaration block via CompatiblityActor and add browser dataset fetch r=daisuke,devtools-backward-compat-reviewers DONTBUILD
Previously CompatibilityActor could only compute the compatiblity
issues taking node actor. However with the implementation of
inline compatibility warning, it becomes necessary to compute
compatiblity issue from the CSS declaration block. This patch
exposes a getCssDeclarationBlockIssues and add browser dataset
fetch within the actor for inline warnings.

Differential Revision: https://phabricator.services.mozilla.com/D81472
2020-07-15 09:11:21 +00:00
Julian Descottes 599815e926 Bug 1571329 - Wait for 2 ruleview-changed events in browser_inspector_highlighter-cssshape_iframe_01.js r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D86237
2020-08-06 20:46:25 +00:00
manas 89eed33401 Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-06 16:14:23 +00:00
Hubert Boma Manilla fac59c1636 Bug 1657153 - Use the resource id for updating and deleting a resource r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85987
2020-08-06 11:24:54 +00:00
Nicolas Chevobbe 7ee8cd576d Bug 1657389 - Rename target actor mock 'window' property to 'workerGlobal'. r=ochameau.
Not having the window property anymore, we have to change the `window` getter
in WebConsoleActor to retrieve `workerGlobal`. And since the getter name wasn't
reflecting what it was holding (it can be a window, a worker global or a sandbox),
we rename it to `global` (and `evalWindow` to `evalGlobal`).

We remove the `globalDebugObject` getter on the thread actor that wasn't used
anywhere in the code.

Differential Revision: https://phabricator.services.mozilla.com/D86035
2020-08-06 14:05:07 +00:00
Nicolas Chevobbe 09e0660397 Bug 1657386 - Use helpers from shared-head to unregister all workers in application panel tests. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D86024
2020-08-06 14:09:20 +00:00
Dev Singh e24d477b21 Bug 1635835 - Fix request parsing with XSSI-escapes in requests and responses r=Honza,bomsy
Also implements JSONP parsing into the main JSON parser

Differential Revision: https://phabricator.services.mozilla.com/D80720
2020-08-06 12:51:14 +00:00
Itiel 2f84734040 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-06 03:36:28 +00:00
Butkovits Atila 3bd0e5497c Backed out 10 changesets (bug 1589102) for failure at browser_saveHeapSnapshot_e10s_01.js CLOSED TREE
Backed out changeset 0d22ad297b19 (bug 1589102)
Backed out changeset 14bcaf2a452c (bug 1589102)
Backed out changeset 20905f91e2bb (bug 1589102)
Backed out changeset 29ee0fbe855f (bug 1589102)
Backed out changeset d1f6185030af (bug 1589102)
Backed out changeset 31949872cc1d (bug 1589102)
Backed out changeset ec04e1a20597 (bug 1589102)
Backed out changeset ffe8da473b91 (bug 1589102)
Backed out changeset 3b92f7306c64 (bug 1589102)
Backed out changeset b187548e258f (bug 1589102)
2020-08-05 21:47:50 +03:00
Anny Gakhokidze 5da2f83936 Bug 1589102 - Part 5: Fix tests that relied on about:blank loads happening instantenously, r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D85083
2020-08-05 16:44:18 +00:00
Alexandre Poirot 28ef7f3731 Bug 1657194 - Prevent attaching to frame target in the context of the browser toolbox. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D85918
2020-08-05 14:15:20 +00:00
Hubert Boma Manilla 7c093a6ed4 Bug 1653743 - Send request body event for service workers r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84340
2020-08-05 12:09:44 +00:00
Belén Albeza 7a05ad3411 Bug 1637538 - Change debug button in the Application panel for a link as per latest UX mockups r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D85605
2020-08-04 18:36:38 +00:00
Nicolas Chevobbe 38c24cfb66 Bug 1656888 - Load ad-hoc console listener module in worker context. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D85815
2020-08-05 08:59:20 +00:00
Nicolas Chevobbe a704fd4ad8 Bug 1656888 - Make WorkerThread's mock parent an Actor. r=ochameau.
The `watchResources` function [1] takes as a first parameter either a watcher
actor or a target actor, that is used to manage the created resources (e.g. the
object actors of console messages). In order to be able to manage actors, it
needs to extend the `Pool` class (which is the case for Actor).
In the worker cases, things are a bit different, since we create a DevToolServer
which only have a WebConsole and a Thread actor. Those actors usually take a target
actor as a parent, but in the Worker thread we simply have an object implementing
the properties and methods it needs.
This will be this target actor mock that we're going to pass to `watchResources`,
and in order to be able to do that, it needs to be able to manage actors.

In regard of all this, this patch makes the target actor mock an actual Actor,
witout spec, on which we then put the existing methods and properties.

[1] https://searchfox.org/mozilla-central/rev/0e309417bdc73be33fc93f6bd7a0d4063d2c6e51/devtools/server/actors/resources/index.js#66

Differential Revision: https://phabricator.services.mozilla.com/D85814
2020-08-05 08:29:00 +00:00
Nicolas Chevobbe e38391a4ab Bug 1656888 - Add test cases for TargetList worker support. r=jdescottes.
The existing browser_target_list_workers.js is split in two tests, one for testing
browser workers (i.e. Browser Toolbox case), and another one for testing workers
in a tab.

Numerous test cases are added to check behaviour of the targetList when workers:
- already exists
- are spawned
- are terminated
in the main document or in remote iframe.

The test is tagged as fail-if when fission is enabled since we don't get the
workers for remote iframes.

Differential Revision: https://phabricator.services.mozilla.com/D85813
2020-08-05 12:13:44 +00:00
Nicolas Chevobbe d056b8ad0f Bug 1656888 - Make the iframe in fission_document.html a remote iframe. r=jdescottes.
fission_document.html's iframe was on example.com while the top document
is always on example.com as well, so we weren't exercising fission in it.
This patch puts the iframe on example.org, which highlighted some TargetList
test failures that this patch addresses.

Differential Revision: https://phabricator.services.mozilla.com/D85812
2020-08-05 08:27:23 +00:00
Julian Descottes 064e9e3b54 Bug 1655985 - Move devtools/server/actors/descriptors/watcher up one level r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85966
2020-08-05 12:00:58 +00:00
Julian Descottes 9208b6c499 Bug 1657104 - Support onResourceUpdated for server resources r=ochameau,devtools-backward-compat-reviewers,nchevobbe
Depends on D85881

Differential Revision: https://phabricator.services.mozilla.com/D85882
2020-08-05 08:59:42 +00:00
Julian Descottes 44ff0cd41b Bug 1657104 - Support onResourceDestroyed for server resources r=ochameau
Depends on D85879

Differential Revision: https://phabricator.services.mozilla.com/D85881
2020-08-04 20:33:56 +00:00
Julian Descottes de9f625f0f Bug 1657104 - Homogeneize APIs for destroyed/updated resources in DevTools ResourceWatcher r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85879
2020-08-05 06:42:25 +00:00
Bogdan Tara 56e3736afb Backed out changeset ac5dc4c13464 (bug 1656706) for prefixNeeded related failures 2020-08-05 07:31:48 +03:00
Itiel bcfc9fbe66 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-05 03:47:28 +00:00
Neil Deakin 827e22ea0b Bug 1656095, remove frame script from browser_saveHeapSnapshot_e10s_01.js, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D85344
2020-07-31 07:51:06 +00:00
Bogdan Tara 91572b9250 Backed out changeset 2d126d9f7ef8 (bug 1653290) for /browser_markup_overflow_badge.js failures CLOSED TREE 2020-08-04 22:36:58 +03:00
Logan Smyth 06838cf425 Bug 917963 - Implement break on first script statement. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85198
2020-08-04 18:46:48 +00:00
wartmanm f4757d7c63 Bug 1656726 - Pause On Exceptions, DOM mutation breakpoints, debugger statements pause in blackboxed original sources r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D85718
2020-08-04 18:41:53 +00:00
manas 95bf33558a Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-04 17:17:26 +00:00
Brad Werth 627581e215 Bug 1621655: Make browser_styleeditor_media_sidebar_links.js test await RDM content reflow. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85793
2020-08-04 15:08:19 +00:00
Sebastian Streich bf58055b03 Bug 1633710 - Move uri.spec calls to nsIPrincipal r=necko-reviewers,geckoview-reviewers,preferences-reviewers,ckerschb,ntim,snorp,valentin
Differential Revision: https://phabricator.services.mozilla.com/D82911
2020-08-04 11:10:41 +00:00
Stepan Stava 1db60f22b9 Bug 1644250 - Make 'addException' action reusable. r=nchevobbe.
Makes `addException` more reusable in the form that can be used with exceptions objects that have different properties than a `resource` object from the `resourceWatcher`.
Fixes a typo in `Exception.js`.
Fixes incorrectly set property `sourceId` in `addEditorExceptionLine()` in `Exception.js`.

Differential Revision: https://phabricator.services.mozilla.com/D78883
2020-08-04 13:57:27 +00:00
Julian Descottes a315a1a0f0 Bug 1656170 - Update package name used to detect Fenix via ADB r=daisuke
The Fenix package name is now org.mozilla.firefox and not org.mozilla.fenix.
We need to update the logic in ADB to accommodate for this change.

Differential Revision: https://phabricator.services.mozilla.com/D85396
2020-08-01 09:24:00 +00:00
Mihai Alexandru Michis 911fad88f8 Bug 1655183 - Disable browser_resources_network_events.js on linux r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D85667
2020-08-03 15:24:46 +00:00