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

3402 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes 705e65c932 Bug 1652445 - Fix highlighters overlay to react to frame navigation r=rcaliman
Depends on D84973

This was highlighted by browser_grids_grid-list-on-iframe-reloaded.js which fails without this fix.

Differential Revision: https://phabricator.services.mozilla.com/D84974
2020-08-07 12:24:10 +00:00
Julian Descottes 6e5145a87c Bug 1652445 - Use root node resource to detect navigation for all frames r=rcaliman,ochameau
Depends on D85599

The WalkerActor is currently responsible for watching navigations and exposes them to the client.
However, this is communicated to the client differently depending on what kind of frame navigates.
If the top frame of the target navigates, this will be exposed via the watchRootNode API (onDestroyed/onAvailable callbacks will be triggered)
If an inner frame navigates, mutations will be emitted: "frameLoad"/"documentUnload" + a fake "childList" mutation.

On the client side, we have to handle both very similarly which leads to some duplication.
Also "frameLoad"/"documentUnload" are one of the last "immediateMutations" which usually means they should not have been mutations in the first place.

The goal here is to use the watchRootNode API for all frames.

Differential Revision: https://phabricator.services.mozilla.com/D84973
2020-08-07 12:16:51 +00:00
Kriyszig 5808376a46 Bug 1643961 - Remove the backwards compatibility check for CompatibilityActor r=daisuke,mtigley
The backwards compatibility checks existed to support devtools
backend for version older than FF79. Now that FF79 has hit the
release channel, these tests for older backend can be removed.

Differential Revision: https://phabricator.services.mozilla.com/D86142
2020-08-06 22:39:57 +00:00
Kriyszig 916bc8b129 Bug 1649021 - Add tests for CSS Compatibility Tooltip r=mtigley,daisuke DONTBUILD
The CSS Compatibility Tooltip tests cover the following cases:
* Check if the contents of the tooltip match the rendered template
* Check compatible rules aren't falsely marked incompatible
* Check incompatible rules are marked correct with icon appearing next to it
* Check toggling rule disable hides the icon
* Check adding rules updates the compatibilility status
* Check the compatibility icon disappears if a fix is added

Differential Revision: https://phabricator.services.mozilla.com/D84218
2020-08-06 11:06:39 +00:00
Kriyszig d0b13329e8 Bug 1649021 - Add tooltip in rules panel to highlight CSS compatiblity issues for particular declaration r=mtigley,daisuke,flod,ckerschb DONTBUILD
Use CompatibilityActor to fetch the compatiblity information for
a particular CSS declaration and show a tooltip for the
incompatible CSS declaration that may cause issue on platform

Differential Revision: https://phabricator.services.mozilla.com/D81474
2020-08-06 04:41:34 +00:00
Julian Descottes 599815e926 Bug 1571329 - Wait for 2 ruleview-changed events in browser_inspector_highlighter-cssshape_iframe_01.js r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D86237
2020-08-06 20:46:25 +00:00
manas 89eed33401 Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-06 16:14:23 +00:00
Itiel 2f84734040 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-06 03:36:28 +00:00
Bogdan Tara 56e3736afb Backed out changeset ac5dc4c13464 (bug 1656706) for prefixNeeded related failures 2020-08-05 07:31:48 +03:00
Itiel bcfc9fbe66 Bug 1656706 - Fix prefixed properties being displayed incorrectly in the Compatibility panel, for RTL r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D85663
2020-08-05 03:47:28 +00:00
Bogdan Tara 91572b9250 Backed out changeset 2d126d9f7ef8 (bug 1653290) for /browser_markup_overflow_badge.js failures CLOSED TREE 2020-08-04 22:36:58 +03:00
manas 95bf33558a Bug 1653290 - Add overflow badge and show an overflow badge for every scroll causing element dynamically and a test to check its working. r=gl,devtools-backward-compat-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D84333
2020-08-04 17:17:26 +00:00
Julian Descottes 3492cc6219 Bug 1655427 - Remove usage of allowMatchingRejectionsGlobally in inspector r=ochameau,nchevobbe
Using allowMatchingRejectionsGlobally in a test will leak to all the tests running after it in the same suite. We should avoid using it as much as possible.

