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

13022 Коммитов

Автор SHA1 Сообщение Дата
Michael Ratcliffe cdd7f08968 Bug 1548240 - Fix browser_rules_inactive_css_(flexbox|grid).js on Beta r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D30932

--HG--
extra : moz-landing-system : lando
2019-05-13 16:07:00 +00:00
Michael Ratcliffe 1390ecd567 Bug 1548240 - Disable test temporarily r=pbro
Differential Revision: https://phabricator.services.mozilla.com/D30925

--HG--
extra : moz-landing-system : lando
2019-05-13 15:17:43 +00:00
Nicolas Chevobbe 1f7d966347 Bug 1550791 - Re-enable commented mocha test. r=jdescottes.
The test was disabled in Bug 1535484 because it was failing.
To fix the test, we need to pass a dispatch prop to the
EvaluationResult component.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 14:27:28 +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
Nicolas Chevobbe bf28677acd Bug 1493361 - Use StringRep to render PageError message. r=Honza.
This allows us to benefit from the linkification that
is done there. We crop the URL at 120 chars for now. We might
consider bumping this up depending on the feedback we get.

We add both a mocha and a mochitest to make sure this work as expected.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 12:58:33 +00:00
Nicolas Chevobbe 5638fc9b73 Bug 1493361 - Add a `urlCropLimit` prop in StringRep. r=Honza.
This new prop allow us to define a maximum length for indivual
URLs (as opposed to `cropLimit`, which sets it for the whole text).
The URL regex is also modified to be able to linkify messages
wrapped in curly quotes.
Some tests are added to ensure we handle this prop as expected.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 12:58:24 +00:00
Julian Descottes 3e59924147 Bug 1549970 - Add test for aboutdebugging connection_attempt telemetry events r=daisuke
Depends on D30373

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

--HG--
extra : moz-landing-system : lando
2019-05-13 12:02:28 +00:00
Julian Descottes a2fc32b207 Bug 1549970 - Record telemetry events for about:debugging connection attempts r=daisuke,janerik
Differential Revision: https://phabricator.services.mozilla.com/D30373

--HG--
extra : moz-landing-system : lando
2019-05-13 12:02:40 +00:00
Julian Descottes 5480b6bb57 Bug 1551167 - Move import of mochitest/helpers/context.js to test instead of head.js r=pbro
Importing scripts in shared head files is hard to maintain because it forces all browser ini that use the shared file to whitelist all its imports.
The debugger context helper is almost unused in the inspector, so it would be easier to just import it in the few tests that require it.
Also removed the whitelist entry in rules' browser.ini, no test in this suite used it.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 09:49:24 +00:00
Julian Descottes 34e70eb588 Bug 1550827 - Fix debugger XUL popup creation logic r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30741

--HG--
extra : moz-landing-system : lando
2019-05-12 18:51:09 +00:00
Tim Nguyen f6fb609705 Bug 1223368 - Followup: fix browser_inspector_search-01/06.js failures on a CLOSED TREE. r=me 2019-05-11 21:00:17 +02:00
Tim Nguyen fef5483c4f Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 17:54:16 +00:00
arthur.iakab 59ea6f2ddc 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 d2328a28a9 Bug 1223368 - Refactor searchbox style to be consistent across tools. r=fvsch,gl,Honza,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D28334

--HG--
extra : moz-landing-system : lando
2019-05-11 16:08:13 +00:00
Julian Descottes 9af087cfa9 Bug 1535484 - Add proper logs for node-devtools test suite r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30630

--HG--
extra : moz-landing-system : lando
2019-05-10 22:21:26 +00:00
Yura Zenevich 8f15becb4f Bug 1548241 - add telemetry for audit filter activation in accessibility panel. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D29490

--HG--
extra : moz-landing-system : lando
2019-05-01 20:16:24 +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 31429a113a Bug 1306054 - [inactive CSS] Fix current tests and add new test r=rcaliman
### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=0bad22682ebfa917a91e9b95dab5345093f68d79

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

