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

2067 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Zartner dccbf7e896 Bug 1713301 - Fixed display of raw request or reponse data when clicking on search results. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D116955
2021-07-07 21:14:21 +00:00
Claudia 175e38fb6d Bug 1715988 - [devtools] Match incomplete search terms in status-code:search. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D118177
2021-07-07 14:52:58 +00:00
Nicolas Chevobbe b3c27c1417 Bug 1715905 - [devtools] Replace usage of targetFront#navigate with DOCUMENT_EVENT dom-complete resource in tests. r=ochameau.
Differential Revision: https://phabricator.services.mozilla.com/D118570
2021-06-23 15:33:55 +00:00
Alexandre Poirot 37538d847e Bug 1717052 - [devtools] Instantiate FirefoxDataProvider only once. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D118196
2021-06-23 13:01:09 +00:00
Noemi Erli ddd1a51bb5 Backed out changeset d989c38eb4d9 (bug 1713301) for causing failures in browser_net_search-results.js CLOSED TREE 2021-06-22 13:51:57 +03:00
Sebastian Zartner 74836faa0d Bug 1713301 - Fixed display of raw request or reponse data when clicking on search results. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D116955
2021-06-22 09:29:42 +00:00
Hubert Boma Manilla bd258ee9db Bug 1716924 - [devtools] Make sure the intersectionObserver is available before disconnecting r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D118332
2021-06-21 16:13:23 +00:00
Alexandre Poirot 134b842c2e Bug 1715904 - [devtools] Move waitForNextResource from test helper to ResourceCommand. r=nchevobbe
This can actually be helpful also in production.
See netmonitor's connector and TargetCommand.reload.

Differential Revision: https://phabricator.services.mozilla.com/D118154
2021-06-21 13:35:45 +00:00
Claudia ee71eef783 Bug 1710909 - [devtools] Do not crash when the Host Header is not there. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D117163
2021-06-09 10:51:13 +00:00
Alexandre Poirot cf6ec020f1 Bug 1691611 - [devtools] Ignore will-navigate events for remote iframe targets. r=jdescottes
While we don't emit DOCUMENT_EVENT's for in-process iframes, each new target
will generate DOCUMENT_EVENT for the target's top level document.
So that the frontend do receive DOCUMENT_EVENT's for the remote iframes, in addition to the top level target document.

In most cases, we listen to will-navigate only to watch the top most top level document
and only this one, so we should only consider the top level target's DOCUMENT_EVENT.

As a side effect, we can re-enable browser_inspector_fission_frame_navigation.js which was failing because of this.

Differential Revision: https://phabricator.services.mozilla.com/D117184
2021-06-09 08:11:07 +00:00
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 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
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
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
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
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
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
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 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
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
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
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 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
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
Sebastian Zartner e6a5091a81 Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy,jdescottes
Depends on D110169

Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-22 18:53:39 +00:00
Sebastian Zartner 12080be6d9 Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Depends on D110167

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-22 18:53:39 +00:00
Hubert Boma Manilla 951aac078f Bug 1704116 - [devtools] Cache emitted update events until listeners are available r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D111569
2021-04-19 11:22:18 +00:00
Alexandru Michis 00fe1b9131 Backed out changeset 3ce66b167bb2 (bug 1704116) for causing mochitest failures.
CLOSED TREE
2021-04-16 16:53:10 +03:00
Hubert Boma Manilla 6b07b736ec Bug 1704116 - [devtools] Cache emitted update events until listeners are available r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D111569
2021-04-16 12:50:03 +00:00
Emilio Cobos Álvarez b42ccb7de0 Bug 1705509 - Hide -moz-outline-radius behind a pref. r=mstange
This property does nothing since bug 315209 got implemented.

Every single user that I checked was doing the same math by hand, so
hooray for good defaults :-)

Differential Revision: https://phabricator.services.mozilla.com/D112253
2021-04-16 01:01:45 +00:00
Csoregi Natalia 82cf66bbfe Backed out 2 changesets (bug 872078) for causing fails on browser_net_fonts.js. CLOSED TREE
Backed out changeset bec9c2c1a4cf (bug 872078)
Backed out changeset 15379790faad (bug 872078)
2021-04-16 02:13:41 +03:00
Sebastian Zartner 7fe926553b Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy
Depends on D110169

Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-15 21:32:41 +00:00
Sebastian Zartner 79a339fe2f Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Depends on D110167

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-15 21:32:41 +00:00
Butkovits Atila 1565fba881 Backed out 2 changesets (bug 872078) for failures at browser_net_fonts.js. CLOSED TREE
Backed out changeset 7f10ba2647c1 (bug 872078)
Backed out changeset 5728965f8788 (bug 872078)
2021-04-15 17:04:39 +03:00
Sebastian Zartner 2e0d996742 Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy
Depends on D110169

Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-15 12:35:58 +00:00
Sebastian Zartner 86de316d6d Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Depends on D110167

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-15 12:35:57 +00:00
Jon Bauman bd341b09c9 Bug 1682995 - Revert Enable AVIF support by default. r=aosmond,valentin,necko-reviewers,preferences-reviewers,Gijs
Revert this change to turn AVIF off by default for now

Differential Revision: https://phabricator.services.mozilla.com/D111892
2021-04-14 23:36:23 +00:00
Narcis Beleuzu 1063b6f06e Backed out 2 changesets (bug 872078) for dt failures on browser_net_fonts.js
Backed out changeset 49e8b5ddbc77 (bug 872078)
Backed out changeset 3714c43d8bc9 (bug 872078)
2021-04-14 21:49:59 +03:00
Sebastian Zartner 6140832e73 Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy
Depends on D110169

Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-14 18:02:13 +00:00
Sebastian Zartner d1057f9f4f Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Depends on D110167

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-14 18:02:12 +00:00
Alexandru Michis ac87189e82 Backed out 2 changesets (bug 872078) for causing dt failures in browser_net_fonts.js
CLOSED TREE

