Commit Graph
68 Commits
Author SHA1 Message Date
yulia 1c18ac0dd0 Bug 1447490 - replace GCLI toolbox buttons with highlighters and appropriate actors; r=ochameau
GCLI has been handling the state of our buttons as well as managing shared highlighters.
Since the gcli removal, we no longer share the rulers and measure with any other UI, so a location
for shared state is no longer needed.

Differential Revision: https://phabricator.services.mozilla.com/D3506
2018-09-03 14:54:04 +00:00
Michael Ratcliffe 608cabca8c Bug 1487385 - Add key prop to MenuItem call r=nchevobbe
Fixes this warning every time the toolbox is opened:

"Warning: Each child in an array or iterator should have a unique "key" prop.

Check the render method of `ToolboxTabs`. See https://fb.me/react-warning-keys for more information.
    in MenuItem (created by ToolboxTabs)
    in ToolboxTabs (created by ToolboxToolbar)
    in div (created by ToolboxToolbar)
    in ToolboxToolbar (created by ToolboxController)
    in ToolboxController"

Differential Revision: https://phabricator.services.mozilla.com/D4671
2018-08-30 13:24:52 +00:00
Yura Zenevich db7967b711 Bug 1482454 - Display a "New" indicator to promote the accessibility panel. r=gl
MozReview-Commit-ID: 4T9a0Rxw2db
2018-08-22 10:23:19 -04:00
Mantaroh Yoshinaga 6fb25cb49c Bug 1477367 - Close the popup menu before changing the panel to options panel. r=birtles
Pressing the F1 key make the toolbox panel to options panel, However, popup menu
doesn't closed at the moment. This patch will close the popup menu in this case.

Differential Revision: https://phabricator.services.mozilla.com/D2897
2018-08-08 02:13:38 +00:00
Brian Birtles bcd72af7fa Bug 1478563 - Re-use function objects in MeatballMenu; r=jdescottes
To avoid needless re-renders due to props changing object identity.

Differential Revision: https://phabricator.services.mozilla.com/D2641
2018-08-02 10:09:11 +09:00
Brian Birtles 128622e480 Bug 1474234 - Add keys for MeatballMenu and MenuItem children; r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D2639
2018-08-02 09:41:47 +09:00
Brian Birtles 6ea878d6f3 Bug 1473211 - Stop using string concatenation for string IDs in MeatballMenu; r=jdescottes
Using the full string each time, although more verbose, allows us to easily
search for string IDs and see where they are used.

Differential Revision: https://phabricator.services.mozilla.com/D2590
2018-08-01 13:26:53 +00:00
Brian Birtles a9a5980300 Bug 1478819 - Make Meatball Menu items use title case; r=flod
As per: https://design.firefox.com/photon/copy/capitalization.html#platform-styles

Differential Revision: https://phabricator.services.mozilla.com/D2591
2018-08-01 06:34:31 +00:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Mantaroh Yoshinaga 019c5becf2 Bug 1474221 - Part 2. Make the chevron menu to be doorhanger menu. r=birtles
This patch will make the chevron menu to doorhanger menu and modify some tests
which related with this chevron menu.

MozReview-Commit-ID: BkdVHgRlHIw
2018-07-20 15:58:35 +09:00
Brian Birtles bc6a945158 Bug 1461522 - Switch meatball menu to a doorhanger; r=jdescottes
MozReview-Commit-ID: BHBJqiwOfHW
2018-06-28 15:16:09 +09:00
Brian Birtles db6cf6584e Bug 1461522 - Update comments in ToolboxToolbar.js; r=jdescottes
MozReview-Commit-ID: 18EJzeao8Xq
2018-06-28 15:14:53 +09:00
J. Ryan Stinnett cdaab6fba4 Bug 1472366 - Remove listeners in ToolboxTabs on unmount. r=mantaroh
ToolboxTabs can leave some listeners still bound after unmount leading to errors
during test runs.

Differential Revision: https://phabricator.services.mozilla.com/D1892
2018-07-03 01:52:25 +00:00
J. Ryan Stinnett 969d6f83ae Bug 1466534 - Centralize DevTools link handling. r=jdescottes
This adds a `openContentLink` helper meant for any link controlled by web
content.  If there is an associated toolbox open, the toolbox's tab is used to
supply a triggering principal for the link.

MozReview-Commit-ID: 45l5yAPGpZr
2018-06-11 23:42:19 -07:00
Yura Zenevich 6badd76f86 Bug 1453093 - move accessible actor instantiation and panel tab highlighting into tool startup component. r=ochameau
MozReview-Commit-ID: F02RgSyupUQ
2018-06-08 13:24:20 -04:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Mantaroh Yoshinaga 789d970ebe Bug 1456056 - Part 3. Use the grid layout to a toolbar in order to display only the chevron button and the controls element if devtool's width is narrow. r=jdescottes,nchevobbe
This patch will apply the grid layout to the toolbar.
If devtools's width is narrow, we expected that devtool display chevron and the
controls elements only(i.e. chevron and meatball and close button).
In order to display these button, a wrapper of toolbar will use grid layout.