Differential Revision: https://phabricator.services.mozilla.com/D84963
2020-08-03 14:29:09 +00:00
Julian Descottes 32de28696d Bug 1656825 - Fix duplicate calls to lazyRequireGetter r=nchevobbe
Depends on D85288

Differential Revision: https://phabricator.services.mozilla.com/D85720
2020-08-03 07:53:50 +00:00
Julian Descottes 3af62a1e27 Bug 1472821 - Support array of String for lazyRequireGetter r=nchevobbe,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D85268
2020-08-03 05:43:59 +00:00
Dorel Luca 419e9ccc2c Backed out 2 changesets (bug 1644194) for Devtools failures in /browser_browser_toolbox_fission_contentframe_inspector.js
Backed out changeset 5786eef0515a (bug 1644194)
Backed out changeset a5147f70d344 (bug 1644194)
2020-08-03 05:13:04 +03:00
Daisuke Akatsuka 7812b6ddf1 Bug 1644194: Implement CSS change watcher. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D85239
2020-08-02 22:43:20 +00:00
Razvan Caliman 8a93c20985 Bug 1656477 - Do not react to cached DOCUMENT_EVENT resources in Changes panel. r=daisuke
This patch is borrowing a change that's coming with D85239 to fix the issue that the Changes panel shows as empty when it should show changes tracked in the background (before the Changes panel is opened).

The reason, as identified in D85239, is that the Changes panel reacts to `DOCUMENT_EVENT` resources which are cached in the resource watcher. The Changes panel thinks that the document is reloading so it clears all the changes that were collected. The result in an empty Changes panel.

The screenshot below shows the resource types and the order in which they arrive:
{F2382929}

Differential Revision: https://phabricator.services.mozilla.com/D85603
2020-07-31 17:06:33 +00:00
Julian Descottes b6490f5a49 Bug 1582594 - Wait for flexbox store update after selection in browser_markup_flex_display_badge r=rcaliman
This test is highly intermittent locally, and it seems to be spiking on try since bug 1633727.
The issue is that we try to click on the "flex" badge too quickly after selecting the node, before the flexbox store has had time to update.

Differential Revision: https://phabricator.services.mozilla.com/D85403
2020-07-30 14:37:31 +00:00
Yura Zenevich e9437a481d Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-30 14:00:03 +00:00
Daisuke Akatsuka aeb9aebc1e Bug 1643294: Add node tests for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84951
2020-07-30 03:11:48 +00:00
Daisuke Akatsuka 5d627fe9d6 Bug 1643294: Show prefixed properties. r=rcaliman,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D83285
2020-07-30 03:11:52 +00:00
Daisuke Akatsuka 29ac85b4ad Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-30 03:36:25 +00:00
Daisuke Akatsuka 90b2c8cf64 Bug 1643294: Update issue fields. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83283
2020-07-30 03:11:41 +00:00
Csoregi Natalia faae82a2a7 Backed out 6 changesets (bug 1643294) for failures on browser_compatibility_cssIssues.js. CLOSED TREE
Backed out changeset bf35895585fd (bug 1643294)
Backed out changeset 240347a5071e (bug 1643294)
Backed out changeset b8776178d5ad (bug 1643294)
Backed out changeset a334d8d72e19 (bug 1643294)
Backed out changeset a61c7172d53e (bug 1643294)
Backed out changeset 99799c2141b6 (bug 1643294)
2020-07-30 06:05:07 +03:00
Daisuke Akatsuka 183bbb3f5f Bug 1643294: Add node tests for prefix needed property. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D84951
2020-07-30 00:03:04 +00:00
Daisuke Akatsuka ae21cf2c53 Bug 1643294: Show prefixed properties. r=rcaliman,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D83285
2020-07-30 00:00:44 +00:00
Daisuke Akatsuka 8e44a5ccee Bug 1643294: Show prefixNeeded message. r=rcaliman,flod,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D83284
2020-07-29 23:58:28 +00:00
Daisuke Akatsuka e5201ef01e Bug 1643294: Update issue fields. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D83283
2020-07-29 13:42:05 +00:00
Julian Descottes 419c44b925 Bug 1655411 - Wait for target-available-processed in browser_inspector_fission_frame_navigation test r=nchevobbe
Depends on D84969

