Commit Graph
542 Commits
Author SHA1 Message Date
Jason Laster 83bd3809ec Bug 1488917 - Update Debugger Frontend v87. r=dwalsh 2018-09-06 13:03:09 -04:00
Yura Zenevich e69a430a95 Bug 1488508 - update help icon to use Photon style system. r=gl
MozReview-Commit-ID: 75efDzRq187

Differential Revision: https://phabricator.services.mozilla.com/D4958
2018-09-04 17:21:44 +00:00
Nicolas Chevobbe f40b1669b0 Bug 1486364 - Revert changes in Tree component and test; r=jdescottes.
In https://github.com/devtools-html/debugger.html/pull/6809 a check
was removed in the Tree component because seens as unnecessary, and
a test was modified to accomodate the change. Turns out the test was
needed in its original form, and was surfacing a bug.
This patch rolls back both the change in the Tree component _and_ in
the test.
The Tree modification will be backported to the Github repository.

Differential Revision: https://phabricator.services.mozilla.com/D4307
2018-08-27 07:30:02 +00:00
Jason Laster 5321f80310 Bug 1484972 - Update Debugger Frontend v84. r=dwalsh 2018-08-21 20:36:00 +03:00
Mantaroh Yoshinaga a17a5b0450 Bug 1465644 - Part 2. Introduce the emphasized splitter style. r=nchevobbe 2018-08-22 16:07:53 +09:00
Mantaroh Yoshinaga 32f91b0d3a Bug 1465644 - Part 1. Change characode of SplitConsole.css from dos to unix. r=nchevobbe 2018-08-22 16:07:13 +09:00
Mantaroh Yoshinaga 2f40fdbd52 Bug 1484595 - Remove the HTMLTooltip hidden event listener before destroying the HTMLTooltip. r=birtles
MenuButton will listen the HTMLTooltip hidden event even if HTMLTooltip is
destroyed. As a result of it, the timer which issued in the MenuButton's event
listener might fail due to the target window is destroyed. (e.g., switching the
dock mode to bottom  from window mode.)

This patch will remove this event listener before destroying the HTMLTooltip.

Differential Revision: https://phabricator.services.mozilla.com/D3759
2018-08-20 07:03:07 +00:00
shindli 4b359b43ba Backed out changeset fc5c57e9b65b (bug 1484595) for linting failure on a CLOSED TREE 2018-08-20 10:38:08 +03:00
Mantaroh Yoshinaga 86f14b469b Bug 1484595 - Remove the HTMLTooltip hidden event listener before destroying the HTMLTooltip. r=birtles
MenuButton will listen the HTMLTooltip hidden event even if HTMLTooltip is
destroyed. As a result of it, the timer which issued in the MenuButton's event
listener might fail due to the target window is destroyed. (e.g., switching the
dock mode to bottom  from window mode.)

This patch will remove this event listener before destroying the HTMLTooltip.

