Commit Graph
417 Commits
Author SHA1 Message Date
Alexandre Poirot b446e32dd9 Bug 1510690 - Do focus the content window from the actor when the toolbox closes. r=nchevobbe
No RDP request should be done when the toolbox closes as there no guarantee that
the request will complete. Instead, such cleanup should be done by the actors.

Differential Revision: https://phabricator.services.mozilla.com/D38309
2019-07-31 08:12:16 +00:00
Alexandre Poirot 8c033a354a Bug 1568150 - Make Toolbox.destroyInspector synchronous. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D39680
2019-07-29 16:52:31 +00:00
Alexandre Poirot bd645c3ccc Bug 1568150 - Destroy the inspector front after the panels. r=gl
All fronts are destroyed when we call TargetMixin.destroy.
All but the inspector. This changeset move the inspector front destruction
from being done in parallel to panels destruction to do it after.
This highlight races in tests that are not waiting correctly for the full
loading of the grid sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D39408
2019-07-29 17:16:11 +00:00
Alexandre Poirot e16bbf57d3 Bug 1568150 - Stop spinning the event loop when destroying the inspector front. r=gl
InspectorFront.destroy isn't returning a promise. So the `await` in the toolbox
code is not relevant and is only spinning the event loop.
Removing it introduce races which should be fixed.
The toolbox buttons shouldn't try to unhighlight if the inspector isn't used.

Differential Revision: https://phabricator.services.mozilla.com/D39407
2019-07-29 16:52:28 +00:00
Csoregi Natalia 28975dc584 Backed out 2 changesets (bug 1568150) for failures on browser_ext_devtools_panel.js. CLOSED TREE
Backed out changeset 47f2bc60381a (bug 1568150)
Backed out changeset beb290a8b2a3 (bug 1568150)
2019-07-29 17:08:08 +03:00
Alexandre Poirot 030aa32f69 Bug 1568150 - Destroy the inspector front after the panels. r=gl
All fronts are destroyed when we call TargetMixin.destroy.
All but the inspector. This changeset move the inspector front destruction
from being done in parallel to panels destruction to do it after.
This highlight races in tests that are not waiting correctly for the full
loading of the grid sidebar.

Differential Revision: https://phabricator.services.mozilla.com/D39408
2019-07-29 09:20:31 +00:00
Alexandre Poirot 735b357308 Bug 1568150 - Stop spinning the event loop when destroying the inspector front. r=gl
InspectorFront.destroy isn't returning a promise. So the `await` in the toolbox
code is not relevant and is only spinning the event loop.
Removing it introduce races which should be fixed.
The toolbox buttons shouldn't try to unhighlight if the inspector isn't used.

Differential Revision: https://phabricator.services.mozilla.com/D39407
2019-07-29 09:20:29 +00:00
Gabriel Luong 12587ec458 Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D38554
2019-07-18 15:33:55 -04:00
Jason Laster e3bae28d20 Revert "Backed out changeset 63ef8fdfff70 (Bug 1354679) for xpcshell failures at test_xpcshell_debugging.js."
This reverts commit e2023eef255628a3b10040b4b6b35c482efd152b.