Differential Revision: https://phabricator.services.mozilla.com/D84971
2020-07-28 15:14:29 +00:00
Nicolas Chevobbe defbe050f9 Bug 1620264 - Fix browser_rules_media-queries_reload.js intermittent. r=gl.
Instead of relying on events being fired, we wait until the rule view displays
the properties we expect.

Differential Revision: https://phabricator.services.mozilla.com/D85005
2020-07-27 16:58:01 +00:00
Joel Maher 5d27556feb Bug 1652440 - adjust devtools to work with object.is() instead of ==. r=rcaliman,jdescottes
adjust devtools to work with object.is() instead of ==

Differential Revision: https://phabricator.services.mozilla.com/D83302
2020-07-22 14:53:16 +00:00
Julian Descottes 64114183b0 Bug 1654415 - Replace testActor by SpecialPowers from browser_inspector_remove-iframe-during-load test r=nchevobbe
The test is currently a permafail with fission enabled.
TestActor gets destroyed when navigating from about:blank to the test page and can be replaced by SpecialPowers calls.

Differential Revision: https://phabricator.services.mozilla.com/D84478
2020-07-22 13:07:01 +00:00
Nicolas Chevobbe ebc4f4e1ab Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-21 18:03:13 +00:00
Nicolas Chevobbe 7c3955c7cf Bug 1492797 - Turn ClassListPreviewer into a class. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D71159
2020-07-21 18:01:44 +00:00
Kashav Madan ae956c4eef Bug 1653674 - Unskip passing fission tests, r=kmag
It's possible that some of these are still failing intermittently. We can't
really know without first unskipping them.

https://github.com/annygakh/audit-tests

Differential Revision: https://phabricator.services.mozilla.com/D84017
2020-07-21 15:42:48 +00:00
Razvan Maries 657d7e2c6b Backed out 3 changesets (bug 1492797) for perma failures on browser_editor_autocomplete_events.js. CLOSED TREE
Backed out changeset 3bfad9588f0b (bug 1492797)
Backed out changeset 3ecf0fc44704 (bug 1492797)
Backed out changeset a7f6906f69de (bug 1492797)
2020-07-21 14:26:49 +03:00
Nicolas Chevobbe f6c68a97f9 Bug 1492797 - Autocomplete for classes panel. r=rcaliman,jdescottes.
Differential Revision: https://phabricator.services.mozilla.com/D71160
2020-07-20 17:00:01 +00:00
Nicolas Chevobbe 6b2285e0dc Bug 1492797 - Turn ClassListPreviewer into a class. r=rcaliman.
Differential Revision: https://phabricator.services.mozilla.com/D71159
2020-07-20 16:34:21 +00:00
Narcis Beleuzu 0a0d8f9451 Backed out 3 changesets (bug 1648161, bug 1650094) as requeste by yzen
Backed out changeset a05fbae74197 (bug 1650094)
Backed out changeset b1c3cfa3b77b (bug 1648161)
Backed out changeset 7cd63199f143 (bug 1648161)
2020-07-20 18:01:00 +03:00
Julian Descottes 31f3e7257b Bug 1628473 - Update the markup view when a remote frame navigates r=rcaliman
Depends on D79675

Differential Revision: https://phabricator.services.mozilla.com/D79676
2020-07-16 16:22:30 +00:00
Julian Descottes 299f9180e4 Bug 1628473 - Add test for remote frame navigation r=rcaliman,nchevobbe
Depends on D79674

Differential Revision: https://phabricator.services.mozilla.com/D79675
2020-07-16 16:22:02 +00:00
Julian Descottes f3df9272e0 Bug 1628473 - Move test helpers from markup head.js to inspector head.js r=rcaliman
Depends on D83194

Those test helpers were introduced to easily assert the markup view, when working on the webcomponents support in the inspector.
They use rather high level APIs and are quite close to what would be triggered by real user actions.
Roughly the helper expands nodes from the markupview recursively and checks that the tree matches the expected tree.
This "expected tree" should be provided via a simplistic DSL:
```
root
  child1
    subchild1
    subchild2
  child2
    subchild3!slotted
  child3!ignore-children
```

