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

23276 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Poirot 9c61bd73ee Bug 1713643 - [devtools] Use DOCUMENT_EVENT will-navigate in ResourceCommand to prune its cache. r=nchevobbe,jdescottes,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D116345
2021-06-08 08:56:24 +00:00
Alexandre Poirot 028ab4fbc0 Bug 1713643 - [devtools] Expose areExistingResources argument via onResourceAvailable callbacks. r=jdescottes
Doing this helps knowing if some resources are coming from ResourceCommand cache,
or if they are live resources coming from the server.

Differential Revision: https://phabricator.services.mozilla.com/D116984
2021-06-08 08:56:23 +00:00
Alexandre Poirot 1c86e5569b Bug 1713643 - [devtools] Watch for netmonitor resources from a single place. r=bomsy
We were calling ResourceCommand.watchResources from onTargetAvailable, whereas we could and should
call it once before or after calling TargetCommand.watchTargets.
Doing this helps calling watchResources only once, for all the resource types.

Also tweaked networkFront and responsiveFront instantiation.
to only instantiate them when we need them.

Differential Revision: https://phabricator.services.mozilla.com/D116983
2021-06-08 08:56:23 +00:00
Boris Chiou b65c4b45ec Bug 1312588 - Part 2: Support fit-content() in style. r=emilio
Support fit-content for preferred size, min size, and max size. This
patch only implement the style system. For layout part, we will do that
in the following patches.

Differential Revision: https://phabricator.services.mozilla.com/D107161
2021-06-08 05:05:50 +00:00
Andrey Bienkowski fef03390cb Bug 1715073 - Convert devtools/client/storage/test/browser_storage_localstorage_rapid_add_remove.js to async/await r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D117040
2021-06-07 20:33:00 +00:00
Andrey Bienkowski fb78794b4c Bug 1715086 - Remove unnecessary generator from devtools/server/tests/browser/storage-unsecured-iframe.html r=jdescottes
There is no async cleanup here - generator not necessary

Differential Revision: https://phabricator.services.mozilla.com/D117048
2021-06-07 20:21:30 +00:00
Julian Descottes 5502682b68 Bug 1714527 - [devtools] Remove unused serviceworker actor code in DevTools server r=nchevobbe,devtools-backward-compat-reviewers
The actor code for attaching/detaching service worker targets and to push/start workers should no longer be used when parentintercept is disabled because all the UI triggering this is disabled in that case.
Consequently we can remove the server side code supporting this. We still have to be able to list service worker targets when parentintercept is disabled, so there are still some codepaths using isParentInterceptEnabled in the server.

Differential Revision: https://phabricator.services.mozilla.com/D116850
2021-06-07 20:13:26 +00:00
surajeet310 ea853da3f4 Bug 1714788 - Fixed more Sphinx warnings in 'mach doc' ,r=sylvestre,webdriver-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D116939
2021-06-07 19:28:40 +00:00
Hubert Boma Manilla 38445f68e0 Bug 1689141 - [devtools] Enable browser_source_map-reload test r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D116995
2021-06-07 16:45:42 +00:00
Julian Descottes 024c25abe1 Bug 1714994 - [devtools] Remove testActor from runEditOuterHTMLTests r=nchevobbe
Depends on D116965

Differential Revision: https://phabricator.services.mozilla.com/D117001
2021-06-07 16:30:42 +00:00
Nicolas Chevobbe 198cd68336 Bug 1714920 - [devtools] Remove testActor#reload. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D116965
2021-06-07 16:12:46 +00:00
Nicolas Chevobbe 3ac9365683 Bug 1714560 - [devtools] Remove testActor#getNodeInfo. r=jdescottes.
The methods is replaced by adhoc SpecialPowers.spawn task
or when possible with getContentPageElementProperty calls.

Depends on D117018

Differential Revision: https://phabricator.services.mozilla.com/D116964
2021-06-07 16:12:45 +00:00
Nicolas Chevobbe 412f5b015d Bug 1715012 - [devtools] Use gBrowser.reloadTab in navigateTo when the provided URL is the same as the current one. r=ochameau.
In Bug 1710582, `refreshTab` switched to use `navigateTo` in order to handle target switching.
The catch is that `navigateTo` uses `BrowserTestUtils.loadURI`, which triggers a slightly
different behavior than `gBrowser.reloadTab` (for example, it does not keep the scroll position).
In this patch, we modify `navigateTo` so it uses `reloadTab` if the URL provided for
the navigation is the same as the current one.

Differential Revision: https://phabricator.services.mozilla.com/D117018
2021-06-07 16:12:45 +00:00
Alexandre Poirot d89225f30d Bug 1714508 - [devtools] Use DOCUMENT_EVENT will-navigate in debugger. r=nchevobbe,bomsy
Clearing debugger state from onTargetAvaible should be fine,
as soon as we do it immediately.
But doing it from DOCUMENT_EVENT will-navigate may help
if we get some debugger related resources while the target is still attaching on the client.
It should better ensure that state is cleared at the right time, the earliest right time.

Differential Revision: https://phabricator.services.mozilla.com/D116810
2021-06-07 08:52:16 +00:00
Alexandre Poirot d513570bae Bug 1714508 - [devtools] Call Debugger `connect` action only once. r=nchevobbe,bomsy
`connect` and `willNavigate` actions are redundant, except for the isWebExtension argument.
And calling `connect` late, after a few async code make us reset redux state way too late.
Some sources/breakpoints could be processed before and we end up having confusing state.

Differential Revision: https://phabricator.services.mozilla.com/D116809
2021-06-07 08:52:16 +00:00
Ashray a333c97bd5 Bug 1711845 - Fix empty params text in request side panel. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D116490
2021-06-07 08:27:30 +00:00
Alexandru Michis c1ec9ecbbc Bug 1713158 - Disable more devtools tests on OS X 10.15 for causing jobs to permafail. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D116928
2021-06-05 17:00:45 +00:00
Andrey Bienkowski b1584ed3b3 Bug 1714537 - Use async/await in devtools/server/tests/chrome/test_inspector_getImageData.html r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D116826
2021-06-04 16:49:20 +00:00
Nicolas Chevobbe d4bfdc5fa3 Bug 1714518 - [devtools] Remove testActor#hasNode. r=jdescottes.
The methods is replaced by a helper.
Some tests were using testActor.hasNode as
a way to check if a frame switch was successful;
for those we check the markup instead.

Depends on D116692

Differential Revision: https://phabricator.services.mozilla.com/D116818
2021-06-04 15:33:10 +00:00
Olli Pettay f0114836f9 Bug 1714426 - Disable bfcache in parent for the currently failing tests, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D116768
2021-06-04 15:07:56 +00:00
Alexandre Poirot 554100edb3 Bug 1712586 - [devtools] Use DOCUMENT_EVENT's will-navigate in HAR automation. r=bomsy
This helps track all navigations, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Differential Revision: https://phabricator.services.mozilla.com/D115818
2021-06-04 08:08:06 +00:00
Alexandre Poirot 8cd12e0c94 Bug 1705380 - [devtools] Use DOCUMENT_EVENT will-navigate in netmonitor. r=bomsy
This helps clearing the netmonitor it all navigation, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Note that nothing special is being done for the initial document request,
but if we need to we can use NETWORK_EVENT's isNavigationRequest boolean
to help make it work.

Differential Revision: https://phabricator.services.mozilla.com/D116032
2021-06-04 08:08:05 +00:00
Nicolas Chevobbe 902f411249 Bug 1714298 - [devtools] Remove unused testActor methods. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D116692
2021-06-04 05:27:35 +00:00
Nicolas Chevobbe 70aa58af8f Bug 1714291 - [devtools] Remove testActor#reflow. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D116691
2021-06-04 05:27:35 +00:00
Nicolas Chevobbe 3196f1ded6 Bug 1707962 - [devtools] Fix highlighter overlays on target switch. r=ochameau.
We don't store an inspectorFront and a target anymore in HighlightersOverlay,
but retrieve them directly from the inspector instance, as this will provide up-to-date
references.
We also dont' listen for `will-navigate` on the target, but call
`HighlightersOverlay#onWillNavigate` from the inspectors's `_onBeforeNavigate`,
which already handle fission usage.
Finally, we switch to DOCUMENT_EVENT `will-navigate` instead of targetFront `will-navigate`
event in order to handle fission cases.

Differential Revision: https://phabricator.services.mozilla.com/D113541
2021-06-04 05:07:31 +00:00
Alexander Johansen 53a6b651b4 Bug 1712511 - Add a Dark Theme to aboutdebugging. r=daisuke,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D115767
2021-06-03 19:05:29 +00:00
Julian Descottes 5b30435622 Bug 1714037 - [devtools] Move get/set/removeAttributeInBrowser test helpers from to inspector shared-head r=nchevobbe
Depends on D116557

Differential Revision: https://phabricator.services.mozilla.com/D116572
2021-06-03 14:49:00 +00:00
Nicolas Chevobbe a5de5d21cf Bug 1704028 - [devtools] Enable touch simulation in remote frame. r=ochameau,devtools-backward-compat-reviewers.
This patch removes the `setTouchEventsOverride` method on the targetConfigurationCommand,
as we're now enabling the touch simulation from the server, in `BrowsingContextActor#updateTargetConfiguration`.
A new configuration property is added, `reloadOnTouchSimulationToggle`, so the
actor is responsible for reloading the page if the user set the pref.
The `touchSimulator` property is moved from the responsive actor to the browsingContext one
to facilitate managing the touch simulation state.

Differential Revision: https://phabricator.services.mozilla.com/D116103
2021-06-03 11:28:00 +00:00
Alexandru Michis bb641b1b97 Backed out changeset 4235df3527a6 (bug 1713810) for causing dt failures in browser_storage_listings.js
CLOSED TREE
2021-06-02 20:32:14 +03:00
Alexandre Poirot f5f4732cb7 Bug 1713810 - [devtools] Fix openTabAndSetupStorage and clearStorage test helpers with fission. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D116478
2021-06-02 16:48:22 +00:00
Alexandre Poirot 24e725e900 Bug 1712591 - [devtools] Migrate from navigate to DOCUMENT_EVENT dom-complete in the web console. r=nchevobbe
This helps execute code on navigation, even if the document loads super fast
and target actor's navigate is emitted before frontend has a chance to register the navigate event.