Backed out changeset 500850494fa9 (bug 872078)
Backed out changeset f73193dcd637 (bug 872078)
2021-04-11 11:12:28 +03:00
Sebastian Zartner ae167774d7 Bug 872078 - Added test case for font preview in Response view of Netmonitor. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D110170
2021-04-11 07:20:09 +00:00
Sebastian Zartner 81fe103e23 Bug 872078 - Added preview and info for fonts in Response view of Netmonitor. r=bomsy
A preview for fonts is added to the Response view of the Netmonitor. This view displays the name and MIME type of the font and generates a preview for it.

If no preview can be created, a hint is shown to the user. This is the case when the font isn't used within the page when generating the preview. For example, this is the case when loading the font via the Font Loading API.

Differential Revision: https://phabricator.services.mozilla.com/D110169
2021-04-11 07:20:09 +00:00
Hubert Boma Manilla ac7b968385 Bug 1638259 - [devtools] Add test for CSP blocked styles r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110840
2021-04-06 22:40:26 +00:00
Hubert Boma Manilla 7f97d78756 Bug 1638259 - Notify devtools when style resources blocked on CSP r=necko-reviewers,valentin,emilio
Differential Revision: https://phabricator.services.mozilla.com/D102599
2021-04-06 22:40:26 +00:00
Hubert Boma Manilla 9fb0954b93 Bug 1682153 - [devtools] Enable CSP script blocking test r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110838
2021-04-06 22:40:25 +00:00
Larissa 8eeb880d84 Bug 1701566 - Removed flexbox from outer div (.notice-perf-mesage). r=bomsy,Honza
Differential Revision: https://phabricator.services.mozilla.com/D110782
2021-04-06 15:41:45 +00:00
Julian Descottes 4f9e9360fc Bug 1702061 - [devtools] Remove isPanelReady flag and devtools-panel-ready from DevTools panel instances r=nchevobbe
Depends on D110368
Both the flag and the event are not used.
The only thing which matters from the framework perspective is to wait for panel.open to resolve.

Differential Revision: https://phabricator.services.mozilla.com/D110369
2021-03-31 12:41:44 +00:00
Julian Descottes 7a570555f5 Bug 1702061 - [devtools] Rename panel ready event to devtools-panel-ready r=nchevobbe
Depends on D110367

Initial cleanup before removal.

Differential Revision: https://phabricator.services.mozilla.com/D110368
2021-03-31 12:41:43 +00:00
Julian Descottes 116dd052e8 Bug 1702061 - [devtools] rename panel isReady to isPanelReady r=nchevobbe
Initial cleanup to make the future removal easier to review

Differential Revision: https://phabricator.services.mozilla.com/D110367
2021-03-31 12:41:43 +00:00
Alexandre Poirot 76159a7d58 Bug 1696372 - [devtools] Migrate netmonitor panel from toolbox.targetList to commands.TargetCommand. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D110210
2021-03-30 21:29:39 +00:00
Nicolas Chevobbe b46c2f3c00 Bug 1701634 - [devtools] Add a TargetConfiguration command. r=ochameau.
Move the methods of the targetCommand that were related to targetConfiguration
to a dedicated command.
We also move the custom TargetConfigurationFront methods into the command.
Callsites are modified to use the new command. Doing so for the debugger involved
a bit more work as we needed to pass the command to the existing `setupCommands`
bootstrap function.

Differential Revision: https://phabricator.services.mozilla.com/D110200
2021-03-30 14:13:31 +00:00
Hubert Boma Manilla af3289f596 Bug 1666386 - [devtools] Find blocked request using url name fixes intermittent r=nchevobbe
The test previously depended on the position of the blocked request
in the request list view, This causes the test to fail intermittently
when the list is out of order.

This fix instead finds the request using the name in the url which is
more consistent.

Differential Revision: https://phabricator.services.mozilla.com/D109497
2021-03-23 19:21:21 +00:00
Alexandre Poirot ded026f627 Bug 1700106 - [devtools] Remove now-useless eslint files related to mochitests. r=jdescottes,Standard8
I kept a few having some overrides. But they may be irrelevant.
And I kept some eslint files for all folder that aren't matching the pattern matching "**/test*/**/browser*/".
Ideally we would rename these folder to match.

Last but not least, I identified one case where we were using mochitest file for xpcshell tests!

Differential Revision: https://phabricator.services.mozilla.com/D109481
2021-03-23 15:51:18 +00:00
Alexandre Poirot 8efc49e6bd Bug 1700106 - [devtools] Exclude tests from general reject-some-requires eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D109477
2021-03-23 15:51:17 +00:00
Sebastian Zartner 5b882432c3 Bug 1693147 - Use toggle button for switching between raw and formatted request view. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D107356
2021-03-18 12:46:47 +00:00
Sebastian Zartner 13bcca8ae3 Bug 1212958 - Unified splitter colors throughout DevTools. r=victoria
This change unifies the different colors of splitters used within the different panels.

"Splitter" here referes to a thin (usually one pixel wide) line between different items in the UI. It does not mean borders around items.