Differential Revision: https://phabricator.services.mozilla.com/D3759
2018-08-20 07:03:07 +00:00
Jason Laster 74c0bcef29 Bug 1483877 - Update Debugger Frontend v83. r=dwalsh 2018-08-17 07:28:00 -04:00
Gabriel Luong 70f6e3fa83 Bug 1467572 - Part 10: Reuse the network throttling menu in the network monitor in RDM. r=Honza
- Removes the duplicate dropdown arrow icon that is used in both RDM and Network monitor
- Converts the network throttling menu in the network monitor to be a shared component that
can be used in both RDM and network monitor
- Move the common styles for the dropdown menu button into toolbars.css
2018-08-15 17:27:43 -04:00
Gabriel Luong 8a04f6330d Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM
2018-08-15 17:27:41 -04:00
Gabriel Luong 9c1fa758af Bug 1467572 - Part 5: Implement the new style for the global toolbar. r=rcaliman 2018-08-15 17:27:34 -04:00
Csoregi Natalia df9db8ee3d Backed out 19 changesets (bug 1467572) for devtools failures on browser_net_telemetry_throttle_changed.js. CLOSED TREE
Backed out changeset 39123899178c (bug 1467572)
Backed out changeset 62fcbe25665c (bug 1467572)
Backed out changeset 5ef6c1c42747 (bug 1467572)
Backed out changeset e295be61276e (bug 1467572)
Backed out changeset 41d85a6f8a2a (bug 1467572)
Backed out changeset 4e6b95a6c506 (bug 1467572)
Backed out changeset 36d459a24020 (bug 1467572)
Backed out changeset abb52c2c68ab (bug 1467572)
Backed out changeset 470b9ce4ba0f (bug 1467572)
Backed out changeset 37609995dc8f (bug 1467572)
Backed out changeset 636bf5ce96f7 (bug 1467572)
Backed out changeset 5880a55d2ee8 (bug 1467572)
Backed out changeset 0f19f84bb2ed (bug 1467572)
Backed out changeset e83526778ccd (bug 1467572)
Backed out changeset c42448ca6e4a (bug 1467572)
Backed out changeset 934fb24dad26 (bug 1467572)
Backed out changeset 6102b9ef805b (bug 1467572)
Backed out changeset 7aaea1245d27 (bug 1467572)
Backed out changeset 7793f8a2b14f (bug 1467572)
2018-08-16 03:43:41 +03:00
Gabriel Luong 8454e7f93d Bug 1467572 - Part 10: Reuse the network throttling menu in the network monitor in RDM. r=Honza
- Removes the duplicate dropdown arrow icon that is used in both RDM and Network monitor
- Converts the network throttling menu in the network monitor to be a shared component that
can be used in both RDM and network monitor
- Move the common styles for the dropdown menu button into toolbars.css
2018-08-15 17:27:43 -04:00
Gabriel Luong 443afc34b9 Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM
2018-08-15 17:27:41 -04:00
Gabriel Luong d4aed43757 Bug 1467572 - Part 5: Implement the new style for the global toolbar. r=rcaliman 2018-08-15 17:27:34 -04:00
Nicolas Chevobbe 41712cd901 Bug 1481833 - Fix expanding getter returning longString; r=Honza.
Differential Revision: https://phabricator.services.mozilla.com/D2949
2018-08-09 15:01:45 +00:00
Mantaroh Yoshinaga 9370afd91f Bug 1477088 - Part 1. Force adding the focus to the button in order to handle the key event. r=birtles
The menu button can't receive the key event on macOS since macOS doesn't leave the focus of the menu button even if click the menu button.
So this patch will add the focus to the button when clicking the button.

Differential Revision: https://phabricator.services.mozilla.com/D2585
2018-08-08 08:16:12 +09:00
Jason Laster c4c5b0e3aa Bug 1480838 - Update Debugger Frontend v78. r=dwalsh 2018-08-03 18:33:37 -04:00
Brian Birtles bb08c95913 Bug 1474234 - Don't pass internal props onto child button in MenuButton; r=jdescottes
Otherwise we will get errors like:

console.error: "Warning: React does not recognize the `menuId` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `menuid` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\n    in button (created by MenuButton)\n    in MenuButton (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in ToolboxToolbar (created by ToolboxController)\n    in ToolboxController"

console.error: "Warning: React does not recognize the `menuPosition` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `menuposition` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\n    in button (created by MenuButton)\n    in MenuButton (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in ToolboxToolbar (created by ToolboxController)\n    in ToolboxController"

console.error: "Warning: React does not recognize the `menuOffset` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `menuoffset` instead. If you accidentally passed it from a parent component, remove it from the DOM element.\n    in button (created by MenuButton)\n    in MenuButton (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in div (created by ToolboxToolbar)\n    in ToolboxToolbar (created by ToolboxController)\n    in ToolboxController"

