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

4400 Коммитов

Автор SHA1 Сообщение Дата
Daisuke Akatsuka a936229ca0 Bug 1659589: Get property-change event via resource watcher. r=ochameau
Depends on D87041

Differential Revision: https://phabricator.services.mozilla.com/D87042
2020-08-26 08:37:18 +00:00
Daisuke Akatsuka 0adc3db50a Bug 1659589: Handle importing stylesheet from file using resource watcher mechanism to keep consistency. r=ochameau,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D87040
2020-08-27 22:31:52 +00:00
Alexandre Poirot 2effa77867 Bug 1660895 - Eagerly ignore loading or destroying documents. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88075
2020-08-26 20:31:57 +00:00
Alexandre Poirot 07e7e6e9b1 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 14:25:31 +00:00
Mihai Alexandru Michis 01a6dfae9d Backed out changeset 9d95edbd8386 (bug 1660892) for causing devtool timeouts.
CLOSED TREE
2020-08-26 15:39:48 +03:00
Alexandre Poirot 6238cd4670 Bug 1660892 - Ignore window objects related to remote iframes in thread actor. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88074
2020-08-26 08:48:23 +00:00
Nicolas Chevobbe aaa2b8be93 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-25 07:08:12 +00:00
Nicolas Chevobbe a00c418cc2 Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-25 07:07:48 +00:00
manas 68019d8bda Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-23 23:05:13 +00:00
Razvan Maries 5dd733dcb0 Backed out changeset 11f769ec943d (bug 1660266) for perma failures on browser_markup_overflow_badge.js. CLOSED TREE 2020-08-22 21:58:24 +03:00
manas 4ef56c529d Bug 1660266 - Encapsulate the code for finding overflow causing elements inside the Overflow Debugging pref. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D87926
2020-08-22 16:57:04 +00:00
manas 071d9177e5 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-22 09:12:12 +00:00
Narcis Beleuzu 4751b29785 Backed out changeset ed74d4e4b273 (bug 1657680) for dt failure on browser_markup_overflow_badge.js 2020-08-22 04:42:50 +03:00
manas 88e461c163 Bug 1657680 - Make the scrollable badge clickable and add click handler. r=gl,jdescottes,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D86245
2020-08-21 22:27:18 +00:00
Narcis Beleuzu cb798e0f9e Backed out 2 changesets (bug 1659376) for dt failures on browser_dbg-content-script-sources.js. CLOSED TREE
Backed out changeset 61e3dea03a62 (bug 1659376)
Backed out changeset 86e77b35c75d (bug 1659376)
2020-08-21 20:47:02 +03:00
Nicolas Chevobbe 0cd6331277 Bug 1659376 - Fix Browser Toolbox inspector when print preview is displayed.r=rcaliman.
The issue was that the getHighlighter request for the about:printpreview
target never settled. It appears that the document always stays in an
unitialized readyState, which was causing trouble.
Instead of relying only on readyState, we now call isDocumentReady, which
also checks if the document is loading.

Differential Revision: https://phabricator.services.mozilla.com/D87756
2020-08-21 11:56:51 +00:00
Nicolas Chevobbe f9dc6cb44b Bug 1659376 - Extract isDocumentReady from WalkerActor to inspector utils file. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D87755
2020-08-21 11:56:48 +00:00
Julian Descottes 8853c00813 Bug 1659866 - Move server-side devtools pref for Compatibility panel to modules/libpref/init/all.js r=daisuke
Depends on D87603

Differential Revision: https://phabricator.services.mozilla.com/D87611
2020-08-19 22:34:22 +00:00
Bogdan Tara 789e572738 Backed out changeset c209cb1c0341 (bug 1658146) for browser_resources_network_events.js failures CLOSED TREE 2020-08-20 03:17:05 +03:00
Hubert Boma Manilla 75bcf1cab2 Bug 1658146 - Stop request blocking for no valid reason r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D87569
2020-08-19 14:13:48 +00:00
Julian Descottes 8aecb1e6df Bug 1642295 - Enable server side resource watching by default r=ochameau
Depends on D86963

Just for reference for now, since this is incompatible with target switching.

Differential Revision: https://phabricator.services.mozilla.com/D86964
2020-08-19 14:08:40 +00:00
Julian Descottes e9bb161639 Bug 1642295 - Fold clearCachedMessage from ConsoleServiceListener into WebConsoleActor r=nchevobbe
Depends on D86961

Differential Revision: https://phabricator.services.mozilla.com/D86962
2020-08-19 14:08:37 +00:00
Julian Descottes 3507a935c3 Bug 1642295 - Fix shouldHandleMessage signature in platform-message DevTools resource r=nchevobbe
Depends on D86960

Differential Revision: https://phabricator.services.mozilla.com/D86961
2020-08-19 14:08:36 +00:00
Julian Descottes 2703786741 Bug 1642295 - Add missing Cu import in devtools/server/actors/object/utils.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86960
2020-08-19 14:08:36 +00:00
Nicolas Chevobbe 4024f7b515 Bug 1659407 - Remove newCacheStructure webconsole trait. r=ladybenko.
Differential Revision: https://phabricator.services.mozilla.com/D87234
2020-08-18 15:11:59 +00:00
Julian Descottes 1ecab54df3 Bug 1658888 - Remove old backward compat code for ArrayBuffer marshalling r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86947
2020-08-17 18:35:18 +00:00
Kris Maglione 0c976d908a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-08-17 20:22:12 +00:00
Kris Maglione 3af8c4138c Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-08-17 20:20:50 +00:00
Nicolas Chevobbe 5c09051944 Bug 1658945 - Add getResourceTypeDictionaryForTargetType function in devtools/server/actors/resources/index.js. r=ochameau.
We already had a function that was returning a resourceType dictionnary for
a given watcher or target actor, on which we were then checking the targetType
to return the appropriate dictionnary.
It feels appropriate to have a dedicated function to get the dictionnary from
the targetType only, so we can call it from other places instead of repeating
the same instructions.

Differential Revision: https://phabricator.services.mozilla.com/D86979
2020-08-14 05:09:02 +00:00
Christoph Kerschbaumer bc8e540bb5 Bug 1658323: HTTPS-Only Mode: Have console message link to SUMO page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86577
2020-08-11 13:22:32 +00:00
Alexandre Poirot 2cee1e6ebe Bug 1657105 - Fix server side update and destroy events. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86048
2020-08-12 16:49:25 +00:00
Alexandre Poirot 3441a8b394 Bug 1657105 - Allow listening for resources from both parent and content processes. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86046
2020-08-12 16:49:23 +00:00
Alexandre Poirot 9f9a8d9b3e Bug 1657105 - Use constants to define target types on the server and set targetType on all targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86632
2020-08-12 16:49:21 +00:00
Alexandre Poirot c5b1ffc8f8 Bug 1658566 - Remove all unecessary typeName. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86722
2020-08-12 16:57:05 +00:00
Bogdan Tara 16fadcf1aa Backed out 3 changesets (bug 1657105) for es lint and test_logpoint-03.js failures CLOSED TREE
Backed out changeset e0ac6c61d65a (bug 1657105)
Backed out changeset 51b8364f941b (bug 1657105)
Backed out changeset cc50fc1340a9 (bug 1657105)
2020-08-12 18:56:52 +03:00
Alexandre Poirot feeba49b58 Bug 1657105 - Fix server side update and destroy events. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86048
2020-08-11 14:15:18 +00:00
Alexandre Poirot 3bf66fff0b Bug 1657105 - Allow listening for resources from both parent and content processes. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86046
2020-08-11 14:11:52 +00:00
Alexandre Poirot f4606b2122 Bug 1657105 - Use constants to define target types on the server and set targetType on all targets. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D86632
2020-08-12 15:10:13 +00:00
Julian Descottes f05829aa08 Bug 1629890 - Use Front/Actor::isDestroyed to replace actorID checks r=nchevobbe
Depends on D86325

Differential Revision: https://phabricator.services.mozilla.com/D86356
2020-08-12 11:33:44 +00:00
Julian Descottes 028ab078d0 Bug 1629890 - Convert accessible isDestroyed getter to Actor::isDestroyed() r=yzen,nchevobbe
Depends on D86324

Differential Revision: https://phabricator.services.mozilla.com/D86325
2020-08-10 18:56:38 +00:00
Noemi Erli 56b4ff381b Backed out changeset 9040cdaddc7c (bug 1658323) for causing multiple failures actors/webconsole related CLOSED TREE 2020-08-11 14:45:36 +03:00
Christoph Kerschbaumer a2f94da3d9 Bug 1658323: HTTPS-Only Mode: Have console message link to SUMO page r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D86577
2020-08-11 10:00:53 +00:00
Daisuke Akatsuka d9acff03ab Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-10 23:32:28 +00:00
Butkovits Atila 6c59af367d Backed out changeset cfaf03474399 (bug 1651033) for failure at browser_accessibility_walker.js. CLOSED TREE 2020-08-10 19:28:49 +03:00
Julian Descottes a0acf13c9c Bug 1651033 - Prevent default for pointerup/down events with DevTools node picker r=gl
Differential Revision: https://phabricator.services.mozilla.com/D86502
2020-08-10 14:37:50 +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
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
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
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
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
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
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
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
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
Julian Descottes 32de28696d Bug 1656825 - Fix duplicate calls to lazyRequireGetter r=nchevobbe
Depends on D85288

Differential Revision: https://phabricator.services.mozilla.com/D85720
2020-08-03 07:53:50 +00:00
Taegeon Lee 7d84058c16 Bug 1621889 Remove unused originalRegisteredPool in Thread.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85659
2020-08-03 07:06:14 +00:00
Julian Descottes 4430f1a349 Bug 1472821 - Use array of properties to call lazyRequireGetter in inspector actors r=rcaliman
Depends on D85280

To illustrate the added value of supporting arrays in lazyRequireGetter

Differential Revision: https://phabricator.services.mozilla.com/D85269
2020-08-01 10:49:07 +00:00
Dorel Luca 419e9ccc2c Backed out 2 changesets (bug 1644194) for Devtools failures in /browser_browser_toolbox_fission_contentframe_inspector.js
Backed out changeset 5786eef0515a (bug 1644194)
Backed out changeset a5147f70d344 (bug 1644194)
2020-08-03 05:13:04 +03:00
Daisuke Akatsuka 7812b6ddf1 Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-02 22:43:20 +00:00
Jeremy Ir 20235b390f Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-08-01 01:56:58 +00:00
Butkovits Atila cc95b93cba Backed out 3 changesets (bug 1635473, bug 1531609) for reftest failures. CLOSED TREE
Backed out changeset 1e7b32808be8 (bug 1531609)
Backed out changeset e64a61869cdb (bug 1531609)
Backed out changeset 6da37d7f6dd3 (bug 1635473)
2020-07-31 23:56:54 +03:00
Yura Zenevich 46631a3015 Bug 1655053 - updating color vision deficiency simulation in accessibility panel. r=jdescottes
* removing simulations for protanomaly, deuteranomaly and tritanomaly
* updating (fixing) the color matrices for protanopia, deuteranopia and tritanopia
* adding a matrix to simulate achromatopsia