Differential Revision: https://phabricator.services.mozilla.com/D105682
2021-03-12 21:23:51 +00:00
Tim Nguyen da94fac78a Bug 1697792 - Clean up info SVG icons in the codebase. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108001
2021-03-12 09:53:16 +00:00
Csoregi Natalia 8308087290 Backed out changeset dcc686463127 (bug 1697792) for failures on browser_parsable_css.js- icon related. CLOSED TREE 2021-03-12 05:21:41 +02:00
Tim Nguyen 3b6042742a Bug 1697792 - Clean up info SVG icons in the codebase. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108001
2021-03-11 20:47:37 +00:00
Julian Descottes 01718819b8 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl,perftest-reviewers,sparky
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-10 18:22:02 +00:00
Julian Descottes 21f2a85405 Bug 1697391 - [devtools] Use a shared waitForDispatch helper in devtools mochitests r=ochameau
Depends on D107675

Differential Revision: https://phabricator.services.mozilla.com/D107794
2021-03-10 13:37:16 +00:00
Narcis Beleuzu e783ef6d6e Backed out 5 changesets (bug 1694906) for dt failures on browser_target_list_frames.js . CLOSED TREE
Backed out changeset bd5cb6f8b41f (bug 1694906)
Backed out changeset c23343373584 (bug 1694906)
Backed out changeset 02428006de51 (bug 1694906)
Backed out changeset 284e000deded (bug 1694906)
Backed out changeset 3b5269fe0113 (bug 1694906)
2021-03-10 04:52:56 +02:00
Julian Descottes 0f66091841 Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe,rpl
Depends on D107051

Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-09 20:50:42 +00:00
Alexandre Poirot ac04c532a5 Bug 1691681 - [devtools] Introduce "commands" in order to ease calling global commands throught the Watcher. r=nchevobbe,bomsy,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D97575
2021-03-03 17:02:42 +00:00
smolnar c685a0eb54 Backed out changeset 59da0caf4b8e (bug 1694906) for causing browser-chrome failures in browser_ext_addon_debugging_netmonitor. CLOSED TREE 2021-03-03 12:40:50 +02:00
Julian Descottes 6e8574d4ad Bug 1694906 - [devtools] Use descriptors instead of targets in all toolbox APIs r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D106426
2021-03-03 09:10:48 +00:00
Julian Descottes 329bffa98e Bug 1694140 - [devtools] Stop using TargetFactory:forTab in netmonitor to retrieve the parent toolbox r=bomsy,ochameau
Depends on D106002

The goal is to reduce the usage of the getToolbox(target) API.
It feels like exposing toolbox on the connector should be a more straightforward way of achieving the same thing?

Differential Revision: https://phabricator.services.mozilla.com/D106032
2021-02-25 18:02:53 +00:00
Julian Descottes d9b1d58f33 Bug 1694140 - [devtools] Stop using TargetFactory forTab in devtools browser mochitests r=nchevobbe
Depends on D105999

This patch is mostly a mechanical rewrite of:
```lang=javascript
const target = await TargetFactory.forTab(tab);
const toolbox = await gDevTools.showToolbox(target, "inspector");
```
to
```lang=javascript
const toolbox = await gDevTools.showToolboxForTab(tab, { toolId: "inspector" });
```

The main changes are:
- if the target was actually used in the test, it is now retrieved from toolbox.target
- the arguments for showToolboxForTab are using an option argument, to avoid the occasional showToolbox("inspector", null, null, null, startTime, null, reason);

I suspect that any signature rewrite mistake would have been caught on try.
There a few less mechanical changes:
- devtools/client/framework/test/browser_toolbox_screenshot_tool.js the toolId "console" was omitted because this id doesn't match any tool (author probably meant "webconsole")
- a few tests were: 1/ first creating a target, 2/ looping on tool definitions to get supported tools 3/ opening the toolbox with each supported tool. To support this I extracted a helper called `getSupportedToolIds` which opens a temporary toolbox to list all supported tool ids
- all the tests under storage/ use a single helper to start the test, which can open toolboxes for both tab targets and other targets. This made it more complicated to refactor. We could also drop this part and just refactor each test when we actually modify forTab/showToolbox to only work with descriptors

All in all the goal of this stack is to pave the way to stop handling targets when using forTab/showToolbox, and behind the scenes stop replying on targets to cache open toolboxes. We don't aim to kill all the call sites, just get them to a smaller number so that the next refactors will be easier.

Differential Revision: https://phabricator.services.mozilla.com/D106000
2021-02-25 18:02:52 +00:00
Brindusan Cristian 39abcde940 Backed out 10 changesets (bug 1694140, bug 1694886, bug 1688688) for devtools failures on browser_CORS-console-warnings.js. CLOSED TREE
Backed out changeset 1b7367a27d9a (bug 1694886)
Backed out changeset d5a70a3143ad (bug 1694140)
Backed out changeset 74adaced5c0a (bug 1694140)
Backed out changeset 0b8f857e3f90 (bug 1694140)
Backed out changeset 45a8dc952aba (bug 1694140)
Backed out changeset 299f17e9cb6f (bug 1694140)
Backed out changeset 6beb9dd48ef3 (bug 1694140)
Backed out changeset 5f6688e8fe4c (bug 1694140)
Backed out changeset ae1fa0484c91 (bug 1688688)
Backed out changeset 8a0f5c24ed9a (bug 1688688)
2021-02-25 16:07:39 +02:00
Julian Descottes 86d04516e5 Bug 1694140 - [devtools] Stop using TargetFactory:forTab in netmonitor to retrieve the parent toolbox r=bomsy,ochameau
Depends on D106002

The goal is to reduce the usage of the getToolbox(target) API.
It feels like exposing toolbox on the connector should be a more straightforward way of achieving the same thing?

Differential Revision: https://phabricator.services.mozilla.com/D106032
2021-02-25 12:58:15 +00:00
Julian Descottes 982c525960 Bug 1694140 - [devtools] Stop using TargetFactory forTab in devtools browser mochitests r=nchevobbe
Depends on D105999

