Граф коммитов

933 Коммитов

Автор SHA1 Сообщение Дата
tanhengyeow 9983b8eaa6 Bug 1561553 - WebSocket frame list should hide some columns by default. r=nchevobbe
Show "Data" and "Time" column by default. Allows users to show/hide columns through the header context menu. Also ensures that least one column is shown.

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

--HG--
extra : moz-landing-system : lando
2019-08-05 07:31:10 +00:00
Krishnal Ciccolella ce015b94f1 Bug 1545356 - Hovering over 'flex' and 'grid' buttons, in the inspector view, indicates that they are clickable r=gl
I made changes to the `LOCALIZATION NOTE` in the `inspector.properties` file and updated `DISPLAY_TYPES` in the `element-editor.js` file for `flex`, `grid`, `inline-flex` and `inline-grid`.

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

--HG--
extra : moz-landing-system : lando
2019-08-03 16:31:09 +00:00
Nicolas Chevobbe b39394d528 Bug 1554857 - Add editor mode button in input. r=ladybenko.
The button is then hidden when in editor mode.
A test is added to ensure the button is displayed
when it's expected, and that clicking on it does
open the editor.

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

--HG--
extra : moz-landing-system : lando
2019-08-03 08:30:16 +00:00
David Walsh d04500a40f Bug 1463427 - Tidy up debugger strings r=jlast
I created a script (https://gist.github.com/darkwing/37ce7c59f937e36cba02fcb6711328bc) to find unused locale strings in the debugger.

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

--HG--
extra : moz-landing-system : lando
2019-08-02 00:17:24 +00:00
Julian Descottes 98a6aa7764 Bug 1554404 - Add title to disabled serviceworker buttons in aboutdebugging r=fluent-reviewers,Pike,daisuke
Depends on D38850

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

--HG--
extra : moz-landing-system : lando
2019-07-31 11:34:37 +00:00
Armando Ferreira a22a750ddc Bug 1558198 - Add history navigation buttons in Editor toolbar. r=nchevobbe
Adding History navigation to Editor toolbar

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

--HG--
extra : moz-landing-system : lando
2019-07-23 18:36:01 +00:00
Nicolas Chevobbe 41b44a849a Bug 1567370 - Add a close button to the Editor Toolbar. r=Honza.
The button display the same icon that will be used
in the console input when in inline-mode to toggle
the editor mode, active.
A test is added to ensure the button works as expected.

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

--HG--
rename : browser/themes/shared/icons/sidebars.svg => devtools/client/themes/images/webconsole/editor.svg
extra : moz-landing-system : lando
2019-07-19 14:10:06 +00:00
tanhengyeow 8f2fe89432 Bug 1555631 - WebSocket frame payload preview. r=Honza,nchevobbe
Support WebSocket frame payload preview.

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

--HG--
extra : moz-landing-system : lando
2019-07-19 13:25:30 +00:00
Armando Ferreira ac079371c1 Bug 1546347 - Message location on CSS Warnings has an erroneous title attribute. r=nchevobbe
Adding a new opcional property to Frame.js, messageSource, which will allows us to know the source of the Message. We will be using this property to display the correct tooltip message.

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

--HG--
extra : moz-landing-system : lando
2019-07-18 06:17:16 +00:00
tanhengyeow dce9db2dee Bug 1555634 - Summary stats at the bottom of Messages panel. r=Honza,nchevobbe,flod
Add summary stats at bottom of Messages panel.

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

--HG--
extra : moz-landing-system : lando
2019-07-16 18:05:35 +00:00
Julian Descottes 9ecd76c56b Bug 1539461 - Remove the old aboutdebugging codebase r=remote-debugging-reviewers,daisuke
Depends on D37863

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

--HG--
extra : moz-landing-system : lando
2019-07-16 16:24:57 +00:00
Florens Verschelde 127473ad9b Bug 1561549 - Move WebSocket type to an icon in Data column and reorder columns; r=Honza
- Remove WebSocket Type column
- Move the frame type information to the Data column as an arrow icon
- Add L10N strings for frame types and time format
- Reorder columns
- Set percentage widths for columns to give more room to data and time

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

--HG--
extra : moz-landing-system : lando
2019-07-16 14:32:53 +00:00
Maliha Islam 672aefd444 Bug 1478156 - Make color picker tooltip screen reader accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D35980

--HG--
extra : moz-landing-system : lando
2019-07-15 11:01:04 +00:00
Maliha Islam e9c7f9af44 Bug 1478156 - Add contrast ratio annotation title and info link to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32842

--HG--
extra : moz-landing-system : lando
2019-07-15 11:01:03 +00:00
Narcis Beleuzu cb456cb27d Backed out 6 changesets (bug 1478156) for dt failures on browser_html_tooltip_xul-wrapper.js . CLOSED TREE
Backed out changeset 5ca694230ffa (bug 1478156)
Backed out changeset fcc9123589fd (bug 1478156)
Backed out changeset 83a10c635fe9 (bug 1478156)
Backed out changeset a363971fffb0 (bug 1478156)
Backed out changeset 314855eab887 (bug 1478156)
Backed out changeset 041f51c9d4d1 (bug 1478156)

--HG--
rename : devtools/client/inspector/rules/test/browser_rules_colorpicker-appears-on-swatch-click-or-keyboard-activation.js => devtools/client/inspector/rules/test/browser_rules_colorpicker-appears-on-swatch-click.js
2019-07-14 05:32:45 +03:00
Maliha Islam 8029f7b024 Bug 1478156 - Make color picker tooltip screen reader accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D35980

--HG--
extra : moz-landing-system : lando
2019-07-13 18:37:48 +00:00
Maliha Islam 7739643423 Bug 1478156 - Add contrast ratio annotation title and info link to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32842

--HG--
extra : moz-landing-system : lando
2019-07-13 18:37:06 +00:00
tanhengyeow b04946d40e Bug 1555628 - Toolbar for Messages side panel. r=Honza,nchevobbe
Implement Toolbar for WebSocketsPanel.

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

--HG--
extra : moz-landing-system : lando
2019-07-12 07:37:23 +00:00
Bogdan Tara 0298725326 Backed out changeset f5d458cf80ae (bug 1555628) for ES lint failure on WebSocketsPanel.js CLOSED TREE 2019-07-11 21:05:06 +03:00
tanhengyeow be59cf7d7d Bug 1555628 - Toolbar for Messages side panel. r=Honza,nchevobbe
Implement Toolbar for WebSocketsPanel.

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

--HG--
extra : moz-landing-system : lando
2019-07-11 14:49:48 +00:00
Nicolas Chevobbe 064fd41499 Bug 1534706 - Don't focus ConfirmDialog when displaying it. r=Honza
Some people found that the ConfirmDialog was getting into their
way when typing into the console, as it was stealing the focus.
This patch fixes this by not focusing the ConfirmDialog when
we show it, so the user can still type.
This means that we now handle the dialog confirm and dismiss from
JSTerm, when the former is displayed.

Since it wasn't clear how you could close the popup, we add a close
button that makes it very obvious.

This means we can drop the key handler in the dialog as the jsterm
is always focused.
We also simply remove the feature to open the MDN link on `?` key
stroke as it's not discoverable and was the only part of the
panel where you could do such thing.

Existing tests are adapted and extended to cover the new behaviour.

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

--HG--
extra : moz-landing-system : lando
2019-07-09 12:28:38 +00:00
Yura Zenevich 459cd85753 Bug 1562194 - update <optgroup> text label audit rules and only keep the text label for optgroup from label rule. r=nchevobbe,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D36760

--HG--
extra : moz-landing-system : lando
2019-07-04 15:16:57 +00:00
Yura Zenevich a2bb375be2 Bug 1552067 - add checks section for text label audit. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D35497

--HG--
extra : moz-landing-system : lando
2019-07-04 03:36:35 +00:00
Narcis Beleuzu 60d6348455 Backed out 3 changesets (bug 1552067, bug 1518808) as per yzen`s req . CLOSED TREE
Backed out changeset e677852d2ea5 (bug 1518808)
Backed out changeset d60bcc3b1c72 (bug 1552067)
Backed out changeset 2cee1703625e (bug 1552067)

--HG--
rename : devtools/client/themes/images/error-small.svg => devtools/client/themes/images/webconsole/error.svg
rename : devtools/client/themes/images/info-small.svg => devtools/client/themes/images/webconsole/info.svg
2019-07-04 02:21:44 +03:00
Yura Zenevich 04eaa20e54 Bug 1552067 - add checks section for text label audit. r=mtigley,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D35497

--HG--
extra : moz-landing-system : lando
2019-07-03 17:25:06 +00:00
Gabriel Luong 1aa241f2d1 Bug 1550030 - Part 1: Implement the DOM mutation breakpoint context menu items in the markup view. r=loganfsmyth,jdescottes
This implements the context menu items for the DOM mutation breakpoint.
In addition, there were some server changes to:
- Update the mutationBreakpoints form for the NodeActor
- Expose the mutationBreakpoints form
- Moved the setMutationBreakpoints method from the Node spec to Walker spec
since the Node spec only consisted of getter methods. It made more sense
that the setter went into the Walker spec to be more consistent with how
the Walker and Node spec have been arranged.

Unit tests will be followed up in Part 2 immediately.

Differential Revision: https://phabricator.services.mozilla.com/D36074
2019-06-26 15:16:22 -04:00
Nicolas Chevobbe 66150262ef Bug 1519312 - Render the console input to the left of the panel when editor preference is true; r=Honza.
When the editor preference is true, a CSS class is added to
the panel that allow us to shift the layout to a CSS Grid, where
the input panel is on the left and the output on the right.

A toolbar is added to be able to execute an expression when in
editor mode.

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

--HG--
extra : moz-landing-system : lando
2019-06-27 13:13:32 +00:00
Jefry Lagrange bd7874038e Bug 1517728 - Export Console content to file. .
Add a context menu entry to export the console output to a file.
We group the 2 export entries into a submenu.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 08:28:53 +00:00
tanhengyeow 44c6145f6e Bug 1559398 - Implement table and preview sections in WebSocket side panel. r=Honza
Implement table and preview sections in WebSocket side panel.

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

--HG--
extra : moz-landing-system : lando
2019-06-28 07:24:59 +00:00
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
Gabriel Luong f65cbba81d Bug 1548703 - Rearrange the markup context menu items. r=rcaliman
This patch rearranges the second and third group of context menu items
in the markup context menu.

Differential Revision: https://phabricator.services.mozilla.com/D35675
2019-06-24 13:12:10 -04:00
David Walsh 53fb636dc3 Bug 1557782 - Update event listener breakpoints label to existing tools r=jlast
Per Harald's request

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

--HG--
extra : moz-landing-system : lando
2019-06-21 17:15:43 +00:00
Logan Smyth bf92dc5ae0 Bug 1549999 - Use notification infrastructure to implement DOM event breakpoints. r=davidwalsh
Differential Revision: https://phabricator.services.mozilla.com/D31002

--HG--
extra : moz-landing-system : lando
2019-06-19 22:27:57 +00:00
tanhengyeow 1f04945904 Bug 1555625 - Basic skeleton of side panel for WS frames. r=Honza
Implement basic skeleton of side panel for WS frames.

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

--HG--
extra : moz-landing-system : lando
2019-06-19 20:00:30 +00:00
Miriam 5a1f34625e Bug 1340971 - Use proper plural form in editor.searchResults and sourceSearch.resultsSummary1 r=davidwalsh,flod
Added proper plural form to editor.searchResults and sourceSearch.resultsSummary1. Updated the comments and IDs for the new strings as well. Replaced all instances of old string references with new string references.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 19:25:15 +00:00
Nicolas Chevobbe 63f04fee2d Bug 1545888 - Use template-styled message with placeholders as warning group labels. r=Honza.
This allows to have more meaningful warning group messages, i.e.
"Content Blocking" is turned into something like "The resource at
'<URL>' was blocked because content blocking is enabled".

This is done by parsing the message of the first warning to put
in the group, and replacing the URL with a generic placeholder.

We take this as an opportunity to decouple content blocked messages
and storage access blocked ones, as they have slightly different
meanings and consequences.

Tests are updated to match the new labels, and a new test is
added to make sure that we can have multiple warning group in a
single "page navigation" session.

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

--HG--
extra : moz-landing-system : lando
2019-06-11 13:47:37 +00:00
Razvan Caliman d83b76d0d4 Bug 1557063 - Better checks for invalid CSS when using gap, column-gap and row-gap. r=miker,fluent-reviewers,flod
Splits the checks by appropriate container:
- column-gap and gap for flex-container, grid-container and multi-column container
- row-gap only for flex container and grid container

See CSS Box Alignment: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Alignment

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

--HG--
extra : moz-landing-system : lando
2019-06-07 21:09:41 +00:00
Nicolas Chevobbe a03be2ac39 Bug 1551612 - Add componentDidCatch in Message component. r=bgrins.
This patch adds a componentDidCatch handler to the Message component
so we don't crash the whole console when a message can't be rendered.
When a message causes a crash, we display an error message instead,
asking the user to file a bug. A button allow to copy the message data
so it can be attached in the bug report.

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

--HG--
extra : moz-landing-system : lando
2019-06-10 06:22:05 +00:00
Mihai Alexandru Michis ea44e068e2 Backed out changeset e2af0f70828c (bug 1551612) for causing bc failures in webconsole.properties CLOSED TREE 2019-06-07 19:03:05 +03:00
Nicolas Chevobbe 7939b78f6c Bug 1523864 - Move filter bar layout change to the App level. r=Honza.
This makes the console code more consistent, and adds the
nice benefit of being able to check if the layout should
be modified when performing non-window-resize events that
might still impact the layout (sidebar toggle, sidebar
resizing, ...).

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

--HG--
extra : moz-landing-system : lando
2019-06-07 14:23:35 +00:00
Nicolas Chevobbe 3adf3cc47b Bug 1551612 - Add componentDidCatch in Message component. r=bgrins.
This patch adds a componentDidCatch handler to the Message component
so we don't crash the whole console when a message can't be rendered.
When a message causes a crash, we display an error message instead,
asking the user to file a bug. A button allow to copy the message data
so it can be attached in the bug report.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 13:03:48 +00:00
Belén Albeza 48588a63c9 Bug 1553110 - Part 2: Disable debugging/start links if sw cannot be debugged (multie10s) r=Ola,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D33637

--HG--
extra : moz-landing-system : lando
2019-06-07 12:58:16 +00:00
Yura Zenevich 0759de7245 Bug 1552067 - add filter and badge for text label audit type. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D33186

--HG--
extra : moz-landing-system : lando
2019-06-06 05:24:03 +00:00
Yura Zenevich a9aa355247 Bug 1552066 - add ALL filter to accessibility checks toolbar. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D33184

--HG--
extra : moz-landing-system : lando
2019-06-06 13:53:29 +00:00
Michael Ratcliffe 09cf65be17 Bug 1554841 - l10n corrections in storage inspector cookie table headers r=pbro
### Changes

#### Set 1 - Match cookie creation strings, remove "on" and capitalize.

- Expires on {icon long-arrow-right} Expires
- Last accessed on {icon long-arrow-right} Last accessed
- Created on {icon long-arrow-right} Created
- sameSite {icon long-arrow-right} SameSite

#### Set 2 - Re-add missing strings

- table.headers.cookies.isHttpOnly=HttpOnly
- table.headers.cookies.isSecure=Secure
- table.headers.cookies.hostOnly=HostOnly

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

--HG--
extra : moz-landing-system : lando
2019-06-05 13:11:00 +00:00
chujun aef340f83f Bug 1488662 Change go to line shortcut to Ctrl+G r=davidwalsh
The current “go to line” keyboard shortcut `CmdOrCtrl+;` conflicts with the “step in” shortcut. The "go to line" shortcut is replaced with the shortcut for Chrome debugger and Sublime Text: `Ctrl+G`. Upper or lower cases don’t matter.

1. Current behavior:
1a) With no file open in editor; or with a file open in editor, but not pausing at a breakpoint:
`Cmd+;` or `Cmd+Shift+;` opens the “go to line” box.

1b) Pause at a breakpoint:
`Cmd+;` runs `step in`, and also opens the “go to line” box;
`Cmd+Shift+;` runs `step over`, and also opens the “go to line” box.

2) Code changes:
2a) Create gotoLineModal.key3.
2b) Update localization note.
2b) Update snapshot test.

3) After the code changes, on macOS:
3a) With no file open in editor:
`Ctrl+G` opens the “go to line” box.

3b) With a file open, but not pausing at breakpoints:
`Ctrl+G`opens the “go to line” box; hitting `Ctrl+G` again or `escape` closes the box.

3c) Pause at a breakpoint:
`Cmd+;` or `Cmd+Shift+;` doesn’t open the “go to line” box.
`Ctrl+G` opens the “go to line” box.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 01:25:36 +00:00
Nicolas Chevobbe 54361ce6cb Bug 1551586 - Display a warning when min-width, min-height etc. are used incorrectly. r=miker,fluent-reviewers,flod.
This introduce a new form of invalid messages. Until now, all the
messages were like "X has no effect on this since it's not Y".
But in this case, the width/height properties applies to all but
a few cases, which means we can't really keep the same shape of
message (or it would be "since it's not A, B, C, D, ...).
So we're switching to a message that prints the display property
of the element ("X has no effect on this element since it has a
display of Y").
In order to do that, we need to pipe the element computed display
into the inactive tooltip.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 20:33:58 +00:00
Francis Houle 6ab927ce7f Bug 1552806 - Remove 'tabs' mention from setup page intro text. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D33114

--HG--
extra : moz-landing-system : lando
2019-06-04 16:21:04 +00:00
Nicolas Chevobbe 02dab6edec Bug 1556743 - Fix typo in warningGroup setting label. r=sole
Differential Revision: https://phabricator.services.mozilla.com/D33638

--HG--
extra : moz-landing-system : lando
2019-06-04 15:27:53 +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