Co-authored-by: Matthew Petroff <mozilla@mpetroff.net>

Differential Revision: https://phabricator.services.mozilla.com/D85508
2020-07-31 16:58:01 +00:00
Jeremy Ir 92b8f0f77a Bug 1531609 part 1 - Rename overflow:-moz-hidden-unscrollable to overflow:clip. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D73716
2020-07-31 16:40:48 +00:00
Daisuke Akatsuka 4a9d8ddf56 Bug 1478688: Remove no longer used code from network monitor actor. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85370
2020-07-30 13:43:31 +00:00
Hubert Boma Manilla eb5f181cd0 Bug 1656193 - Use the browserId instead of BrowsingContextID r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85380
2020-07-30 18:47:08 +00:00
Yura Zenevich 86b660210e Bug 1653186 - fix highlighter in about:addons (ensure that the highlighter markup nodes are created using the correct window/document). r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85191
2020-07-30 14:00:11 +00:00
Yura Zenevich e9437a481d Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-30 14:00:03 +00:00
Yura Zenevich e65360bcf3 Bug 1648161 - update code paths where canvas helper was expected to insert synchronously. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82416
2020-07-30 13:59:53 +00:00
Yura Zenevich c894b69ce1 Bug 1648161 - use accessible highlighter instead of xul-accessible highlighter in browser toolbox. Remove xul-accessible highlighter altogether. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D80005
2020-07-30 13:59:36 +00:00
Daisuke Akatsuka 29ac85b4ad Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-30 03:36:25 +00:00
Noemi Erli 5cebe61c77 Backed out changeset 4ed7b13fb7a5 (bug 1633710) for causing failures in browser_amosigned_url.js CLOSED TREE 2020-07-29 22:34:42 +03:00
Sebastian Streich ea482d8e73 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-07-29 17:33:10 +00:00
Nicolas Chevobbe be3c8ebd18 Bug 1655442 - Make usage of nsIWorkerDebugger.addListener more explicit. r=loganfsmyth
Declare separate listener objects instead of relying on the presence of the
listener method in a broader class.

Differential Revision: https://phabricator.services.mozilla.com/D84964
2020-07-29 07:30:56 +00:00
Julian Descottes 49a164e548 Bug 1633727 - Improve error reporting for legacy actors r=nchevobbe
Depends on D75157

A thread actor attach error shows up as
  Protocol error (unknownError): error occurred while processing 'attach':
  [object Object] from: server0.conn145.content-process36/workerTarget5/thread1

[object Object] is a legacy {error, message} object thrown by the thread actor

Differential Revision: https://phabricator.services.mozilla.com/D83507
2020-07-28 19:44:51 +00:00
Brad Werth f825199513 Bug 1228985 Part 1: Extend HTMLStyleElement to allow devtools to become the triggering principal. r=ckerschb,emilio
Differential Revision: https://phabricator.services.mozilla.com/D77557
2020-07-28 15:45:35 +00:00
Daisuke Akatsuka f89e71f3a5 Bug 1644195: Implement document event watcher. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83900
2020-07-28 03:02:24 +00:00
Daisuke Akatsuka 19143855ba Bug 1644195: Make document-listener not depend on console actor to reuse in another place. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83899
2020-07-28 07:56:40 +00:00
Sonia Singla d9f9215481 Bug 1653907 - Remove outdated DevTools style actor trait getAppliedCreatesStyleCache. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D84908
2020-07-27 15:14:33 +00:00
nchevobbe f218d77123 Bug 1651402 - Use obj.isError instead of obj.class='Error' in DevTools code. r=davidwalsh
Depends on D82876

Differential Revision: https://phabricator.services.mozilla.com/D84958
2020-07-27 15:48:16 +00:00
Alexandre Poirot 3928fe477e Bug 1644649 - Flush sharedData from WatcherRegistry in order to prevent races. r=jdescottes
If we don't, content processes may have outdated data and create a target actor
for a watcher that no longer watch for targets.

Differential Revision: https://phabricator.services.mozilla.com/D82798
2020-07-27 13:27:59 +00:00
Alexander Surkov 305d2fd10d Bug 921504 - implement -moz-inert CSS property r=emilio
-moz-inert CSS property reflects inert subtrees concept and can be used to implement HTML:dialog element and HTML:inert attribute

Differential Revision: https://phabricator.services.mozilla.com/D81701
2020-07-26 21:30:56 +00:00
Mark Banner 10cbdaa642 Bug 1620537 - Fix more ESLint issues raised after upgrading to ESlint 7. r=mossop
There's two issues being fixed here - the first is that no-unused-vars now reports against the last instance of the unused variable. The second is no-dupe-else-if is now on by default.

Depends on D84816

Differential Revision: https://phabricator.services.mozilla.com/D84818
2020-07-24 21:31:24 +00:00
Julian Descottes d56c1d12bc Bug 1654762 - Use traits to detect DevTools storage actor supported methods r=nchevobbe,davidwalsh
This is the only meaningful callsite for actorHasMethod.
This method has many bugs and we want to replace it with traits

Differential Revision: https://phabricator.services.mozilla.com/D84689
2020-07-24 18:07:14 +00:00
Nicolas Chevobbe 2570490cad Bug 1651470 - Fix autocomplete errors. r=bomsy.
This patch is a mixed bag of fixes:

- don't log an error when the string couldn't be analyzed, as it can occur
  frequently when the console input isn't valid, and it clutters the browser
  console
- never return a `null` matchProp. Default to empty string, so consumer code
  can always assume it's a string
- don't call trim on a property if it's not a string (it can be an integer at
  this point).

Differential Revision: https://phabricator.services.mozilla.com/D84779
2020-07-24 14:40:46 +00:00
Narcis Beleuzu 37cb83a398 Backed out 2 changesets (bug 921504) for wpt failures on inert-retargeting-iframe.tentative.html . CLOSED TREE
Backed out changeset 8b75cd744e80 (bug 921504)
Backed out changeset a56b2d354613 (bug 921504)
2020-07-22 23:53:55 +03:00
Alexander Surkov 1c382cad65 Bug 921504 - implement HTML:inert r=emilio,heycam
Differential Revision: https://phabricator.services.mozilla.com/D81701
2020-07-22 04:26:08 +00:00
Dorel Luca 990d081d9f Backed out 2 changesets (bug 1651519) for WPT failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 7b973a0e7be9 (bug 1651519)
Backed out changeset 55e9184c5617 (bug 1651519)
2020-07-22 02:47:34 +03:00
Emilio Cobos Álvarez 5adefab54c Bug 1449401 - Remove moz-math-anonymous ua-only pseudo. r=heycam
We do not expose it nor ever style it. Just use the parent style all the
time. This avoids problematic style resolution calls during reflow.

Differential Revision: https://phabricator.services.mozilla.com/D84358
2020-07-21 22:35:46 +00:00
Kris Maglione d182c95351 Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 22:19:19 +00:00
Kris Maglione e7d942c77f Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 19:02:27 +00:00
Nicolas Chevobbe ae24ed2cde Bug 1652016 - Destroy target created by WebExtension when destroying the toolbox. r=rpl,daisuke,jdescottes.
The problem has 2 folds.
The first one is that the shutdown function on DevToolsExtensionPageContextParent
wasn't called, which means the target was never destroyed. This is fixed by
overriding unload in DevToolsExtensionPageContextParent instead of shutdown, so
the function gets called and the target destroyed.

The second issue was that a single webextension could create 2 targets, and since
we only keep track of a single target, we would miss one. This is fixed by putting
the call to watchTargets in getCurrentDevTools in a promise, so subsequent calls
that might occur before the resulting promise isn't resolved don't end up calling
watchTargets a second time.

Differential Revision: https://phabricator.services.mozilla.com/D83935
2020-07-21 16:26:16 +00:00
Dorel Luca d91c6dc40b Backed out 2 changesets (bug 1651519) for wpt failures in webdriver/tests/switch_to_frame/switch.py. CLOSED TREE
Backed out changeset 52317abc5c68 (bug 1651519)
Backed out changeset 45448dca59a4 (bug 1651519)
2020-07-21 21:55:57 +03:00
Nicolas Chevobbe ebc4f4e1ab Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-21 18:03:13 +00:00
Kris Maglione 4a25531b4a Bug 1651519: Part 2 - Also remove nsIDOMWindowUtils::outerWindowID. r=nika,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D82957
2020-07-21 16:59:33 +00:00
Kris Maglione 9c2c147159 Bug 1651519: Remove nsIDOMWindowUtils::currentInnerWindowID. r=nika,remote-protocol-reviewers,webcompat-reviewers,whimboo
It has some properties which make it footgunny, especially in the face of
Fission. Callers should use WindowGlobalChild.innerWindowId instead.

Differential Revision: https://phabricator.services.mozilla.com/D82801
2020-07-21 16:59:28 +00:00
Kashav Madan ae956c4eef Bug 1653674 - Unskip passing fission tests, r=kmag
It's possible that some of these are still failing intermittently. We can't
really know without first unskipping them.

https://github.com/annygakh/audit-tests

Differential Revision: https://phabricator.services.mozilla.com/D84017
2020-07-21 15:42:48 +00:00
Luca Greco b2f2e7f66d Bug 1620767 - Fix test_extension_storage_actor_upgrade intermittency by explicitly waiting the stores-update RDP event. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84215
2020-07-21 12:10:05 +00:00
Razvan Maries 657d7e2c6b Backed out 3 changesets (bug 1492797) for perma failures on browser_editor_autocomplete_events.js. CLOSED TREE
Backed out changeset 3bfad9588f0b (bug 1492797)
Backed out changeset 3ecf0fc44704 (bug 1492797)
Backed out changeset a7f6906f69de (bug 1492797)
2020-07-21 14:26:49 +03:00
Nicolas Chevobbe f6c68a97f9 Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-20 17:00:01 +00:00
Narcis Beleuzu 0a0d8f9451 Backed out 3 changesets (bug 1648161, bug 1650094) as requeste by yzen
Backed out changeset a05fbae74197 (bug 1650094)
Backed out changeset b1c3cfa3b77b (bug 1648161)
Backed out changeset 7cd63199f143 (bug 1648161)
2020-07-20 18:01:00 +03:00
Nicolas Chevobbe 7fa11883f2 Bug 1653598 - Add a constant for CSS Parser message category. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D84123
2020-07-20 08:15:03 +00:00
Nicolas Chevobbe 8e74f48b9e Bug 1644187 - Add server support for CSS warning resources. r=jdescottes.
This is quite similar to the error messages watcher, except that we call
ensureCSSErrorReportingEnabled after retrieving the cached messages.

