Commit Graph
507 Commits
Author SHA1 Message Date
Julian Descottes 3467fcc9e2 Bug 1569495 - Stop using innerHTML in HTML Tooltip r=miker
Depends on D39644

Differential Revision: https://phabricator.services.mozilla.com/D39645
2019-07-29 11:56:59 +00:00
Julian Descottes 4a1d954727 Bug 1569495 - Stop using inline styles and inner HTML for image tooltip r=miker
Differential Revision: https://phabricator.services.mozilla.com/D39644
2019-07-29 11:46:53 +00:00
Julian Descottes b5d7bc9539 Bug 1568250 - Fix HTML tooltip auto height calculation r=miker,Maliha
The current auto height and auto width tests were not asserting the proper element.

Differential Revision: https://phabricator.services.mozilla.com/D39102
2019-07-24 11:49:32 +00:00
Gabriel Luong 12587ec458 Bug 1567276 - Refactor inspector to inspectorFront. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D38554
2019-07-18 15:33:55 -04:00
ui.manish a1aea97983 Bug 1505295 - Remove unused BarGraphWidget. r=gl 2019-07-18 14:24:57 -04:00
Maliha Islam 6630392a35 Bug 1478156 - Make color picker tooltip screen reader accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D35980
2019-07-15 11:01:04 +00:00
Maliha Islam 6ee0163ef7 Bug 1478156 - Make color picker tooltip keyboard accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D33331
2019-07-15 11:01:04 +00:00
Maliha Islam 2e7f9f0792 Bug 1478156 - Add contrast ratio annotation title and info link to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32842
2019-07-15 11:01:03 +00:00
Maliha Islam abbbdad8fd Bug 1478156 - Add color contrast span to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32491
2019-07-15 17:25:23 +00:00
Narcis Beleuzu 309cad7d16 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)
2019-07-14 05:32:45 +03:00
Maliha Islam 435e6ca00f Bug 1478156 - Make color picker tooltip screen reader accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D35980
2019-07-13 18:37:48 +00:00
Maliha Islam 85965fd2f0 Bug 1478156 - Make color picker tooltip keyboard accessible, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D33331
2019-07-13 18:37:35 +00:00
Maliha Islam 7cad67cdb1 Bug 1478156 - Add contrast ratio annotation title and info link to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32842
2019-07-13 18:37:06 +00:00
Maliha Islam 5fb22cebbe Bug 1478156 - Add color contrast span to color picker, r=yzen,gl
Differential Revision: https://phabricator.services.mozilla.com/D32491
2019-07-13 18:36:54 +00:00
Razvan Caliman 6e8dbdabc2 Bug 1554701 - Replace CssProperties.isValidOnClient() with CSS.supports() r=gl
Given that `CssProperties.isValidOnClient()` does only a client-side check for support of a CSS declaration, we can leverage the built-in `CSS.supports()` method and remove some of the inter-dependencies between the `CssProperties` object from the `CssPropertiesFront` and its consumers, `OutputParser` and `FilterWidget`.

Differential Revision: https://phabricator.services.mozilla.com/D37751
2019-07-12 15:28:29 +00:00
Julian Descottes b3dd463445 Bug 1561304 - Add border to HTML tooltip when not using XUL wrapper r=fvsch
Also changed the border radius to be consistent between doorhanger and arrow style tooltips.
There are still subtle differences between the XUL+arrow/HTML+arrow/XUL+doorhanger, but for now I would just like to fix this before we merge to 70.
Strictly using the photon shadow for doorhangers is too subtle and too inconsistent with our other tooltips, so I used shadow-20.