Differential Revision: https://phabricator.services.mozilla.com/D38689
2019-07-19 18:01:04 +00:00
Brindusan Cristian 7a7bb21041 Backed out changeset 63ef8fdfff70 (bug 1354679) for xpcshell failures at test_xpcshell_debugging.js. 2019-07-19 03:39:04 +03:00
Jason Laster f27c15f3d7 Bug 1354679 - re-apply pause overlay. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D38572
2019-07-18 22:14:49 +00:00
Alexandre Poirot 54e3c2d1be Bug 1566435 - Make netmonitor destroy codepath synchronous. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D38370
2019-07-17 16:57:53 +00:00
Coroiu Cristina 168131c86e Backed out changeset 6363111ee8ce (bug 1354679) for causing bug 1565833 2019-07-14 21:15:31 +03:00
yulia 7eba825d59 Bug 1559819 - rename threadClient to threadFront; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D32848
2019-07-11 09:45:32 +00:00
Jason Laster 55402c8a6b Bug 1354679 - Automatically display the PausedDebuggerOverlay when the debugger is paused. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D35162
2019-07-09 22:01:34 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Logan Smyth 62f5ffc02c Bug 1550835 - DOM mutation breakpoint server API. r=jlast,gl
Differential Revision: https://phabricator.services.mozilla.com/D33528
2019-06-26 06:23:03 +00:00
Nicolas Chevobbe fe0b8a4221 Bug 1358983 - Fix zombie highlighters. r=miker.
Due to how highlighters work, it requires the inspector to be initialized.
It can happen than the user will mouseenter/mouseout on an element that
calls highlight/unhighlight very quickly.
Since the hightlight can take some time, it might happen that the unhighlight
call is handled first, before the highlight call, meaning that we now have an
highlighter displayed, even though the user isn't hovering anything that
should cause this anymore.