Resource no longer includes `errorMessageName` and `isPromiseRejection` as it
makes little sense for the CSS warning.

The existing resource test is updated to run with and without the server support.

Differential Revision: https://phabricator.services.mozilla.com/D83047
2020-07-17 14:58:43 +00:00
Nicolas Chevobbe ec43ae2c74 Bug 1652938 - Add base class for nsIConsoleListener-based resources. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D83621
2020-07-17 14:50:09 +00:00
Hubert Boma Manilla 32fa49ba40 Bug 1651625 - Avoid error when weakmap does not contain any info for the channel r=Honza
I've not got Windows to test the fix specifically.

This should stop from throwing an Error if the WeakMap does not contain
any data for the channel.
It should just return `null`

Differential Revision: https://phabricator.services.mozilla.com/D83840
2020-07-17 06:06:17 +00:00
Cameron McCormack 557d0316a9 Bug 1620467 - Part 8: Make `appearance: button` behave like auto on various elements. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83434
2020-07-16 22:04:24 +00:00
Cameron McCormack dd61f595eb Bug 1620467 - Part 4: Change internal uses of -moz-appearance to appearance and -moz-default-appearance. r=emilio,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,ntim,agi,miketaylr
Uses of `-moz-appearance: none` are changed to `appearance: none`.

Uses of other values that are simply reverting the appearance back to
its default are changed to `appearance: auto`.

Uses of values in UA sheets that are defining the inherent appearance of
widgets are changed to:

  appearance: auto;
  -moz-default-appearance: <value>;

since those values are either no longer supported on (-moz-)appearance,
or are still supported but only in some limited form.

There are some uses of `-moz-appearance: textfield` on <input
type=number> elements that are renamed to `appearance: textfield`.

Differential Revision: https://phabricator.services.mozilla.com/D83430
2020-07-16 22:04:14 +00:00
Cameron McCormack 1739610d9a Bug 1620467 - Part 2: Add unprefixed appearance property and make -moz-appearance and -webkit-appearance be aliases. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D83428
2020-07-16 22:04:11 +00:00
Julian Descottes 31f3e7257b Bug 1628473 - Update the markup view when a remote frame navigates r=rcaliman
Depends on D79675

Differential Revision: https://phabricator.services.mozilla.com/D79676
2020-07-16 16:22:30 +00:00
Julian Descottes 0125dd01b6 Bug 1628473 - Remove watchRootNode trait r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83194
2020-07-16 16:20:41 +00:00
manas 7a7e2a7c34 Bug 1647372 Part 2 - Add tests for GetOverflowingChildrenOfElement. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D81957
2020-07-16 17:05:47 +00:00
Johann Hofmann d2c3957504 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-15 18:52:19 +00:00
Frederik Braun a7153982e8 Bug 1366973: Rename security flags to not contain DATA anymore r=geckoview-reviewers,ckerschb,snorp
Differential Revision: https://phabricator.services.mozilla.com/D83490
2020-07-15 11:20:45 +00:00
Brad Werth 9d266c9a3f Bug 1625925 Part 1: Change touch-simulator.js synthesizeNative methods to use screen coordinates directly. r=botond
This removes the calculation method coordinatesRelativeToScreen in favor of
using the event-supplied screen coordinates. Those coordinates are scaled to
device coordinates to meet expectations of the sendNative methods.

Differential Revision: https://phabricator.services.mozilla.com/D74161
2020-07-13 20:39:52 +00:00
Yura Zenevich c4d9e1e226 Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-14 17:14:16 +00:00
Yura Zenevich 0e099f0461 Bug 1648161 - update code paths where canvas helper was expected to insert synchronously. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82416
2020-07-14 17:38:28 +00:00
Yura Zenevich b1d246431a Bug 1648161 - use accessible highlighter instead of xul-accessible highlighter in browser toolbox. Remove xul-accessible highlighter altogether. r=ochameau,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D80005
2020-07-14 17:13:48 +00:00
Julian Descottes df3fa95f9d Bug 1652079 - Remove mutationBreakpoints from WalkerActor IMMEDIATE_MUTATIONS list r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D83493
2020-07-14 20:02:41 +00:00
Logan Smyth 2f3df327f4 Bug 1196089 - Treat javascript: scripts as anonymous sources. r=davidwalsh
Depends on D83410

Differential Revision: https://phabricator.services.mozilla.com/D83411
2020-07-14 15:04:59 +00:00
Logan Smyth 283fb0d42d Bug 1196089 - Treat script sources introduced by DOM timers as anonymous. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D83410
2020-07-14 15:03:53 +00:00
Logan Smyth d1c3302aa9 Bug 1652608 - Remove usage of nonexistent hostAnnotations property. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D83421
2020-07-14 15:13:31 +00:00
Daisuke Akatsuka 6e9455cf79 Bug 1478688: Remove test codes that does not use anymore. r=Honza
Depends on D83288

Differential Revision: https://phabricator.services.mozilla.com/D83289
2020-07-13 10:38:55 +00:00
Daisuke Akatsuka f77008aa71 Bug 1478688: Remove codes that does not use anymore. r=Honza
Depends on D83287

Differential Revision: https://phabricator.services.mozilla.com/D83288
2020-07-13 10:05:52 +00:00
Daisuke Akatsuka 90dd432408 Bug 1478688: Avoid getting cached content from console actor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83287
2020-07-13 10:05:40 +00:00
Kris Maglione b6be72f351 Bug 1649554: Part 1 - Move deprecated component registration helpers out of XPCOMUtils. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,whimboo,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81749
2020-07-10 23:58:30 +00:00
Kris Maglione 9d78661f88 Bug 1649221: Update ChromeUtils.generateQI callers to pass strings. r=mccr8,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,preferences-reviewers,agi,whimboo,Bebe,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D81594
2020-07-10 23:58:28 +00:00
Hubert Boma Manilla 7121f0a1fb Bug 1649771 - Refactor Channel Map refSet to use a Map instead to improve perf r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D83010
2020-07-10 12:59:41 +00:00
Farooq AR 4fabbe2929 Bug 1646027 - Request mimeType should be sent on response start. r=Honza,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82206
2020-07-10 07:48:54 +00:00
Csoregi Natalia 55e9fe527f Backed out 3 changesets (bug 1645234) for causing leaks. CLOSED TREE
Backed out changeset 6097753dbefa (bug 1645234)
Backed out changeset f74844ba692a (bug 1645234)
Backed out changeset a90a3c1efdc5 (bug 1645234)
2020-07-10 01:54:09 +03:00
Andrea Marchesini 3c1b71a6e4 Bug 1651618 - Use cookie 'SameSite' attribute with capital 'S' everywhere, r=flod,fluent-reviewers,remote-protocol-reviewers,marionette-reviewers,perftest-reviewers,whimboo,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82872
2020-07-09 20:40:15 +00:00
Johann Hofmann d2abd7c95a Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-09 20:12:57 +00:00
Yura Zenevich ff699eadb0 Bug 1649307 - ensure that we do not prevent defaults or stop propagation for events that are for the remote frame target. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82630
2020-07-09 16:00:32 +00:00
Nicolas Chevobbe d7fdb5bb73 Bug 1644186 - Add server support for Error messages resources. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81356
2020-07-09 12:39:22 +00:00
Razvan Maries 3ed03d134b Backed out changeset 162bc74a2c75 (bug 1644186) for perma failures on browser_webconsole_stubs_page_error.js. CLOSED TREE 2020-07-09 15:20:24 +03:00
Andreea Pavel 4d223b739e Backed out 3 changesets (bug 1645234) for failing browser_webconsole_requestStorageAccess_errors.js on a CLOSED TREE
Backed out changeset ad1f8a4d64cf (bug 1645234)
Backed out changeset 6de9007aa306 (bug 1645234)
Backed out changeset 87d5d468c7f2 (bug 1645234)
2020-07-09 13:05:14 +03:00
Nicolas Chevobbe cf209b6c53 Bug 1644186 - Add server support for Error messages resources. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D81356
2020-07-09 08:55:49 +00:00
Johann Hofmann cb1b24c051 Bug 1645234 - Add learn more link to storage access API warnings. r=nchevobbe
Depends on D79597

Differential Revision: https://phabricator.services.mozilla.com/D79788
2020-07-09 08:54:58 +00:00
Daisuke Akatsuka 1498e73db8 Bug 1625930: Implement ResourceWatcher for stylesheet. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78239
2020-07-08 15:13:12 +00:00
Matthew Gaudet 763196a86c Bug 1651420 - Adding private fields to an object is side-effectful and should be marked as such r=loganfsmyth
Note: Until private fields are enabled by default, this test case will take the
early return. However, I have tested locally that it fails without the fix, and
passes with the fix.

Differential Revision: https://phabricator.services.mozilla.com/D82786
2020-07-09 02:14:02 +00:00
Nika Layzell 22c8ce6573 Bug 1650837 - Part 8: Avoid unnecessary sendQuery for DevToolsFrameParent:packet, r=jdescottes
The reply was never used, and due to other changes in this bug, was causing
ignored exceptions to be thrown occasionally when a query was sent immediately
before unregistering the actor.

Differential Revision: https://phabricator.services.mozilla.com/D82615
2020-07-08 09:41:56 +00:00
Kris Maglione 2faa43dd5c Bug 1647438: Remove nsIDOMWindowUtils.containerElement. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D81771
2020-07-02 15:03:44 +00:00
Julian Descottes 0e4d7862d4 Bug 1651319 - Cleanup devtools calls to JSWindowActor sendAsyncMessage r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D82677
2020-07-08 18:52:17 +00:00
Alexandre Poirot 2bffbc8732 Bug 1625027 - Use Browser Element's ID instead of Browsing Context ID. r=jdescottes,nchevobbe
This allows to better support navigating to a new BrowsingContext within the same Tab.
Overall, framework codebase is tracking a Browser Element and should use browserId.
Targets may end up being specific to one BrowsingContext/WindowGlobal,
so they may rather use browsingContextID.

