Commit Graph

3234 Commits

Author SHA1 Message Date
Daisuke Akatsuka
a65a1cf8c8 Bug 1641545: Enable the pref for compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D77389
2020-05-29 09:01:38 +00:00
Julian Descottes
3f3837ccf9 Bug 1641162 - Use an array of types as argument for TargetList::getAllTargets r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D77003
2020-05-27 13:54:35 +00:00
Nicolas Chevobbe
861b7dcfe7 Bug 1640894 - Rename ResourceWatcher [un]watch to [un]watchResources. r=jdescottes.
This is more consistent with what we have in other watch-like API.

Differential Revision: https://phabricator.services.mozilla.com/D76843
2020-05-27 13:08:14 +00:00
Daisuke Akatsuka
ed0553d5b2 Bug 1639454: Introduce OPENED_COUNT and TIME_ACTIVE_SECONDS telemetry for the compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76261
2020-05-27 07:09:22 +00:00
Bogdan Tara
289f25408c Backed out changeset 2cb92b52fb42 (bug 1639454) for telemetry related bustages CLOSED TREE 2020-05-27 02:18:35 +03:00
Daisuke Akatsuka
36563c2de3 Bug 1639454: Introduce OPENED_COUNT and TIME_ACTIVE_SECONDS telemetry for the compatibility panel. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76261
2020-05-21 13:28:01 +00:00
Daisuke Akatsuka
ce440098b3 Bug 1639166: Add test that checks to update after selecting the panel again. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76656
2020-05-26 01:43:44 +00:00
Daisuke Akatsuka
2244e12045 Bug 1639166: Avoid updating if no changes. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76655
2020-05-26 01:43:42 +00:00
Daisuke Akatsuka
411ce6fdc9 Bug 1639135: Add test for uniqueness of default browsers. r=rcaliman
Depends on D76645

Differential Revision: https://phabricator.services.mozilla.com/D76646
2020-05-25 09:35:34 +00:00
Daisuke Akatsuka
77349bcc21 Bug 1639135: Address browser data that have the same id and status. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D76645
2020-05-25 09:36:41 +00:00
Kriyszig
781894a0f8 Bug 1635768 - Moved MDNCompatibility library to devtools/shared r=mtigley,daisuke
The MDNCompatibility library will be shared between the upcoming
Compatibility Actor and the Compatibility Panel in the inspector.
This library is necessary for tests in Compatibility Panel and
hence is being moved to the devtools/shared looking at it's
requirements in client as well as the devtools/server/actors

Differential Revision: https://phabricator.services.mozilla.com/D75998
2020-05-20 12:54:10 +00:00
Daisuke Akatsuka
25024d453e Bug 1639231: Send utm parameters. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D76084
2020-05-20 05:54:18 +00:00
Daisuke Akatsuka
af95b72695 Bug 1637561: Introduce dictionary argument to 'watch' function. r=ochameau,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D75482
2020-05-18 08:31:30 +00:00
Nicolas Chevobbe
2834d00a38 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Razvan Maries
f5f48cab39 Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Nicolas Chevobbe
8140fccf69 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Daisuke Akatsuka
6bd4831b79 Bug 1637540: Add test for a property defined with prefix. r=rcaliman
Depends on D75256

