Commit Graph

1459 Commits

Author SHA1 Message Date
Logan Smyth
76d6b8f5c2 Bug 1550835 - DOM mutation breakpoint server API. r=jlast,gl
Differential Revision: https://phabricator.services.mozilla.com/D33528

--HG--
extra : moz-landing-system : lando
2019-06-26 06:23:03 +00:00
Nicolas Chevobbe
85b42f62ab 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

--HG--
extra : moz-landing-system : lando
2019-06-21 22:15:57 +00:00
Brian Grinstead
d99b0feeab Bug 1559208 - Stop setting [devtoolstheme] on browser-bottombox;r=jdescottes
This is unused since gcli removal

Differential Revision: https://phabricator.services.mozilla.com/D34918

--HG--
extra : moz-landing-system : lando
2019-06-18 22:44:17 +00:00
Brendan Dahl
ccb8b2f945 Bug 1558674 - Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan,bgrins
For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

Differential Revision: https://phabricator.services.mozilla.com/D34805

--HG--
extra : moz-landing-system : lando
2019-06-18 20:40:19 +00:00
Ciure Andrei
2e6ac83efb Backed out changeset 7312aba8ec3b (bug 1558674) for causing browser_console_context_menu_entries.js to permafail CLOSED TREE 2019-06-15 08:48:18 +03:00
Brendan Dahl
7c478fba5b Bug 1558674 - Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan,bgrins
For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

Differential Revision: https://phabricator.services.mozilla.com/D34805

--HG--
extra : moz-landing-system : lando
2019-06-15 00:27:36 +00:00
yulia
492954347a Bug 1494796 - Fix host resize test caused by timing issue; r=jdescottes
this is the weird one. we have a Debugger.executeSoon call for the destruction of the host.
However, before this happened immediately after the test closed. Now, it happens a little later, and
this messes up the data set up. The comment says that we cannot remove this.

Differential Revision: https://phabricator.services.mozilla.com/D32722

--HG--
extra : moz-landing-system : lando
2019-06-14 04:24:05 +00:00
Narcis Beleuzu
7d018750a1 Backed out 13 changesets (bug 1494796) for dt failures on browser_dbg-navigation.js . CLOSED TREE
Backed out changeset 5db908b26d50 (bug 1494796)
Backed out changeset c48f00f0df72 (bug 1494796)
Backed out changeset 591453b88e8b (bug 1494796)
Backed out changeset a14e820311bc (bug 1494796)
Backed out changeset 0e214d450b35 (bug 1494796)
Backed out changeset 1a4ab8b35a85 (bug 1494796)
Backed out changeset fe1559f5f1d4 (bug 1494796)
Backed out changeset 35d967de4223 (bug 1494796)
Backed out changeset 1d21a55cae15 (bug 1494796)
Backed out changeset 33eec873a43e (bug 1494796)
Backed out changeset 25e69c21dc2e (bug 1494796)
Backed out changeset b900d41c8ae8 (bug 1494796)
Backed out changeset c2a034e34fa6 (bug 1494796)
2019-06-14 07:20:42 +03:00
Narcis Beleuzu
72a734cf98 Backed out changeset aa7f507ac743 (bug 1558674) for dt failures on browser_console_context_menu_entries.js . CLOSED TREE 2019-06-14 05:57:52 +03:00
yulia
76b82cde68 Bug 1494796 - Fix host resize test caused by timing issue; r=jdescottes
this is the weird one. we have a Debugger.executeSoon call for the destruction of the host.
However, before this happened immediately after the test closed. Now, it happens a little later, and
this messes up the data set up. The comment says that we cannot remove this.

Differential Revision: https://phabricator.services.mozilla.com/D32722

--HG--
extra : moz-landing-system : lando
2019-06-14 00:18:40 +00:00
Brendan Dahl
04a85879bb Bug 1558674 - Allow chrome privileged documents to enable/disable copy/paste. r=Ehsan
For content HTML/XHTML copy/paste should always be enabled, but for chrome
docs we can support enabling/disabling copy/paste.

Also, restores tests to how they were before copy/paste was always enabled.

Differential Revision: https://phabricator.services.mozilla.com/D34805

--HG--
extra : moz-landing-system : lando
2019-06-14 00:32:21 +00:00
yulia
41a63bce0d Bug 1494796 - fix timing issues in general tests due to threadClient refactor; r=jdescottes
this patch fixes a few tests that had miscellanous timeouts

Differential Revision: https://phabricator.services.mozilla.com/D32712

--HG--
extra : moz-landing-system : lando
2019-06-12 23:34:36 +00:00
Daisuke Akatsuka
002c2ce79d Bug 1506032: Wait for documentUnload and newRoot events are fired. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D33749

--HG--
extra : moz-landing-system : lando
2019-06-05 10:12:34 +00:00
Gurzau Raul
7553da5d5b Bug 1506032 - disabled browser_toolbox_window_reload_target.js on win, linux and mac r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D33618

--HG--
extra : moz-landing-system : lando
2019-06-04 11:47:10 +00:00
Julian Descottes
eedc5b96dd Bug 1556434 - Use JSON reporter for DevTools jest tests on Try r=nchevobbe,Ola
This should be less fragile to catch regressions on try.