Differential Revision: https://phabricator.services.mozilla.com/D81862
2020-07-08 14:23:16 +00:00
Bogdan Tara 75881e8400 Backed out 6 changesets (bug 1625930) for test_eventemitter_basic.js failures CLOSED TREE
Backed out changeset 30a3da9f613c (bug 1625930)
Backed out changeset d4e4c3ddcc43 (bug 1625930)
Backed out changeset 0133d9c58323 (bug 1625930)
Backed out changeset 1c9cf53f2a89 (bug 1625930)
Backed out changeset f63839eff636 (bug 1625930)
Backed out changeset a6bef105a2c2 (bug 1625930)
2020-07-08 18:08:27 +03:00
Daisuke Akatsuka 124d4687f9 Bug 1625930: Implement ResourceWatcher for stylesheet. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D78239
2020-07-08 14:05:29 +00:00
Bogdan Tara a33ac518b9 Backed out changeset 4d7e94b15360 (bug 1646027) for browser_webconsole_stubs_network_event.js failures CLOSED TREE 2020-07-08 14:16:02 +03:00
Farooq AR ec6505b9a1 Bug 1646027 - Request mimeType should be sent on response start. r=Honza,bomsy,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D82206
2020-07-08 09:42:44 +00:00
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
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
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 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 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 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
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
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
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
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
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
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
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
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
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 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 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
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
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
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
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
Nicolas Chevobbe 7089e9987d Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-25 08:59:58 +00:00
Nicolas Chevobbe 05d83bc5f9 Bug 1648022 - Unwatch resources on target destruction. r=ochameau.
This removes the unpopulated _resourceWatchers attributes from
the browsing context, and instead uses a new function on the
Resource module (`unwatchAllTargetResources`)

Differential Revision: https://phabricator.services.mozilla.com/D80834
2020-06-25 08:59:04 +00:00
Jan Odvarko 6799964058 Bug 1646960 - imported patch ignore-blocked-preloads.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D80856
2020-06-25 10:54:15 +00:00
Nihanth Subramanya 0b44a1b2ab Bug 1645896 - Add a console log origins that have their cookies partitioned by dFPI. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D80675
2020-06-25 05:51:29 +00:00
Hubert Boma Manilla 21ef456a07 Bug 1647625 - Undo check for id or reason for block requests r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D80679
2020-06-24 12:01:27 +00:00
Yura Zenevich 064b6f0847 Bug 1598016 - make sure that remote frame highlighting works in browser toolbox. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79404
2020-06-24 13:21:30 +00:00
Razvan Maries 592b80d333 Backed out changeset 7ff5210dae5e (bug 1645896) for build bustages. CLOSED TREE 2020-06-24 13:39:43 +03:00
Nihanth Subramanya 6be693b933 Bug 1645896 - Add a console log origins that have their cookies partitioned by dFPI. r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D80675
2020-06-24 10:11:45 +00:00
Nicolas Chevobbe efe9743fe7 Bug 1495728 - Remove unused ActorPool class. r=ochameau.
This class isn't used anymore, and it's safe to remove it.
We take this as an opportunity to remove Pool#cleanup and
Pool#isEmpty, which each only had one callsite.
Some comments are updated to not mention ActorPool.

Differential Revision: https://phabricator.services.mozilla.com/D80602
2020-06-24 07:39:06 +00:00
Nicolas Chevobbe a67f596fa2 Bug 1621713 - Don't create extra ActorPools in devtools/server. r=jdescottes.
Remove pools and make target actors manage themselves.
devtools/server/tests/browser/browser_navigateEvents.js was modified
since the targetActor can't be retrieved with `searchAllConnectionsForActor`
anymore.

Differential Revision: https://phabricator.services.mozilla.com/D67510
2020-06-24 07:38:09 +00:00
Julian Descottes 87467dc091 Bug 1644357 - Remove unused WebExtensionDescriptor properties isAPIExtension & type r=daisuke
Depends on D78009

Differential Revision: https://phabricator.services.mozilla.com/D78868
2020-06-09 10:09:09 +00:00
Julian Descottes d412953eea Bug 1646456 - Only call destroy on top level pools from connection onClosed r=ochameau,nchevobbe
Depends on D80060

Differential Revision: https://phabricator.services.mozilla.com/D80064
2020-06-23 11:08:30 +00:00
Julian Descottes 4006b42e26 Bug 1646456 - Remove unused noCleanup argument from removeActorPool r=nchevobbe
Depends on D80059

removeActorPool is only called from one spot, which always passes the second optional argument as true.

Differential Revision: https://phabricator.services.mozilla.com/D80060
2020-06-22 12:54:26 +00:00
Julian Descottes b1578fe35a Bug 1646456 - Add xpcshell test to check pool destruction when connection closes r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D80059
2020-06-23 10:13:59 +00:00
Butkovits Atila afbfabf2f0 Backed out changeset b09c7ddea2a4 (bug 1646678) for causing leaks. CLOSED TREE 2020-06-23 11:06:54 +03:00
Nicolas Chevobbe b5493ef467 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-22 12:15:11 +00:00
Nicolas Chevobbe 1e9044a708 Bug 1646633 - Fix intermittent on browser_storage_cache_error.js. r=jdescottes,ochameau.
This patch removes the browsingContextID getter in favor of creating a property
on the instance in the constructor.
The getter was an attempt to handle the fact that we can have multiple browsing
context over time, but it wasn't working that well, so we'll tackle that as
part of Bug 1625027.

Differential Revision: https://phabricator.services.mozilla.com/D80151
2020-06-22 11:36:32 +00:00
Tooru Fujisawa 74dfbb2d11 Bug 1647026 - Disallow Array.prototype.fill in eager evaluation. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D80373
2020-06-20 18:59:52 +00:00
Hubert Boma Manilla 43efe182ba Bug 1646940 - block request only when there is a reason or an extension id r=Honza
Temp fix  should land in 79,  uplift to 78, and then remove from 79

Differential Revision: https://phabricator.services.mozilla.com/D80305
2020-06-19 09:36:50 +00:00
Dorel Luca 83762a1f31 Backed out changeset 40dae06d5e4d (bug 1646678) for Devtools failures in tests/browser_resources_several_resources.js. CLOSED TREE 2020-06-18 23:21:43 +03:00
Nicolas Chevobbe 06852fdbb6 Bug 1646678 - Allow resource watcher tests to force server side support. r=ochameau.
This is done by getting the value of the `devtools.testing.enableServerWatcherSupport`
preference on the WatcherActor, and using its result to enable the traits or not.
On the browser_resources_* test that have both legacy and server listener, we
run the tests twice, without and with the pref to have some decent coverage.

Differential Revision: https://phabricator.services.mozilla.com/D79983
2020-06-18 15:20:14 +00:00
Hubert Boma Manilla 12ac6882be Bug 1644275 - Add a new Channel map r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D79137
2020-06-18 14:44:12 +00:00
Alexandre Poirot e5f625b56e Bug 1646143 - Use instantiable classes for resource watchers. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D79882
2020-06-18 10:34:37 +00:00
Nicolas Chevobbe 76fccc6721 Bug 1625910 - Use ResourceAPI for CSS Warning messages.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79069
2020-06-16 18:21:22 +00:00
Narcis Beleuzu 971e6397f2 Backed out changeset 9055fd940de5 (bug 1625910) for dt failures on browser_webconsole_location_styleeditor_link.js . CLOSED TREE 2020-06-16 20:52:43 +03:00
Nicolas Chevobbe 43bd5f2873 Bug 1646083 - Fix and add JsDoc in devtools/server/actors/descriptors/watcher/watcher.js. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D79847
2020-06-16 16:38:11 +00:00
Nicolas Chevobbe 0480240653 Bug 1644185 - Implement Platform Messages listening via the ResourceWatcher API on the actor side. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79425
2020-06-16 16:37:52 +00:00
Nicolas Chevobbe 49bb11a38e Bug 1645334 - Handle parentProcessTargetActor in WatcherActor. r=jdescottes,ochameau.
In order to handle parentProcessTargetActor in the WatcherActor, we modify
TargetActorRegistry.getTargetActor to return the parent process target when
the passed browsing context id is null.

The comment explaining why we need to call getTargetActor in
WatcherActor#watchResources is modified to better summarize the situation.

We also take this as an opportunity to handle those targets in unwatchResources.

Differential Revision: https://phabricator.services.mozilla.com/D79424
2020-06-16 16:37:09 +00:00
Nicolas Chevobbe ce5630b4f5 Bug 1625910 - Use ResourceAPI for CSS Warning messages.r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D79069
2020-06-16 10:29:03 +00:00
Kriyszig a39858820c Bug 1637632 - Add browser tests for the CompatibilityActor r=mtigley,daisuke
Added browser test for CompatibilityActor to check consistency and
correctness.
Thse test include:
* Test for no issue
* Test for simple issue
* Test for invalid CSS rule
* Test for aliases
* Test for browser specific issues
* Test for multiple issues for same element

Differential Revision: https://phabricator.services.mozilla.com/D78956
2020-06-15 23:21:07 +00:00
Kriyszig 0d68d9f541 Bug 1637632 - Create a compatibility actor and connect it to Inspector's Compatibility panel r=mtigley,daisuke,devtools-backward-compat-reviewers
This patch adds a `CompatibilityActor` that calls the MDNCompatibility
library from the devtool server.
This patch exposes `_declarations` from the `StyleRuleActor` and the
a new function `formDeclaration` responsible for populating the
declarations property.
As a check for correctness, the patch replaces the `pageStyle.getApplied`
call in the Compatibility Panel on the client with `compatibility.getNodeCssIssues`
fetching the array of compatibility issues directly and removing the
dependency on MDNCompatibility library for client side computation of
compatibility issues.

Differential Revision: https://phabricator.services.mozilla.com/D77060
2020-06-10 09:09:00 +00:00
Emilio Cobos Álvarez ffec6f608b Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-14 23:26:04 +00:00
Logan Smyth 25d491b792 Bug 1601179 - Enable async stacks but limit captured async stacks to debuggees. r=jorendorff,smaug
The 'asyncStack' flag on JS execution contexts is used as a general switch
to enable async stack capture across all locations in SpiderMonkey, but
this causes problems because it can at times be too much of a performance
burden to general and track all of these stacks.