This patch is mostly a mechanical rewrite of:
```lang=javascript
const target = await TargetFactory.forTab(tab);
const toolbox = await gDevTools.showToolbox(target, "inspector");
```
to
```lang=javascript
const toolbox = await gDevTools.showToolboxForTab(tab, { toolId: "inspector" });
```

The main changes are:
- if the target was actually used in the test, it is now retrieved from toolbox.target
- the arguments for showToolboxForTab are using an option argument, to avoid the occasional showToolbox("inspector", null, null, null, startTime, null, reason);

I suspect that any signature rewrite mistake would have been caught on try.
There a few less mechanical changes:
- devtools/client/framework/test/browser_toolbox_screenshot_tool.js the toolId "console" was omitted because this id doesn't match any tool (author probably meant "webconsole")
- a few tests were: 1/ first creating a target, 2/ looping on tool definitions to get supported tools 3/ opening the toolbox with each supported tool. To support this I extracted a helper called `getSupportedToolIds` which opens a temporary toolbox to list all supported tool ids
- all the tests under storage/ use a single helper to start the test, which can open toolboxes for both tab targets and other targets. This made it more complicated to refactor. We could also drop this part and just refactor each test when we actually modify forTab/showToolbox to only work with descriptors

All in all the goal of this stack is to pave the way to stop handling targets when using forTab/showToolbox, and behind the scenes stop replying on targets to cache open toolboxes. We don't aim to kill all the call sites, just get them to a smaller number so that the next refactors will be easier.

Differential Revision: https://phabricator.services.mozilla.com/D106000
2021-02-25 12:58:14 +00:00
Sebastian Zartner 3fcc126250 Bug 1651649 - Use toggle button for switching between raw and formatted response view. r=Honza,bomsy
The accordion widget inside the response view of the Network Monitor got replaced by a simple headline with a toggle button at the end.

Differential Revision: https://phabricator.services.mozilla.com/D103839
2021-02-24 10:09:36 +00:00
Hubert Boma Manilla cf6e22c1d5 Bug 1692951 - [devtools] Stop crashing when the security certificate is not available r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D105439
2021-02-17 11:27:24 +00:00
Julian Descottes c2ea869048 Bug 1690698 - [devtools] Remove performReload option and call reload from the frontend r=ochameau,bomsy,devtools-backward-compat-reviewers
Depends on D104424

performReload is not a regular configuration option as it is not persisted.
It is rather a flag for a single call to Target::reconfigure.
As we move configuration options outside of the target, it will be easier to drive the reload from the frontend.
The call sites using performReload are quite rare and only found in the netmonitor so it doesn't feel like this
requires a framework solution for now. We add explicit calls to TargetFront::reload() in spots where the netmonitor
used to pass performReload = true.

Differential Revision: https://phabricator.services.mozilla.com/D104891
2021-02-15 22:41:59 +00:00
Julian Descottes 853a765c1f Bug 1690698 - [devtools] Move calls to reconfigure behind TargetList::updateConfiguration r=ochameau,bomsy
Depends on D104423

Same as for isJavascriptEnabled in the previous patch.
With the upcoming Configuration actor, updating the configuration should not be on target-scoped API.
Moving the `reconfigure` API to TargetList reduces the required refactors for the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D104424
2021-02-15 22:41:58 +00:00
Yura Zenevich c72349ac1a Bug 1689445 - revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D104127
2021-02-09 01:30:08 +00:00
Mihai Alexandru Michis 6da97a654e Backed out 2 changesets (bug 1689445) for causing bc failures in browser_search.js
Backed out changeset 2b1ec882c4c1 (bug 1689445)
Backed out changeset bcb4ba398ee0 (bug 1689445)
2021-02-06 05:33:02 +02:00
Yura Zenevich d3beb62c1d Bug 1689445 - revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D104127
2021-02-05 21:26:54 +00:00
Alexandre Poirot 22f652b35a Bug 1690221 - [devtools] Remove unused Connector.setPreferences method. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103751
2021-02-04 09:06:41 +00:00
Alexandre Poirot a212b7b7b5 Bug 1690221 - [devtools] Merge FirefoxConnector into Connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103750
2021-02-04 10:37:20 +00:00
Alexandre Poirot 1e919fbc8d Bug 1690221 - [devtools] Remove unused chrome connector. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D103749
2021-02-04 00:16:31 +00:00
Sebastian Zartner 9266c8e32e Bug 1655412 - Vertically centered 'Start performance analysis' button in Network Monitor. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D103599
2021-02-03 14:32:32 +00:00
Hubert Boma Manilla dda1fd88b9 Bug 1690506 - [devtools] Show full stacktrace in AppErrorBoundary r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D103885
2021-02-03 15:57:54 +00:00
Hubert Boma Manilla f5e3af838a Bug 1688590 - Use more specific rules to determine 'action cable' payloads r=Honza
Identifying json `Action cable` payloads is tricky. Currently we parse the json again in `parseActionCable` to determine if
it is an `Action cable` payload.

Instead lets check using a possible criteria before attempting to call `parseActionCable`.
See https://medium.com/codequest/actioncable-in-rails-api-f087b65c860d for `Action cable` details.

