Commit Graph

975 Commits

Author SHA1 Message Date
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
Greg Tatum
eccc1fe1ef Bug 1307227 - Integrate the profiler popup widget into the browser; r=jdescottes
This commit takes the popup, and wires it up the button using the
CustomizableUI interface. It is integrated with the DevTools initialization
code.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 15:54:18 +00:00
David Walsh
2db41012f6 Bug 1157817 - Show blocked requests in the Network Monitor r=Honza,Harald
Displays blocked requests in the Network monitor request listing, providing a reason for why the request was blocked based on response codes provided b nsILoadInfo.idl

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

--HG--
extra : moz-landing-system : lando
2019-05-28 12:13:08 +00:00
lloan
5e373b947c Bug 1341155 - Show full path in File column in developer tools. r=Honza
New column, defaulted to hidden, to show full URL for resource in netMonitor panel.

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

--HG--
extra : moz-landing-system : lando
2019-05-23 12:24:57 +00:00
Patrick Brosset
5449744a67 Bug 1551812 - New InactiveCSS rule for vertical-align; r=flod
Differential Revision: https://phabricator.services.mozilla.com/D31235

--HG--
extra : moz-landing-system : lando
2019-05-22 14:56:48 +00:00
Ola Gasidlo
ca0c3895a1 Bug 1520191 - Polish style for error and warning messages r=jdescottes,ladybenko,flod
Wrapped error log in <details>

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

--HG--
extra : moz-landing-system : lando
2019-05-21 11:14:47 +00:00
Julian Descottes
62d2b67271 Bug 1553029 - Update WebIDE deprecation message to stop mentioning release 69 r=flod,daisuke
There was a last minute schedule change for remote debugging release and we will not ride the trains with Firefox 68
The deprecation schedule is therefore shifting by one release. We update the deprecation message in WebIDE here and we should
uplift this change to beta if possible. The patch was written in order to be uplifted, we can go for a simpler version if the
uplift is a no go.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 08:48:51 +00:00
Sylvestre Ledru
fb63889274 Bug 1552430 - Fix some typos using codespell trunk r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D31589

--HG--
extra : moz-landing-system : lando
2019-05-17 15:56:50 +00:00
Daisuke Akatsuka
09ae5ca886 Bug 1544813: Remove extension debug setting. r=jdescottes,flod
Depends on D31223

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

--HG--
extra : moz-landing-system : lando
2019-05-16 06:10:52 +00:00
Yura Zenevich
fb43a45ca1 Bug 1551573 - add beta bubble text to accessibility checks toolbar in Firefox 68. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D31163

--HG--
extra : moz-landing-system : lando
2019-05-16 17:15:40 +00:00
Ciure Andrei
555e98631c Backed out 3 changesets (bug 1544813) for causing debugger test to perma fail CLOSED TREE
Backed out changeset 67e719e02573 (bug 1544813)
Backed out changeset 6a315be5f16f (bug 1544813)
Backed out changeset ac87e6ddded6 (bug 1544813)
2019-05-16 09:09:04 +03:00
Daisuke Akatsuka
9ed2f6bc61 Bug 1544813: Remove extension debug setting. r=jdescottes,flod
Depends on D31223

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

--HG--
extra : moz-landing-system : lando
2019-05-16 05:41:03 +00:00
Belén Albeza
5192e34081 Bug 1540110 - Add help text with links to mdn in the Setup page. r=jdescottes,daisuke,Ola,Harald,flod
Differential Revision: https://phabricator.services.mozilla.com/D30649

--HG--
extra : moz-landing-system : lando
2019-05-15 12:29:57 +00:00
Florens Verschelde
cdb0ff84d7 Bug 1550040 - Add warning icon to contrast warning badge; r=yzen,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D30459

--HG--
extra : moz-landing-system : lando
2019-05-14 19:05:48 +00:00
Christoph Walcher
d396718f90 Bug 1530138 - Added resend option in WebConsole r=nchevobbe,Honza
Added resend option in WebConsole

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