It's also not what we intend to do.

Differential Revision: https://phabricator.services.mozilla.com/D2640
2018-08-02 09:59:24 +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
Jason Laster 377c518cf6 Bug 1479812 - Update Debugger Frontend v77. r=dwalsh 2018-08-02 11:10:48 -04:00
Brian Birtles a7abca9cfc Bug 1477354 - Add role=presentation to MenuItem wrapper element; r=Jamie
Currently we have a structure like the following:

  <div role="menu" id="toolbox-meatball-menu">
    <li class="menuitem">
      <button
        role="menuitemcheckbox"
        aria-checked="true">
        <span class="label">Dock to Bottom</span>
      </button>
    </li>
    <li class="menuitem">
      <button
        role="menuitemcheckbox">
        <span class="label">Dock to Right</span>
      </button>
    </li>
    <hr></hr>
    <li class="menuitem">
      <button
        class="command"
        role="menuitem">
        <span class="label">Documentation…</span>
      </button>
    </li>
  </div>

As a result there is an <li> wrapper element between the role="menuitem" element
at the role="menu" element. By setting role="presentation" on the <li> wrapper
we can produce a more sensible accessibility tree.

Differential Revision: https://phabricator.services.mozilla.com/D2642
2018-08-02 03:55:26 +00:00
Jason Laster 46b6ea0f80 Bug 1479116 - Update Debugger Frontend v76. r=dwalsh
MozReview-Commit-ID: AvrEObOYdeN
2018-07-30 14:31:47 -04:00
Nicolas Chevobbe 07af9817cb Bug 1476605 - Fix Error rep failure when stacktrace is a longString; r=sole.
The actual fix for this issue will come in a future
reps bundle when https://github.com/devtools-html/debugger.html/pull/6705
gets merged.
But, I do want this change to be uplifted to release, and it should be
easier to only apply this simple change than the whole next release
which would contain unrelated code changes.
Also, this patch introduces a test to make sure we don't ever regress
this.

MozReview-Commit-ID: 3QPrx3TLln0
2018-07-26 15:18:08 +02:00
Mantaroh Yoshinaga 0f95bb2e21 Bug 1473209 - Ignore the click event until popup is hidden. r=birtles.
The widget will hide the XUL panel when clicking to the outside of panel
automatically.
If a user clicks the MenuButton when opening the popup, the popup will hide
automatically and mouse click event will be fired on macOS and Linux.
(Windows will eat this click event since the consumeoutsideclicks of this panel
is false.)

As a result of it, the popup menu will be reopened. In order to prevent this,
this patch will disable the MenuButton until popup is hidden by using
the popuphidden event. This popuphidden event will be fired before the click
event of MenuButton, then the click event of MenuButton will be fired after
popuphidden immediately.

MozReview-Commit-ID: 42xV0aWDmkR
2018-07-27 13:38:12 +09:00
Csoregi Natalia 0ed39a20fa Merge inbound to mozilla-central. a=merge 2018-07-27 00:58:11 +03:00
Julian Descottes 8f3d04cda8 Bug 1471540 - Make DevTools code compatible with new eslint-plugin-react;r=standard8
MozReview-Commit-ID: 1flBkghZw9
2018-07-20 14:26:45 +02:00
Brian Birtles 294b67d240 Bug 1472938 - Defer image pre-loading until idle; r=jdescottes
This should prevent introducing further delay when opening DevTools.

MozReview-Commit-ID: D9XDieFoU8a
2018-07-25 13:09:01 +09:00
Brian Birtles 3666f78ee2 Bug 1472938 - Preload images used on MenuItem labels; r=jdescottes
This is to avoid rendering for a frame or two without the menu item icons being
visible which causes flicker, particularly on lower-end machines.

MozReview-Commit-ID: Aq7AOkPwu9V
2018-07-23 13:17:24 +09:00
Brian Birtles f3895af11d Bug 1472938 - Convert MenuItem to a class; r=jdescottes
This is so that we can hook into the componentDidMount method.