Differential Revision: https://phabricator.services.mozilla.com/D103086
2021-02-02 11:41:57 +00:00
Hubert Boma Manilla 15a8aa84e8 Bug 1637920 - [devtools] Legacy listeners support for SSE events r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D102585
2021-01-27 13:37:25 +00:00
Nicolas Chevobbe 7fd71ffb1f Bug 1438979 - [devtools] Re-enable browser_webconsole_network_messages_expand.js. r=bomsy.
The test is split in two to make it easier to read.
The test was quite old and still had references to the Params panel, which is
now removed.
The test was also failing when checking the stacktrace, and this was due to an
issue from the webconsole messsage reducer where we would completly replace
the `networkMessagesUpdateById` on NETWORK_MESSAGES_UPDATE, and that would lead
to the stracktrace being removed.
In the Stacktrace component, we prevent fetching the stacktrace if it's already
available.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2021-01-27 09:37:23 +00:00
smolnar ee306d7507 Backed out changeset 60746aad382b (bug 1438979) for causing dt failures in browser_webconsole_network_messages_openinnet. CLOSED TREE 2021-01-26 16:52:02 +02:00
Nicolas Chevobbe 84cab1d99c Bug 1438979 - [devtools] Re-enable browser_webconsole_network_messages_expand.js. r=bomsy.
The test is split in two to make it easier to read.
The test was quite old and still had references to the `Params` panel, which was
renamed to `Request`.
The test was also failing when checking the stacktrace, and this was due to an
issue from the webconsole messsage reducer where we would completely replace
the `networkMessagesUpdateById` on NETWORK_MESSAGES_UPDATE, and that would lead
to the stracktrace being removed.
In the Stacktrace component, we prevent fetching the stacktrace if it's already
available.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2021-01-26 13:50:15 +00:00
Dimi Lee 5151175654 Bug 1589074 - Fix devtools mochitest failures after changing default referrer policy to strict-origin-when-cross-origin. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88551
2021-01-25 13:26:58 +00:00
Butkovits Atila 69babd862d Backed out 11 changesets (bug 1589074) for causing failures on test_DownloadCore.js.
Backed out changeset 10e37ec238ee (bug 1589074)
Backed out changeset a306f2483d73 (bug 1589074)
Backed out changeset b7a0d73a2885 (bug 1589074)
Backed out changeset da996dc79d5d (bug 1589074)
Backed out changeset 3cffd4570c8e (bug 1589074)
Backed out changeset 9fe67741eb5a (bug 1589074)
Backed out changeset e8e6d9a6b90d (bug 1589074)
Backed out changeset 78df7f0ccb31 (bug 1589074)
Backed out changeset 712f147c5a41 (bug 1589074)
Backed out changeset f093f3c48807 (bug 1589074)
Backed out changeset 454beae0f635 (bug 1589074)
2021-01-25 14:57:00 +02:00
Dimi Lee e262560bd8 Bug 1589074 - Fix devtools mochitest failures after changing default referrer policy to strict-origin-when-cross-origin. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88551
2021-01-25 06:43:03 +00:00
Yura Zenevich a8b689fb7d Bug 1687789 - add fail-if condition on a11y_checks for browser_net_statistics-02.js. r=jmaher
Depends on D102472

Differential Revision: https://phabricator.services.mozilla.com/D102473
2021-01-20 20:15:06 +00:00
Yura Zenevich b589387e9e Bug 1667998 - pass accessibility checks for tests that need a11y exceptions. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97324
2021-01-15 18:20:42 +00:00
Yura Zenevich a6e8d4aaa9 Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 18:20:44 +00:00
Hubert Boma Manilla 86a26392f1 Bug 1687205 - [devtools] Use the network event actor id when getting stacktraces r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102116
2021-01-18 17:28:03 +00:00
Hubert Boma Manilla 9cb65eed7f Bug 1665383 - [devtools] Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE by default for fission r=ochameau
Enable NETWORK_EVENT and NETWORK_EVENT_STACKTRACE resources by default

Differential Revision: https://phabricator.services.mozilla.com/D99625
2021-01-18 17:27:55 +00:00
Noemi Erli 77bb8db1ff Backed out 3 changesets (bug 1687205, bug 1687192, bug 1665383) for causing devtools failures in browser_net_block-csp.js CLOSED TREE
Backed out changeset 812caf90c2c5 (bug 1687192)
Backed out changeset 68f676381ab4 (bug 1687205)
Backed out changeset 34dd7e523954 (bug 1665383)
2021-01-18 18:00:02 +02:00
Hubert Boma Manilla 2f728bd220 Bug 1687205 - [devtools] Use the network event actor id when getting stacktraces r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D102116
2021-01-18 12:50:14 +00:00
Noemi Erli 8ad2a18a79 Backed out 5 changesets (bug 1667998) for breaking a11y checks CLOSED TREE
Backed out changeset 633dda979b22 (bug 1667998)
Backed out changeset c9838cdb1303 (bug 1667998)
Backed out changeset 501c54cf59be (bug 1667998)
Backed out changeset 615b74c822ec (bug 1667998)
Backed out changeset 6d187c01fcb3 (bug 1667998)
2021-01-15 20:16:06 +02:00
Yura Zenevich 3ba4e17cfb Bug 1667998 - pass accessibility checks for tests that need a11y exceptions. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97324
2021-01-15 16:54:05 +00:00
Yura Zenevich 33ccace61e Bug 1667998 - converted calls to EventUtils.sendMouseEvent to be async. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D97323
2021-01-15 16:53:43 +00:00
Nicolas Chevobbe ec7fee5e53 Bug 1557247 - [devtools] Share jest config and fixtures across panels. r=ladybenko.
This creates a new devtools/client/shared/test-helpers folder in which we add
a share jest config, which define a `moduleNameMapper` option with all the
different fixtures that were used in the codebase.

The fixtures were moved from different panels to a jest-fixtures folder and
the one that were left unused are removed.
Some fixtures file needed to be modified to satisfy eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D99470
2021-01-12 12:32:12 +00:00
Jon Bauman 7fed1dba96 Bug 1682995 - Enable AVIF support by default. r=aosmond,preferences-reviewers,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D99964
2021-01-08 20:16:58 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Emilio Cobos Álvarez 1903289616 Bug 1684689 - Fix usage of createImageData in devtools. r=jdescottes
This fixes the DAMP failures and effectively preserves behavior.