--HG--
extra : moz-landing-system : lando
2019-05-07 14:59:05 +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
Dorel Luca a6a03d7eb9 Backed out changeset 865ec5a708ba (bug 1535484) for ESlint failure. CLOSED TREE 2019-05-10 20:08:37 +03:00
Julian Descottes ae042decfb Bug 1535484 - Add proper logs for node-devtools test suite r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30630

--HG--
extra : moz-landing-system : lando
2019-05-10 16:42:02 +00:00
David Walsh e8f079b017 Bug 1549987 - Improve scrolling feel for quick open r=jlast
Removes the smoothscrolling for QuickOpen

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

--HG--
extra : moz-landing-system : lando
2019-05-10 15:08:40 +00:00
Miriam 3fddf37bb4 Bug 1537740 highlight from location to end of current token when paused on breakpoint
With the changes I made, any time the debugger is paused, only the token directly after the column breakpoint is highlighted. My commit also changes highlighting rules for debug lines without column breakpoints. I collected examples in the document below demonstrating cases with and without column breakpoints.

https://docs.google.com/document/d/1w9kaAzVgns5oQnONTPuPiREyhaq6NGd4mp6yvVUEU1Y/edit?usp=sharing

I changed one CSS file because without that change, the next column breakpoint after the token would also be highlighted which was misleading.

I would appreciate any feedback on these changes. Thank you!

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

--HG--
extra : moz-landing-system : lando
2019-05-09 21:19:54 +00:00
Csoregi Natalia 7704517355 Backed out changeset f005c5114e06 (bug 1535484) for node devtools failures. CLOSED TREE 2019-05-10 17:48:51 +03:00
Julian Descottes 83aaa47d89 Bug 1535484 - Add proper logs for node-devtools test suite r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30630

--HG--
extra : moz-landing-system : lando
2019-05-10 14:31:49 +00:00
Julian Descottes dfb2622843 Bug 1548015 - Skip browser_aboutdebugging_devtoolstoolbox_shortcuts on ccov r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D30634

--HG--
extra : moz-landing-system : lando
2019-05-10 13:58:33 +00:00
Kestrel 3bd557d46f Bug 1547937 - Fix old about:debugging backgrounds and colors for dark mode. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D29335

--HG--
extra : moz-landing-system : lando
2019-05-09 18:27:47 +00:00
shindli bbb97fdfb0 Backed out changeset 6d527b0b37b4 (bug 1549987) for debugger failure CLOSED TREE 2019-05-09 21:55:04 +03:00
David Walsh 2fe301aa48 Bug 1549987 - Improve scrolling feel for quick open r=jlast
Removes the smoothscrolling for QuickOpen

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

--HG--
extra : moz-landing-system : lando
2019-05-09 16:44:41 +00:00
Sorin Davidoi 23371408b1 Bug 1547821 - Sync 133 - Improve Quick Open performance r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30306

--HG--
extra : moz-landing-system : lando
2019-05-09 16:09:47 +00:00
derek-li 7ed549152a Bug 1547821 - Sync 133 - Ensure secondary pan splitter takes up entire height r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30305

--HG--
extra : moz-landing-system : lando
2019-05-09 16:09:43 +00:00
Sorin Davidoi 97bb455ae6 Bug 1547821 - Sync 133 - Don't manage focus via JavaScript r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30304

--HG--
extra : moz-landing-system : lando
2019-05-09 16:09:38 +00:00
Sebastian Hengst e5d127bbdb Bug 1547821 - Sync 133 - Use dedicated accesskey for editing log points r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30302

--HG--
extra : moz-landing-system : lando
2019-05-09 16:09:34 +00:00
Krishnal Ciccolella a021e45135 Bug 1547821 - Sync 133 - Changed gap placement on popover orientation-right r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30301

--HG--
extra : moz-landing-system : lando
2019-05-09 16:09:30 +00:00
Derek Li 10ac3a74c5 Bug 1547821 - Sync 133 - Remove white bottom bar from debugger r=jlast
Differential Revision: https://phabricator.services.mozilla.com/D30300