Differential Revision: https://phabricator.services.mozilla.com/D79674
2020-07-16 16:21:54 +00:00
Razvan Caliman fe88ab9986 Bug 1650107 - Update MDN base link in Computed panel. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D83781
2020-07-16 14:26:06 +00:00
Christoph Kerschbaumer 3d7ee5e969 Bug 1652997: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D83656
2020-07-15 16:02:28 +00:00
Julian Descottes e0fea8d6ee Bug 1652690 - Remove outdated eslint rule for devtools/shared/platform r=nchevobbe,perftest-reviewers,sparky
Small cleanup of eslint rules.

Differential Revision: https://phabricator.services.mozilla.com/D83477
2020-07-15 14:59:19 +00:00
Yura Zenevich c4d9e1e226 Bug 1650094 - making the box model highlighter work in the browser toolbox. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D81476
2020-07-14 17:14:16 +00:00
Hubert Boma Manilla 119e4262a1 Bug 1625909 - Use the ResourceWatcher API to fetch Network Events r=ochameau,Honza,nchevobbe
This patch migrates to using the Resource Watcher API to handle Network events, it adds a legacy listeners for the network events

Differential Revision: https://phabricator.services.mozilla.com/D71543
2020-07-13 13:33:09 +00:00
Mihai Alexandru Michis ce67650fd6 Backed out changeset e95324121fde (bug 1625909) for causing multiple devtool failures. 2020-07-13 04:20:41 +03:00
Hubert Boma Manilla 9bcb3649ef Bug 1625909 - Use the ResourceWatcher API to fetch Network Events r=ochameau,Honza,nchevobbe
This patch migrates to using the Resource Watcher API to handle Network events, it adds a legacy listeners for the network events

Differential Revision: https://phabricator.services.mozilla.com/D71543
2020-07-12 20:38:06 +00:00
Tom Prince 2c52622b85 Bug 1651731: [lint] Add a bunch more types of files that should never be executable; r=linter-reviewers,perftest-reviewers,geckoview-reviewers,preferences-reviewers,agi,sylvestre,sparky
Differential Revision: https://phabricator.services.mozilla.com/D82953
2020-07-09 21:28:49 +00:00
Sebastian Hengst aa6404a088 Bug 1559315 - Temporarily disable browser_rules_authored_color.js on Windows opt. r=gbrown DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D82775
2020-07-08 20:21:04 +00:00
Julian Descottes b225cf5e85 Bug 1647366 - Add a test for Inspect Element with nested remote frames r=rcaliman,ochameau
Depends on D80910

Differential Revision: https://phabricator.services.mozilla.com/D80911
2020-07-08 14:24:06 +00:00
Julian Descottes c32dffdf40 Bug 1647366 - Re-enable context menu tests that were skipped for fission r=ochameau,perftest-reviewers,Bebe
Depends on D80909