Differential Revision: https://phabricator.services.mozilla.com/D115825
2021-06-02 16:44:41 +00:00
Alexandre Poirot 29f76f8a11 Bug 1712591 - [devtools] Expose hasNativeConsoleAPI via DOCUMENT_EVENT's dom-complete resource. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115824
2021-06-02 16:44:41 +00:00
Noemi Erli c4daabf361 Backed out changeset 3a6a13e0c147 (bug 1704028) for causing failures in browser_viewport_zoom_resolution_invariant.js CLOSED TREE 2021-06-02 18:22:51 +03:00
Alexandre Poirot a695ba9a47 Bug 1713678 - [devtools] Use DOCUMENT_EVENT will-navigate in toolbox. r=nchevobbe,jdescottes
This helps clear various things for all navigations, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Differential Revision: https://phabricator.services.mozilla.com/D116423
2021-06-02 14:10:44 +00:00
Alexandre Poirot 5fde4e4a74 Bug 1713947 - [devtools] Fix browser_net_initiator.js on bigger screen size. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D116523
2021-06-02 14:08:12 +00:00
Nicolas Chevobbe 4faad2f0f5 Bug 1712739 - [devtools] Fold custom WebConsoleFront#evaluateJSAsync method into scriptCommand#execute. r=ochameau.
Tests that were using `evaluateJSAsync` are updated, either by using the new command,
or by awaiting for the `evaluationResult` event.
A couple chrome tests were moved to devtools/shared/commands/js/tests/ and turned
into browser tests, and some of them were completely removed as we tested the
features in mochitests as well.

Differential Revision: https://phabricator.services.mozilla.com/D116248
2021-06-02 13:15:06 +00:00
Nicolas Chevobbe 5729531df3 Bug 1712739 - [devtools] Add a `script` command with an `execute` method. r=jdescottes.
This method is meant to replace the direct usage
of webconsoleFront.evaluateJSAsync.
The WebConsoleCommands file is removed, and all
client calls to evaluateJSAsync are migrated to
the new method. Callsites are simplified when
possible, and some test are refactored to switch
to spawned task to retrieve content page information.

Differential Revision: https://phabricator.services.mozilla.com/D116242
2021-06-02 13:15:06 +00:00
Nicolas Chevobbe ce4b52c6c4 Bug 1704028 - [devtools] Enable touch simulation in remote frame. r=ochameau,devtools-backward-compat-reviewers.
This patch removes the `setTouchEventsOverride` method on the targetConfigurationCommand,
as we're now enabling the touch simulation from the server, in `BrowsingContextActor#updateTargetConfiguration`.
A new configuration property is added, `reloadOnTouchSimulationToggle`, so the
actor is responsible for reloading the page if the user set the pref.
The `touchSimulator` property is moved from the responsive actor to the browsingContext one
to facilitate managing the touch simulation state.

Differential Revision: https://phabricator.services.mozilla.com/D116103
2021-06-02 12:46:22 +00:00
Alexandre Poirot 4ed1c008de Bug 1712574 - Avoid trying to register the legacy listener twice. r=jdescottes
This code calling `watchResourcesForTarget` should only be called when
we already called `TargetCommand.watchTargets()`.
When we call `ResourceCommand.watchResources` for the first time, `TargetCommand.watchTargets`
will process already existing targets and call `ResourceCommand.onTargetAvailable` (which calls `watchResourcesForTarget`).
But for any subsequent call, we should use `TargetCommand.getAllTargets` and call `watchResourcesForTarget` manually.

Differential Revision: https://phabricator.services.mozilla.com/D116027
2021-06-02 12:45:12 +00:00
Tooru Fujisawa 8e5a47316d Bug 1659618 - Define ZoomManager in separate devtools window. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D116579
2021-06-02 11:56:25 +00:00
Anthony Frehner 8586f17a07 Bug 1712389 - Update devtools to allow valid CSS variables. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D116498
2021-06-02 09:27:15 +00:00
Nicolas Chevobbe 3f3226c8d7 Bug 1714010 - [devtools] Remove testActor#setProperty. r=jdescottes.
The method is replaced by an helper in shared-head that uses SpecialPowers.spawn
to access the element.

Depends on D116556

Differential Revision: https://phabricator.services.mozilla.com/D116557
2021-06-02 08:11:05 +00:00
Nicolas Chevobbe 28ba5d4a26 Bug 1714009 - [devtools] Remove testActor#getProperty. r=jdescottes.
The method is replaced by an helper in shared-head that uses SpecialPowers.spawn
to access the element.

Differential Revision: https://phabricator.services.mozilla.com/D116556
2021-06-02 08:11:05 +00:00
Alexandre Poirot 653a9b8293 Bug 1713806 - [devtools] Fix lint in browser_aboutdebugging_devtoolstoolbox_splitconsole_key.js. CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D116495
2021-06-01 16:39:09 +00:00
Alexandre Poirot 55e05f9618 Bug 1713806 - [devtools] Wait for full loading of the console in browser_aboutdebugging_devtoolstoolbox_splitconsole_key.js. r=jdescottes
Without this, the new pending call to watchResources throws because we close the toolbox while the console still initiates.

Differential Revision: https://phabricator.services.mozilla.com/D116489
2021-06-01 16:09:22 +00:00
Nicolas Chevobbe c8670bef20 Bug 1713568 - [devtools] Remove testActor#synthesizeKey. r=jdescottes.
Callsites switch to BrowserTestUtils.synthesizeKey.

Differential Revision: https://phabricator.services.mozilla.com/D116394
2021-06-01 14:53:31 +00:00
Nicolas Chevobbe e52344a990 Bug 1713560 - [devtools] Remove testActor#synthesizeMouse. r=ochameau.
Replace its usage with a helper in shared-head that
scroll to the ndoe matching the selector and then
uses BrowserTestUtils.synthesizeMouse to trigger the
mouse event.

Differential Revision: https://phabricator.services.mozilla.com/D116393
2021-06-01 14:53:30 +00:00
Nicolas Chevobbe 088b36d612 Bug 1713557 - [devtools] Remove testActor#getNumberOfElementMatches. r=jdescottes.
All usage of the methods are replaced with a shared helper
that uses a content task to retrieve the number of elements
on the page.

Differential Revision: https://phabricator.services.mozilla.com/D116341
2021-06-01 14:53:30 +00:00
Edgar Chen c80e2f09d3 Bug 1712930 - Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D116081
2021-06-01 13:10:48 +00:00
Edgar Chen 8effa3808d Bug 1712930 - Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116080
2021-06-01 13:10:48 +00:00
Edgar Chen b4a690870e Bug 1712930 - Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116079
2021-06-01 13:10:47 +00:00
Edgar Chen 2f19ad2de5 Bug 1712930 - Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116078
2021-06-01 13:10:47 +00:00
Edgar Chen 79a3f4a3a1 Bug 1712930 - Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116077
2021-06-01 13:10:46 +00:00
Edgar Chen bededd95ac Bug 1712930 - Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116076
2021-06-01 13:10:46 +00:00
Edgar Chen 7664189944 Bug 1712930 - Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116075
2021-06-01 13:10:46 +00:00
Alexandre Poirot 21aafa8249 Bug 1710582 - [devtools] Make refreshTab test helper wait for target switching. r=nchevobbe
navigateTo contains all the logic to wait for panel updates on reload,
as well as wait for the process of the new target.

Differential Revision: https://phabricator.services.mozilla.com/D114828
2021-06-01 11:40:31 +00:00
R. Martinho Fernandes 7ea1bcd018 Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2021-06-01 06:55:07 +00:00
Alexandre Poirot 267732d976 Bug 1702511 - [devtools] Avoid removing the navigation request on navigation in console batch registry. r=jdescottes,nchevobbe
Surprisingly, there is no issue with ResourceWatcher cache,
but only with the WebConsoleWrapper which gets its inner cache purged.

Differential Revision: https://phabricator.services.mozilla.com/D112232
2021-05-31 20:29:56 +00:00
Alexandre Poirot 571f6e5f8e Bug 1702511 - [devtools] Expose isNavigationRequest on NETWORK_EVENT to highlight request done for top level document navigation. r=jdescottes,nchevobbe,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D112921
2021-05-31 20:29:56 +00:00
Alexandre Poirot af7f69d10d Bug 1702511 - [devtools] Clear console messages when doing a navigation across processes. r=jdescottes,nchevobbe
Note that the timestamp being set in WebConsoleWrapper is overriding the one passed from will-navigate
and ends up being wrong and too late.

Differential Revision: https://phabricator.services.mozilla.com/D115974
2021-05-31 20:29:56 +00:00
Alexandre Poirot 1c973b8872 Bug 1702511 - [devtools] Init WebConsoleWrapper before watching for console resources. r=nchevobbe
The following changeset, migrating from target's will-navigate events
to DOCUMENT_EVENT resources, triggers some action dispatch while calling
`_attachTargets`. i.e. Some dispatch* methods of WebConsoleWrapper get called.
But as it wasn't initialized yet, it was throwing.

Differential Revision: https://phabricator.services.mozilla.com/D116024
2021-05-31 20:29:55 +00:00
Alexandre Poirot d77d8027ce Bug 1702511 - [devtools] Flush resources when receiving the will-navigate event. r=jdescottes,nchevobbe
That's to ensure clearing the panels sooner than later.
A few tests depend on this. Without that, target actor's "navigate" event,
which isn't throttled, fires *before* DOCUMENT_EVENT's will-navigate.
That ends up being a logic issue in the console code.