Basically, this patch define grid columns as follow:

------------------------------------------------
| Picker |  tooltabs  |  commands |   controls  |
|  auto  | 26px ~ 1fr |    auto   |  max-content|
------------------------------------------------

We can disable the picker and command buttons, in this case, a toolbar will
stretch the tooltabs width by using grid-column-start/end.

MozReview-Commit-ID: ByY2qt2xhAg
2018-05-31 10:25:29 +09:00
Mantaroh Yoshinaga ad7f3b8912 Bug 1456056 - Part 2. Display chevron button only if the devtool width is narrow.r=jdescottes
This patch will allow that all buttons which accessing the tool panel is
overflowed. i.e. toolbar will display chevron button only.

MozReview-Commit-ID: GbKbAhtpYt7
2018-05-31 10:23:36 +09:00
Mantaroh Yoshinaga 721a537224 Bug 1456056 - Part 1. Improve the performance of toolbar tabs overflow. r=jdescottes
This patch will two impprove performances:

 * Remove unnecesarry reflow by using the DOMWindowUtils.getBoundsWithoutFlushing().
   This is a tiny performance improvement. Previous code will reflow on each
   tab width caclculation.

 * Change requestIdleCallback's timeout to 100ms.
   If user resize the devtool's width over time, overflow calculation will occur
   every 300ms. This patch will reduce this delay.

MozReview-Commit-ID: FxZuK0wGxHk
2018-05-31 10:22:31 +09:00
Mantaroh Yoshinaga 134a1468ca Bug 1455462 - Part 3. Use zoom value when showing popup menu. r=jdescottes
The openPopupAtScreen() use the zoomed css coordinate value as position value,
devtools's caller of this function use css pixel value without zoom. So position
of popup will missaligned if zooming out/in the devtool panel.

MozReview-Commit-ID: 4vvEssO41bO
2018-05-11 09:08:09 +09:00
Daisuke Akatsuka e13c159c05 Bug 1457067 - Part 1: Implement so as to toggle the options panel if click 'Settings' on the meatball menu. r=jdescottes
MozReview-Commit-ID: 3ST6EtMuA2F
2018-05-11 07:35:22 +09:00
Miguel Useche 93f930f18c Bug 1452060 - CamelCase all React component inside client framework folder. r=jdescottes 2018-05-06 14:16:17 -04:00
Julian Descottes 955839009b Bug 1458591 - remove unused toolbar propType;r=jryans
MozReview-Commit-ID: 8e85Fw4PLNQ
2018-05-02 20:52:41 +02:00
Julian Descottes a6379e59da Bug 1458591 - Use most recent chrome window for DevTools link helper;r=jryans
MozReview-Commit-ID: 8n5tT8qbAiU
2018-05-02 20:23:53 +02:00
Daisuke Akatsuka 88db160207 Bug 1456849 - Part 1: Re-arrange the tool tabs if the visibility of command tools are changed. r=jdescottes
MozReview-Commit-ID: EzUfqRUdK6I
2018-04-29 10:52:10 +09:00
Daisuke Akatsuka bc37f9f468 Bug 1455573 - Part 2: Correspond to the extension tool tab. r=jdescottes
MozReview-Commit-ID: 34Qm2CENXiV
2018-04-27 06:29:04 +09:00
Brian Birtles 16f90b712f Bug 1454298 - Add utm_source and utm_medium parameters to DevTools menu links; r=jryans
MozReview-Commit-ID: BVn1DXBdaMY
2018-04-25 10:01:52 +09:00
Brian Birtles f6c3e54651 Bug 1455443 - Convert dock menu options to a checkbox list; r=jryans
This also fixes the grouping so that the checkboxes appear before the separator
as per the mockup here:

  https://mozilla.invisionapp.com/share/M5G8OO1ZVE4#/screens

MozReview-Commit-ID: FfVNzPHEk43
2018-04-24 13:22:02 +09:00
Michael Ratcliffe 2cd66f01bc Bug 1441070 - Instrument toolbox panel navigation with event telemetry r=yulia
This is pretty simple... finding the best locations for the probes was the
struggle here.

In order to land these probes before the freeze the test for these events will
be created as part of bug 1456073.

MozReview-Commit-ID: 7hIfbD3wQ1I
2018-04-19 12:09:28 +01:00
Mark Banner 37c400e98f Bug 1455581 - Enable ESLint rules no-undef and no-unused-vars for devtools/client/framework/. r=jdescottes
MozReview-Commit-ID: IGwI0JkIDkf
2018-04-20 12:17:40 +01:00
Daisuke Akatsuka fb7122a52a Bug 1226272 - Part 3: Handle overflowed tabs. r=jdescottes
MozReview-Commit-ID: 77V2VIbIp0l
2018-04-19 18:48:53 +09:00
Daisuke Akatsuka 25ec2e93e8 Bug 1226272 - Part 2: Implement saving and loading the tabs order preference. r=jdescottes
MozReview-Commit-ID: JoVcnPwvVW7
2018-04-19 18:46:55 +09:00
Daisuke Akatsuka 3569ac4180 Bug 1226272 - Part 1: Make devtools tab draggable and reorderable. r=jdescottes
MozReview-Commit-ID: 3EdbVvG69H8
2018-04-19 18:41:56 +09:00
Brian Birtles 376ffbd2fc Bug 1451592 - Hide the iframe button when there are no child iframes; r=jryans
MozReview-Commit-ID: 7Q3PojIzmy4
2018-04-16 19:49:38 +02:00
Brian Birtles 322287cb92 Bug 1452290 - Update the labels in the DevTools meatball menu; r=jryans
This also updates the link behavior to use the less privileged openWebLink.