--HG--
extra : moz-landing-system : lando
2019-05-14 12:47:08 +00:00
Yura Zenevich
b8d8b8136d Bug 1550542 - make a sentence about no checks found less confusing. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D30596

--HG--
extra : moz-landing-system : lando
2019-05-14 12:27:53 +00:00
Yura Zenevich
4ba1b5ae4c Bug 1549397 - add progress indicator to accessibility panel audit. r=yulia,flod
Differential Revision: https://phabricator.services.mozilla.com/D30454

--HG--
extra : moz-landing-system : lando
2019-05-13 14:01:16 +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
Michael Ratcliffe
ba0ce74c15 Bug 1306054 - Display an indicator on properties with inactive CSS r=rcaliman
### Summary of Changes

1. Added `element-style.js::refreshUnusedCssAll()`:
   - This method refreshes the CSS declarations for every property change and then calls  `element-style.js::_updatePropertyUsed()` for each pseudo element.
2. Added `element-style.js::_updatePropertyUsed()`:
   - This method simply updates the unused CSS HTML for each property that needs it.
3. Added `alerticon-unused.svg`.
4. A tiny bit of tidying in `devtools/client/themes/rules.css`:
   - Added blank lines before comments.
   - Changed `0px` to `0`;
   - Merged both the `#ruleview-class-panel .classes` rules.
   - Added used and unused CSS styles.
   - Hooked `InactivePropertyHelper` into `devtools/server/actors/styles.js`
5. `devtools/server/actors/utils/inactive-property-helper.js` contains the actual unused CSS engine.
6. This feature exposed a race condition inside `head.js::assertShowPreviewTooltip()`. It was mousing over an element and sometimes the tooltip emitted "shown" before we added the listener. This is now fixed.

### Try

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

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

--HG--
extra : moz-landing-system : lando
2019-05-07 14:58:50 +00:00
David Walsh
33b9669f6a Bug 1547334 - Show logpoint icon in webconsole r=Harald
Differential Revision: https://phabricator.services.mozilla.com/D29040