Differential Revision: https://phabricator.services.mozilla.com/D75257
2020-05-14 18:19:42 +00:00
Daisuke Akatsuka
bcb5bd2ded Bug 1637540: Avoid comparing with perfix if the compat data is defined with prefix. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D75256
2020-05-15 00:27:37 +00:00
Razvan Caliman
c85367f9d5 Bug 1623988 - Extract CSS variables used in a CSS declaration for quick reference r=jdescottes
Inspecting pages with many CSS variables makes DevTools Inspector very slow.
For example, try to inspect an element on [youtube.com](https://www.youtube.com/).

One of the stylesheets loaded by youtube.com contains more than 7800 CSS rules (it's 55K lines long). Some of them specify a very large number of CSS variable delcarations on `:root` which will be inherited by all nodes on the page. This is a perf bottleneck for DevTools.
{F2150398}

Whenever an element is selected, its matching CSS declarations show in the Rules view. If the node inherits CSS variables, for **each declaration**, the Rules view checks if the [variables apply to the current declaration](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/models/element-style.js#403-408,417,424).

This among other expensive operations which are repeated for each declaration. But for CSS variables, it's particularly slow given the frequent [checks with a regular expression](https://searchfox.org/mozilla-central/rev/2bfe3415fb3a2fba9b1c694bc0b376365e086927/devtools/client/inspector/rules/utils/utils.js#292-295) to verify if a CSS declaration's value includes any references to a given CSS variable name.

This patch introduces new functionality. When a `TextProperty` (aka CSS declaration model) is created on the client, the names of CSS variables found in its value are extracted ahead of time into a `Set`. Whenever we want to check if the declaration uses a certain CSS variable name, we check against this pre-compiled list instead of verifying the string value every time. For high volume checks, like the ones done by the `ElementStyle`, this approach proves significantly faster.

Profile without this patch: https://bit.ly/2Yd7khD
Profile with this patch: https://bit.ly/3aMhJTZ

There are still many optimizations that can be done, but the `hasCSSVariable()` method is no longer a performance bottleneck.

Differential Revision: https://phabricator.services.mozilla.com/D73062
2020-05-14 18:20:00 +00:00
Boris Chiou
bfdb4fb6ed Bug 1540906 - Disable the pref of synchronizing transform animations with geometric animations on nightly. r=hiro
The original site issue (https://trello.com/) seems not obvious on nightly
now. (See Bug 1301305 for more details.) So perhaps we could give this a
trial to disable this pref, for the better performance in other cases.

Differential Revision: https://phabricator.services.mozilla.com/D74278
2020-05-11 20:40:48 +00:00
Julian Descottes
0d4c2cbb28 Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-10 18:41:58 +00:00
Razvan Maries
917859d20b Backed out 3 changesets (bug 1635467, bug 1625961) for mochitest perma failures at browser_harautomation_simple.js
Backed out changeset 1d258bab62d7 (bug 1635467)
Backed out changeset cf46002eefb0 (bug 1625961)
Backed out changeset c7757cea8327 (bug 1625961)
2020-05-10 19:01:23 +03:00
Julian Descottes
b65aacf37e Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-10 14:40:22 +00:00
Dorel Luca
c0aa119d7d Backed out 3 changesets (bug 1635467, bug 1625961) for Devtools failures in resources/tests/browser_resources_exceptions.js. CLOSED TREE
Backed out changeset 1fd6a3754afb (bug 1635467)
Backed out changeset 977b0031b41c (bug 1625961)
Backed out changeset 18646e7b984f (bug 1625961)
2020-05-09 20:09:59 +03:00
Julian Descottes
9fb3f67263 Bug 1625961 - Use the ResourceWatcher API to fetch Root NodeFront r=ochameau,nchevobbe
Depends on D62625

Differential Revision: https://phabricator.services.mozilla.com/D72668
2020-05-08 21:58:14 +00:00
Julian Descottes
d5b84fb6fe Bug 1611096 - Fix tests relying on newRoot mutations r=rcaliman
Depends on D62623

`new-root` is no longer a mutation, but an event emitted by the `walker` actor.
Tests watching for mutations should be updated accordingly. They also need to call watchRootNode explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D62624
2020-05-08 21:53:31 +00:00
Julian Descottes
116f7ce28e Bug 1611096 - Add test for inspector target switching r=ochameau,rcaliman
Depends on D62622

Differential Revision: https://phabricator.services.mozilla.com/D62623
2020-05-08 21:52:53 +00:00
Julian Descottes
d813016c11 Bug 1611096 - Add watch-like API for new root event r=ochameau,rcaliman
Depends on D62617

Differential Revision: https://phabricator.services.mozilla.com/D62622
2020-05-08 21:52:20 +00:00
Narcis Beleuzu
43ad94eeae Backed out 4 changesets (bug 1611096) for dt failures on browser_animation_inspector_exists.js . CLOSED TREE
Backed out changeset 0fe3613ee36b (bug 1611096)
Backed out changeset c86433fe8cd0 (bug 1611096)
Backed out changeset a7242f506aa6 (bug 1611096)
Backed out changeset 3703fbfe567a (bug 1611096)
2020-05-08 20:34:54 +03:00
Julian Descottes
6c4f741806 Bug 1611096 - Check webprogresslistener as a fallback for non loaded documents r=rcaliman,ochameau
Depends on D62624

With the previous implementation, an uninitialized document could be returned as a root node.
Here we try to be more explicit and wait for a correct root node. However in some cases a document can remain uninitialized and will never transition to any other state.
If the document is uninitialized but is not currently loading, we should consider it as a valid root node.

Differential Revision: https://phabricator.services.mozilla.com/D62625
2020-05-08 11:55:14 +00:00
Julian Descottes
b16aa572e3 Bug 1611096 - Fix tests relying on newRoot mutations r=rcaliman
Depends on D62623

`new-root` is no longer a mutation, but an event emitted by the `walker` actor.
Tests watching for mutations should be updated accordingly. They also need to call watchRootNode explicitly.

Differential Revision: https://phabricator.services.mozilla.com/D62624
2020-05-08 11:54:06 +00:00
Julian Descottes
db1a2da5e2 Bug 1611096 - Add watch-like API for new root event r=ochameau,rcaliman
Depends on D62617

Differential Revision: https://phabricator.services.mozilla.com/D62622
2020-05-08 11:52:14 +00:00
Yura Zenevich
d308a85705 Bug 1602075 - display enabled Inspect Accessibility Properties menu item in inspector if devtools.accessibility.auto-init.enabled pref is set to true. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D71587
2020-05-06 15:55:06 +00:00
Ria agnes Jose
580f131b44 Bug 1633696 - Rename isVariableInUse to getVariableValue. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D73589
2020-05-04 11:06:42 +00:00
Daisuke Akatsuka
876007c921 Bug 1628635: Update MDN compatibility data. r=rcaliman
Depends on D72606

Differential Revision: https://phabricator.services.mozilla.com/D72607
2020-04-29 13:58:28 +00:00
Julian Descottes
a97d7642d9 Bug 1594402 - Support setting the data-color attribute on the swatch directly r=ladybenko,rcaliman
Depends on D68849

Differential Revision: https://phabricator.services.mozilla.com/D68971
2020-04-29 10:05:37 +00:00
Julian Descottes
816f890d48 Bug 1594402 - Test that switching color format in DevTools works with the color picker r=ladybenko,rcaliman
Depends on D61063

I broke this feature while working experimenting for this patch and it was not caught by any test.

Adding a test to avoid regressions.

Differential Revision: https://phabricator.services.mozilla.com/D68849
2020-04-29 10:03:40 +00:00
Julian Descottes
d13658bff7 Bug 1594402 - Display a color swatch for CSS variables in CSS autocomplete r=ladybenko,rcaliman
Depends on D68963

Differential Revision: https://phabricator.services.mozilla.com/D61063
2020-04-29 10:03:31 +00:00
Julian Descottes
ef20d9d88f Bug 1594402 - Store the swatchcolorpicker color in a data attribute instead of textcontent r=ladybenko,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D68963
2020-04-29 10:03:24 +00:00
Andreea Pavel
26c02e4ad0 Backed out 7 changesets (bug 1602075, bug 1551574) for failing multiple dt e.g. browser_accessibility_context_menu_inspector.js on a CLOSED TREE
Backed out changeset d878be5e1884 (bug 1551574)
Backed out changeset 2b11feb2473d (bug 1602075)
Backed out changeset 1406b19b25e9 (bug 1602075)
Backed out changeset 0aa8307788b6 (bug 1602075)
Backed out changeset 418dbded9752 (bug 1602075)
Backed out changeset 2c19213df4d7 (bug 1602075)
Backed out changeset 98a4b4e8fda3 (bug 1602075)
2020-04-27 20:23:42 +03:00
Yura Zenevich
8657f0c3ac Bug 1602075 - display enabled Inspect Accessibility Properties menu item in inspector if devtools.accessibility.auto-init.enabled pref is set to true. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D71587
2020-04-27 14:16:03 +00:00
Andreea Pavel
6bebdc0ae6 Bug 1559033 - disable browser_computed_getNodeInfo.js on mac shippable opt r=egao
Differential Revision: https://phabricator.services.mozilla.com/D72071
2020-04-25 05:43:37 +00:00
Csoregi Natalia
230cef6455 Backed out 6 changesets (bug 1602075) for devtools failures caused by markup-context-menu.js. CLOSED TREE
Backed out changeset cf06e30be068 (bug 1602075)
Backed out changeset 51f01135d82f (bug 1602075)
Backed out changeset fbb30bd09d66 (bug 1602075)
Backed out changeset e1e570497527 (bug 1602075)
Backed out changeset 3aa7f4f31934 (bug 1602075)
Backed out changeset 7d568f0fa1e4 (bug 1602075)
2020-04-23 19:03:05 +03:00
Yura Zenevich
218ec835e5 Bug 1602075 - display Inspect Accessibility Properties menu item in inspector if devtools.accessibility.auto-init.enabled pref is set to true. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D71587
2020-04-23 14:40:25 +00:00
Daisuke Akatsuka
7be5632750 Bug 1590981: Add a browser test for settings. r=mtigley
Depends on D70324

Differential Revision: https://phabricator.services.mozilla.com/D70482
2020-04-21 20:09:17 +00:00
Daisuke Akatsuka
1b3262dd31 Bug 1590981: Add a node test for Settings component. r=mtigley
Depends on D70323

Differential Revision: https://phabricator.services.mozilla.com/D70324
2020-04-22 01:53:37 +00:00
Daisuke Akatsuka
daa1629a9a Bug 1590981: Update a node test for Settings component. r=mtigley
Depends on D70322

Differential Revision: https://phabricator.services.mozilla.com/D70323
2020-04-22 01:53:04 +00:00
Daisuke Akatsuka
5865a049cd Bug 1590981: Make target browsers persistent. r=mtigley
Depends on D70321

Differential Revision: https://phabricator.services.mozilla.com/D70322
2020-04-22 01:50:57 +00:00
Daisuke Akatsuka
573ddb6669 Bug 1590981: Make target browsers selectable. r=mtigley
Depends on D70320

Differential Revision: https://phabricator.services.mozilla.com/D70321
2020-04-21 20:06:28 +00:00
Daisuke Akatsuka
a99dc11e53 Bug 1590981: Show all default target browsers in settings page. r=mtigley
Depends on D70319

Differential Revision: https://phabricator.services.mozilla.com/D70320
2020-04-22 01:32:34 +00:00