Differential Revision: https://phabricator.services.mozilla.com/D112230
2021-05-31 20:29:55 +00:00
Alexandre Poirot 90cdae00f6 Bug 1702511 - [devtools] Add backward compat code for DOCUMENT_EVENT will-navigate events. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D116344
2021-05-31 20:29:55 +00:00
Michelle Goossens 6abaf5fa29 Bug 1713158 - Disable more devtools tests on OS X 10.15 after migration from 10.14 r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D116403
2021-05-31 17:57:18 +00:00
Sandor Molnar 7b1d598d24 Backed out 7 changesets (bug 1712930) for causing damp failures. CLOSED TREE
Backed out changeset 4a03c8b2aa1a (bug 1712930)
Backed out changeset 311ccf17a01d (bug 1712930)
Backed out changeset c42f2270b5f8 (bug 1712930)
Backed out changeset b117c37b1e7e (bug 1712930)
Backed out changeset dd0ab5fc70a0 (bug 1712930)
Backed out changeset ab9bb2ee0c98 (bug 1712930)
Backed out changeset ec01575cb276 (bug 1712930)
2021-05-31 20:29:32 +03:00
Edgar Chen 529a31571f Bug 1712930 - Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116081
2021-05-31 12:57:18 +00:00
Edgar Chen bd505df613 Bug 1712930 - Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116080
2021-05-31 12:57:17 +00:00
Edgar Chen 71290465e8 Bug 1712930 - Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116079
2021-05-31 12:57:17 +00:00
Edgar Chen 8fdabf5210 Bug 1712930 - Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116078
2021-05-31 12:57:16 +00:00
Edgar Chen fa6e0c0091 Bug 1712930 - Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116077
2021-05-31 12:57:16 +00:00
Edgar Chen a55011f761 Bug 1712930 - Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116076
2021-05-31 12:57:16 +00:00
Edgar Chen b615b3fa01 Bug 1712930 - Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116075
2021-05-31 12:57:15 +00:00
Emilio Cobos Alvarez f80600c6d2 Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-30 12:31:49 +00:00
Butkovits Atila 510d54c4f7 Backed out changeset 229e905d571e (bug 1708735) for multiple regressions. CLOSED TREE 2021-05-30 14:27:20 +03:00
Dorel Luca 211b017ce9 Backed out changeset 089c88b9657b (bug 1597600) for XPCshell failures in toolkit/components/cleardata/tests/unit/test_certs.js. CLOSED TREE 2021-05-29 23:31:00 +03:00
R. Martinho Fernandes a9e55ea7fc Bug 1597600 - make certificate overrides depend on origin attributes r=keeler,geckoview-reviewers,smaug,agi
Differential Revision: https://phabricator.services.mozilla.com/D91962
2021-05-29 19:34:35 +00:00
Hubert Boma Manilla 49d36a938f Bug 1713048 - [devtools] fetch network update packet only when request is available r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D116212
2021-05-28 23:06:52 +00:00
Noemi Erli e1fde28a85 Backed out 7 changesets (bug 1712930) for causing Android mochitest failures in test_onerror_message.html
Backed out changeset 4b93e808e72f (bug 1712930)
Backed out changeset f1cb609c78a0 (bug 1712930)
Backed out changeset 36e48f6e43ae (bug 1712930)
Backed out changeset b2da173c9337 (bug 1712930)
Backed out changeset d2eb6df1ec5f (bug 1712930)
Backed out changeset 78e1d6847f0a (bug 1712930)
Backed out changeset 6f842a2bf026 (bug 1712930)
2021-05-29 01:30:47 +03:00
Edgar Chen 7b47184b2c Bug 1712930 - Part 7: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_BE_OPENED; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116081
2021-05-28 21:12:13 +00:00
Edgar Chen 18ac9679bb Bug 1712930 - Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_SENDING; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116080
2021-05-28 21:12:13 +00:00
Edgar Chen 5b4acdb4c5 Bug 1712930 - Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_RESPONSE_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116079
2021-05-28 21:12:12 +00:00
Edgar Chen a60d37c138 Bug 1712930 - Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_MUST_NOT_BE_LOADING_OR_DONE_OVERRIDE_MIME_TYPE; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116078
2021-05-28 21:12:12 +00:00
Edgar Chen 582f4e1fe3 Bug 1712930 - Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSEXML; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116077
2021-05-28 21:12:12 +00:00
Edgar Chen ffe19c6879 Bug 1712930 - Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_HAS_WRONG_RESPONSETYPE_FOR_RESPONSETEXT; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116076
2021-05-28 21:12:11 +00:00
Edgar Chen b070511ab0 Bug 1712930 - Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D116075
2021-05-28 21:12:10 +00:00
Michelle Goossens c269f677b0 Bug 1713392 - Disable browser_accessibility_context_menu_inspector.js on OS X 10.15 r=malexandru
Differential Revision: https://phabricator.services.mozilla.com/D116290
2021-05-28 20:43:33 +00:00
Gijs Kruitbosch cd50b177a7 Bug 1711523 - remove private proton tracking flags in frontend modules, r=mak,emalysz,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D116009
2021-05-28 19:33:38 +00:00
Michelle Goossens db7c1f28a1 Bug 1713158 - migrate mochitest-devtools from osx 10.14 -> osx 10.15 r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D116188
2021-05-28 15:17:36 +00:00
Emilio Cobos Alvarez 24058f2dca Bug 1708735 - Make the arrowpanel code more generic. r=dao,zombie
Share the concept of a panel content with all other menupopups / panels.

This avoids importing global.css in the shadow tree, and renames the
arrowcontent part to just "content", since we want to introduce a
"content" part for other panels.

This shouldn't change behavior but makes bug 1708136 a matter of
tweaking a couple CSS rules and fixing up test failures.

Differential Revision: https://phabricator.services.mozilla.com/D113990
2021-05-28 11:56:07 +00:00
Alexandre Poirot a34778c44e Bug 1702712 - [devtools] Emit debugger's reloaded event from DOCUMENT_EVENT's dom-complete instead of target's navigate. r=nchevobbe
Note that browser_toolbox_window_title_changes.js was failing because of the missing reloaded event.

Differential Revision: https://phabricator.services.mozilla.com/D114726
2021-05-28 09:59:53 +00:00
Alexandre Poirot 626a49a05d Bug 1712592 - [devtools] Implement DOCUMENT_EVENT's will-navigate in order to replace target actor's will-navigate. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D112922
2021-05-28 08:59:48 +00:00
Hubert Boma Manilla 7261bca63f Bug 1709358 - [devtools] Handle wasm parser errors r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D115578
2021-05-27 13:35:10 +00:00
Hubert Boma Manilla 9c83230162 Bug 1708919 - [devtools] Upgrade the wasmparser version r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114050
2021-05-26 15:01:48 +00:00
Nicolas Chevobbe f6d5439590 Bug 1709362 - [devtools] Fix browser_max_touchpoints.js intermittent. r=ladybenko.
One of the SpecialPowers.spawn task was failing because the page was navigating
while the task wasn't over yet.
This seems to be fixed by waiting for the proper document to load, as well as
waiting for the reload that is done when closing RDM.

Differential Revision: https://phabricator.services.mozilla.com/D115369
2021-05-26 12:44:39 +00:00
nchevobbe 9ce9d934cf Bug 1499679 - [devtools] Display private properties in ObjectInspector. r=bomsy,devtools-backward-compat-reviewers.
This patch surface the private properties in Reps and in the ObjectInspector.
Tests cases are added to cover the basic behaviors we want to have in the
same version private fields are shipped in (90).

Differential Revision: https://phabricator.services.mozilla.com/D115685
2021-05-26 12:44:01 +00:00
Nicolas Chevobbe 748b0f2547 Bug 1499679 - [devtools] Check the DOM instead of Redux store in assertPreviews. r=bomsy.
`assertPreviews` was hovering over a token and then checking the Redux store in
order to assert what should be in the popup. This can be a bit brittle and it's
probably safer to check what's rendered in the DOM, as it directly maps to what's
shown to the user.
Some unused or irrelevant test helpers are removed, and tests are updated accordingly.

Differential Revision: https://phabricator.services.mozilla.com/D115859
2021-05-26 12:44:00 +00:00
Nicolas Chevobbe 602f42fbb5 Bug 1499679 - [devtools] Add PrivatePropertiesIterator actor to retrieve private properties of a given object. r=bomsy,devtools-backward-compat-reviewers.
This patch makes use of the new `getOwnPrivateProperties` method on DebuggerObject
to include private properties in object grip preview.

We're also adding a PrivatePropertiesIterator actor (and associated front) that
will allow us to retrieve all the private properties (e.g. when expanding an
object in the ObjectInspector).

A xpcshell test is added to ensure we do return the expected properties.

Differential Revision: https://phabricator.services.mozilla.com/D115702
2021-05-26 12:44:00 +00:00
Edgar Chen eb9e50c536 Bug 1712861 - Get rid of NS_ERROR_DOM_INVALID_ACCESS_XHR_TIMEOUT_AND_RESPONSETYPE_UNSUPPORTED_FOR_SYNC; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D115946
2021-05-26 12:12:09 +00:00
Nicolas Chevobbe 96a25e628e Bug 1710694 - [devtools] Fix custom error with message getter. r=ladybenko.
In the case a custom error object was defining the `name` and/or `message` property
in getters, we weren't displaying those information in the console.
That's because when retrieving those information, we were avoiding calling getters,
as they're deemed unsafe.
In those specific case, even if unsafe, we always want to show it to the user
so they're not missing any information when debugging.

A test case is added to ensure this works as expected and we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D115678
2021-05-26 12:06:05 +00:00
Alexandre Poirot 2466a0adea Bug 1712686 - [devtools] Pull DevToolsClient from commands object instead of target fronts. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115862
2021-05-26 08:23:34 +00:00
Butkovits Atila bdedec9f47 Bug 1591590 - disabale browser_toolbox_console_new_process.js on Win_64_opt for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D115873
2021-05-25 16:34:05 +00:00
Alexandre Poirot 4ba600ef3e Bug 1693269 - [devtools] Use descriptor directly instead of pulling it via current target. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D108811
2021-05-25 08:02:10 +00:00
Alexandre Poirot fa827a1cbe Bug 1709792 - [devtools] Support target switching in har automation. r=bomsy
* Stop memoizing web console front
* track navigations via DOCUMENT_EVENT's dom-complete
* await for HarAutomation async initialization from toolbox codebase