Since the introduction of this option, we have only enabled it on Nightly
and DevEdition for non-mobile builds, which has left a lot of users unable
to take advantage of this data while debugging.

This patch enables async stack traces across all of Firefox, but introduces
a new pref to toggle the scope of the actual expensive part of async stacks,
which is _capturing_ them and keeping them alive in memory. The new pref
limits the capturing of async stack traces to only debuggees, unless an
explicit pref is flipped to capture async traces for all cases.

This means that while async stacks are technically enabled, and code could
manually capture a stack and pass it back to SpiderMonkey and see that stack
reflected in later captured stacks, SpiderMonkey itself and related async
DOM APIs, among others, will not capture stacks or pass them to SpiderMonkey,
so there should be no general change in performance by enabling the broader
feature itself, unless the user is actively debugging the page.

One effect of this patch is that if you have the debugger open and then close
it, objects that have async stacks associated with them will retain those
stacks and they will continue to show up in stack traces, no _new_ stacks
will be captured. jorendorff and I have decided that this is okay because
the expectation that the debugger fully revert every possible effect that it
could have on a page is a nice goal but not a strict requirement.

Differential Revision: https://phabricator.services.mozilla.com/D68503
2020-06-14 02:41:45 +00:00
Jason Laster 13a9ca307f Bug 1644808 - Remove references to wasmBinarySource. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79165
2020-06-12 20:28:44 +00:00
Narcis Beleuzu 010f052da8 Bug 1594467 - Fix lint. a=jlast . CLOSED TREE 2020-06-13 00:00:01 +03:00
Stepan Stava 7b50798bc1 Bug 1594467 - Add 'Restart frame' r=loganfsmyth
Adds 'Restart frame' context menu item to the Call stack

Differential Revision: https://phabricator.services.mozilla.com/D75620
2020-06-12 18:26:40 +00:00
Jason Laster d213ae4f61 Bug 1644813 - Remove references to autoBlackbox. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D79167
2020-06-12 18:06:42 +00:00
Nicolas Chevobbe f77c6d3593 Bug 1644966 - Change parameter of ContentProcessListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79294
2020-06-12 14:16:41 +00:00
Nicolas Chevobbe 2afd39c3b3 Bug 1644966 - Change second parameter of ConsoleAPIListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79252
2020-06-12 10:09:29 +00:00
Nicolas Chevobbe 4f8171b1e1 Bug 1644966 - Change second parameter of ConsoleServiceListener to a function. r=jdescottes.
It used to take an object with only 1 property, a function. The way it was
called in the webconsole actor made it harder to follow than it actually need.
We take that as an opportunity to convert the function to a class.

Differential Revision: https://phabricator.services.mozilla.com/D79249
2020-06-12 10:08:51 +00:00
Emilio Cobos Álvarez 3de085b6b9 Bug 1643713 - Use nsILoadInfo.browsingContextID instead of .browsingContext.id. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79323
2020-06-11 17:16:38 +00:00
Julian Descottes be0cd9625f Bug 1644913 - Avoid exceptions if the storage actor is destroyed while processing a new window r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D79276
2020-06-11 17:22:40 +00:00
Emilio Cobos Álvarez 67ed214041 Bug 1643713 - Properly null-check loadinfo's browsingcontext before trying to get the id. r=bomsy,Honza,ochameau. CLOSED TREE
My patch from bug 1599160 changed timing in a way that makes this bug a
perma fail and I'd rather not get it backed out :)

Differential Revision: https://phabricator.services.mozilla.com/D79316
2020-06-11 16:39:46 +00:00
Alexandre Poirot f685402246 Bug 1638914 - Fix watchedByDevTools exceptions when debugging with Fission ON. r=jdescottes
This attribute can only be toggled on top level BrowsingContext.
These are the top level window's, or tab's BrowsingContext.
From DevTools point of view, it should only be toggled by the
Parent Process or Tab target.

Differential Revision: https://phabricator.services.mozilla.com/D78860
2020-06-09 09:50:05 +00:00
Alexandre Poirot d6c2c33b24 Bug 1620243 - Watch console messages resources from the server side. r=nchevobbe,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77441
2020-06-09 18:22:45 +00:00
Alexandre Poirot 9ff9996e6a Bug 1620243 - Fix the key used for DevToolsFramesChild._connections map. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77769
2020-06-08 22:45:32 +00:00
Alexandre Poirot 4ecf485bc0 Bug 1620243 - Pass BrowsingContextTargetActor docShell via its constructor. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77066
2020-06-08 22:45:24 +00:00
Razvan Maries f761608e79 Backed out changeset bca9f7459a16 (bug 1643656) for reftests perma failures. CLOSED TREE 2020-06-09 18:24:48 +03:00
Emilio Cobos Álvarez 6b86e22f72 Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec. Bug 1643934 updates the WPT tests.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-09 13:21:54 +00:00
Julian Descottes ed439868c2 Bug 1583738 - Move webextension target caching to the descriptor front r=ochameau,daisuke
Depends on D78007

Differential Revision: https://phabricator.services.mozilla.com/D78008
2020-06-09 09:37:49 +00:00
Julian Descottes 64c147e23d Bug 1583738 - Remove unused isDescriptor trait from webextension descriptor r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D78002
2020-06-09 09:15:33 +00:00
Julian Descottes 89a8d5e9e5 Bug 1642875 - Remove unused Frame Descriptor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77995
2020-06-09 07:26:11 +00:00
Cameron McCormack 5e27c1bd6b Bug 1642261 - Part 2: Add telemetry for -moz-appearance usage. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D77637
2020-06-05 00:39:50 +00:00
Logan Smyth cc02094920 Bug 1643540 - Split scriptElement type into three types for clarity. r=jlast,smaug
The lack of specificity for script intro type has lead the debugger to need
to make use of 'source.introductionType' and 'source.element' in order to
determine whether a given script was injected, or inline or fetched, which
is entirely unnecessary of the loader itself clearly tells us what type
of script we are working with. It also allows us to cleanly handle the case
of XUL, which previously was "scriptElement" but has no ".element" passed
in, so we were unable to know whether a given source was inline or not.

Differential Revision: https://phabricator.services.mozilla.com/D78435
2020-06-05 18:22:50 +00:00
nchevobbe b853e6c2e4 Bug 1639165 - Don't log messages forwarded from content processes when multiprocess browser toolbox is enabled. r=Honza.
We were getting duplicated nsIScriptError in the Browser Toolbox console and the Browser Console
when the multiprocess pref is enabled, because error from content processes are forwarded to
the main process.
The previous patch of this queue added a isForwardedFromContentProcess flag to nsIScriptError,
that we use in this patch to _not_ handle forwarded messages in multiprocess browser console
and browser toolbox console.

Differential Revision: https://phabricator.services.mozilla.com/D78231
2020-06-05 14:53:33 +00:00
Narcis Beleuzu 2301168947 Backed out changeset cf9b81801abc (bug 1640117) for dt failures on browser_webconsole_trackingprotection_errors.js . CLOSED TREE 2020-06-05 17:14:38 +03:00
Taegeon Lee 6b7bd763ae Bug 1640117 Change message in console for blocking contents from content blocking to enhanced tracking protection. r=nchevobbe,dimi
Differential Revision: https://phabricator.services.mozilla.com/D78470
2020-06-05 11:15:13 +00:00
Narcis Beleuzu 2f39179838 Backed out 2 changesets (bug 1639165) for dt failures on browser_webconsole_stubs_css_message.js . CLOSED TREE
Backed out changeset 6c7cd0394f8d (bug 1639165)
Backed out changeset c5cd10328f91 (bug 1639165)
2020-06-05 14:21:46 +03:00
nchevobbe 9c7ffe54b3 Bug 1639165 - Don't log messages forwarded from content processes when multiprocess browser toolbox is enabled. r=Honza.
We were getting duplicated nsIScriptError in the Browser Toolbox console and the Browser Console
when the multiprocess pref is enabled, because error from content processes are forwarded to
the main process.
The previous patch of this queue added a isForwardedFromContentProcess flag to nsIScriptError,
that we use in this patch to _not_ handle forwarded messages in multiprocess browser console
and browser toolbox console.

Differential Revision: https://phabricator.services.mozilla.com/D78231
2020-06-05 08:11:35 +00:00
James Teh c45ca37cf4 Bug 1151648: Construct accessible objects for SVG elements which have title or desc. r=MarcoZ,yzen
According to SVG Accessibility API Mappings, an SVG element which has title or desc element must be exposed.
https://w3c.github.io/svg-aam/#include_elements
Previously, we didn't expose <g> elements at all even if they had a title/desc, and we unconditionally exposed some other SVG elements even when they didn't.

This removes the Dev Tools A11y Panel code which explicitly allowed unlabelled descendants of role="img" <svg> elements, since we don't create descendants if they don't have a label now anyway.
The associated tests had to be tweaked as well, since now we don't create unlabelled descendants.

Original patch by Takeshi Kurosawa.

Differential Revision: https://phabricator.services.mozilla.com/D77763
2020-06-03 13:18:38 +00:00
Yura Zenevich 84a0dd32fb Bug 1598076 - pass audit progress number of completed audits back to the client to avoid calculating it from percentage. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D77464
2020-06-04 17:11:26 +00:00
Alexandre Poirot 9812cc0c61 Bug 1642470 - Use BrowsingContext ID instead of outerWindowID to filter out netmonitor requests. r=bomsy,Honza
OuterWindow ID is deprecated in a Fission world and we should rather use Browsing Context ID.
The outer window ID will change when navigating to another origin, loaded in a distinct process,
whereas Browsing Context ID will stay the same.

Differential Revision: https://phabricator.services.mozilla.com/D78253
2020-06-04 15:01:47 +00:00
Julian Descottes bf13b71c17 Bug 1628325 - Stop updating TargetActor title from TabDescriptor r=daisuke
Depends on D77498

Differential Revision: https://phabricator.services.mozilla.com/D77499
2020-06-04 00:21:27 +00:00
Julian Descottes fbc0b647fa Bug 1628325 - Add a isZombieTab property to TabDescriptor r=daisuke
Depends on D77487