Differential Revision: https://phabricator.services.mozilla.com/D33515

--HG--
extra : moz-landing-system : lando
2019-06-04 12:29:43 +00:00
Nicolas Chevobbe
978aa39f4f Bug 1525618 - Add an option in the settings panel to toggle warning groups. r=Honza.
We also listen for the warningGroup preference change to
toggle warningGroups in the console output.
If warningGroups were disabled, we need to loop through
the state messages to create warningGroups when needed.
A test is added to ensure this works as expected.

Differential Revision: https://phabricator.services.mozilla.com/D32716

--HG--
extra : moz-landing-system : lando
2019-06-03 15:10:45 +00:00
arthur.iakab
36d75a7e56 Merge mozilla-central to mozilla-inbound 2019-06-01 01:30:47 +03:00
Greg Tatum
8ed1db88b3 Bug 1307227 - Add a runtime check for when the profiler button is enabled and checked; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D31663

--HG--
extra : moz-landing-system : lando
2019-05-31 15:54:25 +00:00
Brian Grinstead
402bc3a970 Bug 1553188 - Part 4 - Update remaining references to browser.xul;r=bdahl
These are generally:
- Code comments to browser.xhtml
- Testcases, assertions that were mostly using browser.xul as a generic chrome URL
- References to the browser.xul path in tree

Differential Revision: https://phabricator.services.mozilla.com/D33208
2019-05-28 16:40:42 -07:00
yulia
a9f8c70111 Bug 1042642 - Use EventEmitter instead of EventSource for the threadClient; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29373

--HG--
extra : moz-landing-system : lando
2019-05-30 08:37:55 +00:00
Julian Descottes
56918ca9d7 Bug 1552516 - Fix race condition in a devtools test. r=jdescottes,jlast
Differential Revision: https://phabricator.services.mozilla.com/D31800

--HG--
extra : moz-landing-system : lando
2019-05-23 16:45:08 +00:00
Julian Descottes
eb8edb7bbe Bug 1519087 - Use preventDefault() on DevTools settings shortcut r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D31358

--HG--
extra : moz-landing-system : lando
2019-05-17 11:53:16 +00:00
yulia
25c2664041 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

--HG--
extra : moz-landing-system : lando
2019-05-16 08:13:00 +00:00
yulia
8b4cbdf966 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

--HG--
extra : moz-landing-system : lando
2019-05-15 08:26:31 +00:00
yulia
b5f30fe76e Bug 1225492 - Listen to events on the ThreadClient instead of re-emitting them on the target; r=jdescottes
As per the bug description, this removes some old code that relied on the target
re-emitting threadClient events. Now we simply listen to the threadClient events directly.

Differential Revision: https://phabricator.services.mozilla.com/D29162

--HG--
extra : moz-landing-system : lando
2019-05-15 08:26:08 +00:00
Jason Laster
cb26b05125 Bug 1539468 - Preview can initially take awhile to populate. r=loganfsmyth
Differential Revision: https://phabricator.services.mozilla.com/D30952

--HG--
extra : moz-landing-system : lando
2019-05-15 14:46:09 +00:00
Tim Nguyen
fef5483c4f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 17:54:16 +00:00
arthur.iakab
59ea6f2ddc Backed out changeset c8a2cbf18f3c (bug 1223368) for devtools failures on browser_inspector_search-01.js CLOSED TREE 2019-05-11 20:44:42 +03:00
Tim Nguyen
d2328a28a9 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 16:08:13 +00:00
Michael Ratcliffe
a58a67412c Bug 1306054 - Use custom tooltip for inactive properties r=jdescottes,flod,rcaliman
### Changes

Probably the most important change apart from the tooltips is that we now only support one property at a time. This allows us to short circuit at the first invalid property and improve performance. This was previously agreed with Razvan but there were some relics left in the code.

`toolbox.xul`
- Added tooltips.ftl

`devtools/client/inspector/markup/test/helper_events_test_runner.js`:
- Had to change to synthesizeMouseAtCenter because CSS changes caused the original to fail.

`devtools/client/inspector/rules/rules.js`:
- Added `VIEW_NODE_INACTIVE_CSS` to node types and sorted alphabetically.
- Added new nodeInfo data for Inactive CSS icons.

`devtools/client/inspector/rules/test/browser_rules_inactive_css_flexbox.js` &
`devtools/client/inspector/rules/test/browser_rules_inactive_css_grid.js`:
- removed some listeners that are no longer needed

`devtools/client/inspector/rules/test/head.js`:
- Refactored `getPropertiesForRuleIndex()` in order to pass along information needed for testing our Fluent strings.
- Refactored `checkDeclarationIsInactive()` to check tooltip contnts using a new method.
- Added `checkInteractiveTooltip()` for checking the tooltip contents themselves.
- Simple changes to `runInactiveCSSTests()`.

`devtools/client/inspector/rules/views/text-property-editor.js`:
- We no longer create the tooltip by adding the title attribute.