MozReview-Commit-ID: HHDQKAQz6hQ
2018-04-16 19:44:22 +02:00
Mantaroh Yoshinaga 49fec0c01e Bug 1442531 - Part 1. Make chevron button of devtool to be exclusive and apply the photon design. r=jdescottes
This patch will:
 * change detecting overflow to using resize event.
 * make chevron menu and tab menu to be exclusive.
 * use photon design chevron menu.
 * modify the related tests.

In this patch, the toolbox will create the cache of the displayed tool tab width
after rendering an element since each width of toolbox tab is not fixed size.
(i.e. each toolbox tab size is different from another size)

MozReview-Commit-ID: EQ0nU6WzCg1
2018-04-16 16:48:11 +09:00
Julian Descottes 3d7e07a467 Bug 1453423 - use openWeb/TrustedLink in devtools/shared/client/link;r=jryans
MozReview-Commit-ID: EMUqVCIxzUt
2018-04-11 20:35:36 +02:00
Brian Birtles f831889619 Bug 1444301 - Fix lint error in toolbox-toolbar.js on CLOSED TREE; r=bustage 2018-04-07 06:35:05 +09:00
Brian Birtles bc824a0bc7 Bug 1444301 - Move the separator before the RDM icon; r=jryans
As per the mockup:

  https://mozilla.invisionapp.com/share/M5G8OO1ZVE4#/screens/283871189

MozReview-Commit-ID: 6IF4JhiTqql
2018-04-05 10:13:22 +09:00
Brian Birtles 15bf0c06b9 Bug 1444301 - Add help items to menu; r=jryans
MozReview-Commit-ID: PwW9OK8eOV
2018-04-05 10:13:22 +09:00
Brian Birtles 93df0e7bd8 Bug 1444301 - Move disable pop-up autohide feature to toolbox menu; r=jryans
MozReview-Commit-ID: 3cJKqIxaFkV
2018-04-05 10:13:22 +09:00
Brian Birtles 7692a79a94 Bug 1444301 - Move split console function to meatball menu; r=jryans
MozReview-Commit-ID: GkMRdZMIUVa
2018-04-05 10:13:22 +09:00
Brian Birtles f9dddd56d4 Bug 1444301 - Add accelerator support to MenuItem component; r=jryans
MozReview-Commit-ID: IMbZ73ty5cM
2018-04-05 10:13:21 +09:00
Brian Birtles 0e2ddba629 Bug 1444301 - Move Options button into meatball menu; r=jryans
MozReview-Commit-ID: HnTbtdI5gS6
2018-04-05 10:13:21 +09:00
Brian Birtles 94e26f4dc3 Bug 1444301 - Move dock functions to a new meatball menu; r=jryans
MozReview-Commit-ID: IfFsiZnmw74
2018-04-05 10:13:21 +09:00
Brian Birtles 1eef30d056 Bug 1444301 - Use a consistent order when listing the props of the ToolboxToolbar component; r=jryans
MozReview-Commit-ID: GF5RTlS3uIA
2018-04-05 10:13:21 +09:00
Brian Birtles aae77f4bda Bug 1444301 - Add missing PropTypes to ToolboxToolbar; r=jryans
MozReview-Commit-ID: Bab6tFM6QUH
2018-04-05 10:13:21 +09:00
Brian Birtles a1a1f9d87d Bug 1450624 - Remove toolbox minimize feature; r=pbro 2018-04-04 09:12:45 +09:00
Mantaroh Yoshinaga e83f699bdc Bug 1444300 - Make tab button to be able to handle the key event. r=honza
A command button like ruler has keydown event handler, this patch will
add same event handler to tab button.
2018-04-03 09:42:44 +09:00
Michael Ratcliffe 88579744a5 Bug 1441113 - Can only update a mounted or mounting component when closing Memory Tool r=nchevobbe
The onclick handler of the toolbox close button looked like this... spot the deliberate mistake:

```
onClick: () => {
  closeToolbox();
  focusButton(closeButtonId);
},
```

So we were closing the toolbox and then trying to focus the toolbox's close button.

There is also an obvious race condition with setState inside the toolbox controller not using a callback even though the next line calls a function that uses this.state, which could cause intermittent issues.

MozReview-Commit-ID: 9VRcZw4RvE5
2018-02-26 11:59:23 +00:00