Differential Revision: https://phabricator.services.mozilla.com/D77497
2020-06-03 12:26:09 +00:00
Julian Descottes 0a99e65b27 Bug 1638420 - Read tab descriptor title from browser.contentTitle r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D77487
2020-06-04 00:21:04 +00:00
David Walsh 8863fc03cd Bug 1639425 - Add forward and back buttons to remote debugging r=daisuke,flod,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D76203
2020-06-03 22:43:56 +00:00
Bogdan Tara ffdcf42e89 Backed out 2 changesets (bug 1642261) for browser_use_counters.js failures CLOSED TREE
Backed out changeset dd4c99038ede (bug 1642261)
Backed out changeset 308d2f7a4a13 (bug 1642261)
2020-06-03 11:43:20 +03:00
Cameron McCormack 061da14b2e Bug 1642261 - Part 2: Add telemetry for -moz-appearance usage. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D77637
2020-06-03 05:15:21 +00:00
Andrea Marchesini 5ccae203ff Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-02 13:49:27 +00:00
Csoregi Natalia e960b9f449 Backed out 7 changesets (bug 1640405, bug 1638358) for failures on browser_webconsole_network_messages_status_code.js. CLOSED TREE
Backed out changeset ef5f7479ddf8 (bug 1640405)
Backed out changeset 286e0c83eb30 (bug 1638358)
Backed out changeset 89e396b2896e (bug 1638358)
Backed out changeset 33ad5fa05209 (bug 1638358)
Backed out changeset d213264c1379 (bug 1638358)
Backed out changeset 6bc05236afb4 (bug 1638358)
Backed out changeset 87e9d0ed3982 (bug 1638358)
2020-06-02 15:16:42 +03:00
Andrea Marchesini b4173bc59e Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-02 09:13:51 +00:00
Nicolas Chevobbe 34d39dc550 Bug 1641494 - Don't eagerly evaluate commands. r=Honza.
Depends on D77268

Differential Revision: https://phabricator.services.mozilla.com/D77269
2020-06-01 11:20:02 +00:00
Razvan Maries 79fe28f0d6 Backed out 6 changesets (bug 1638358) for perma failures on browser_webconsole_navigate_to_parse_error.js. CLOSED TREE
Backed out changeset beb85cf281d5 (bug 1638358)
Backed out changeset 39f2e21623aa (bug 1638358)
Backed out changeset 2c873c72bf1f (bug 1638358)
Backed out changeset e91292c7c719 (bug 1638358)
Backed out changeset 0219ef931cd9 (bug 1638358)
Backed out changeset 4ac06f3992f4 (bug 1638358)
2020-06-02 00:24:46 +03:00
Andrea Marchesini 848f1f0043 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 17:59:13 +00:00
Noemi Erli e40be0aa72 Backed out 6 changesets (bug 1638358) for causing failures in test_Chrome_cookies.js CLOSED TREE
Backed out changeset 4e8fbe01aa38 (bug 1638358)
Backed out changeset 532731e94bb2 (bug 1638358)
Backed out changeset fad2ba760157 (bug 1638358)
Backed out changeset 932a3fdbd07c (bug 1638358)
Backed out changeset 05a62901a3f5 (bug 1638358)
Backed out changeset cddeada5c4a6 (bug 1638358)
2020-06-01 19:45:46 +03:00
Andrea Marchesini 165022b2c4 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 11:43:19 +00:00
Dorel Luca 9574e25c80 Backed out 6 changesets (bug 1638358) for XPCShell failures in netwerk/cookie/test/unit/test_schemeMap.js. CLOSED TREE
Backed out changeset 745eab35e851 (bug 1638358)
Backed out changeset a45df1876e37 (bug 1638358)
Backed out changeset 1a85cc92d2fb (bug 1638358)
Backed out changeset 2156294cb158 (bug 1638358)
Backed out changeset 31101054c52c (bug 1638358)
Backed out changeset d284b50551ab (bug 1638358)
2020-06-01 14:38:22 +03:00
Andrea Marchesini d1c11476f6 Bug 1638358 - Cookie Schemeful Same-Site - part 3 - update add/addNative methods, r=mayhemer,remote-protocol-reviewers,marionette-reviewers,maja_zf,MattN,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D75627
2020-06-01 10:28:51 +00:00
Yura Zenevich 7f990d178f Bug 1602063 - make Print to JSON functionality work with fission enabled. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D76427
2020-05-29 00:58:33 +00:00
Julian Descottes 4c889947b8 Bug 1637687 - Remove lastPush/pushCount from PushSubscriptionActor as they are not supported on GeckoView r=davidwalsh,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D75905
2020-05-29 06:08:55 +00:00
Alexandre Poirot 4d7c2b365c Bug 1636192 - Clean Content process Target actor on process shutdown. r=nchevobbe
Before this patch, we were not trying to cleanup anything when the process
was known to be in process of destruction. We assumed that everything would
be cleaned up anyway.
But mochitest is actually asserting that nothing is leaked on process shutdown,
and we are easily leaking many thing when not destroying the target actor!

Differential Revision: https://phabricator.services.mozilla.com/D76156
2020-05-28 14:09:44 +00:00
Alexandre Poirot 82f43b8076 Bug 1626266 - Prevent exception when destroying the StyleSheets actor when the page is already destroyed. r=jdescottes
This should help better classify DAMP errors as this was picked up by TreeHerder log parser,
while not breaking DAMP.

Differential Revision: https://phabricator.services.mozilla.com/D77224
2020-05-28 09:50:48 +00:00
Julian Descottes d08d42cd18 Bug 1640904 - Do not assert specific error message in browser_actor_error.js r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77136
2020-05-28 07:52:59 +00:00
Dorel Luca d78dcfafac Backed out changeset 9036936c1908 (bug 1640099) on dev's request. 2020-05-27 11:54:30 +03:00
Julian Descottes 7af155daf4 Bug 1640904 - Force property_error_message_fix in browser_actor_error.js r=nchevobbe
The exception used in this test has different formats depending on the channel.

Differential Revision: https://phabricator.services.mozilla.com/D76887
2020-05-27 05:52:57 +00:00
Nicolas Chevobbe e84ce16407 Bug 1578174 - Use target and window from which a CSS warning was emitted to get the list of impacted elements. r=rcaliman,ochameau.
In order to retrieve the list of impacted element for a given CSS warning,
we are evaluating a document.querySelector expression,
using the cssSelector we get from the error itself.

But if the warning message comes from an iframe, we are not retrieving the
impacted elements, only items from the top-level document.

By storing the target actor id a message is emitted from directly in the message
itself, we can retrieve the target front, and use it to do the evaluation against
the right target.

This is not enough though, as non-remote frame don't have a dedicated target,
and we'll be back at square one, using the top-level document to do the evaluation.
In order to fix that, we're passing the innerWindowID to the evaluateJSAsync method,
so it can be used on the server to retrieve the window instance we need.

A test is added to ensure this feature works as expected for iframes, and it
passes with or without fission enabled.

Differential Revision: https://phabricator.services.mozilla.com/D75811
2020-05-26 15:50:57 +00:00
Emilio Cobos Álvarez b68f73c01a Bug 1635675 - Implement the ::file-chooser-button pseudo-element. r=jwatt
As per https://github.com/w3c/csswg-drafts/issues/5049.

Don't enable it unconditionally just yet, as the name may change.

I had to move some rules in forms.css because otherwise you get
specificity conflicts.

Differential Revision: https://phabricator.services.mozilla.com/D76214
2020-05-25 23:54:10 +00:00
Julian Descottes b27b79da1e Bug 1639111 - Show the filename, line and column for DevTools actor errors r=davidwalsh,ochameau
Depends on D75902

Differential Revision: https://phabricator.services.mozilla.com/D75904
2020-05-25 17:13:59 +00:00
Emilio Cobos Álvarez 462a4cc4d8 Bug 1640631 - Make ::marker styles not show up for elements that aren't list items. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76699
2020-05-25 13:33:05 +00:00
Mihai Alexandru Michis 6f4fa0a560 Backed out 2 changesets (bug 1639111) for causing failures in browser_actor_error.js
CLOSED TREE

Backed out changeset 2964f445c2f5 (bug 1639111)
Backed out changeset 84be772b9ac4 (bug 1639111)
2020-05-25 16:34:55 +03:00
Julian Descottes 5c31755a29 Bug 1639111 - Show the filename, line and column for DevTools actor errors r=davidwalsh,ochameau
Depends on D75902

Differential Revision: https://phabricator.services.mozilla.com/D75904
2020-05-25 12:49:10 +00:00
Narcis Beleuzu 973d9eb6a0 Backed out changeset 82df6f70ec60 (bug 1635675) for lint failure on file-chooser-button-001.tentative.html . CLOSED TREE 2020-05-25 13:49:39 +03:00
Emilio Cobos Álvarez a39a3a3807 Bug 1635675 - Implement the ::file-chooser-button pseudo-element. r=jwatt
As per https://github.com/w3c/csswg-drafts/issues/5049.

Don't enable it unconditionally just yet, as the name may change.

I had to move some rules in forms.css because otherwise you get
specificity conflicts.

Differential Revision: https://phabricator.services.mozilla.com/D76214
2020-05-21 12:27:54 +00:00
Emilio Cobos Álvarez dcec1f3697 Bug 1639852 - Don't collect pseudo-element rules for pseudo-elements that cannot apply. r=rcaliman
This prevents showing e.g. ::cue pseudo-elements for elements that are
not videos, and such.

This is useful on its own, but it's going to be even more useful because
I'm making some rules in the UA sheets less specific in the blocking
bugs.

For example, after my patches, the number of expected rules in
test_styles-applied was 24 (instead of 9 with this patch). That's just
too much noise.

Differential Revision: https://phabricator.services.mozilla.com/D76308
2020-05-25 10:17:05 +00:00
Narcis Beleuzu ca59ca3100 Backed out changeset d45a9f533b34 (bug 1636192) for xpcshell crashes on test_xpcshell_debugging.js . CLOSED TREE 2020-05-25 12:06:48 +03:00
Alexandre Poirot 0cc17a66e7 Bug 1636192 - Clean Content process Target actor on process shutdown. r=nchevobbe
Before this patch, we were not trying to cleanup anything when the process
was known to be in process of destruction. We assumed that everything would
be cleaned up anyway.
But mochitest is actually asserting that nothing is leaked on process shutdown,
and we are easily leaking many thing when not destroying the target actor!

Differential Revision: https://phabricator.services.mozilla.com/D76156
2020-05-25 06:29:51 +00:00
Jan Odvarko 6f2dc9967c Bug 1640099 - imported patch always-set-reason.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D76448
2020-05-22 16:04:16 +00:00
Boris Chiou 599c6939d9 Bug 1635939 - Let aspect-ratio (css-sizing-4) support 'auto | <ratio>'. r=emilio
In order to test its parsing and serialization, we expose it but protect
it behind a pref.