`devtools/client/inspector/shared/node-types.js`:
- Changed the enum to use strings to simplify debugging.
- Added `VIEW_NODE_INACTIVE_CSS`.
- Sorted alphabetically.

`devtools/client/inspector/shared/tooltips-overlay.js`:
- Introduced a new tooltip type called `interactiveTooltip`.

`devtools/client/locales/en-US/inspector.properties`:
- Removed strings.

`devtools/client/locales/en-US/tooltips.ftl`:
- Added structured versions of the properties from `inspector.properties`.

`devtools/client/shared/widgets/tooltip/HTMLTooltip.js`:
- Made the tooltips obey the "prevent popup autohide" option in the browser debugger.

`devtools/client/shared/widgets/tooltip/InactiveCSSTooltipHelper.js`:
- Main file for handling InactiveCSS Tooltips.

`devtools/client/themes/tooltips.css`:
- Made arrow tooltips follow the Proton theme.

`devtools/server/actors/utils/inactive-property-helper.js`:
- General changes to support Fluent.
- Bail on first inactive property found.

### Latest Try (expecting green)

https://treeherder.mozilla.org/#/jobs?repo=try&revision=de28939206d444dc4b534a3e5cc7a84b8797bec3

Differential Revision: https://phabricator.services.mozilla.com/D29372

--HG--
extra : moz-landing-system : lando
2019-05-10 17:03:27 +00:00
Julian Descottes
1a36f3e730 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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:36:37 +00:00
Julian Descottes
048903ea35 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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:36:04 +00:00
Julian Descottes
039d3e7c13 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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:35:36 +00:00
Julian Descottes
d66a731d54 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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:35:02 +00:00
Andreea Pavel
95a481edab 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
1ac516149e 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
8aa6f3861d 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

--HG--
extra : moz-landing-system : lando
2019-05-08 15:14:54 +00:00
Julian Descottes
92f2dbb1c8 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

--HG--
extra : moz-landing-system : lando
2019-05-08 15:14:05 +00:00
Julian Descottes
6c24dca78c 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

--HG--
extra : moz-landing-system : lando
2019-05-08 15:13:40 +00:00
Julian Descottes
2f080ac390 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

--HG--
extra : moz-landing-system : lando
2019-05-08 15:13:32 +00:00
David Walsh
0e8cd5dc37 Bug 1533418 - Support multiple workers as roots. r=jlast
http://dbg-workers.glitch.me

Updated tests in SourcesTree.spec.js to pass and
added test to ensure sources are added to the correct thread

Differential Revision: https://phabricator.services.mozilla.com/D29225

--HG--
extra : moz-landing-system : lando
2019-05-08 07:14:44 +00:00
Julian Descottes
2e2113744e Bug 1542286 - Add tests for Firefox Preview runtime info r=daisuke
Depends on D29485

Differential Revision: https://phabricator.services.mozilla.com/D30064

--HG--
extra : moz-landing-system : lando
2019-05-07 15:23:16 +00:00
Julian Descottes
4107188124 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

--HG--
extra : moz-landing-system : lando
2019-05-07 15:21:22 +00:00
Mihai Alexandru Michis
50e4f13359 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
a65b27ebde Bug 1542286 - Add tests for Firefox Preview runtime info r=daisuke
Depends on D29485

Differential Revision: https://phabricator.services.mozilla.com/D30064

--HG--
extra : moz-landing-system : lando
2019-05-07 06:30:43 +00:00
Julian Descottes
7a0ab85ed8 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

--HG--
extra : moz-landing-system : lando
2019-05-06 21:04:25 +00:00
Julian Descottes
7b911e7022 Bug 1539456 - part2: Remove WebIDE toolbar button r=ntim,Ola
Depends on D29219

Differential Revision: https://phabricator.services.mozilla.com/D29220

--HG--
extra : moz-landing-system : lando
2019-05-03 08:40:49 +00:00
yulia
77f46589d6 Bug 1494796 - Use promise pattern rather than callback pattern for threadClient methods; r=ochameau
This is preparation for moving the threadClient to a front. Fronts do not support the
callback style that clients have, they only support promises. As such, this patch migrates all
instances of the threadClient using callback style methods to promises. I have cc'd the debugger
team so that they are aware of this change and it doesn't take them by surprise.

try run : https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=242251058&revision=dbd6cca9619ca0880e920d5b86fc6d6e0c728113

Differential Revision: https://phabricator.services.mozilla.com/D28966

--HG--
extra : moz-landing-system : lando
2019-05-02 15:39:20 +00:00
Julian Descottes
46a3720013 Bug 1531315 - Rename aboutdebugging test classnames from js-* to qa-* r=Ola
Differential Revision: https://phabricator.services.mozilla.com/D28946

--HG--
extra : moz-landing-system : lando
2019-05-02 10:14:47 +00:00
Julian Descottes
38267f73c2 Bug 1544692 - Enable devtools shortcuts and menu items in about:devtools-toolbox r=Ola
Depends on D29028

Differential Revision: https://phabricator.services.mozilla.com/D29029

--HG--
extra : moz-landing-system : lando
2019-04-30 13:34:29 +00:00