Differential Revision: https://phabricator.services.mozilla.com/D100623
2021-01-04 17:27:24 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Kartik Gautam 5d5093a494 Bug 1679452 - Replace :not(X):not(Y) with :not(X, Y) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D100147
2020-12-19 11:24:13 +00:00
Hubert Boma Manilla ed78ad3373 Bug 1683152 - [devtools] Handle netmonitor pause/resume on the client r=ochameau
Fixes browser_net_pause.js

Differential Revision: https://phabricator.services.mozilla.com/D99621
2020-12-17 17:38:19 +00:00
Hubert Boma Manilla 3a5a44e982 Bug 1683121 - [devtools] Disable blocking CSP test for fission r=ochameau
Disabling browser_net_block-csp.js as it fails with fission enabled.
Bug 1682153 details the issue, and the test would be enabled when this
bug is fixed.

Differential Revision: https://phabricator.services.mozilla.com/D99626
2020-12-17 15:34:04 +00:00
Kartik Gautam f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca 7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Hubert Boma Manilla ce646bb5ee Bug 1674653 - [devtools] Resend requests with fission r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D95474
2020-12-12 16:01:44 +00:00
Hubert Boma Manilla 0b6ab1ef69 Bug 1676177 - [devtools] Throtting requests in fission r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D97965
2020-11-30 23:03:55 +00:00
Florent Viard fc9a18178f Bug 1674622 - Fixes timings/time fields for har import/export; r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D96210
2020-11-18 12:39:08 +00:00
Nicolas Chevobbe 5939a047d3 Bug 1678241 - [devtools] Remove callback param in sendHTTPRequest. r=bomsy.
The function now directly return a Promise instead.

Differential Revision: https://phabricator.services.mozilla.com/D97541
2020-11-19 10:38:01 +00:00
Hubert Boma Manilla 6e19a79a32 Bug 1677546 - [devtools] Rename network actors to parent and content actors r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D97239
2020-11-17 23:21:26 +00:00
Alexandre Poirot b6defeeb72 Bug 1676808 - [devtools] Rename all watcher to watcherFront. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D96859
2020-11-17 11:15:40 +00:00
Alexandre Poirot 03ce56bda3 Bug 1676808 - [devtools] Rename ResourceWatcher.hasWatcherSupport to hasResourceWatcherSupport. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D97148
2020-11-17 11:15:38 +00:00
Noemi Erli debd6a2710 Backed out 3 changesets (bug 1676808) for causing devtools failures CLOSED TREE
Backed out changeset bc9b1ba331c3 (bug 1676808)
Backed out changeset 9e26cb0f0bdf (bug 1676808)
Backed out changeset 03abab648794 (bug 1676808)
2020-11-17 01:23:53 +02:00
Alexandre Poirot 02c7de7954 Bug 1676808 - [devtools] Rename all watcher to watcherFront. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D96859
2020-11-16 21:08:24 +00:00
Alexandre Poirot 1b2d2414ad Bug 1676808 - [devtools] Rename ResourceWatcher.hasWatcherSupport to hasResourceWatcherSupport. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D97148
2020-11-16 21:08:21 +00:00
Hubert Boma Manilla a70ec38159 Bug 1662736 - [devtools] Simplify the network request payload r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D94457
2020-11-13 15:17:48 +00:00
Andreea Pavel 51f16bb9d2 Backed out changeset 62af829812bd (bug 1662736) for permafailing bug 1676641 and bug 1655183 on a CLOSED TREE 2020-11-11 19:53:14 +02:00
Hubert Boma Manilla d4cec11d5a Bug 1662736 - [devtools] Simplify the network request payload r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D94457
2020-11-11 10:51:28 +00:00
Dan Minor 57441aa8cc Bug 1673054 - Migrate uses of intl.uidirection to intl.l10n.pseudo; r=Gijs,zbraniecki
This also removes pref overrides from methods like LocaleService::IsLocaleRTL or
IntlService.getLocaleInfo, because it doesn't really make sense to override the
result of checking an arbitrary locale, the relevant use case is overriding the
result for the current app locale.

Removal of the intl.uidirection pref completely will be done in a separate bug.

Differential Revision: https://phabricator.services.mozilla.com/D96235
2020-11-09 15:33:39 +00:00
smolnar ec58e559fc Backed out changeset 1780d41127e8 (bug 1662736) for causing devtools failure. CLOSED TREE 2020-11-10 15:07:27 +02:00
Hubert Boma Manilla 5c91d1f55c Bug 1662736 - [devtools] Simplify the network request payload r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D94457
2020-11-10 12:44:23 +00:00
Alexandre Poirot 2de72821eb Bug 1675237 - [devtools] Set NETWORK_EVENT resource's `isRacing` attribute early, on securityInfo update. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D95836
2020-11-04 17:14:03 +00:00
Hubert Boma Manilla 42cc6b08ee Bug 1675039 - [devtools] Fix crash when serverTiming does not exists r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D95749
2020-11-04 10:37:53 +00:00
Itiel 0c395b7d08 Bug 1674607 - Fix dark mode for the netmonitor error boundary r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D95452
2020-11-02 11:48:00 +00:00
Cody Welsh a38acfa1f0 Bug 1660435 - Introduce top level Error boundary Component. r=Honza,bomsy
Add a needed top-level error boundary component to the Net Monitor panel
in DevTools, to catch errors that would otherwise render the pane blank.