Besides, I would like to drop layout.css.aspect-ratio-number.enabled in
the next patch because the spec has been updated. It seems we don't have
to keep this pref and we should always use Number.

Differential Revision: https://phabricator.services.mozilla.com/D74955
2020-05-21 06:45:10 +00:00
Jason Laster 9f485e4904 Bug 1608078 - Stepping out of async function doesnt work properly. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D75235
2020-05-20 22:22:31 +00:00
Csoregi Natalia c7fbe6575e Backed out changeset 7050d098119c (bug 1608078) for failures on test_stepping-12.js. CLOSED TREE 2020-05-20 23:43:52 +03:00
Jason Laster eeb896255a Bug 1608078 - Stepping out of async function doesnt work properly. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D75235
2020-05-20 17:53:37 +00:00
Jan Odvarko 57247ea89d Bug 1638471 - imported patch ext-name.diff r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75903
2020-05-20 00:12:24 +00:00
Dan Glastonbury b4dde7ce2a Bug 1633459 - Marshal customUserAgent setting via nsDocShell. r=geckoview-reviewers,esawin,nika
Reinstate customUserAgent interface for nsIDocShell. This is so it can be used
as a choke-point to catch setting values on docshells which are in the process
of changing process. We don't want to send changes which will be rejected on the
parent side.

This code should be removed once callers setting customUserAgent are refactored
to only occur from parent process.

Differential Revision: https://phabricator.services.mozilla.com/D75006
2020-05-20 00:19:59 +00:00
David Teller 49d5a4d3b4 Bug 1636089 - ActorManagerParent.addJSProcessActors;r=kmag,geckoview-reviewers,snorp
Differential Revision: https://phabricator.services.mozilla.com/D75047
2020-05-19 16:29:36 +00:00
Neil Deakin 5846219ee4 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-19 13:42:41 +00:00
Nicolas Chevobbe 3c8cacaa5b Bug 1638533 - Add (in promise) suffix for uncaught rejected promise. r=davidwalsh.
Now that nsIScriptError have a `isPromiseRejection` flag, we can consume it
in the console to indicate to the user that we're dealing with a promise rejection.
The exception message is then: "Uncaught (in promise) XXX".
A few tests needed to be updated, and we take this as an opportunity to
ensure we have a stacktrace for uncaught promise rejection.

Differential Revision: https://phabricator.services.mozilla.com/D75780
2020-05-18 14:34:33 +00:00
Csoregi Natalia 08fa2d05ed Backed out 2 changesets (bug 1546394) for devtools failures with getBlockedUrls. CLOSED TREE
Backed out changeset 0365ee129bc0 (bug 1546394)
Backed out changeset 1b05fad0314a (bug 1546394)
2020-05-18 13:33:42 +03:00
Samarjeet e4cce8b4ad Bug 1546394: Netmonitor load blockedurls r=nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D72669
2020-05-18 09:10:09 +00:00
Samarjeet bf742a9699 Bug 1546394 Adds :block <url> command similar to netmonitor r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D69803
2020-05-15 10:58:38 +00:00
Nicolas Chevobbe 5a8027aef4 Bug 1631775 - Make the structure of cached messages the same as live ones. r=Honza.
There was no benefit of having cached messages being different from the "live" ones,
so in this patch we make the message packet consistent.
A few tests had to be modified, and we still handle old-style cached
messages for backward compatibility.

Differential Revision: https://phabricator.services.mozilla.com/D75089
2020-05-18 07:32:02 +00:00
Andreea Pavel 9257ea9bef Backed out 2 changesets (bug 1594752) for causing bug 1638148 on a CLOSED TREE
Backed out changeset 66cc44b67170 (bug 1594752)
Backed out changeset e781cf38f088 (bug 1594752)
2020-05-15 13:47:49 +03:00
Daisuke Akatsuka 80d3b6bc61 Bug 1633850: Use the loading policy to restrict networks of StyleEditor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D75466
2020-05-15 06:31:06 +00:00
Jan Odvarko 15fda593b2 Bug 1555057 - Show the related Add-on for blocked resources. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D65452
2020-05-14 08:51:29 +00:00
Farooq AR 2340728c04 Bug 1636417 - Implement EventSourceActor. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D75066
2020-05-14 07:54:18 +00:00
Neil Deakin e11f8b01e0 Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-13 19:26:10 +00:00
Christoph Kerschbaumer 026a7442f3 Bug 1636900: Remove TYPE_XBL from nsIContentPolicy. r=remote-protocol-reviewers,emilio,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D74835
2020-05-13 06:53:28 +00:00
Alexandre Poirot 718bf89e62 Bug 1620966 - Move DocShell.watchedByDevtools to BrowsingContext and rename it to watchedByDevTools. r=nika,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D66037
2020-05-12 09:18:26 +00:00
Tom Schuster 7824fc6e57 Bug 1277801 - Remove Object.prototype.toString classname fallback. r=jwalden
Similar to a patch by Robin Templeton <robin@igalia.com>

Differential Revision: https://phabricator.services.mozilla.com/D72459
2020-05-11 20:53:10 +00:00
Mihai Alexandru Michis 7686b00958 Backed out 2 changesets (bug 1594752) for causing failures in browser_e10s_switchbrowser.js
CLOSED TREE

Backed out changeset b54107a687e4 (bug 1594752)
Backed out changeset 801d1e226947 (bug 1594752)
2020-05-11 18:11:24 +03:00
Neil Deakin c4073b529c Bug 1594752, use WindowGlobalParent's documentTitle to update tab titles rather than sending messages and events between processes, r=Gijs
Fix up the browser_tab_label_during_restore.js test to wait for the right number of tab title changes, since the timing of the tab title updating has now changed.

Differential Revision: https://phabricator.services.mozilla.com/D72562
2020-05-11 09:03:03 +00:00
Nicolas Chevobbe 1c52c579d2 Bug 1595046 - Display thrown object as inspectable elements. r=Honza,perftest-reviewers,davehunt.
This patch use the new `exception` and `hasException` field from nsIScriptError
so we can render the actual object in the message error instead of a stringified
version.
Error object are still displayed using the `customFormat` prop, so we display
only the type + message + stacktrace (but we'll have a way to inspect them
in the sidebar soon).
Existing tests were updated to fix failures, and some tests/test cases were
added to make sure we cover all the different kind of errors we can display
in the console.

Differential Revision: https://phabricator.services.mozilla.com/D71288
2020-05-11 10:38:57 +00:00
Julian Descottes 0d4c2cbb28 Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-10 18:41:58 +00:00
Razvan Maries 917859d20b Backed out 3 changesets (bug 1635467, bug 1625961) for mochitest perma failures at browser_harautomation_simple.js
Backed out changeset 1d258bab62d7 (bug 1635467)
Backed out changeset cf46002eefb0 (bug 1625961)
Backed out changeset c7757cea8327 (bug 1625961)
2020-05-10 19:01:23 +03:00
Julian Descottes b65aacf37e Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-10 14:40:22 +00:00
Dorel Luca c0aa119d7d Backed out 3 changesets (bug 1635467, bug 1625961) for Devtools failures in resources/tests/browser_resources_exceptions.js. CLOSED TREE
Backed out changeset 1fd6a3754afb (bug 1635467)
Backed out changeset 977b0031b41c (bug 1625961)
Backed out changeset 18646e7b984f (bug 1625961)
2020-05-09 20:09:59 +03:00
Dorel Luca 4c8951359a Backed out changeset d7df79387af7 (bug 1595046) for Talos tests failures in webconsole/complicated.js. CLOSED TREE 2020-05-09 20:08:21 +03:00
Julian Descottes 9fb3f67263 Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-08 21:58:14 +00:00
Nicolas Chevobbe 6732178e6d Bug 1595046 - Display thrown object as inspectable elements. r=Honza.
This patch use the new `exception` and `hasException` field from nsIScriptError
so we can render the actual object in the message error instead of a stringified
version.
Error object are still displayed using the `customFormat` prop, so we display
only the type + message + stacktrace (but we'll have a way to inspect them
in the sidebar soon).
Existing tests were updated to fix failures, and some tests/test cases were
added to make sure we cover all the different kind of errors we can display
in the console.

Differential Revision: https://phabricator.services.mozilla.com/D71288
2020-05-09 11:18:20 +00:00
Julian Descottes 9483eb9c71 Bug 1611096 - Check webprogresslistener as a fallback for non loaded documents r=rcaliman,ochameau
Depends on D62624

With the previous implementation, an uninitialized document could be returned as a root node.
Here we try to be more explicit and wait for a correct root node. However in some cases a document can remain uninitialized and will never transition to any other state.
If the document is uninitialized but is not currently loading, we should consider it as a valid root node.

Differential Revision: https://phabricator.services.mozilla.com/D62625
2020-05-08 21:53:53 +00:00
Julian Descottes d5b84fb6fe Bug 1611096 - Fix tests relying on newRoot mutations r=rcaliman
Depends on D62623

`new-root` is no longer a mutation, but an event emitted by the `walker` actor.
Tests watching for mutations should be updated accordingly. They also need to call watchRootNode explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D62624
2020-05-08 21:53:31 +00:00
Julian Descottes d813016c11 Bug 1611096 - Add watch-like API for new root event r=ochameau,rcaliman
Depends on D62617

Differential Revision: https://phabricator.services.mozilla.com/D62622
2020-05-08 21:52:20 +00:00
Narcis Beleuzu 43ad94eeae Backed out 4 changesets (bug 1611096) for dt failures on browser_animation_inspector_exists.js . CLOSED TREE
Backed out changeset 0fe3613ee36b (bug 1611096)
Backed out changeset c86433fe8cd0 (bug 1611096)
Backed out changeset a7242f506aa6 (bug 1611096)
Backed out changeset 3703fbfe567a (bug 1611096)
2020-05-08 20:34:54 +03:00
Julian Descottes 407994d12f Bug 1618695 - Stop watching for TabRemotenessChange in BrowserTabList r=ochameau
Depends on D73700

The TabDescriptorActor/Front is never destroyed, but we used to clean the map entry on TabRemotenessChange.
Removing this cleanup allows to reuse tab descriptors after a navigation.

Differential Revision: https://phabricator.services.mozilla.com/D73701
2020-05-08 12:45:29 +00:00
Julian Descottes 9f49394cce Bug 1618695 - Remove exited event and property from tab descriptor r=ochameau
This is just a cleanup, exited is not used in the tab descriptor actor

Differential Revision: https://phabricator.services.mozilla.com/D73700
2020-05-08 12:45:01 +00:00
Julian Descottes 6c4f741806 Bug 1611096 - Check webprogresslistener as a fallback for non loaded documents r=rcaliman,ochameau
Depends on D62624