These changes help fix browser_harautomation_simple.js.
But this isn't enough as will-navigate can easily be missed.

Differential Revision: https://phabricator.services.mozilla.com/D114464
2021-05-24 15:37:33 +00:00
Alexandre Poirot 3c37b9918b Bug 1709792 - [devtools] Remove har's toolbox overlay. r=bomsy
This introduces uncessary complexity and makes it uterly complex to wait
for HarAutomation's async initialization.
Its init isn't async yet.

Differential Revision: https://phabricator.services.mozilla.com/D114837
2021-05-24 15:37:32 +00:00
Alexandre Poirot 438cc8620d Bug 1709792 - [devtools] Pass around commands in har automation. r=bomsy
Make this codebase fully embrace commands and stop being target/toolbox oriented.

Differential Revision: https://phabricator.services.mozilla.com/D114836
2021-05-24 15:37:32 +00:00
Alexandre Poirot a13bc1e7d2 Bug 1712567 - [devtools] Cover console persist feature with cross process navigation. r=nchevobbe
About browser_jsterm_autocomplete_getters_cache, we weren't correctly waiting
for popup to close because of the reload. Instead we probably worked around intermittents
by closing the popup explicitly before the reload.
But that creates other issue, where the reload may close the popup *after* we do Ctrl+Space.
(this patch doesn't trigger any issue with this test, but better fix that)

Differential Revision: https://phabricator.services.mozilla.com/D112231
2021-05-24 15:19:22 +00:00
Siddhant Gupta 96178993d8 Bug 1711346 - [devtools] Disabled saving to file when screenshot to clipboard is enabled. Updated inspector and developer tools toolbar r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D115526
2021-05-21 11:02:07 +00:00
Csoregi Natalia 2e74407d3c Backed out changeset 6d87fac53f56 (bug 1709362) for failures on browser_max_touchpoints.js. CLOSED TREE 2021-05-20 20:43:12 +03:00
Nicolas Chevobbe 9c0861f343 Bug 1709362 - [devtools] Fix browser_max_touchpoints.js intermittent. r=ladybenko.
One of the SpecialPowers.spawn task was failing because the page was navigating
while the task wasn't over yet.
This seems to be fixed by waiting for the proper document to load, as well as
waiting for the reload that is done when closing RDM.

Differential Revision: https://phabricator.services.mozilla.com/D115369
2021-05-20 15:54:04 +00:00
Nicolas Chevobbe 826b087246 Bug 1710574 - [devtools] Add test case for evaluating private properties in console while paused in class method. r=ladybenko.
The underlying issue was fixed on platform in Bug 1709542,
so we're adding a test case to make sure this won't regress
in the future.

Differential Revision: https://phabricator.services.mozilla.com/D114822
2021-05-20 15:35:08 +00:00
Nicolas Chevobbe ae6d72720b Bug 1710516 - [devtools] Add privateIn babel plugin to parser worker. r=bomsy.
Since ergonomic brand check were enabled in Bug 1710510,
babel needs support to parse script using this new syntax.
A test case is added, and the test was failing without the
new plugin.

Differential Revision: https://phabricator.services.mozilla.com/D115381
2021-05-20 13:57:13 +00:00
Nicolas Chevobbe 1f638b9e06 Bug 1711463 - [devtools] Update EvaluationContextSelector items on DOCUMENT_EVENT resources. r=jdescottes.
This patch adds a `refreshTargets` action that is called from the toolbox when
a dom-interactive DOCUMENT_EVENT is received.
This action will only update a new state property, `lastTargetRefresh`, with the
current timestamp, so the `EvaluationContextSelector` component will re-render;
as the target information are directly retrieved from the target fronts, any
changes in the title/url will be shown in the component.

Differential Revision: https://phabricator.services.mozilla.com/D115205
2021-05-19 16:58:07 +00:00
Nicolas Chevobbe f8b1226395 Bug 1704458 - [devtools] Update targetFront url and title on DOCUMENT_EVENT resource. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D114601
2021-05-19 16:58:06 +00:00
Nicolas Chevobbe bbb132d353 Bug 1704458 - [devtools] Pass isFrameSwitching in DOCUMENT_EVENT resources. r=jdescottes.
This will be consumed by the toolbox to not update detached window title when
the user triggered a frame switching (i.e. selected a document in the frame switcher
menu in the toolbar).

Differential Revision: https://phabricator.services.mozilla.com/D115204
2021-05-19 16:58:06 +00:00
Nicolas Chevobbe b2ec877e46 Bug 1691577 - [devtools] Re-enable browser_toolbox_window_title_frame_select.js on fission. r=jdescottes.
This is fixed by the previous patches in this queue.

Differential Revision: https://phabricator.services.mozilla.com/D115337
2021-05-19 16:58:05 +00:00
Nicolas Chevobbe 3f72673a8e Bug 1691576 - [devtools] Update DevTools window title on DOCUMENT_EVENT resource. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D104540
2021-05-19 16:58:05 +00:00
Csoregi Natalia 054720f524 Backed out 5 changesets (bug 1711463, bug 1691577, bug 1691576, bug 1704458) for failures on browser_target_list_frames.js. CLOSED TREE
Backed out changeset 5f42d01c0ec3 (bug 1711463)
Backed out changeset c1954aab8ab2 (bug 1704458)
Backed out changeset b7181701f11c (bug 1704458)
Backed out changeset 8bb93508d939 (bug 1691577)
Backed out changeset d4be8b7f7783 (bug 1691576)
2021-05-18 18:52:49 +03:00
Nicolas Chevobbe 36e9a3619f Bug 1711463 - [devtools] Update EvaluationContextSelector items on DOCUMENT_EVENT resources. r=jdescottes.
This patch adds a `refreshTargets` action that is called from the toolbox when
a dom-interactive DOCUMENT_EVENT is received.
This action will only update a new state property, `lastTargetRefresh`, with the
current timestamp, so the `EvaluationContextSelector` component will re-render;
as the target information are directly retrieved from the target fronts, any
changes in the title/url will be shown in the component.

Differential Revision: https://phabricator.services.mozilla.com/D115205
2021-05-18 14:16:34 +00:00
Nicolas Chevobbe 312d5c2fa0 Bug 1704458 - [devtools] Update targetFront url and title on DOCUMENT_EVENT resource. r=ochameau,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D114601
2021-05-18 14:16:34 +00:00
Nicolas Chevobbe 454e8bada6 Bug 1704458 - [devtools] Pass isFrameSwitching in DOCUMENT_EVENT resources. r=jdescottes.
This will be consumed by the toolbox to not update detached window title when
the user triggered a frame switching (i.e. selected a document in the frame switcher
menu in the toolbar).

Differential Revision: https://phabricator.services.mozilla.com/D115204
2021-05-18 14:16:33 +00:00
Nicolas Chevobbe 89bd64664f Bug 1691577 - [devtools] Re-enable browser_toolbox_window_title_frame_select.js on fission. r=jdescottes.
This is fixed by the previous patches in this queue.

Differential Revision: https://phabricator.services.mozilla.com/D115337
2021-05-18 14:16:33 +00:00
Nicolas Chevobbe 191b35e4b0 Bug 1691576 - [devtools] Update DevTools window title on DOCUMENT_EVENT resource. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D104540
2021-05-18 14:16:33 +00:00
Christoph Kerschbaumer 5bac35577a Bug 1711646: Update PBM tests within devtools/client to work with https-first-mode enabled r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115355
2021-05-18 13:22:07 +00:00
Alexandre Poirot 654541cb9d Bug 1644360 - Add console message navigation test for resource watcher api. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78862
2021-05-18 12:14:55 +00:00
Nika Layzell c2a86c631c Bug 1711078 - Part 1: Stop using the component manager to create non-system principals, r=ckerschb
This is necessary to remove the Init methods from principals, allowing
immutable fields to be marked as const and clearly separated from mutable
fields to improve threadsafety.

Differential Revision: https://phabricator.services.mozilla.com/D115091
2021-05-17 20:50:08 +00:00
Alex Lopez 455d9a088b Bug 1696251 - Pass MachCommandBase object as first argument for Mach Commands. r=mhentges,remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers
As an intermediate step to allow mach commands as standalone functions, the MachCommandBase
subclass instance that currently corresponds to self has to be made available as a separate
argument (named command_context).

Differential Revision: https://phabricator.services.mozilla.com/D109650
2021-05-17 16:15:58 +00:00
Hubert Boma Manilla 2077c29048 Bug 1707556 - [devtools] Add a thread configuration command r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D113751
2021-05-17 11:55:39 +00:00
Hubert Boma Manilla 50a85d3429 Bug 1711096 - [devtools] Add support for multiple target types to getAllFronts r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D115071
2021-05-17 11:55:38 +00:00
Daisuke Akatsuka 46b2f4a2cf Bug 1711397: Update MDN compat data. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D115163
2021-05-17 09:30:50 +00:00
Nicolas Chevobbe 38e52dd665 Bug 1711001 - [devtools] Fix intermittent failures in browser_console_error_source_click.js. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D115183
2021-05-17 08:36:30 +00:00
Alexandre Poirot 96faa4e6f4 Bug 1692841 - [devtools] Clear source map url service on target switch. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114857
2021-05-13 08:34:19 +00:00
Alexandre Poirot fec2f80a17 Bug 1678254 - [devtools] Check descriptor type instead of current target. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114856
2021-05-13 08:34:18 +00:00
Alexandre Poirot 173eb0e828 Bug 1678254 - [devtools] Pass `commands` instead of `toolbox` to SourceMapUrlService. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114855
2021-05-13 08:34:18 +00:00
Alexandre Poirot 5bbcf2e5c0 Bug 1678254 - [devtools] Stop unwatching/rewatching for resources on each page load from the source map service. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D99129
2021-05-13 08:34:17 +00:00
Edgar Chen 72168631b0 Bug 1710845 - Get rid of NS_ERROR_DOM_INVALID_EXPRESSION_ERR; r=smaug;
Differential Revision: https://phabricator.services.mozilla.com/D114967
2021-05-12 23:32:38 +00:00
Edgar Chen acf4edd8ea Bug 1710840 - Part 2: Get rid of NS_ERROR_DOM_SVG_WRONG_TYPE_ERR; r=smaug
Depends on D114964

Differential Revision: https://phabricator.services.mozilla.com/D114965
2021-05-12 23:32:38 +00:00
Edgar Chen c681831600 Bug 1710840 - Part 1: Get rid of NS_ERROR_DOM_SVG_MATRIX_NOT_INVERTABLE; r=smaug;
Differential Revision: https://phabricator.services.mozilla.com/D114964
2021-05-12 23:32:37 +00:00
Emilio Cobos Álvarez 9e80cd9710 Bug 1708384 - Properly hide -moz-context-properties from content. r=dholbert
Depends on D114481

Differential Revision: https://phabricator.services.mozilla.com/D114482
2021-05-12 21:45:18 +00:00
Emilio Cobos Álvarez 41179cf5d6 Bug 1708384 - Properly hide -moz-control-character-visibility from content. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D114481
2021-05-12 21:45:18 +00:00
Emilio Cobos Álvarez d22f2254b1 Bug 1710643 - update property database to account for removed color.
MANUAL PUSH: Orange fix CLOSED TREE
2021-05-13 01:44:14 +02:00
Nicolas Chevobbe aaf5672e4e Bug 1709567 - [devtools] Add test for variable tooltip on private property access. r=bomsy.
The issue we had was fixed in Bug 1709542, so this patch
only adds a test for the tooltip, to ensure we don't regress.

Differential Revision: https://phabricator.services.mozilla.com/D114821
2021-05-12 16:07:45 +00:00
Nicolas Chevobbe 55acd9a9aa Bug 1710674 - [devtools] Fix target-mixin resource cache mechanism. r=ochameau,bomsy.
The event listeners that were set in the constructor were not
actually removed in the `on` method, as we weren't using the
proper function reference.
Furthermore, the event listeners were removed only if some
resources were put in the cache, which could lead to some
buggy behavior when watching/unwatching multiple times.

Differential Revision: https://phabricator.services.mozilla.com/D114927
2021-05-12 16:06:24 +00:00
Nicolas Chevobbe 271589c641 Bug 1710647 - [devtools] Remove targetFront event listeners in resourceCommand#_unwatchAllTargets. r=ochameau,bomsy.
Event listeners were set on target available, but they were never removed, which
could cause issue if a consumer was watching/unwatching for resources multiple
times.
A test (that was failing without this patch), is added to ensure we don't regress this.
Note that the test is still incorrect and will be properly fixed in Bug 1710674.

Differential Revision: https://phabricator.services.mozilla.com/D114926
2021-05-12 16:06:24 +00:00
Alexandre Poirot 47ab6f9ade Bug 1686748 - [devtools] Fix WalkerActor exception on server side target switching. r=nchevobbe
When using JSWindowActor based target, each target actor is destroyed on each reload/navigation.
This code in walker actor is registering a DOMContentLoaded listener which
only fires after the target is already destroyed. This leads to exceptions.

Differential Revision: https://phabricator.services.mozilla.com/D114367
2021-05-12 15:08:04 +00:00
Alexandre Poirot ae9fd2e09e Bug 1686748 - [devtools] Use navigateTo in debugger tests. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D114831
2021-05-12 15:08:03 +00:00
Julian Descottes 6656351129 Bug 1686748 - [devtools] Create first top level target from the watcher. r=nchevobbe
When enabling devtools.target-switching.server.enabled, all frame targets will be
instantiated from the server side, including the very first top level target.
With this pref turned off, top level targets would always be created on-demand
by the frontend. But that delays the target creation and makes the frontend miss early events/resources.

With this pref turned on, top level frame targets are now all using JSWindow actor.
It also means that their lifecycle is following the WindowGlobal one.
Instead of having one target per DocShell, which will be reused on reloads
and same-process navigations, we will have one target per top level WindowGlobal.
So that even reloads and same-process navigations will spawn a new target.

Differential Revision: https://phabricator.services.mozilla.com/D106551
2021-05-12 15:08:03 +00:00
Alexandre Poirot 3df72d498d Bug 1686748 - [devtools] Unify all the BrowsingContext checks around top level / process roots. r=nchevobbe
Use a unique way to know if we have a top level BC / a BC without a parent: `!browsingContext.parent`.
This is typically where we want to know if the BC is the top level tab document.

Also start using `isProcessRoot` in order to know if a BC is either a top level BC,
or, if its embedder is in another process. a.k.a. "top BC in a given process".

Remote iframes in a tab will have a `parent` attribute refering to the top level tab document,
while their `isProcessRoot` will be true.
We will typically use this flag to know if we should spawn a target for the given BC.

Differential Revision: https://phabricator.services.mozilla.com/D114830
2021-05-12 15:08:03 +00:00
Nicolas Chevobbe c7e36d6e02 Bug 1710417 - [devtools] Update pretty-fast to 0.2.6. r=ladybenko.
This fixes an issue we had with pretty printing scripts
containing private fields.
A test case is added in browser_dbg-pretty-print.js to
ensure it stays this way.

Differential Revision: https://phabricator.services.mozilla.com/D114816
2021-05-12 09:40:15 +00:00
Edgar Chen f10ffb593c Bug 1709217 - Part 6: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_QUERY_COMMAND_VALUE; r=smaug
Depends on D114185

Differential Revision: https://phabricator.services.mozilla.com/D114186
2021-05-11 19:38:46 +00:00
Edgar Chen 22ee127c8b Bug 1709217 - Part 5: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_QUERY_COMMAND_SUPPORTED; r=smaug
Depends on D114184

Differential Revision: https://phabricator.services.mozilla.com/D114185
2021-05-11 19:38:46 +00:00
Edgar Chen 0362d20990 Bug 1709217 - Part 4: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_QUERY_COMMAND_STATE; r=smaug
Depends on D114183

Differential Revision: https://phabricator.services.mozilla.com/D114184
2021-05-11 19:38:45 +00:00
Edgar Chen d1ca0306a2 Bug 1709217 - Part 3: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_QUERY_COMMAND_INDETERM; r=smaug
Depends on D114182

Differential Revision: https://phabricator.services.mozilla.com/D114183
2021-05-11 19:38:45 +00:00
Edgar Chen b6a7d80197 Bug 1709217 - Part 2: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_QUERY_COMMAND_ENABLED; r=smaug
Depends on D114181

Differential Revision: https://phabricator.services.mozilla.com/D114182
2021-05-11 19:38:44 +00:00
Edgar Chen 567d46362c Bug 1709217 - Part 1: Get rid of NS_ERROR_DOM_INVALID_STATE_DOCUMENT_EXEC_COMMAND; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D114181
2021-05-11 19:38:44 +00:00
Gagah Pangeran Rosfatiputra ca6fd671cc Bug 1701562 - Change message close button fill and hover background color. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114678
2021-05-11 12:09:51 +00:00
Alexandre Poirot c7c9143e76 Bug 1709794 - [devtools] Fix SpecialPowsers.spawn throwing when navigating while being paused by the debugger. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D114465
2021-05-11 11:40:50 +00:00
Alexandre Poirot b0a37917ee Bug 1709947 - [devtools] Avoid going through webconsole front to do request for network event actors. r=bomsy
All these get* methods were hosted on WebConsole fronts,
but weren't related to WebConsole actor.
Instead they all target the NetworkEvent actors.
These actors runs in the parent process, where we listen for network requests.

Going through console fronts were an issue during target switching
as there is a small window in between the previous and new target where
there is no webconsole front being alive. The previous's page one is destroyed
and the new page's one is not yet available.
All that while the network event actors are always available.

We could only remove these get* methods once we refactor all tests still using them.
Also it would be great to followup and stop having one actor per request,
and instead fetch these attributes via the network-parent actor.
By doing this, we could finaly drop the last usage of DevToolsClient.request and make _requestData much simplier.

Differential Revision: https://phabricator.services.mozilla.com/D114538
2021-05-11 10:22:45 +00:00
Csoregi Natalia 7b0167f87f Backed out changeset 667b00fed9ed (bug 1694274) for causing failures on browser_storage_indexeddb_navigation.js. CLOSED TREE 2021-05-10 22:13:23 +03:00
Edgar Chen f8605ff45d Bug 1709214 - Get rid of NS_ERROR_DOM_ANIM_MISSING_PROPS_ERR; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D114179
2021-05-10 12:20:17 +00:00
Mark Banner 39a3db78d4 Bug 1707711 - Stop using ChromeUtils.import(..., null) in testing/. r=kmag
Also clean up some unused exclusions in .eslintrc.js.

Differential Revision: https://phabricator.services.mozilla.com/D114623
2021-05-10 08:56:05 +00:00
Nicolas Chevobbe c0d975f250 Bug 1709619 - [devtools] Handle private fields when retrieving script Symbols. r=bomsy.
Symbols are information on the structure of a given script (assignments, functions,
expressions, …)

This patch handles scripts using private fields and fixes a few things in the debugger:
- we get the full expression when hovering a private property access,
  a prerequisite to get the value of a private propery in the variable tooltip
  (which will be handled in Bug 1709567).
- private methods now show up in the outline view under their proper name, and
  not `anonymous`. `simplifyDisplayName` was fixed as well to not strip the `#`
  at the start of the method name.

Tests are added to ensure this works as expected.

A side-effect from modifying examples/simple1.js is that browser_dbg-outline-pretty.js
was broken since pretty-fast wasn't able to parse file with private fields syntax.
pretty-fast is updated to its latest version and the pretty-print worker is updated
so the test does not break anymore.

Depends on D114345

Differential Revision: https://phabricator.services.mozilla.com/D114459
2021-05-10 08:55:13 +00:00
Andreea Pavel 7fdf7b3082 Bug 1694274 - re-enable browser_storage_indexeddb_navigation.js r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D114335
2021-05-10 08:39:58 +00:00
Julian Descottes 2484af3514 Bug 1709341 - [devtools] Remove leftover dump in BrowsingContextTargetFront r=ochameau
Depends on D114224

Differential Revision: https://phabricator.services.mozilla.com/D114222
2021-05-10 08:03:11 +00:00
Julian Descottes 2af8a8ac88 Bug 1709310 - [devTools] Remove backward compatibility code for reconfigureSupportsSimulationFeatures r=ochameau
Depends on D114223

Differential Revision: https://phabricator.services.mozilla.com/D114224
2021-05-10 08:03:10 +00:00
Julian Descottes 4f8652d41f Bug 1709268 - [devtools] Remove backward-compatibility annotation for supportsTopLevelTargetFlag r=ochameau
Depends on D114221

Differential Revision: https://phabricator.services.mozilla.com/D114223
2021-05-10 08:03:10 +00:00
Julian Descottes b38b29e73f Bug 1709268 - [devtools] Remove backward compatibility code for supportsFollowWindowGlobalLifeCycleFlag r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D114221
2021-05-10 08:03:10 +00:00
Alexandre Poirot 478d7a35f3 Bug 1709826 - [devtools] Wait for panel to have processed this first page navigation in browser_memory_fission_switch_target.js. r=nchevobbe
The very first navigation wasn't using navigateTo and that caused some exception
because we were trying to use previous target's memory front which was already destroyed.

I also removed this now uncessary fork of navigateTo.

Differential Revision: https://phabricator.services.mozilla.com/D114478
2021-05-10 07:52:28 +00:00
Hubert Boma Manilla 9bc414298d Bug 1704981 - [devtools] initialize the data provider on target available r=nchevobbe,ochameau
After some investigations,I'l try to explain what i see. What seems to be happening is that the data provider is
intialized when the webconsole-ui is initialized  so that is when the instance of the console
front is created. When a target switch happens, that instance of the console front gets destroyed
so when the data provider needs to request the network details it fails and this._client
is null.

This patch moves the creation of the data provider to onTargetAvailable (as we do with that in the network panel).
This fixes the issue, and TRY seems to be good with it, I wonder if this is best solution or this can be improved.
What are your thoughts?
I can add a test if we think this is the way to go.

Differential Revision: https://phabricator.services.mozilla.com/D113167
2021-05-07 14:41:50 +00:00
Julian Descottes 66e9377cbd Bug 1656126 - [devtools] Remove expired event devtools.main.close_source_tab#close_source_tab r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D114234
2021-05-07 12:39:02 +00:00
Alexandre Poirot 357e46ff01 Bug 1708635 - [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113936
2021-05-07 12:07:42 +00:00
Alexandre Poirot 9457e7adba Bug 1708635 - [devtools] Implement TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113935
2021-05-07 12:07:42 +00:00
Alexandre Poirot c24c4c1f26 Bug 1709672 - [devtools] Simplify how we track currently watched resources. r=nchevobbe
Now that _startListening is synchronous, we can fix the race conditions
that exists between many calls made to watch and unwatch resources.
And we would benefit from simplifying the various ways to track
what resources is being watched.
We no either use _watchers and _pendindWatchers to have the live number
of registered listeners. And in parellel to that, only record
which resources is being watched on the server via _listenedResources.

Differential Revision: https://phabricator.services.mozilla.com/D114415
2021-05-07 10:32:04 +00:00
Alexandre Poirot 5270fa2705 Bug 1709672 - [devtools] Move the call to watchAllTargets. r=nchevobbe
This is the ultimate change in order to ensure calling _startListening
synchronously from watchResources.

Fixes are required to styles tests, as watchAllTarget is only called if we pass a valid resource type.

Differential Revision: https://phabricator.services.mozilla.com/D114414
2021-05-07 10:32:03 +00:00
Alexandre Poirot d02d4519bf Bug 1709672 - [devtools] Memoize StorageActor.listStores result. r=nchevobbe
Calling it twice in a row makes it never resolve.
The actor implementation could probably be made more resilient,
but memoizing it on the front would probably help reduce the number of request we are doing.

This issues appears with the first changeset, parellizing the call to ResourceCommand._startListening.

Differential Revision: https://phabricator.services.mozilla.com/D114413
2021-05-07 10:32:03 +00:00
Alexandre Poirot 1b56eb7e24 Bug 1709672 - [devtools] Do not await on synchronous _stopListening method. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D114412
2021-05-07 10:32:02 +00:00
Alexandre Poirot c4f3834c44 Bug 1709672 - [devtools] Start listening to all resources in parallel. r=nchevobbe
This isn't solely for performance reason.
This will help ensure calling _startListening synchronously when calling watchResources.
This is to help simplify the various states store to track which resources are being watched.
And ultimately fix races between watch and unwatch.

Differential Revision: https://phabricator.services.mozilla.com/D114411
2021-05-07 10:32:02 +00:00
Nicolas Chevobbe 192096b314 Bug 1709538 - [devtools] Fix JSTerm#_getExpressionVariables when expression has private fields. r=bomsy.
If an expression contained a class with private fields, getExpressionVariables
would return an array with undefined elements, which was making the JSPropertyProvider
fail on the server.
This is fixed by checking that we don't add falsy value into the array of variables.
The existing test for variable autocomplete is expanded to assert this case.

Differential Revision: https://phabricator.services.mozilla.com/D114460
2021-05-07 07:14:10 +00:00
Manuel Carretero f4e6dbe9c2 Bug 1531370 - Fixed label width and fieldset inline size. r=Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113720
2021-05-07 07:13:17 +00:00
Sebastian Zartner 5c794e7399 Bug 1702812 - Encoded Unicode request URLs within the Console. r=nchevobbe
The URLs of network requests containing Unicode characters are now displayed encoded within the Console. Previously, the domains were shown in punycode and the paths had a URL encoded representation.
This change makes their display consistent with the one within the Network Monitor.

Users can still see the punycode version of the domain at the top of the Headers view. And the encoded version of the URL parameters is displayed within the raw request headers view.

Differential Revision: https://phabricator.services.mozilla.com/D110711
2021-05-07 05:57:16 +00:00
Sandor Molnar 6ceb5f92a7 Backed out 10 changesets (bug 1696531) for causing mochitest failures in TypeError: cannot use a string pattern on a bytes-like object. CLOSED TREE
Backed out changeset abc85e3c21b0 (bug 1696531)
Backed out changeset 82445e26060e (bug 1696531)
Backed out changeset 97771570e425 (bug 1696531)
Backed out changeset c3f229148f6c (bug 1696531)
Backed out changeset 9557ff3065bc (bug 1696531)
Backed out changeset 98d17a5f6886 (bug 1696531)
Backed out changeset b0eee4af2caf (bug 1696531)
Backed out changeset 544be24f74be (bug 1696531)
Backed out changeset ddcc795bf838 (bug 1696531)
Backed out changeset e5e76f56ceb9 (bug 1696531)
2021-05-06 23:57:56 +03:00
Ben Hearsum 0593562c2b Bug 1696531: fix fake adb process to support python2 and 3 r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D109729
2021-05-06 19:51:33 +00:00
Nicolas Chevobbe 83467013ff Bug 1709544 - [devtools] Fix debugger preview tooltip on scripts with private fields. r=bomsy.
This patch adds 2 babel plugin so we can parse such scripts.

Differential Revision: https://phabricator.services.mozilla.com/D114345
2021-05-06 05:20:54 +00:00
Alexandre Poirot 8bcefffe1a Bug 1707877 - [devtools] Make getTestActorWithoutToolbox use CommandsFactory and commands. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113507
2021-05-05 15:56:46 +00:00
Nicolas Chevobbe 581f3fd2ca Bug 1706094 - [devtools] Set watchedByDevTools browsingContextflag in the parent process. r=ochameau.
We're using frame-helper#createTargets to set the flag as we're already looping
over the browsing context we need to handle.
We keep a Map of watcher/observer so we can remove the observer when the targets
get destroyed.

For the browser toolbox top-level browsing context we keep setting the flag in
the browsing context target actor as it lives in the parent process, and we
don't have watcher support enabled by default, so frame-helper wouldn't be hit.
frame-helper is not used in the legacy browser toolbox, so we won't set the flag
on tabs when devtools.browsertoolbox.fission is false, but that's okay it's not
currently set anyway in this setup.

Tests are added with multiple cases to ensure the flag is set in different situations.

Differential Revision: https://phabricator.services.mozilla.com/D113628
2021-05-05 08:04:24 +00:00
Sandor Molnar 8dffb4667b Backed out 2 changesets (bug 1708635) for causing dt failures in devtools/client/responsive/test/browser/browser_device_change. CLOSED TREE
Backed out changeset 6bce4e61777b (bug 1708635)
Backed out changeset f15acee46be2 (bug 1708635)
2021-05-04 18:11:27 +03:00
Julian Descottes 48d1cc4688 Bug 1709266 - [devtools] Stop listening for worker-close in worker descriptor front r=ochameau,devtools-backward-compat-reviewers
Depends on D114199

Differential Revision: https://phabricator.services.mozilla.com/D114200
2021-05-04 13:06:22 +00:00
Julian Descottes d5f8e58108 Bug 1709266 - [devtools] Remove unused isDevToolsExtensionContext check in tabDescriptor r=ochameau
Depends on D114198

The isDevToolsExtensionContext flag was removed in Bug 1699493, we should be able to remove this check

Differential Revision: https://phabricator.services.mozilla.com/D114199
2021-05-04 13:06:21 +00:00
Julian Descottes 38b670ab06 Bug 1709266 - [devtools] Remove backward compatibility code for emitDescriptorDestroyed r=ochameau
We no longer support connecting to FF87. emitDescriptorDestroyed was added to all tab descriptors in FF88 so all the code checking it can be removed.
Rephrased the comment around the about:debugging use case.

Differential Revision: https://phabricator.services.mozilla.com/D114198
2021-05-04 13:06:21 +00:00
Julian Descottes 378965fc73 Bug 1709269 - [devtools] Remove set-xhr-breakpoints watcher trait r=nchevobbe
Depends on D114219

Differential Revision: https://phabricator.services.mozilla.com/D114220
2021-05-04 13:02:32 +00:00
Julian Descottes 3e0969bd97 Bug 1709269 - [devtools] Remove thread-configuration watcher trait r=nchevobbe
Depends on D114218

Differential Revision: https://phabricator.services.mozilla.com/D114219
2021-05-04 13:02:32 +00:00
Julian Descottes 3d05d551a7 Bug 1709269 - [devtools] Remove target-configuration watcher trait r=nchevobbe
Depends on D114217

Differential Revision: https://phabricator.services.mozilla.com/D114218
2021-05-04 13:02:31 +00:00
Julian Descottes b33ac38c66 Bug 1709269 - [devtools] Remove set-breakpoints watcher trait r=nchevobbe
Depends on D114216

Differential Revision: https://phabricator.services.mozilla.com/D114217
2021-05-04 13:02:31 +00:00
Julian Descottes fdd58c0322 Bug 1709269 - [devtools] Make type optional in TargetCommand::hasTargetWatcherSupport r=nchevobbe
The rest of the patches in this stack will remove WatcherActor traits.
But the call sites should still check that the watcher is available.
Making the argument optional allows to reuse the same method as we remove the traits.

Differential Revision: https://phabricator.services.mozilla.com/D114216
2021-05-04 13:02:31 +00:00
Alexandre Poirot 2e0745f710 Bug 1708635 - Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113936
2021-05-04 12:43:21 +00:00
Alexandre Poirot ee2d38e3fc Bug 1708635 - Implement TargetCommand.reloadTopLevelTarget. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113935
2021-05-04 12:43:20 +00:00
Alexandre Poirot cf0c5203e9 Bug 1701790 - Move ResourceWatcher tests to their new folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113934
2021-05-04 09:29:48 +00:00
Alexandre Poirot ecf535689e Bug 1701790 - Migrate ResourceWatcher to become ResourceCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113930
2021-05-04 09:29:47 +00:00
Brindusan Cristian 185ab5e4f4 Backed out 5 changesets (bug 1701790) for bc failures in browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 3fc4edd663d9 (bug 1701790)
Backed out changeset 2d3ea7c0d695 (bug 1701790)
Backed out changeset 6cb7502fc1a2 (bug 1701790)
Backed out changeset 8f4205a1a369 (bug 1701790)
Backed out changeset bd3c9b1482c7 (bug 1701790)
2021-05-03 22:21:59 +03:00
Florian Quèze 9e19373543 Bug 1708562 - avoid stopping the profiler on customizationchange events when profiling mochitests, r=mstange,julienw.
Differential Revision: https://phabricator.services.mozilla.com/D113880
2021-05-03 18:44:12 +00:00
Alexandre Poirot 5bc40e3aad Bug 1701790 - Move ResourceWatcher tests to their new folder. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113934
2021-05-03 18:07:31 +00:00
Alexandre Poirot 4aee693953 Bug 1701790 - Mass replace resourceWatcher with resourceCommand. r=nchevobbe
$ sed -i 's/resourceWatcher/resourceCommand/g' $(egrep -rl 'resourceWatcher' devtools/)

Differential Revision: https://phabricator.services.mozilla.com/D113933
2021-05-03 18:07:31 +00:00
Alexandre Poirot eecbcc37c6 Bug 1701790 - Mass replace ResourceWatcher by ResourceCommand r=nchevobbe
$ sed -i 's/ResourceWatcher/ResourceCommand/g' $(egrep -rl 'ResourceWatcher' devtools/)

Differential Revision: https://phabricator.services.mozilla.com/D113932
2021-05-03 18:07:31 +00:00
Alexandre Poirot a5dbcad9f2 Bug 1701790 - Stop using ResourceWatcher symbol for fetch resource types. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113931
2021-05-03 18:07:30 +00:00
Alexandre Poirot 7cd058657a Bug 1701790 - Migrate ResourceWatcher to become ResourceCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113930
2021-05-03 18:07:30 +00:00
John Bieling 0a21415853 Bug 1708793 - Use brandShortName in Devtools when inspecting an add-on. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D114010
2021-05-03 14:35:54 +00:00
Nicolas Chevobbe 0f8b07b880 Bug 1708626 - [devtools] Remove usage of Promise.jsm in tests. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D113912
2021-05-03 11:35:18 +00:00
Nicolas Chevobbe 31d1a9f133 Bug 1665020 - [devtools] Enable browser_toolbox_backward_forward_navigation.js on fission. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D113483
2021-05-03 08:10:36 +00:00
Alexandre Poirot 2f7f4dc841 Bug 1568880 - [devtools] Use Inspector command to implement cross target node search r=nchevobbe,jdescottes
Depends on D103204

Differential Revision: https://phabricator.services.mozilla.com/D103205
2021-05-01 00:29:42 +00:00
Matthew Gaudet b58d822874 Bug 1708235 - Remove broken console-instant-eval test r=evilpie
This test was added in Bug 1651420, and then broken silently, due to an error
in the activation of the test by Bug 1653567. This edge case behaviour
shouldn't block us from landing private fields and methods

Tracking fixing this I have opened Bug 1708812.

Differential Revision: https://phabricator.services.mozilla.com/D114016
2021-04-30 20:42:09 +00:00
Butkovits Atila 0ca5861ca2 Bug 1701056 - disable browser_target_list_various_descriptors.js on Linux_64_opt for frequent failures. r=intermittent-reviewers,ahal DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113952
2021-04-30 15:59:35 +00:00
Nicolas Chevobbe e53f3f65a8 Bug 1706284 - [devtools] Handle cases when descriptor's getTarget returns null. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D113959
2021-04-30 15:27:55 +00:00
Nicolas Chevobbe 2c1ee5e54c Bug 1708625 - [devtools] Remove Promise.jsm usage in breadcrumb.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D113911
2021-04-30 11:36:02 +00:00
Belén Albeza b716aed36b Bug 1694274 - [devtools] Request longer timeout for indexedDB navigation test r=nchevobbe
Fix intermittent indexedDB test (removing databases can take a while)

Differential Revision: https://phabricator.services.mozilla.com/D113755
2021-04-30 08:49:40 +00:00
Daisuke Akatsuka 25be52e55f Bug 1708586: Update MDN compat data.r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D113893
2021-04-30 07:37:10 +00:00
Valentin Gosu 5afdc02366 Bug 1694662 - Remove Appcachestorage & oldwrappers r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D106455
2021-04-30 07:20:24 +00:00
Valentin Gosu e744992067 Bug 1694662 - Remove appcache arg from nsICacheEntryOpenCallback r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D106438
2021-04-30 07:20:17 +00:00
Nicolas Chevobbe bf1e1965c3 Bug 1708457 - [devtools] Don't return a Promise in Inspector#_destroyMarkup. r=jdescottes.
MarkupView#destroy is synchronous, so there's no need for _destroyMarkup to return
a Promise.
The different callsites don't do anything with the returned value so there's nothing
more to cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D113803
2021-04-30 05:04:29 +00:00
Julian Descottes ebf4bbbc8d Bug 1708252 - [devtools] Remove test-actor eval r=nchevobbe
Depends on D113714

Differential Revision: https://phabricator.services.mozilla.com/D113715
2021-04-29 07:31:11 +00:00
Julian Descottes 402cf47aab Bug 1708252 - [devtools] Stop using test-actor eval r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D113714
2021-04-29 07:31:11 +00:00
Nicolas Chevobbe 71515d047c Bug 1707946 - [devtools] Replace Promise.jsm with regular Promises in devtools/client/inspector/markup/markup.js. r=ochameau.
This was making 2 tests failing:
- browser_toolbox_selectionchanged_event.js had a pending promise that would make
  the test fail (whereas pending Promise.jsm don't). It was setting an `undefined`
  selected node with a reason, which is something we don't do in the codebase (we set
  it to null, with no reason). So here we change it by setting the selection to a
  null node, which is consistent with real world scenario.
- browser_markup_shadowdom_clickreveal.js was failing because the container of
  a node was slotted while it shouldn't be. It looks like the switch to DOM Promises
  changed the timing slightly, so we're now waiting in the test to make sure we
  have another container than the slotted one we were handling before.

Differential Revision: https://phabricator.services.mozilla.com/D113539
2021-04-29 05:59:04 +00:00
Nicolas Chevobbe e4c5ffe0ce Bug 1707823 - [devtools] Guard access to browsingContextID on result of getTarget. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D113482
2021-04-29 05:10:14 +00:00
Nicolas Chevobbe a12a47da9f Bug 1707823 - [devtools] Set will-navigate event listener before initializing inspector front. r=ochameau.
As the inspector front initialization is asynchronous and can take some time,
we might miss will-navigate events being emitted very early (e.g. when a new
navigation happen just after a previous one).

Differential Revision: https://phabricator.services.mozilla.com/D113481
2021-04-29 05:10:13 +00:00
Nicolas Chevobbe 1743e61c78 Bug 1707823 - [devtools] Replace usage of navigateTo in browser_toolbox_backward_forward_navigation.js. r=ochameau.
the test document has a script that adds dom nodes, js sources and stylesheet
to the document every 200ms. It might that the navigateTo call we were using to navigate
to the document would never resolve, as the load event won't fire because of the constant
addition of stylesheets and scripts.
This is fixed by not using navigateTo, as we don't really need the document to be ready,
but only register the navigation so later in the test we can do backward and forward navigations.

Differential Revision: https://phabricator.services.mozilla.com/D113480
2021-04-29 05:10:13 +00:00
Nicolas Chevobbe 55e0af181b Bug 1707823 - [devtools] Make navigateTo more secure. r=ochameau.
In the `BrowserTestUtils.browserLoaded` call we use in `navigateTo`, we weren't
checking for a specific uri to be loaded, which means the Promise could resolve
on *any* page being loaded.
This patch makes it more secure by waiting the load event for the uri we navigated to.

Differential Revision: https://phabricator.services.mozilla.com/D113479
2021-04-29 05:10:13 +00:00
Falguni Islam 728a6f9073 Bug 1705751: fix Remove Buildsettings Code from Screenshots r=emalysz
Differential Revision: https://phabricator.services.mozilla.com/D112415
2021-04-28 21:44:00 +00:00
Csoregi Natalia a76b78d543 Backed out changeset e01ec8694924 (bug 1700957) as requested. CLOSED TREE 2021-04-28 18:09:01 +03:00
imoraru 29587fe8d1 Backed out changeset d3056dc50fe3 (bug 1707614) for causing devtools failures at browser_rules_colorpicker-release-outside-frame.js . CLOSED TREE 2021-04-28 16:08:31 +03:00
Emilio Cobos Álvarez 175fe1b124 Bug 1707614 - Don't use -moz-devtools-highlighted for background contrast checks in the accessibility inspector. r=nchevobbe
It's the wrong pseudo-class name! Plus, it's not really needed, just
override the page styles temporarily.

Remove the pseudo-class, since it's its only remaining usage.

Differential Revision: https://phabricator.services.mozilla.com/D113374
2021-04-28 10:01:23 +00:00
imoraru e436fff3f6 Backed out 4 changesets (bug 1707823) for causing devtools failures at browser_inspector_delete_node_in_frame.js . CLOSED TREE
Backed out changeset b3731ddc1246 (bug 1707823)
Backed out changeset 80bf555ff6dd (bug 1707823)
Backed out changeset 453d1131106b (bug 1707823)
Backed out changeset 015d6eaef2cf (bug 1707823)
2021-04-28 12:05:38 +03:00
Nicolas Chevobbe f10ee67c92 Bug 1705697 - [devtools] Warning group messages shouldn't be repeatable. r=bomsy.
It could happen that 2 warning group messages could be added successively, before
the navigation message was emitted.
In the reducer, the second message would be seen the same as the first one, and
we'd try to increment the repeat count for the first one.
Unfortunately, the code was expecting a warning group to be created, and there
was an exception thrown as we couldn't retrieve it.
This is fixed by not allowing warning groups to be repeated.
A mocha test is added instead of a mochitest, as the issue would have been tricky
to trigger properly.

Differential Revision: https://phabricator.services.mozilla.com/D113276
2021-04-28 08:10:13 +00:00
Nicolas Chevobbe 4a69165f75 Bug 1707823 - [devtools] Guard access to browsingContextID on result of getTarget. r=ochameau.
Depends on D113481

Differential Revision: https://phabricator.services.mozilla.com/D113482
2021-04-28 07:52:22 +00:00
Nicolas Chevobbe e05016a5a5 Bug 1707823 - [devtools] Set will-navigate event listener before initializing inspector front. r=ochameau.
As the inspector front initialization is asynchronous and can take some time,
we might miss will-navigate events being emitted very early (e.g. when a new
navigation happen just after a previous one).

Depends on D113480

Differential Revision: https://phabricator.services.mozilla.com/D113481
2021-04-28 07:52:22 +00:00
Nicolas Chevobbe 763039ce66 Bug 1707823 - [devtools] Replace usage of navigateTo in browser_toolbox_backward_forward_navigation.js. r=ochameau.
the test document has a script that adds dom nodes, js sources and stylesheet
to the document every 200ms. It might that the navigateTo call we were using to navigate
to the document would never resolve, as the load event won't fire because of the constant
addition of stylesheets and scripts.
This is fixed by not using navigateTo, as we don't really need the document to be ready,
but only register the navigation so later in the test we can do backward and forward navigations.

Depends on D113479

Differential Revision: https://phabricator.services.mozilla.com/D113480
2021-04-28 07:52:21 +00:00
Nicolas Chevobbe 13980e9a4f Bug 1707823 - [devtools] Make navigateTo more secure. r=ochameau.
In the `BrowserTestUtils.browserLoaded` call we use in `navigateTo`, we weren't
checking for a specific uri to be loaded, which means the Promise could resolve
on *any* page being loaded.
This patch makes it more secure by waiting the load event for the uri we navigated to.

Differential Revision: https://phabricator.services.mozilla.com/D113479
2021-04-28 07:52:21 +00:00
Vaidehi 58837e6f66 Bug 1703154 - Reduce the height of rectangular white background of mobile-device-image. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D113424
2021-04-28 05:53:29 +00:00
Emma Malysz ce84c86379 Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 03:17:56 +00:00
Butkovits Atila 9597a30fbb Backed out changeset 1c362512f27b (bug 1700957) for causing failures at test_chrome_only_media_queries.html. CLOSED TREE 2021-04-28 05:55:14 +03:00
Emma Malysz a344c0fa4c Bug 1700957, graduate browser.proton.doorhangers.enabled pref to main proton pref r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D110135
2021-04-28 00:29:45 +00:00
Belén Albeza 60c8a028ed Bug 1700904 - [devtools] remove guards for new cookies and indexeddb resources r=ochameau
This removes the testing enableServerWatcherSupport flag for indexedDB and cookies resources. As a consequence of this, some tests that were previously marked as failing on fission now pass, so they have been re-enabled as well.

Differential Revision: https://phabricator.services.mozilla.com/D113143
2021-04-27 14:38:01 +00:00
Emilio Cobos Álvarez a7f69d6257 Bug 1707614 - Remove one unused usage of :-moz-devtools-highlighted. r=nchevobbe
This internal pseudo-class used to be to highlight nodes in the
inspector, but the inspector no longer sets it. Now the only thing that
sets it is devtools/server/actors/accessibility/audit/contrast.js to
remove the text color / shadow from the test.

We should probably find another way to implement that that doesn't
misuse this pseudo-class (and then presumably remove this pseudo-class),
but for now this code is dead.

Differential Revision: https://phabricator.services.mozilla.com/D113371
2021-04-27 12:18:36 +00:00
Emilio Cobos Álvarez 34a9a0f457 Bug 1705605 - Implement accent-color in nsNativeBasicTheme. r=mstange
This is a new addition for CSS UI Level 4:

  https://drafts.csswg.org/css-ui-4/#widget-accent

I want to provide feedback on some spec issues, and thought it was a
kinda neat thing to prototype (it also makes testing contrast and such
with random GTK themes easier).

For now enable for Nightly only.

Differential Revision: https://phabricator.services.mozilla.com/D112312
2021-04-27 10:41:00 +00:00
Butkovits Atila 554a06e07d Bug 1699008 - disable browser_toolbox_backward_forward_navigation.js on Linux_64 for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D113261
2021-04-27 03:39:23 +00:00
Markus Stange 5187a2ca76 Bug 1707631 - Use activateIitem in browser_styleeditor_copyurl.js, so that the menu is closed at the end of the test. r=mac-reviewers,bradwerth
Differential Revision: https://phabricator.services.mozilla.com/D113377
2021-04-26 17:29:46 +00:00
Emilio Cobos Álvarez 5c9bd32723 Bug 1707597 - Garbage-collect event state bits. r=smaug
We had about 9 gaps / unused bits. I moved the devtools ones at the end
because I think we should be able to remove them (but separate bug).

Differential Revision: https://phabricator.services.mozilla.com/D113365
2021-04-26 15:46:52 +00:00
Nicolas Chevobbe 7f353c071d Bug 1706098 - [devtools] Make inspectedWindow.reload with userAgent implementation match Chrome's one and add support for Fission. r=ochameau,rpl,devtools-backward-compat-reviewers.
Our implementation was setting a custom user agent on the document
before reloading it, and then resetting it as soon as the document
was loaded.
In Chrome, once the webextension sets the user agent, it persists
across reload and navigations, and is reset only when the toolbox
is closed.
This patch is adding similar behaviour to our implementation.

We also set the currentUserAgent flag on the browsing context from
the parent process instead of content. This is re-using the
targetConfigurationCommand, which also handle for us resetting the
user agent when the toolbox closes.

The existing test is expanded so it includes a remote iframe to ensure
the feature is supported on Fission. It also check the value of the user
agent through navigator.userAgent, and not only through the request header.

Differential Revision: https://phabricator.services.mozilla.com/D112980
2021-04-26 12:22:45 +00:00
Julian Descottes 4ee49bb5b5 Bug 1707509 - [devtools] Allow to parametrize waitFor helper easily for a single test r=nchevobbe
Depends on D113156

Differential Revision: https://phabricator.services.mozilla.com/D113284
2021-04-26 09:30:03 +00:00
Alexandru Michis c490c3e112 Backed out changeset 20d89921f646 (bug 1706098) for causing bc failures in browser_ext_devtools_inspectedWindow_reload.js
CLOSED TREE
2021-04-26 12:39:07 +03:00
Nicolas Chevobbe f91fe8a159 Bug 1706098 - [devtools] Make inspectedWindow.reload with userAgent implementation match Chrome's one and add support for Fission. r=ochameau,rpl,devtools-backward-compat-reviewers.
Our implementation was setting a custom user agent on the document
before reloading it, and then resetting it as soon as the document
was loaded.
In Chrome, once the webextension sets the user agent, it persists
across reload and navigations, and is reset only when the toolbox
is closed.
This patch is adding similar behaviour to our implementation.

We also set the currentUserAgent flag on the browsing context from
the parent process instead of content. This is re-using the
targetConfigurationCommand, which also handle for us resetting the
user agent when the toolbox closes.

The existing test is expanded so it includes a remote iframe to ensure
the feature is supported on Fission. It also check the value of the user
agent through navigator.userAgent, and not only through the request header.

Differential Revision: https://phabricator.services.mozilla.com/D112980
2021-04-26 08:19:40 +00:00
Julian Descottes d5b6dd5b70 Bug 1689101 - [devtools] Increase waitFor interval in browser_webconsole_network_messages_expand_before_updates r=nchevobbe
Was not able to get any confirmation about the impact of this change with try pushes.
However all the failures seem related to random waitFor calls in this test, without any regular pattern.
I suspect that our waitFor delay might be too short in some cases, increasing the interval will allow to verify this assumption.

Differential Revision: https://phabricator.services.mozilla.com/D113156
2021-04-26 07:30:53 +00:00
Butkovits Atila 2e34e363b9 Backed out 2 changesets (bug 1696251) for causing js-bench-sm failures. CLOSED TREE
Backed out changeset 1c84c9a34575 (bug 1696251)
Backed out changeset e169193b7423 (bug 1696251)
2021-04-23 02:53:36 +03:00