Differential Revision: https://phabricator.services.mozilla.com/D36767
2019-07-05 07:08:17 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Maliha Islam 7ecbfd627a Bug 1558544 - Fix CSS styling for overlapping sliders on color preview, r=gl
Differential Revision: https://phabricator.services.mozilla.com/D34924
2019-06-13 21:34:10 +00:00
Florens Verschelde 934f5032bb Bug 1560356 - Make sure we only expand one event header at a time; r=miker
Differential Revision: https://phabricator.services.mozilla.com/D35563
2019-06-21 22:19:23 +00:00
Florens Verschelde 63bf020f01 Bug 1558226 - Use theme-twisty in event tooltip headers; r=miker
- Uses theme-twisty for the triangle icon.
- Icon now has the correct orientation in RTL (handled by theme-twisty styles in common.css).
- Header rows are now always 24px tall excluding the border (before they were all 25px tall, including the first one.
- Accessible text color for event headers (dark theme, was 4.12).
- Make the event name 12px (our usual "biggish font" size, used in accordion headers and tab labels).

Differential Revision: https://phabricator.services.mozilla.com/D34385
2019-06-21 22:06:35 +00:00
Tim Nguyen b4c7c9080f Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190
2019-06-07 21:42:59 +00:00
Dorel Luca ee7075b3ec Backed out changeset 7bf9069eba43 (bug 1557674) for DevTools failures in devtools/client/storage/test/browser_storage_cookies_tab_navigation.js. CLOSED TREE 2019-06-08 00:10:09 +03:00
Tim Nguyen f6a909359a Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190
2019-06-07 19:36:00 +00:00
Michael Ratcliffe df9d24e489 Bug 1553472 - Ensure that all DevTools tooltips should conform with the Proton theme r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D32309
2019-06-06 15:09:48 +00:00
Nicolas Chevobbe 83c3232d90 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
2019-06-04 20:33:58 +00:00
Ehsan Akhgari 200d6ea9cc Bug 836176 - Part 3: Remove nsIHTMLDocument; r=farre
Differential Revision: https://phabricator.services.mozilla.com/D32925
2019-06-04 17:27:43 +00:00
Daniel Varga a4d77fe2a4 Backed out changeset 96ea626be10a (bug 1553472) fot devtools failure at devtools/client/framework/test/browser_toolbox_zoom_popup.js. On a CLOSED TREE 2019-06-04 20:45:54 +03:00
Michael Ratcliffe 52bef5e9fe Bug 1553472 - Ensure that all DevTools tooltips should conform with the Proton theme r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D32309
2019-06-03 14:38:58 +00:00
Michael Ratcliffe 9a1598732d Bug 1553471 - [Inactive CSS] Telemetry r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D32810
2019-05-28 18:03:46 +00:00
Patrick Brosset d93842478f Bug 1553451 - Lower the eslint complexity level to 20 for devtools and exlude more complex functions; r=jdescottes
We want to go back to ESLint's default complexity level so that newly introduced code is checked for complexity.
At the same time, to make that work, we're excluding all of the more complex functions for now.
We should fix them: make them less complex, and remove the eslint-disable comment.
See bug 1553449 for more information about this.

Differential Revision: https://phabricator.services.mozilla.com/D32139
2019-05-23 09:06:16 +00:00
Mihai Alexandru Michis c358baf0c3 Backed out changeset 0f9626b48a66 (bug 1553451) for linting failures. CLOSED TREE 2019-05-23 10:58:22 +03:00
Patrick Brosset 18bd75fb8c Bug 1553451 - Lower the eslint complexity level to 20 for devtools and exlude more complex functions; r=jdescottes
We want to go back to ESLint's default complexity level so that newly introduced code is checked for complexity.
At the same time, to make that work, we're excluding all of the more complex functions for now.
We should fix them: make them less complex, and remove the eslint-disable comment.
See bug 1553449 for more information about this.

Differential Revision: https://phabricator.services.mozilla.com/D32139
2019-05-23 07:07:49 +00:00
Brendan Dahl a0aed74712 Bug 1551320 - Replace all CreateElement calls in XUL documents with CreateXULElement. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D31295
2019-05-20 16:50:28 +00:00
Maliha Islam 73c4dbcc9e Bug 1478152 - Style current color picker to match new design, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D31518
2019-05-17 19:07:56 +00:00
Oriol Brufau af587a16bb Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214
2019-05-14 06:46:30 +00:00
Tim Nguyen cfc056ac1f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 17:54:16 +00:00
arthur.iakab 14865bcdb8 Backed out changeset c8a2cbf18f3c (bug 1223368) for devtools failures on browser_inspector_search-01.js CLOSED TREE 2019-05-11 20:44:42 +03:00
Tim Nguyen 8533c03502 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334
2019-05-11 16:08:13 +00:00
Michael Ratcliffe 6077013b9d 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
2019-05-10 17:03:27 +00:00
Daniel Varga cbda4e2a61 Backed out changeset a0a023dac829 (bug 1392760) for debugger failure at object-inspector/types 2019-05-06 03:14:57 +03:00
Oriol Brufau 01524204d5 Bug 1392760 - Avoid exponential behavior when inspecting nested proxies. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28214
2019-04-26 15:32:50 +00:00
Brian Grinstead 3dd68e7775 Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop
This is an autogenerated commit, generated with https://bug1546501.bmoattachments.org/attachment.cgi?id=9060222

Differential Revision: https://phabricator.services.mozilla.com/D28559
2019-04-24 19:43:57 +00:00
Florens Verschelde b97f9dc0f6 Bug 1543324 - Part 2: Rename --theme-body-color-* variables to --theme-text-color-*; r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D27107
2019-04-17 14:06:58 +00:00
Rob Wu 731bc4cb2e Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`

Differential Revision: https://phabricator.services.mozilla.com/D27802
2019-04-17 19:03:17 +00:00
Julian Descottes cba4558d6a Bug 1532993 - Use DOMHelpers to wait for iframe load in widgets/Graphs.js;r=ochameau
Depends on D26900
Fixes the blank chart and load issues for the old perf panel in about:devtools-toolbox (or type=content)

Differential Revision: https://phabricator.services.mozilla.com/D26919
2019-04-12 07:33:48 +00:00
Andreea Pavel d29ef7f195 Backed out 4 changesets (bug 1532993, bug 1538731) for failing dt on a CLOSED TREE
Backed out changeset f7050f15a28d (bug 1532993)
Backed out changeset f1615630af59 (bug 1532993)
Backed out changeset ff05581f5fe0 (bug 1538731)
Backed out changeset 769d9b3bdd4e (bug 1538731)
2019-04-11 16:06:27 +03:00
Julian Descottes 4e3322bc67 Bug 1532993 - Use DOMHelpers to wait for iframe load in widgets/Graphs.js;r=ochameau
Depends on D26900
Fixes the blank chart and load issues for the old perf panel in about:devtools-toolbox (or type=content)

Differential Revision: https://phabricator.services.mozilla.com/D26919
2019-04-11 09:03:41 +00:00
Julian Descottes 5ec262dd9d Bug 1541970 - Set incontentshell=false for devtools popups and panels r=bgrins
Depends on D26211

Differential Revision: https://phabricator.services.mozilla.com/D26664
2019-04-10 05:16:20 +00:00
Oana Pop Rus 50e01669f5 Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-03-28 19:41:57 +02:00
Brian Hackett cc5c402b0d Bug 1538397 - Don't use source actor for event listeners with mapped sources, r=ochameau. 2019-03-28 06:50:41 -06:00