--HG--
extra : moz-landing-system : lando
2019-05-09 16:11:51 +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
Julian Descottes 6d85f4e2fa Bug 1549940 - Close about:debugging messages when clicking anywhere on the close button r=Ola
Simply moved the callback from the icon to the button and updated the test.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 12:59:00 +00:00
Julian Descottes ff8f2e78c9 Bug 1543940 - Apply devtools framework menu changes to Debugger menu; r=jlast
Depends on D29887

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:37:39 +00:00
Julian Descottes 99dfc67a31 Bug 1543940 - Remove useTopLevelWindow option from DevTools menu/utils.js helper r=ochameau
Depends on D27696

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:37:01 +00:00
Julian Descottes 1a36f3e730 Bug 1543940 - Update tests to use toolbox.topDoc to query context-menu elements r=ochameau
Depends on D27695

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:36:37 +00:00
Julian Descottes 048903ea35 Bug 1543940 - Use the toolbox top window for context menus r=ochameau
Depends on D28036

If a context menu is opened in the toolbox document when running in a frame with type=content, keyboard navigation will not move to the context menu when it's opened.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:36:04 +00:00
Julian Descottes 039d3e7c13 Bug 1543940 - menu.popup() should take a document argument instead of toolbox r=ochameau
Depends on D27693

Menu::popup and popupAtZoom are expecting a toolbox argument as last argument.
However, half of the callsites do not have access to the toolbox and just pass
a { doc } object. This is misleading when trying to work on menu.js because you
cannot rely on toolbox APIs.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:35:36 +00:00
Julian Descottes d66a731d54 Bug 1543940 - Rely on chromeEventHandler for toolboxContextMenu events r=ochameau
Using chromeEventHandler will allow us to catch events fired from any frame.
By default when DevTools are in a type=chrome frame, events also bubble across frames.
With type=content this is no longer the case.

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

--HG--
extra : moz-landing-system : lando
2019-05-08 21:35:02 +00:00
Oana Pop Rus 443bc6002b Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-09 00:58:43 +03:00
Oana Pop Rus 6934ea323a Merge inbound to mozilla-central. a=merge 2019-05-09 00:50:52 +03:00
Daisuke Akatsuka b3a9aace35 Bug 1539688: Add a test which disables local tab debugging. r=jdescottes
Depends on D30315

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

--HG--
extra : moz-landing-system : lando
2019-05-08 07:18:39 +00:00
Daisuke Akatsuka b88985d8f2 Bug 1539688: Avoid to call listTabs() if the tab category does not display. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D30315

--HG--
extra : moz-landing-system : lando
2019-05-08 08:54:39 +00:00
jaril b7ba159b7a Bug 1549777 - Disable cursor events on preview bracket-arrow. r=jlast
The original bug was being caused by a mouseleave from the token and mouseenter into the bracket arrow being triggered immediately after the preview was rendered. This appears less often on longer variable names, but happen all the time for single character variable names.

The problem no longer persists after removing cursor events from the bracket arrow.

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

--HG--
extra : moz-landing-system : lando
2019-05-07 21:13:11 +00:00
Emilio Cobos Álvarez 69d2f19cf4 Bug 1538101 - followup: Tweak source-mapped.scss and friends so that browser_webconsole_sourcemap_css.js keeps receiving a warning. r=orange
CLOSED TREE
2019-05-08 22:03:31 +02:00
Andreea Pavel 95a481edab Backed out 5 changesets (bug 1543940) for failing browser_menu_api.js on a CLOSED TREE
Backed out changeset aaa0f827616a (bug 1543940)
Backed out changeset 590b72185b69 (bug 1543940)
Backed out changeset 42e2136f684f (bug 1543940)
Backed out changeset a66967f17042 (bug 1543940)
Backed out changeset b1e6e932873c (bug 1543940)
2019-05-08 20:49:43 +03:00