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
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
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
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
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
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
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
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
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
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
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
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