--HG--
extra : moz-landing-system : lando
2019-05-08 19:49:16 +00:00
Razvan Caliman
d0f3354428 Bug 1093953 - (Part 1) Make CSS warnings expandable to show affected DOM elements. r=Honza
This patch builds on [Bug 1537876](https://bugzilla.mozilla.org/show_bug.cgi?id=1537876) which associates CSS selectors with error messages where applicable.

This patch introduces a new React component, `CSSWarning`, for messages of type CSS. It forks the`PageError` component which was shared for `LOG` messages of type `JAVASCRIPT` and type `CSS`.

The `CSSWarning` component is expandable when the message has an associated CSS selector. When expanded, it runs a `document.querySelectorAll()` command to list all elements matching the selector. Clicking on any of the elements in the result jumps to the Inspector and select the corresponding node in the markup view.

Not all errors have associated CSS selectors. Not all selectors match elements. The errors/warnings are a result of the CSS Parser; there is no guarantee that the CSS rule is used anywhere on the document. The query may return an empty `NodeList`.

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

--HG--
extra : moz-landing-system : lando
2019-05-03 13:01:27 +00:00
Julian Descottes
6cc021278c Bug 1539456 - part1: Rename Service Workers menu-item to Remote Debugging r=Ola,flod
Removed the Service Workers menu item, added Remote Debugging instead. Remote Debugging is displayed just above WebIDE

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

--HG--
extra : moz-landing-system : lando
2019-05-03 11:41:24 +00:00
Razvan Maries
f88dffff7e Backed out 2 changesets (bug 1306054) for l10n issues.
Backed out changeset 88fb590040c4 (bug 1306054)
Backed out changeset 4369c5635972 (bug 1306054)
2019-05-01 13:27:12 +03:00
Michael Ratcliffe
e2f2e51cd9 Bug 1306054 - Display an indicator on properties with inactive CSS r=rcaliman
### Summary of Changes

1. Added `element-style.js::refreshUnusedCssAll()`:
   - This method refreshes the CSS declarations for every property change and then calls  `element-style.js::_updatePropertyUsed()` for each pseudo element.
2. Added `element-style.js::_updatePropertyUsed()`:
   - This method simply updates the unused CSS HTML for each property that needs it.
3. Added `alerticon-unused.svg`.
4. A tiny bit of tidying in `devtools/client/themes/rules.css`:
   - Added blank lines before comments.
   - Changed `0px` to `0`;
   - Merged both the `#ruleview-class-panel .classes` rules.
   - Added used and unused CSS styles.
   - Hooked `InactivePropertyHelper` into `devtools/server/actors/styles.js`
5. `devtools/server/actors/utils/inactive-property-helper.js` contains the actual unused CSS engine.
6. This feature exposed a race condition inside `head.js::assertShowPreviewTooltip()`. It was mousing over an element and sometimes the tooltip emitted "shown" before we added the listener. This is now fixed.

### Try

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

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

--HG--
extra : moz-landing-system : lando
2019-04-29 13:59:50 +00:00
Julian Descottes
d17c4c1bc1 Bug 1500354 - Add title to about:devtools-toolbox tabs r=ladybenko
Depends on D28964

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

--HG--
extra : moz-landing-system : lando
2019-04-30 11:19:49 +00:00
Narcis Beleuzu
f1b40d7c59 Backed out 3 changesets (bug 1500354) for dt failures on browser_aboutdebugging_serviceworker_timeout.js . CLOSED TREE
Backed out changeset 6596c844c27e (bug 1500354)
Backed out changeset dbb2526ae6eb (bug 1500354)
Backed out changeset e9e6acc1b0cc (bug 1500354)
2019-04-30 02:04:43 +03:00
Julian Descottes
ebf9be668a Bug 1500354 - Add title to about:devtools-toolbox tabs r=ladybenko
Depends on D28964

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

--HG--
extra : moz-landing-system : lando
2019-04-29 20:01:50 +00:00
Julian Descottes
ad63201618 Bug 1537992 - Rename Profiler button and modal in about:debugging r=Ola,flod
Differential Revision: https://phabricator.services.mozilla.com/D29135

--HG--
extra : moz-landing-system : lando
2019-04-29 15:31:34 +00:00
Hemakshi Sachdev
e8ed10a457 Bug 1542172 - Firefox freezes when inspecting large POST data. r=Honza
Truncate the Request Payload if it exceeds the `devtools.netmonitor.requestBodyLimit` pref and show `Request has been truncated` error in the Params Tab

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

--HG--
extra : moz-landing-system : lando
2019-04-23 13:30:42 +00:00
Ola Gasidlo
b354995c2a Bug 1520142 - Adding closing button to message component + sidebar, r=jdescottes,ladybenko,flod
Added optional closing button to message component and sidebar info message for `USB enabled` notification

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

--HG--
extra : moz-landing-system : lando
2019-04-23 10:54:02 +00:00
Gurzau Raul
52b651e168 Merge inbound to mozilla-central. a=merge 2019-04-20 12:54:53 +03:00
J. Ryan Stinnett
4c41f2a87f Bug 1151368 - Unblock requests by URL in DevTools. r=ochameau
This is nearly the same the first patch for blocking, but adds the unblock
option as well.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 18:25:38 +00:00
J. Ryan Stinnett
cc8110e6ff Bug 1151368 - Display blocked requests in Network Monitor. r=ochameau,Honza
This updates the request list to indicate a request was blocked by marking the
entire request item and also replaces transferred size column with "blocked by
DevTools". In the future, we may show other reasons for blocking in this way,
such as CORS, etc.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 18:25:29 +00:00
J. Ryan Stinnett
d4c5593416 Bug 1151368 - Block requests by URL in DevTools. r=ochameau
This is a very basic form of request blocking for the Network Monitor. It only
supports blocking a request via right-click. This change adds the minimal UI and
server support to block the request.

There is no UI to indicate what happened to the request yet, so it will just
look like a "confused" request that never started. Future patches will improve
from here.

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

--HG--
extra : moz-landing-system : lando
2019-04-19 18:25:19 +00:00
Mrigank Krishan
f2d62fc237 Bug 1540054 - Create fetch request from selection. r=Honza
add "Copy as fetch" context menu item

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

--HG--
extra : moz-landing-system : lando
2019-04-19 09:31:50 +00:00
Daisuke Akatsuka
fe65454bf0 Bug 1540609: Show the connection timeout message. r=jdescottes,flod
Depends on D27645

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

--HG--
extra : moz-landing-system : lando
2019-04-18 01:33:06 +00:00
Yura Zenevich
1386ff09ea Bug 1543667 - adding a11y checks toolbar to a11y panel. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D27228

--HG--
extra : moz-landing-system : lando
2019-04-16 14:53:32 +00:00
Yura Zenevich
08eb4962e6 Bug 1536802 - add contrast badge for accessible objects in accessibility tree. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D26460

--HG--
extra : moz-landing-system : lando
2019-04-16 14:53:07 +00:00
jaril
ba5fe03c08 Bug 1537884 - Reflected the disabled breakpoint state in breakpoint list and gutter r=davidwalsh,flod
Added new visual markers for the Breakpoints pane and the Editor's gutter to reflect the disabled breakpoint state.

Changes (to the disabled breakpoint state):
- removed syntax highlighting and faded all text to grey in the Breakpoints pane
- changed breakpoint marker colors in the gutter to grey
- changed column breakpoint marker colors in the gutter to grey

Image: https://user-images.githubusercontent.com/15959269/55636505-01961c00-5791-11e9-9f6d-84fbe153d55f.png

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

--HG--
extra : moz-landing-system : lando
2019-04-10 19:40:56 +00:00
Nicolas Chevobbe
adc0b4a5e5 Bug 1260877 - Display a Show content messages checkbox in Browser Console. r=bgrins.
A preference is added to enable this feature, another one
to store the last value of the checkbox.
When unchecked, the console hides all the messages that
don't originate from a chrome contect, via the `chromeContext`
property on the message.

Since we already have a test to check that content messages are
displayed in the console output, we use it to assert the
effects of the "Show content messages" checkbox.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 09:09:01 +00:00
Razvan Maries
37613b6718 Backed out 3 changesets (bug 1260877) for perma dt fails on devtools/client/webconsole/test/fixtures/stub-generators/browser_webconsole_check_stubs_page_error.js. CLOSED TREE
Backed out changeset 10fd2d1f0fa2 (bug 1260877)
Backed out changeset e4f28c656165 (bug 1260877)
Backed out changeset 17059c813d40 (bug 1260877)
2019-04-16 10:09:37 +03:00
Julian Descottes
2cba0f563d Bug 1505289 - Show unplugged USB devices in about:debugging r=Ola,ladybenko,flod
Depends on D25779
To avoid confusion with connection/disconnection to runtimes, I use "unplugged" here. Makes sense for USB, might not make sense of we extend it to other connection types

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

--HG--
extra : moz-landing-system : lando
2019-04-16 06:36:09 +00:00
Nicolas Chevobbe
7a0a699ffd Bug 1260877 - Display a Show content messages checkbox in Browser Console. r=bgrins.
A preference is added to enable this feature, another one
to store the last value of the checkbox.
When unchecked, the console hides all the messages that
don't originate from a chrome contect, via the `chromeContext`
property on the message.

Since we already have a test to check that content messages are
displayed in the console output, we use it to assert the
effects of the "Show content messages" checkbox.

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

--HG--
extra : moz-landing-system : lando
2019-04-16 05:32:49 +00:00
Micah Tigley
fb733b5704 Bug 1536808 - Add ability to edit devices r=gl
Differential Revision: https://phabricator.services.mozilla.com/D22180

--HG--
extra : moz-landing-system : lando
2019-04-10 17:37:33 +00:00
Belén Albeza
35dc9ae4f5 Bug 1539344 - Part 2: display target type icon in DebugTargetInfo component r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D25375

--HG--
extra : moz-landing-system : lando
2019-04-10 16:02:44 +00:00
Julian Descottes
7abb2d608a Bug 1538632 - Show a deprecation message inside of WebIDE;r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D26085

--HG--
extra : moz-landing-system : lando
2019-04-10 06:23:48 +00:00
Jason Laster
28fe41e07b Bug 1532319 - Log Points should have context. r=davidwalsh
This has some fun wins

- colored prompt
- multiline textarea
- default value for log points

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

--HG--
extra : moz-landing-system : lando
2019-04-09 22:42:06 +00:00
Cosmin Sabou
a0d1e27a85 Backed out 3 changesets (bug 1539344) for devtools failures on browser_toolbox_target.js. CLOSED TREE
Backed out changeset 878f78400ed7 (bug 1539344)
Backed out changeset 8b3d1e3ae296 (bug 1539344)
Backed out changeset 29b64aed3474 (bug 1539344)
2019-04-09 14:03:07 +03:00
Belén Albeza
f142e50fd7 Bug 1539344 - Part 2: display target type icon in DebugTargetInfo component r=jdescottes,Ola
Differential Revision: https://phabricator.services.mozilla.com/D25375

--HG--
extra : moz-landing-system : lando
2019-04-08 12:52:03 +00:00
Micah Tigley
270557bf86 Bug 1534984 - Add a button for toggling print styles simulation in the Rule View toolbar r=gl
Differential Revision: https://phabricator.services.mozilla.com/D25142

--HG--
extra : moz-landing-system : lando
2019-04-08 20:22:12 +00:00
Dorel Luca
ca1e4e263d Backed out changeset 4fef2150bef9 (bug 1534984) for DevTools Failures in devtools/client/responsive.html/test/browser/browser_toolbox_swap_browsers.js. CLOSED TREE 2019-04-08 19:23:02 +03:00
Micah Tigley
a17d89a9d3 Bug 1534984 - Add a button for toggling print styles simulation in the Rule View toolbar r=gl
Differential Revision: https://phabricator.services.mozilla.com/D25142

--HG--
extra : moz-landing-system : lando
2019-04-08 14:58:57 +00:00
Hemakshi Sachdev
6c85a24a58 Bug 1538171 - Remove the style-editor-options-popup XUL menupopup from the StyleEditor and use the JS Menu API instead. r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D26075

--HG--
extra : moz-landing-system : lando
2019-04-08 13:16:46 +00:00
Laphets
62b3b67137 Bug 1442249 - Add Copy context menu to PropertiesView. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D23770

--HG--
extra : moz-landing-system : lando
2019-04-04 16:57:22 +00:00
Razvan Caliman
39477782f7 Bug 1536237 - Add support for letter spacing in Font Editor. r=gl
- Reads the value for the letter-spacing CSS property and shows it in the Font Editor. When it is default, show the "normal" identifier. As soon as the user tries to edit it using the value slider, switch to an em-based value.

- Tweaks the unit conversion method to support letter-spacing: using correct reference node for em units, returning high-precision results even for pixels (allow sub-pixel precision)

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

--HG--
extra : moz-landing-system : lando
2019-04-02 17:51:50 +00:00
Daisuke Akatsuka
9439d08d5c Bug 1505131: Show warning when the connecting is taking time. r=jdescottes,flod
Depends on D25033

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

--HG--
extra : moz-landing-system : lando
2019-04-02 06:22:33 +00:00
Daisuke Akatsuka
5783c1a339 Bug 1505131: Show error message when the connecting was failed. r=jdescottes,flod
Depends on D25032

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

--HG--
extra : moz-landing-system : lando
2019-04-02 06:44:34 +00:00
Daisuke Akatsuka
cde6cfbbf8 Bug 1505131: Change the label and status of connection button when start to connect. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D25032

--HG--
extra : moz-landing-system : lando
2019-04-02 06:21:23 +00:00
shindli
ebbe440e94 Backed out changeset e78a1f8b81db (bug 1536237) for ES lint failure in /builds/worker/checkouts/gecko/devtools/client/inspector/fonts/fonts.js CLOSED TREE 2019-04-01 14:38:48 +03:00