This adds a `openContentLink` helper meant for any link controlled by web
content. If there is an associated toolbox open, the toolbox's tab is used to
supply a triggering principal for the link.
MozReview-Commit-ID: 45l5yAPGpZr
--HG--
extra : rebase_source : 61a1d471d6792d148932488e854e16de60dea44b
Also fixed some CSS related to the "no workers" empty screen:
- Fixed vertical misalignment.
- Made the "You need to register a service worker" text bigger.
- Refactored some CSS rules and removed unneeded styles.
MozReview-Commit-ID: JVduSXIxcV7
--HG--
extra : rebase_source : bdd2ef73b62427ee81a53b2c82ddc256966cbe33
This was a good time to revamp of the CSS layout we were using in the
Worker component. Changes that have been made:
- Use CSS Grid to layout the Worker component
- Rename classes to use BEM style (this is compatible with the current
CSS guidelines for the DevTools).
- Use classes with the js- prefix for JS hooks
- Rename classes / use js- class names for hooks in other components,
so everything is consistent.
- Some HTML markup has been fixed, where it wasn't in conflict with
the current styling.
MozReview-Commit-ID: Doyd9mBLOMd
--HG--
extra : rebase_source : 68f0a2df08f8c1c1c958f17096bf12fbca8f6f62
Changes and notes:
- Created `devtools/client/shared/test/telemetry-test-helpers.js`, which
contains test helpers to aid in creating and running telemetry tests.
- Removed any telemetry monkeypatching as it is not dependable and no longer
needed (there is some left in GCLI but the test is now disabled because
we are removing GCLI soon anyhow).
- Because `telemetry-test-helpers.js` is imported by `shared-head.js` I
have had to make it available everywhere that shared-head.js is used.
- All telemetry tests have been rewritten to use the new helper.
- shared-head.js cannot be imported by tests inside
`devtools/client/performance/test/` because perf have custom `once` and
`waitFor` implementations that act differently from the ones inside
`shared-head.js`. This means I had to import the telemetry helpers into
`devtools/client/performance/test/head.js`
- Created `devtools/client/shared/test/browser_telemetry_misc.js` to be sure
to catch `DEVTOOLS_SCREEN_RESOLUTION_ENUMERATED_PER_USER` (we catch a few
others to be thorough).
- Disabled `browser_inspector_menu-02-copy-items.js`, which was failing to
test some expired scalars. I also corrected the way the scalars are logged
because it was completely wrong.
MozReview-Commit-ID: JjQEGM6hT61
--HG--
extra : rebase_source : cd1214d01bd11908f69167839975cd93ecb83421
Add redux, a store, listen to events that can lead to a change in the workers
list to update the store.
MozReview-Commit-ID: Fo0jn7Cldep
--HG--
extra : rebase_source : 835294eb76b49ee696030ab6fa6ba45c4bcdedef
Register a new application panel, disabled by default, with no icon, no shortcut
and hidden from the devtools options.
Set devtools.application.enabled to true to enable it.
MozReview-Commit-ID: L5PXZVDCRlF
--HG--
extra : rebase_source : 0ec04569b6050cfb1f7549aa042551879a22a842
Add redux, a store, listen to events that can lead to a change in the workers
list to update the store.
MozReview-Commit-ID: Fo0jn7Cldep
--HG--
extra : rebase_source : 9eec21b64d5c7b7bd4372d3cf6bb561092af7c08
Register a new application panel, disabled by default, with no icon, no shortcut
and hidden from the devtools options.
Set devtools.application.enabled to true to enable it.
MozReview-Commit-ID: L5PXZVDCRlF
--HG--
extra : rebase_source : 465dd27241e81ee2f35794ce01cf0d06939e58f6
Add redux, a store, listen to events that can lead to a change in the workers
list to update the store.
MozReview-Commit-ID: Fo0jn7Cldep
--HG--
extra : rebase_source : 63195bbd49a306c2ede41db1de1a691be4eeb5f3
Register a new application panel, disabled by default, with no icon, no shortcut
and hidden from the devtools options.
Set devtools.application.enabled to true to enable it.
MozReview-Commit-ID: L5PXZVDCRlF
--HG--
extra : rebase_source : 465dd27241e81ee2f35794ce01cf0d06939e58f6