With the previous implementation, an uninitialized document could be returned as a root node.
Here we try to be more explicit and wait for a correct root node. However in some cases a document can remain uninitialized and will never transition to any other state.
If the document is uninitialized but is not currently loading, we should consider it as a valid root node.

Differential Revision: https://phabricator.services.mozilla.com/D62625
2020-05-08 11:55:14 +00:00
Julian Descottes db1a2da5e2 Bug 1611096 - Add watch-like API for new root event r=ochameau,rcaliman
Depends on D62617

Differential Revision: https://phabricator.services.mozilla.com/D62622
2020-05-08 11:52:14 +00:00
Ian Moody 546e04f723 Bug 1635677 - Import Components in devtools so Components.Exceptions can be thrown. r=Honza
This was a regression from automated changes in bug 1536556
6936e9640d4e41b2c470a022a2e7066b72b7d906

Differential Revision: https://phabricator.services.mozilla.com/D74098
2020-05-07 05:30:43 +00:00
Yura Zenevich 8812c997a4 Bug 1635634 - do not check root document containment when calculating relations. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D73988
2020-05-06 17:46:14 +00:00
Yura Zenevich 8b5e6042f9 Bug 1635641 - check that document accessible exists before checking if it's stale. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D73990
2020-05-06 17:55:52 +00:00
Ian Moody 011b59d595 Bug 1536556 - Replace raw thrown Cr.ERRORs with Components.Exception. r=mossop,remote-protocol-reviewers,marionette-reviewers,whimboo,necko-reviewers,geckoview-reviewers,valentin,agi
Raw Cr.ERROR don't get stack information, same as throwing JS literals instead
of `new Error()`s.

This was done automatically with a new eslint rule that will be introduced in
the next commit.  One instance of a raw Cr.ERROR was not replaced since it is
used in a test that specifically checks the preservation of raw Cr values in
XPCJS.  The rule will be disabled for that instance.

Differential Revision: https://phabricator.services.mozilla.com/D28073
2020-05-05 17:41:36 +00:00
Julien Wajsberg 7fe841ba60 Bug 1516311 - Increase the timeout for browser-perf-01 r=gregtatum
Differential Revision: https://phabricator.services.mozilla.com/D73808
2020-05-05 14:27:36 +00:00
Micah Tigley d626b0a231 Bug 1623941 - Part 2: Remove manual firing of mouse events. r=bradwerth
We no longer need to fire fake mouse events after replacing `sendTouchEvent` with `sendNativeTouchPoint` in D69885.

Depends on D69885

Differential Revision: https://phabricator.services.mozilla.com/D72905
2020-05-04 15:27:49 +00:00
Micah Tigley 82fb204819 Bug 1623941 - Part 1: Use nsDOMWindowUtils' sendNativeTouchPoint for simulating touch events r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D69885
2020-05-04 16:30:27 +00:00
Ciure Andrei 48a808ecf8 Backed out 3 changesets (bug 1602075) for causing dt failures CLOSED TREE
Backed out changeset 2df583e25890 (bug 1602075)
Backed out changeset fa77554062c7 (bug 1602075)
Backed out changeset 595a28396874 (bug 1602075)
2020-05-02 00:21:30 +03:00
Yura Zenevich b503cad7f4 Bug 1602075 - make enable/disable panel UI conditional on the accessibility-panel-auto-init feature. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71584
2020-05-01 19:04:15 +00:00
Alexandre Poirot 0df0904d08 Bug 1593937 - Remove/Deprecate listRemoteFrames. r=jdescottes
The previous changeset removed all the usages of listRemoteFrames from
the frontend code. We can start removing this method from the actor codebase,
and keep backward compat code in the client.

Differential Revision: https://phabricator.services.mozilla.com/D65522
2020-04-30 07:59:42 +00:00
Alexandre Poirot 1af9a59a48 Bug 1593937 - Fetch BrowsingContextTargets via the watcher instead of the RootFront. r=jdescottes
Now that the BrowsingContextTarget are created by the watcher,
we should redirect existing code in the frontend which was using
`RootFront.getBrowsingContextDescriptor` in order to directly fetch the target from the watcher.

We don't really need descriptors for additional targets.
I think that descriptors are mostly useful for the top level target and for about:debugging, to describe a target without debugging it yet.

This patch is a bit complex because we can't fetch the "parent BrowsingContext ID" from actors/browsing-context.js:form().
browsingContext.parent and browsingContext.embedderWindowGlobal are both null from the content process.
I have not found any way/API to get the parent browsing context ID from the content process, i.e. the ID of browser.xhtml from a tab content process.
So, I end up with this helper method on Watcher actor to get the parent ID on-demand.
We could also inject the parent ID into the browsingContextTarget's form in WindowGlobalWatcher._createTarget,
but that sounds very hacky and hard to follow.

Note that this patch address the issue of duplicated targets.
WatcherFront.getBrowsingContextTarget ensures fetching the ParentProcessTarget for browser.xhtml
instead of recreating a duplicated FrameDescriptor and BrowsingContextTarget for this document, as we do in the existing codebase.

Differential Revision: https://phabricator.services.mozilla.com/D62465
2020-04-30 07:59:38 +00:00
Alexandre Poirot 879475cfd3 Bug 1593937 - Implement watchTargets for remote frames. r=jdescottes
* Introduce a new actor "Watcher", which might in the future allow listening to anything.
Here, it only implements listening for additional remote frame's WindowGlobal
and notify about the WindowGlobalTargetActor's.
* Also, very important part here is that it instantiates the BrowsingContextTargetActor much earlier. Before anything from the page is executed.
It requires to instantiate the actor directly from the content processes, whereas before, we were doing it from a frontend request, after a notification sent from the parent process to the frontend.
* Last but not least, make the TargetList use this new watcher actor in order to
notify the frontend about the dynamically added remote frames.

Differential Revision: https://phabricator.services.mozilla.com/D63317
2020-04-30 07:59:30 +00:00
Alexandre Poirot 734e59b63d Bug 1593937 - Make the BrowsingContextTargetActor optionally follow the WindowGlobal lifecycle. r=jdescottes
The new `followWindowGlobalLifeCycle` argument and field makes the actor behaves like a WindowGlobalTargetActor and only care about the current global (and all its inner iframes, still).
But it ignores the previous/next document. We still uses the DebuggerProgressListener, but mostly for iframes.
will-navigate and navigate are irrelevant for this actor now.
The plan would be to eventually switch all codepaths to this WindowGlobalTargetActor and rename it.
For now, this would only be used for remoted iframes, only additional frame targets.
But not for top level document, nor top level target switching.

Differential Revision: https://phabricator.services.mozilla.com/D65521
2020-04-30 07:59:28 +00:00
Nicolas Chevobbe f0b7591da9 Bug 1631799 - Fix order of command and its result message when server and client don't have the same clock time. r=jdescottes.
When remote-debugging a device, it might happen that the device clock
is not exactly at the same time as the client clock. In such case, we
may end up in cases where the result of a command as an older timestamp,
which means we could have in the console output a result that was displayed
before the command message that triggered it.
In order to fix this, we add a `startTime` property on the evaluateJSAsync
response, that we can then check on the client. If the server time is
older than the client time, then we remove the existing command message
and add a new one, with the server timestamp.

We could have waited the result of the command before displaying the
command message (so we don't have to add a message, and then remove it
when the timestamps don't match), but the UI wouldn't feel snappy, and
even worse in case of long execution times (e.g. a top-level await fetch command).

Differential Revision: https://phabricator.services.mozilla.com/D72705
2020-04-30 06:31:14 +00:00
Emilio Cobos Álvarez 321e28ab43 Bug 1633938 - Implement RDM zoom with transform. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D72981
2020-04-30 01:37:30 +00:00
Dorel Luca 8e7e7136a3 Backed out 4 changesets (bug 1633938, bug 1578008, bug 1633488) for Devtool failures in browser/base/content/test/static/browser_parsable_css.js. CLOSED TREE
Backed out changeset e690c4cf8848 (bug 1633938)
Backed out changeset c999ecad3be8 (bug 1633488)
Backed out changeset abbc47ce1451 (bug 1578008)
Backed out changeset 9e6925ea790f (bug 1578008)
2020-04-30 04:13:42 +03:00
Emilio Cobos Álvarez 17fae10a8b Bug 1633938 - Implement RDM zoom with transform. r=bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D72981
2020-04-29 21:44:17 +00:00
Dorel Luca 7a84a62b7f Backed out changeset 6feb116adffe (bug 1631799) for devtools/client/webconsole/test/browser/browser_webconsole_telemetry_reverse_search.js. CLOSED TREE 2020-04-29 22:33:05 +03:00
Dorel Luca 4d9e086d8a Backed out 3 changesets (bug 1602075) for Devtools failures in devtools/client/accessibility/test/browser/browser_accessibility. CLOSED TREE
Backed out changeset d6c51e1b3fb3 (bug 1602075)
Backed out changeset f9017a10e8df (bug 1602075)
Backed out changeset 69d5ff6275a9 (bug 1602075)
2020-04-29 21:35:47 +03:00
Nicolas Chevobbe f74554002b Bug 1631799 - Fix order of command and its result message when server and client don't have the same clock time. r=jdescottes.
When remote-debugging a device, it might happen that the device clock
is not exactly at the same time as the client clock. In such case, we
may end up in cases where the result of a command as an older timestamp,
which means we could have in the console output a result that was displayed
before the command message that triggered it.
In order to fix this, we add a `startTime` property on the evaluateJSAsync
response, that we can then check on the client. If the server time is
older than the client time, then we remove the existing command message
and add a new one, with the server timestamp.

We could have waited the result of the command before displaying the
command message (so we don't have to add a message, and then remove it
when the timestamps don't match), but the UI wouldn't feel snappy, and
even worse in case of long execution times (e.g. a top-level await fetch command).

Differential Revision: https://phabricator.services.mozilla.com/D72705
2020-04-29 17:12:32 +00:00
Yura Zenevich 5b77e1ed09 Bug 1602075 - make enable/disable panel UI conditional on the accessibility-panel-auto-init feature. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D71584
2020-04-29 17:14:42 +00:00
Daisuke Akatsuka d816588542 Bug 1625942: Introduce dom-loading event. r=ochameau,Honza
Depends on D69329

Differential Revision: https://phabricator.services.mozilla.com/D71505
2020-04-28 15:58:35 +00:00