Differential Revision: https://phabricator.services.mozilla.com/D91511
2020-10-29 16:40:29 +00:00
Hubert Boma Manilla f2eff26a41 Bug 1667370 - [devtools] Implement network request blocking in fission r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94449
2020-10-28 22:32:14 +00:00
Cosmin Sabou 7a1d8770ac Backed out changeset 3b72cf9476d8 (bug 1667370) for xpc failures on test_protocol_index.js. CLOSED TREE 2020-10-28 23:35:36 +02:00
Hubert Boma Manilla 3d18cd113c Bug 1667370 - [devtools] Implement network request blocking in fission r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D94449
2020-10-28 20:46:13 +00:00
Hubert Boma Manilla 891cb2a29f Bug 1556917 - [devtools] Wait for next tick to make sure toolbar mode has changed r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D94710
2020-10-27 15:24:54 +00:00
Neil Deakin 42167e0a0f Bug 1672390, remove message manager and frame scripts from devtools/client/performance, r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D94388
2020-10-27 00:26:14 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Hubert Boma Manilla bdc732974d Bug 1672777 - [devtools] Only try to replace the mime-type when it is available r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D94593
2020-10-25 09:13:26 +00:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Dorel Luca 1ff59cb7a3 Backed out changeset 7558c8821a07 (bug 1654103) for multiple failures. CLOSED TREE 2020-10-22 03:51:06 +03:00
Ricky Stewart 50762dacab Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-21 21:27:27 +00:00
Hubert Boma Manilla 3d1f26e2cd Bug 1663523 - [devtools] Add the network event stacktrace watcher r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86809
2020-10-19 01:19:39 +00:00
Bogdan Tara 61728de827 Backed out changeset de71a00c6f68 (bug 1663523) for devtools/shared/ failures CLOSED TREE 2020-10-18 20:53:17 +03:00
Hubert Boma Manilla 403ec0015b Bug 1663523 - [devtools] Add the network event stacktrace watcher r=ochameau,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D86809
2020-10-18 17:11:36 +00:00
Ben Delevingne ba70fdae23 Bug 1667634 - Order WS message column context menu consistently. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D93484
2020-10-15 10:36:58 +00:00
Nicolas Chevobbe c054be38ef Bug 1669956 - [devtools] Update require paths to reps modules. r=jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D93354
2020-10-14 11:24:17 +00:00
Ben Delevingne 3dfaad2d7f Bug 1582699 - [devtools] Consolidate thunk middlewares. r=nchevobbe
Merge `thunk-with-options` behavior directly into `thunk`, update `thunk` and `thunk-with-options` callsites and finally remove now unused `thunk-with-options` (as well as netmonitor's own `thunk`)

Depends on D92888

Differential Revision: https://phabricator.services.mozilla.com/D93195
2020-10-13 07:45:52 +00:00
Ben Delevingne 14aa4fcf8e Bug 1582699 - [devtools] Update thunk actions to take an object as an argument. r=nchevobbe
In short, thunk actions are changing from a signature with 2 parameters (dispatch and getState): `(dispatch, getState)`, to an object that contains those properties: `({ dispatch, getState })`.
This is done so we can merge thunk and thunk-with-options

Differential Revision: https://phabricator.services.mozilla.com/D92888
2020-10-13 07:48:12 +00:00
Ben Delevingne db9a05f7cd Bug 1669693 - [devtools] fix WebSocket message keyboard navigation. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D92884
2020-10-12 11:46:51 +00:00
Ben Delevingne ff7ffd0451 Bug 1667751 - Parse STOMP within SockJS WebSocket messages. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D92374
2020-10-12 11:15:16 +00:00
Razvan Maries 3292353471 Bug 1667115 - Disabled browser_net_simple-request-data.js on multiple platforms. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93129
2020-10-12 10:44:59 +00:00
Andreea Pavel b03f44cff7 Bug 1661641 - disable browser_net_fission_switch_target.js on fission win/linux 64 bits r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93128
2020-10-12 10:34:55 +00:00
Alexandre Poirot 342c1ad0be Bug 1669545 - [devtools] Print internal error codes instead of only "Blocked" when there is not explicit blocking reason. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D92657
2020-10-09 13:45:55 +00:00
Kershaw Chang 883455945d Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana,remote-protocol-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-08 13:26:03 +00:00
Farooq AR 69ce838809 Bug 1668985 - Incorrect order of message columns in Response Panel. r=Honza
With more tests in `browser_net_ws-sse-persist-columns.js`

Differential Revision: https://phabricator.services.mozilla.com/D92882
2020-10-08 11:33:07 +00:00
Alexandre Poirot a91d0c0801 Bug 1667737 - [devtools] Avoid registering resource listener twice on target switching from netmonitor. r=Honza
We should register the resource listeners only once.
ResourceWatcher will automatically handle re-registering the per-target listener for us.

Differential Revision: https://phabricator.services.mozilla.com/D92550
2020-10-07 13:39:43 +00:00
Razvan Maries f56817ceee Backed out changeset da4cf62e21fb (bug 1668851) for perma failures on browser_cdp.js. CLOSED TREE 2020-10-07 15:08:01 +03:00
Kershaw Chang 003f18dacb Bug 1668851 - Try to write data to socket directly without waiting r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D92442
2020-10-07 08:00:56 +00:00
Farooq AR 92a33cdb9e Bug 1664185 - Persist selected columns for SSE / Websocket Events in the Response panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D90824
2020-10-05 10:09:33 +00:00
Alexandre Poirot a326ee8f09 Bug 1663614 - Throttle resources on the client side from ResourceWatcher. r=jdescottes,bomsy
Because of this, in netmonitor stubs tests, the resource objects ends up loosing
"intermediate" state and now contains all information that we gathered by the time
we emit throttled resources.
The only way to address that would be to do an archived copy of each resource state,
but I don't think we want to do that...

Differential Revision: https://phabricator.services.mozilla.com/D89628
2020-09-24 11:04:57 +00:00
Alexandre Poirot fad9e1690b Bug 1663649 - [devtools] Enable target switching by default. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D91020
2020-09-23 17:50:20 +00:00
Alexandre Poirot 3dad2d6583 Bug 1665306 - Process "network updates" in console with only one `networkUpdateRequest` action call. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D90394
2020-09-23 11:29:38 +00:00
Alexandre Poirot 2ab106a0fc Bug 1665709 - Use same listener for NETWORK_EVENT and NETWORK_EVENT_STACKTRACE in order to guarantee event order. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D90288
2020-09-21 16:46:40 +00:00
Ben b9ef9df4b8 Bug 1606626 - Implement STOMP WebSocket message parsing. r=Honza,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89265
2020-09-20 16:30:59 +00:00
Razvan Maries 2332c87b6a Bug 1661612 - Disabled browser_net_persistent_logs.js on all platforms. r=intermittent-reviewers,jmaher
Differential Revision: https://phabricator.services.mozilla.com/D90016
2020-09-14 13:54:21 +00:00
Hubert Boma Manilla b6435b8ee8 Bug 1663979 - Theme support for messages raw section r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D90260
2020-09-15 14:49:06 +00:00
Hubert Boma Manilla 795fbdf4ae Bug 1661709 - Test for requests blocked by extensions r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D89309
2020-09-15 11:17:19 +00:00
Alexandre Poirot f7030caf73 Bug 1663877 - Wait for EVENT_TIMINGS, even when netmonitor is filtering. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89595
2020-09-13 19:10:05 +00:00
Alexandre Poirot 558845f4c3 Bug 1663875 - Wait for the request completion in WebSocket test. r=bomsy
These tests was racy, but I couldn't find any opened intermittent on bugzilla?

Differential Revision: https://phabricator.services.mozilla.com/D89569
2020-09-13 12:48:09 +00:00
Christoph Kerschbaumer af3ae708f9 Bug 1664177: Load all images in devtools/client/debugger/images using chrome:. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D89727
2020-09-10 17:04:35 +00:00
Alexandre Poirot fabd272d4a Bug 1663617 - Pass `updateType` via the update packet instead of storing it on the resource object. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D89435
2020-09-08 13:53:59 +00:00
Hubert Boma Manilla 1362cb7b8b Bug 1663524 - Legacy listener for the Network stacktrace r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D88858
2020-09-08 12:48:00 +00:00
Alexandre Poirot 8dd8e4b254 Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 21:13:02 +00:00
Alexandre Poirot e61c347424 Bug 1660268 - Read targetFront from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87767
2020-09-07 20:58:14 +00:00
Alexandre Poirot 0b62c083a6 Bug 1660268 - Read resourceType from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87766
2020-09-07 20:58:12 +00:00
Daisuke Akatsuka 5ee0f8ed93 Bug 1661625: Get stylesheets traits if needed. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D89339
2020-09-07 21:05:41 +00:00
Csoregi Natalia 3034124827 Backed out 3 changesets (bug 1660268) for failures on browser_ext_devtools_network_targetSwitch.js. CLOSED TREE
Backed out changeset 749fda4e5eb1 (bug 1660268)
Backed out changeset 9d4c305f6b88 (bug 1660268)
Backed out changeset 7ec118209790 (bug 1660268)
2020-09-07 21:24:26 +03:00
Alexandre Poirot ecf3f1c8bc Bug 1660268 - Pass list of resources instead of unique resource from ResourceWatcher. r=nchevobbe
Here, I've tried to be especially careful about replacing `return` by `continue` in the added for..loops.

Differential Revision: https://phabricator.services.mozilla.com/D87768
2020-09-07 13:35:31 +00:00
Alexandre Poirot fdb1e4f37e Bug 1660268 - Read targetFront from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87767
2020-09-07 13:35:24 +00:00
Alexandre Poirot b42d571310 Bug 1660268 - Read resourceType from resource instead of onResource*** functions. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D87766
2020-09-07 13:35:21 +00:00
Alexandre Poirot 27c9bcc6c5 Bug 1662066 - Remove netmonitor waitFor test helper. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D88833
2020-08-31 17:22:08 +00:00
Daisuke Akatsuka b74df1cade Bug 1659589: Get style-applied event via resource watcher. r=ochameau,bomsy
Depends on D87040

Differential Revision: https://phabricator.services.mozilla.com/D87041
2020-08-27 22:31:52 +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
Sonia Singla 5f5c9fd7f2 Bug 1659267 - Remove usages of -moz-user-select across the Firefox codebase. r=emilio,marionette-reviewers,geckoview-reviewers,preferences-reviewers,whimboo,agi
Differential Revision: https://phabricator.services.mozilla.com/D87499
2020-08-18 23:37:51 +00:00
Dev Singh e24d477b21 Bug 1635835 - Fix request parsing with XSSI-escapes in requests and responses r=Honza,bomsy
Also implements JSONP parsing into the main JSON parser

Differential Revision: https://phabricator.services.mozilla.com/D80720
2020-08-06 12:51:14 +00:00
Hubert Boma Manilla 74ccbad5fb Bug 1656388 - Send the waiting time to the UI r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D85501
2020-07-31 13:03:53 +00:00
Hubert Boma Manilla 2d4e7017fa Bug 1523614 Add copy/copy all context menu for headers summary and properties view r=nchevobbe
Add a new context menu for the headers sidepanel with , Copy and Copy all

Differential Revision: https://phabricator.services.mozilla.com/D76293
2020-07-31 15:51:49 +00:00
Bogdan Tara cffd9b5302 Bug 1603355 - Disable browser_net_block-pattern.js on linux, win&mac debug r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D84910
2020-07-27 01:24:25 +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