Differential Revision: https://phabricator.services.mozilla.com/D80910
2020-07-08 14:12:33 +00:00
Razvan Caliman 1ad6fbabbc Bug 1607756 - Extract node picker from HighlighterActor. r=ochameau,devtools-backward-compat-reviewers
Moved the node picker functionality from `HighlighterActor` to a standalone `NodePicker` class used by `WalkerActor`.
`WalkerActor`/`WalkerFront` was already used to [emit node picker events](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/shared/specs/walker.js#65-79) listened to by the client. This was kept intact.

The alternative to introduce a new `NodePickerActor` had issues when emitting events because the `NodeFront` payload ended up being managed by the `NodePickerFront` and not the `WalkerFront` (see: https://searchfox.org/mozilla-central/source/devtools/shared/protocol/types.js#337,346). There isn't a strong reason to introduce a new `NodePickerActor` considering that the functionality is already dependent on `WalkerActor` to [attach the hovered / picked nodes](https://searchfox.org/mozilla-central/rev/027893497316897b8f292bde48dbb6da2391a331/devtools/server/actors/highlighters.js#435-441).

As we progress with changes in D81526 and [Bug 1623667](https://bugzilla.mozilla.org/show_bug.cgi?id=1623667), the standalone [HighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#111-517) will go away completely. It is just a wrapper around `BoxModelHighlighter` and `SimpleOutlineHighlighter`, both of which are already supported by [CustomHighlighterActor](https://searchfox.org/mozilla-central/source/devtools/server/actors/highlighters.js#523-652) that provides all the other highlighters.

NOTE: D81476 is removing `SimpleOutlineHighlighter` , thus adding to the reasons for dropping `HighlighterActor` once tests and call sites are updated to get highlighters via the highlighter manager logic changes introduced by D81526

Differential Revision: https://phabricator.services.mozilla.com/D81525
2020-07-08 09:32:46 +00:00
Neil Deakin 5cf56b802f Bug 1650690, remove frame scripts from devtools animation tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82307
2020-07-07 11:35:15 +00:00
Neil Deakin 36c00b6af2 Bug 1650690, remove frame scripts from inspector tests, and use SpecialPowers.spawn instead, r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D82306
2020-07-07 11:35:03 +00:00
Sebastian Hengst 7847e18297 Backed out 3 changesets (bug 1145314) on request from ckerschb for regressions (e.g. bug 1650951)
Backed out changeset 664cc562ddf3 (bug 1145314)
Backed out changeset 9640a9d093c7 (bug 1145314)
Backed out changeset 5492ac0e42f7 (bug 1145314)
2020-07-07 09:32:27 +02:00
Kriyszig ca79ded3e3 Bug 1644428 - Cleanup: Arrange actions, reducers, imports and function in alphabetical order r=daisuke,mtigley
This patch does the following cleanup:
* Arrange actions in alphabetical order
* Arrange reducers in alphabetical order
* Arrange imports in alphabetical order
* Arrange functions in alphabetical order

This keeps it consistent with the code style in the compatiblity directory

Depends on D81443

Differential Revision: https://phabricator.services.mozilla.com/D82057
2020-07-03 17:23:57 +00:00
Kriyszig 30282112dd Bug 1644428 - Added tests to verify Compatiblity Panel reacting to DOM mutations r=daisuke,mtigley
The tests cover the following test cases:
* Dynamic addition of inline style
* Dynamic change of classlist - addition and removal of class
* Inline style change via the rule-view
* Dynamic addition of nodes with issues
* Dynamic addition of nodes whose children have issues
* Dynamic removal of node with issue
* Dynamic removal of node whose children have issue

Differential Revision: https://phabricator.services.mozilla.com/D81443
2020-07-03 17:22:59 +00:00
Kriyszig 6a6c70267a Bug 1644428 - Enable Compatibility Panel to react to dynamic DOM node insertion and deletion r=daisuke,mtigley
Currently the Compatibility Panel doesn't react to dynamic DOM
node addition and removal which poses a problem for websites that
depend on client side rendering using the modern framework and
render contents based on dynamic API calls. The updation fails
when switching between routes on a single page application.
In this patch, we use inspector's `markupmutation` event to listen
to `childList` and `customElementDefined` events which cover these
DOM mutations.
Whenever we find a node being added or removed, we compute compatibility
issues for the newly added nodes and remove references to the removed
nodes in the compatibility panel.

Differential Revision: https://phabricator.services.mozilla.com/D80170
2020-07-03 17:22:41 +00:00
Kriyszig bb4caa35ae Bug 1644428 - Enable Compatibility Panel to react to attribute Mutations r=daisuke,mtigley
Compatibility panel doesn't react to programmatic attribute changes
caused as a result of JavaScript execution.
This patch uses inspector's `markupmutation` event to listen to
markup mutations and react to attribute changes dynamically.
Whenever a node undergoes a programmatic inline attribute change
that is not monitored by Resource Watcher currently, the issues
linked to the node is revaluated and updated.

Differential Revision: https://phabricator.services.mozilla.com/D79333
2020-07-03 17:22:14 +00:00
Yura Zenevich 20d5203a82 Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-07-03 23:52:16 +00:00
Julian Descottes 3e1e4c22b6 Bug 1650155 - Rename PromiseTestUtils.whitelistRejectionsGlobally to allowMatchingRejectionsGlobally r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D82059
2020-07-03 17:01:29 +00:00
Christoph Kerschbaumer 5c8e547bd8 Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-03 08:12:22 +00:00
Narcis Beleuzu 9d8472510e Backed out 2 changesets (bug 1145314) for mochitest failures on test_bug995943.xhtml . CLOSED TREE
Backed out changeset 0500cb344e6f (bug 1145314)
Backed out changeset f524ffe669ca (bug 1145314)
2020-07-02 20:50:46 +03:00
Christoph Kerschbaumer bfc3fb787d Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 15:03:52 +00:00
Csoregi Natalia 355f38ec2f Backed out 2 changesets (bug 1145314) for node debugger failure. CLOSED TREE
Backed out changeset 550f9596f16b (bug 1145314)
Backed out changeset 93dbc3fe146a (bug 1145314)
2020-07-02 12:37:06 +03:00
Christoph Kerschbaumer 5e32e6565e Bug 1145314: Package all devtools css files and load them using the internal chrome: protocol. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D78896
2020-07-02 08:17:17 +00:00
Sebastian Zartner 9dec37a853 Bug 1597245 - Disable 'Delete Node' option for document nodes. r=jdescottes
Added nodes of type DOCUMENT_NODE to the excluded types for deletion.

In order to test the context menu options for document nodes a new helper function getFrameDocument() got introduced that returns the document node of an iFrame.

Differential Revision: https://phabricator.services.mozilla.com/D81241
2020-07-02 00:53:51 +00:00
Cosmin Sabou 4a382d7801 Backed out 4 changesets (bug 1640338, bug 1640778) for devtools failures on browser_dbg-toolbox-unselected-pause.js.
Backed out changeset 92cb02f03119 (bug 1640778)
Backed out changeset 6401dd804f28 (bug 1640338)
Backed out changeset cb4edb2627bb (bug 1640338)
Backed out changeset b2394d79f48f (bug 1640338)
2020-06-30 19:59:10 +03:00
Yura Zenevich 17dc33c60a Bug 1640778 - remove auto-init experiment code. r=mtigley,devtools-backward-compat-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D77057
2020-06-30 14:53:07 +00:00
Julian Descottes 772f4d693d Bug 1646636 - Skip tests with inspect element in same process frames if fission is enabled r=ochameau,perftest-reviewers,Bebe
Differential Revision: https://phabricator.services.mozilla.com/D80815
2020-06-30 10:22:10 +00:00
Marco Zehe 5dfb4493c4 Bug 1648011 - Give the All Tabs overflow button a tooltip, r=nchevobbe,flod,Honza
This pertains to both the inspector side bar as well as the net monitor tabs.

Differential Revision: https://phabricator.services.mozilla.com/D80829
2020-06-26 07:50:29 +00:00
Marco Zehe 0e1ed3a46b Bug 1648069 - Make the Changes view a document for screen readers, r=yzen
Also make it focusable so screen readers will pick up even the "no changes yet" scenario and won't skip over it.

Differential Revision: https://phabricator.services.mozilla.com/D80865
2020-06-26 00:15:21 +00:00
Razvan Caliman 1c03261951 Bug 1644789 - Wait for Rule view to update before interacting with Flexbox toggle r=gl
By the looks of the [screenshot of the failing test](https://firefoxci.taskcluster-artifacts.net/QIl2Xbs1T5CfvCoUtWkK5w/0/public/test_info//mozilla-test-fail-screenshot_g8P5sS.png), the Rules view isn't updated to reflect the styles for the flex container. Looks like a race condition.

This patch ensures that the test waits for the [Rules view to update](https://searchfox.org/mozilla-central/rev/a87a1c3b543475276e6d57a7a80cb02f3e42b6ed/devtools/client/inspector/rules/rules.js#980) before attempting to click on the swatch to toggle the Flexbox highlighter.

Differential Revision: https://phabricator.services.mozilla.com/D81035
2020-06-25 16:36:44 +00:00
Razvan Caliman 59990429a0 Bug 1647989 - Add default reducer to avoid error when creating a Redux store with no reducers. r=gl
We can't create a Redux store without reducers. Redux throws an error.
It's benign and doesn't impact anything (panels load reducers on-demand before accessing them), but it's annoying to see the error in the console and in tests.

Differential Revision: https://phabricator.services.mozilla.com/D81047
2020-06-25 14:20:41 +00:00
Daisuke Akatsuka 762d6b5b85 Bug 1591307: Localize Settings component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79809
2020-06-19 10:56:59 +00:00
Daisuke Akatsuka f913d2c879 Bug 1591307: Localize Footer component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79808
2020-06-18 07:28:50 +00:00
Daisuke Akatsuka 629864cbae Bug 1591307: Localize NodePane component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79807
2020-06-19 10:58:08 +00:00
Daisuke Akatsuka cb287a6307 Bug 1591307: Localize IssueItem component. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D79806
2020-06-19 11:00:22 +00:00
Daisuke Akatsuka 4268b89051 Bug 1591307: Localize IssuePane component. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D79805
2020-06-18 07:28:03 +00:00
Daisuke Akatsuka 1c09f71859 Bug 1591307: Localize CompatibilityApp component. r=jdescottes,flod
Differential Revision: https://phabricator.services.mozilla.com/D79804
2020-06-18 07:27:50 +00:00
Daisuke Akatsuka 1e1c4fc175 Bug 1591307: Introduce basic localization mechanism. r=jdescottes,stas
Differential Revision: https://phabricator.services.mozilla.com/D79803
2020-06-23 23:26:42 +00:00
Julian Descottes 426d07f236 Bug 1646636 - Disable devtools.contenttoolbox.fission in inspector tests for frames + context menu r=ochameau,perftest-reviewers,sparky
Differential Revision: https://phabricator.services.mozilla.com/D80503
2020-06-23 13:26:06 +00:00
Marco Zehe 1c1f12c84d Bug 1242856 - Add accessibility semantics to the computed styles view, r=gl
This patch does the following:

1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.
5. Adjusts the visually-hidden class to be more modern and less intrusive.

Differential Revision: https://phabricator.services.mozilla.com/D79673
2020-06-16 16:07:13 +00:00
Kriyszig 0d68d9f541 Bug 1637632 - Create a compatibility actor and connect it to Inspector's Compatibility panel r=mtigley,daisuke,devtools-backward-compat-reviewers
This patch adds a `CompatibilityActor` that calls the MDNCompatibility
library from the devtool server.
This patch exposes `_declarations` from the `StyleRuleActor` and the
a new function `formDeclaration` responsible for populating the
declarations property.
As a check for correctness, the patch replaces the `pageStyle.getApplied`
call in the Compatibility Panel on the client with `compatibility.getNodeCssIssues`
fetching the array of compatibility issues directly and removing the
dependency on MDNCompatibility library for client side computation of
compatibility issues.

Differential Revision: https://phabricator.services.mozilla.com/D77060
2020-06-10 09:09:00 +00:00
Narcis Beleuzu 8b0c5c5de4 Backed out changeset 88d5337be8e0 (bug 1242856) for dt failures on browser_computed_getNodeInfo.js . CLOSED TREE 2020-06-15 19:52:41 +03:00
Razvan Caliman b648f4a716 Bug 1645448 - Remove handling code for FlexItemHighlighter which is not implemented. r=gl
While cleaning up and restructuring client-side code to manage highlighters, I discovered that FlexItemHighlighter is not implemented / landed ([Bug 1477614](https://bugzilla.mozilla.org/show_bug.cgi?id=1477614)).
To ease clean-up and review of incoming changes, I am removing this orphaned code. It will be available with this revision if we need to revert it later.

Differential Revision: https://phabricator.services.mozilla.com/D79517
2020-06-15 15:37:43 +00:00
Marco Zehe b59c6a3e54 Bug 1242856 - Add accessibility semantics to the computed styles view, r=gl
This patch does the following:

1. Adds a semantic document role to the computed styles pane. This causes screen readers to treat it as something they can use their reading commands on for better navigation and efficiency.
2. Gives the expansion twisties a button role and a label. I am reusing the labels introduced in an earlier patch.
3. Turns the name portion of each property into a heading so screen reader users can quickly skip between them, regardless of their expanded status or not.
4. Explicitly displays the status for each rule match with visually hidden text because screen readers do not pick up text from titles on simple span elements.

Differential Revision: https://phabricator.services.mozilla.com/D79673
2020-06-15 14:18:22 +00:00
Emilio Cobos Álvarez ffec6f608b Bug 1643656 - Remove prefers-color-scheme: no-preference. r=gl,remote-protocol-reviewers,hiro,whimboo
It was removed from the spec.

Differential Revision: https://phabricator.services.mozilla.com/D78834
2020-06-14 23:26:04 +00:00
Marco Zehe 1b32b90556 Bug 1644669 part 2 - Make the flex container view more accessible to screen reader users, r=yzen
This patch does the following:

1. Both the flex-direction and flex-wrap badges are being treated as illustrations, not generic containers, so screen readers immediately pick up the full meaning from the title.
2. Turns the flex item list sub heading into an actual heading for screen readers. It is level 3 because the accordeon headings are all level 2.

Differential Revision: https://phabricator.services.mozilla.com/D79129
2020-06-12 17:39:44 +00:00
Marco Zehe 760479ff25 Bug 1644669 Part 1 - Label the button to return to the flex container view for screen readers, r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D79128
2020-06-12 14:50:30 +00:00
Marco Zehe 8ab506f68e Bug 1644693 - Grid accordeon: Give the section headers proper heading roles and levels for better structure, r=yzen
Differential Revision: https://phabricator.services.mozilla.com/D79131
2020-06-12 15:18:40 +00:00
Marco Zehe 99eb448a68 Bug 1644343 Part 3 - Make the box model understandable to screen reader users, r=yzen,flod
This patch adds IDs to all the box divs so they can be referenced by ARIA attributes. The actual legend spans also act as region landmarks with an associated level so the nesting is relayed.

In addition, each of those boxes gets the buttons for its dimensions rendered in-place so for assistive technologies, this all follows a logical flow. aria-owns changes the accessibility tree so the nesting and associated properties are grouped together.

The actual buttons also receive a localizable aria-label that is a combination of the button text and title, so screen reader users not only hear "0 button" without knowing immediately what that button actually belongs to. Title is secondary information.

Differential Revision: https://phabricator.services.mozilla.com/D78953
2020-06-12 12:08:09 +00:00
Marco Zehe 1fc44d0009 Bug 1644343 Part 2 - Make the dimension information in the box model more explicit for screen readers, r=yzen,flod
This patch turns the info that holds the dimensions and position info into a region. Because the visual representation is without explanatory text, an aria-label is constructed for that region to hold a more explicit version of the displayed information.

Differential Revision: https://phabricator.services.mozilla.com/D78952
2020-06-11 10:54:45 +00:00
Marco Zehe aead3a320a Bug 1644343 Part 1 - Make layout properties accessible to screen readers, r=yzen
1. Fix the twisty so it has a role and name that reflects the action the button will take when clicked (show or hide).
2. Give the section itself a heading so it can easily be found. Make it a level 3 so it is clear that this is a sub section of the box model view.
3. Order the properties themselves in a table with rows for each property, and cells for the name and value.
4. Make the property names and values, which are not editable, not clickable.

Differential Revision: https://phabricator.services.mozilla.com/D78951
2020-06-11 15:31:08 +00:00
Daisuke Akatsuka 7f6b066b27 Bug 1625957: Use ResourceWatcher in Compatibility view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74601
2020-06-12 06:47:19 +00:00
Daisuke Akatsuka 04bef9f4f9 Bug 1625957: Use ResourceWatcher in Changes view. r=ochameau,rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D74600
2020-06-12 02:09:40 +00:00
Razvan Maries b5faf6c48c Backed out 4 changesets (bug 1625957) for devtools failures on browser_inspector_sidebarstate.js. CLOSED TREE
Backed out changeset 6d6323e559cb (bug 1625957)
Backed out changeset 7d796f50c69f (bug 1625957)
Backed out changeset 8520caa244e1 (bug 1625957)
Backed out changeset e540c9937a31 (bug 1625957)
2020-06-12 05:04:55 +03:00