This patch introduces a new toolbox function called `getHighlighter` that
returns an object with a `highlight and a `unhighlight` function.
We keep a reference to any possible pending `highlight` call so we can wait
for it to be done in `unhighlight`, before destroying it.

The console makes use of the new helper function, and a test is added to ensure
we don't have zombie highlighters anymore.

Differential Revision: https://phabricator.services.mozilla.com/D34562
2019-06-21 22:15:57 +00:00
yulia 3fa3fe5250 Bug 1042642 - Use EventEmitter instead of EventSource for the threadClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29373
2019-05-30 08:37:55 +00:00
Julian Descottes 24afd375ed Bug 1519087 - Use preventDefault() on DevTools settings shortcut r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D31358
2019-05-17 11:53:16 +00:00
yulia f29f807cca Bug 1492830 - Move toolbox code from attach-thread.js to toolbox; r=jdescottes
this code can be merged with the toolbox code

Differential Revision: https://phabricator.services.mozilla.com/D29367
2019-05-16 08:13:00 +00:00
yulia 4527640492 Bug 1493714 - move toolbox specific listeners to threadClient events to the toolbox; r=jdescottes
This is the first part of getting rid of framework/attach-thread.js -- here we move the
toolbox related logic back into the toolbox.

Differential Revision: https://phabricator.services.mozilla.com/D29193
2019-05-15 08:26:31 +00:00
Jason Laster 167b0d54bc Bug 1539468 - Preview can initially take awhile to populate. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D30952
2019-05-15 14:46:09 +00:00
Julian Descottes 645909585c Bug 1543940 - Update tests to use toolbox.topDoc to query context-menu elements r=ochameau
Depends on D27695

Differential Revision: https://phabricator.services.mozilla.com/D27696
2019-05-08 21:36:37 +00:00
Julian Descottes 395ede7256 Bug 1543940 - Use the toolbox top window for context menus r=ochameau
Depends on D28036

If a context menu is opened in the toolbox document when running in a frame with type=content, keyboard navigation will not move to the context menu when it's opened.

Differential Revision: https://phabricator.services.mozilla.com/D27695
2019-05-08 21:36:04 +00:00
Julian Descottes f842eea3df Bug 1543940 - menu.popup() should take a document argument instead of toolbox r=ochameau
Depends on D27693

Menu::popup and popupAtZoom are expecting a toolbox argument as last argument.
However, half of the callsites do not have access to the toolbox and just pass
a { doc } object. This is misleading when trying to work on menu.js because you
cannot rely on toolbox APIs.

Differential Revision: https://phabricator.services.mozilla.com/D28036
2019-05-08 21:35:36 +00:00
Julian Descottes 61d2501487 Bug 1543940 - Rely on chromeEventHandler for toolboxContextMenu events r=ochameau
Using chromeEventHandler will allow us to catch events fired from any frame.
By default when DevTools are in a type=chrome frame, events also bubble across frames.
With type=content this is no longer the case.

Differential Revision: https://phabricator.services.mozilla.com/D27693
2019-05-08 21:35:02 +00:00
Andreea Pavel 368a7a0194 Backed out 5 changesets (bug 1543940) for failing browser_menu_api.js on a CLOSED TREE
Backed out changeset aaa0f827616a (bug 1543940)
Backed out changeset 590b72185b69 (bug 1543940)
Backed out changeset 42e2136f684f (bug 1543940)
Backed out changeset a66967f17042 (bug 1543940)
Backed out changeset b1e6e932873c (bug 1543940)
2019-05-08 20:49:43 +03:00
Daniel Varga d497d10aa5 Backed out 1 changesets (bug 1543940) for mochitest failure at devtools/client/accessibility/test/mochitest/test_accessible_row_context_menu.html
Backed out changeset 7fe9661e8510 (bug 1543940)
2019-05-08 19:50:14 +03:00
Julian Descottes 8b2af4aa81 Bug 1543940 - Update tests to use toolbox.topDoc to query context-menu elements r=ochameau
Depends on D27695

Differential Revision: https://phabricator.services.mozilla.com/D27696
2019-05-08 15:14:54 +00:00
Julian Descottes 1d66f6eb50 Bug 1543940 - Use the toolbox top window for context menus r=ochameau
Depends on D28036

If a context menu is opened in the toolbox document when running in a frame with type=content, keyboard navigation will not move to the context menu when it's opened.

Differential Revision: https://phabricator.services.mozilla.com/D27695
2019-05-08 15:14:05 +00:00
Julian Descottes d9b007903b Bug 1543940 - menu.popup() should take a document argument instead of toolbox r=ochameau
Depends on D27693

Menu::popup and popupAtZoom are expecting a toolbox argument as last argument.
However, half of the callsites do not have access to the toolbox and just pass
a { doc } object. This is misleading when trying to work on menu.js because you
cannot rely on toolbox APIs.

Differential Revision: https://phabricator.services.mozilla.com/D28036
2019-05-08 15:13:40 +00:00
Julian Descottes d79ec26bd9 Bug 1543940 - Rely on chromeEventHandler for toolboxContextMenu events r=ochameau
Using chromeEventHandler will allow us to catch events fired from any frame.
By default when DevTools are in a type=chrome frame, events also bubble across frames.
With type=content this is no longer the case.

Differential Revision: https://phabricator.services.mozilla.com/D27693
2019-05-08 15:13:32 +00:00
Julian Descottes d1ca4da494 Bug 1542286 - Share runtime info with DebugTargetInfo component via remote-client-manager r=daisuke
Depends on D29462

Differential Revision: https://phabricator.services.mozilla.com/D29485
2019-05-07 15:21:22 +00:00
Mihai Alexandru Michis 9b69c95e2f Backed out 5 changesets (bug 1542286) for causing devtool failures at browser_about-devtools-toolbox_reload.js CLOSED TREE
Backed out changeset 8b43cfcebf9f (bug 1542286)
Backed out changeset d02d934560c5 (bug 1542286)
Backed out changeset dbb72223a684 (bug 1542286)
Backed out changeset 8a220edc2db3 (bug 1542286)
Backed out changeset 38220ee5ab0c (bug 1542286)
2019-05-07 12:04:53 +03:00
Julian Descottes d13ba4c1ae Bug 1542286 - Share runtime info with DebugTargetInfo component via remote-client-manager r=daisuke
Depends on D29462

Differential Revision: https://phabricator.services.mozilla.com/D29485
2019-05-06 21:04:25 +00:00
Julian Descottes ec954f36d4 Bug 1544692 - Fix splitconsole shortcut for about:devtools-toolbox r=Ola
Fixes a small issue with the splitconsole shortcut in about:devtools-toolbox

Differential Revision: https://phabricator.services.mozilla.com/D29028
2019-04-30 11:30:12 +00:00
Julian Descottes f6f8679702 Bug 1544709 - Register global keyboard shortcuts on chromeEventHandler r=ochameau
Depends on D27686
Toolbox, zoom keys and inspector search should use the chromeeventhandler as event target.
They need to capture events from inner frames.

Differential Revision: https://phabricator.services.mozilla.com/D27688
2019-04-26 16:40:57 +00:00
Julian Descottes dd2fd4d20c Bug 1544709 - Use chromeEventHandler for splitConsole events r=ochameau
Depends on D27685

Differential Revision: https://phabricator.services.mozilla.com/D27686
2019-04-26 15:45:33 +00:00
Julian Descottes 2f6429cc9b Bug 1544709 - Move all shortcuts registration for toolbox in addShortcuts method r=ochameau
As we will move shortcuts to use chromeEventHandler as their target, we need an easy way to add and remove them on host switch.
The chromeEventHandler will change when switching from window to docked hosts (and vice versa)

Differential Revision: https://phabricator.services.mozilla.com/D27685
2019-04-26 15:43:33 +00:00
Julian Descottes c9bc352935 Bug 1543093 - Fix RTL for DevTools in Browser Toolbox;r=nchevobbe
Using the toolbox window to read the "direction" seems to fix the issue.
Added a mochitest, had to create a dedicated browser ini file in order to setup RTL properly.

Differential Revision: https://phabricator.services.mozilla.com/D28841
2019-04-25 18:53:32 +00:00
Julian Descottes 44907b462b Bug 1507459 - Register performance actor even if new performance panel is enabled r=julienw
The server should not be driven by a client-side performance about which perf panel is enabled.
To preserve the behavior, the performance connection will not be initiated by the toolbox if the new perf panel is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D28042
2019-04-24 09:31:27 +00:00
Julian Descottes 6356118d38 Bug 1544749 - Add shared helper to retrieve the top window r=bgrins
Some classes in DevTools will not have an easy way to get access to the toolbox.
However they might still want to use the topmost chrome window.
Extract the logic from toolbox.js to a shared helper.

Differential Revision: https://phabricator.services.mozilla.com/D27672
2019-04-18 09:06:32 +00:00
Belén Albeza 0de1213eab Bug 1539344 - Part 2: display target type icon in DebugTargetInfo component r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D25375
2019-04-10 16:02:44 +00:00
Julian Descottes 8eb8772e7c Bug 1539979 - Use toolbox window as telemetry event object;r=miker
Depends on D26320

@miker: We are moving devtools iframes to use type=content, and win.top will no longer be available.
We could use another getter to get the topmost chrome window, but reading the code here, I thought that maybe using the toolbox window would be better.
Today if you open several toolboxes in different tabs of the same window, the events for the various toolboxes will be mixed together, because win.top is the same for all the toolboxes that live in the same window.
It might be better to use an object which is unique to the toolbox?

Differential Revision: https://phabricator.services.mozilla.com/D26324
2019-04-10 15:37:31 +00:00
Julian Descottes 735d0e3e27 Bug 1539979 - Initialize browser-loader only after domready in toolbox.js;r=bgrins
Depends on D26319

Differential Revision: https://phabricator.services.mozilla.com/D26320
2019-04-10 01:04:38 +00:00
Julian Descottes 772910b27b Bug 1539979 - Set type=content for DevTools toolbox frames when rebuild_frameloaders_on_remoteness_change is true;r=bgrins,nika
Depends on D26317

Differential Revision: https://phabricator.services.mozilla.com/D26319
2019-04-10 01:04:38 +00:00
Cosmin Sabou 7ec0b18c47 Backed out 3 changesets (bug 1539344) for devtools failures on browser_toolbox_target.js. CLOSED TREE
Backed out changeset 878f78400ed7 (bug 1539344)
Backed out changeset 8b3d1e3ae296 (bug 1539344)
Backed out changeset 29b64aed3474 (bug 1539344)
2019-04-09 14:03:07 +03:00
Belén Albeza 44826768dd Bug 1539344 - Part 2: display target type icon in DebugTargetInfo component r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D25375
2019-04-08 12:52:03 +00:00
Belén Albeza 3a3c352e5e Bug 1505368 - Show error page in about:devtools-toolbox when target is destroyed r=jdescottes,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D20315
2019-04-08 15:41:38 +00:00