MozReview-Commit-ID: 5NCDgvDPbe1
2018-07-23 13:12:40 +09:00
shindli f3d8c63e5f Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-07-26 14:21:26 +03:00
fvsch cb661494ed Bug 1476902 - all-tabs-menu contrast and hover style; r=jdescottes 2018-07-23 12:55:07 +02:00
Mantaroh Yoshinaga 0e4d2568e9 Bug 1474221 - Part 1. Allow specifying MenuItem icons from Javascript. r=birtles
This patch introduces the icon property for MenuItem. It also add padding to
allow for checkboxes only if there is at least one MenuItem using a checkbox.

MozReview-Commit-ID: CvvlR51mA53
2018-07-19 16:11:26 +09:00
Mantaroh Yoshinaga 6d02d58e96 Bug 1476502 - Remove dotted style focusring from TabBar. r=bgrins
This patch will remove the dotted style focusring from TabBar. We have same tab
bar in the toolbox, but this tab has removed this style already.
(For detail, see bug 1444793)

MozReview-Commit-ID: CyazZkvKR6H
2018-07-18 14:02:04 +09:00
Brian Birtles f65051e51d Bug 1461522 - Add Menu components; r=jdescottes
MozReview-Commit-ID: DJVU4rRYQYU
2018-06-28 15:13:06 +09:00
Jason Laster 7fe8136547 Bug 1472735 - Update Debugger Frontend v67. r=jdescottes 2018-07-02 18:10:25 -04:00
Andreea Pavel e1bb659060 Backed out changeset d56426c4190b (bug 1472735) for damp failures at debugger/simple.js on a CLOSED TREE 2018-07-03 00:28:09 +03:00
Jason Laster 0b1810baad Bug 1472735 - Update Debugger Frontend v67. r=jdescottes 2018-07-02 15:34:04 -04:00
Jason Laster cda7ae0589 Bug 1472023 - Update Debugger Frontend v66. r=dwalsh
MozReview-Commit-ID: 8FV5f3SVjUO
2018-07-02 13:17:47 -04:00
Nicolas Chevobbe d3774880f7 Bug 1469959 - Don't use relatedTarget to check if the ObjectInspector was focused by tabbing; r=bgrins.
Basically this rolls back the changes made to the reps bundle
in Bug 1463415. This change will be backported in Github later
so the fix can ride the train.
A test is added to make sure we don't regress again.

MozReview-Commit-ID: Csak2pPyTOR
2018-06-25 17:57:15 +02:00
Daisuke Akatsuka 10e6c2961d Bug 1468953: Use node bounds in viewport instead of offsets from offsetParent. r=jdescottes
MozReview-Commit-ID: nqMLetevCZ
2018-06-26 10:51:40 +09:00
Andreea Pavel 163176b1ef Merge mozilla-inbound to mozilla-central. a=merge 2018-06-20 14:28:15 +03: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
Micah Tigley 4ca55edcea Bug 1450930 - The Page Down/Up keys doesn't work after pressing Home/End keys. r=Honza,yzen 2018-06-06 11:10:49 -04:00
Yura Zenevich abb9214116 Bug 1466806 - fix RTL for tree view row expanders overlay and positioning. r=Honza
MozReview-Commit-ID: 8oPuRGIvMad
2018-06-19 10:53:45 -04:00
Mark Banner 9af64d461a Bug 1456762 - Remove now unnecessary import-globals-from statements in html files. r=mossop
Depends on D1643

MozReview-Commit-ID: 84M50HDg0wl

Differential Revision: https://phabricator.services.mozilla.com/D1644
2018-06-16 08:21:33 +00: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
David Walsh fbab78baaa Bug 1465547 - Update Debugger Frontend v61 r=jdescottes 2018-05-30 12:37:35 -05:00