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

25266 Коммитов

Автор SHA1 Сообщение Дата
Julian Descottes cc08062262 Bug 1779972 - [devtools] Remove duplicated and unused ids in the Edit and Resend panel r=nchevobbe
Depends on D152008

Spotted a few HTML ids which were used in loops or shared components, and ended up duplicated

Differential Revision: https://phabricator.services.mozilla.com/D152060
2022-07-18 15:12:30 +00:00
Julian Descottes 2e66a46043 Bug 1779972 - [devtools] Add a tooltip for Edit and Resend names and values r=nchevobbe
Depends on D152006

Forcing name and values to one line, we should add a tooltip to show the whole content

Differential Revision: https://phabricator.services.mozilla.com/D152008
2022-07-18 15:12:29 +00:00
Julian Descottes 439f8332a1 Bug 1779972 - [devtools] Force edit and resend panel lines on a single line when not editing r=bomsy,nchevobbe
Each line of the edit and resend panel should no longer grow when resizing the panel
But when editing, we fallback to multiline

Differential Revision: https://phabricator.services.mozilla.com/D152006
2022-07-18 15:12:29 +00:00
Alexandre Poirot 890956dcd2 Bug 1619296 - [devtools] Make the TargetCommand populate its own redux store. r=nchevobbe
This allows to pull out target management code out from toolbox back to TargetCommand.
And then allows to more easily share this store in the context of the browser console,
where there is no toolbox.

This is also an interesting example on how commands may populate redux store directly
so that we avoid having each panel translate commands's event into actions.

An alternative here, would be to introduce some generic layer between commands and redux.
Which would be the glue between a command and populating a store.

Differential Revision: https://phabricator.services.mozilla.com/D151493
2022-07-18 14:54:43 +00:00
Nicolas Chevobbe 378245e250 Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 12:13:56 +00:00
Nicolas Chevobbe 1e5e7186d7 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
2022-07-18 12:13:55 +00:00
Hubert Boma Manilla 15ba96c004 Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-18 10:13:58 +00:00
Bogdan Szekely a5bbfdd85a Backed out 2 changesets (bug 1779180, bug 1779043) for causing mochitest failures on test_css-logic-media-queries.html
CLOSED TREE

Backed out changeset 95e34a0fbb39 (bug 1779043)
Backed out changeset 0931519b4ef2 (bug 1779180)
2022-07-18 10:37:32 +03:00
Nicolas Chevobbe cd5945b68a Bug 1779043 - [devtools] Fix jumping to media query in inline sheets. r=jdescottes.
We directly pass the editor stylesheet in the `location` parameter that is passed
to `jumpToLocation`.

`jumpToLocation` wasn't covered in any test, so we modify `browser_styleeditor_media_sidebar.js`
to add coverage for it.
This is also testing Bug 1779180 which is in the same stack.

Differential Revision: https://phabricator.services.mozilla.com/D151597
2022-07-18 07:05:18 +00:00
Nicolas Chevobbe 597135d899 Bug 1779180 - [devtools] Replace usages of InspectorUtils.getRuleLine with InspectorUtils.getRelativeRuleLine. r=jdescottes.
For <style> elements, `getRelativeRuleLine` gives us the position of the rule
inside a stylesheet, when `getRuleLine` gives the position of the rule relatively
to the whole HTML source.
The former is more accurate for us when we want to display such line number in
DevTools UI (for example in the StyleEditor media query sidebar).

Test will be added in next patch of this queue.

Differential Revision: https://phabricator.services.mozilla.com/D151596
2022-07-18 07:05:18 +00:00
Thomas Wisniewski f02ee7fa18 Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-15 13:26:17 +00:00
Kagami Sascha Rosylight cdb7d00f1e Bug 1354500 - Part 2: Remove IDBDatabase#storage r=dom-storage-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D151417
2022-07-15 01:55:26 +00:00
Cristian Tuns 2f5fe88da3 Backed out 19 changesets (bug 1758745, bug 1758740, bug 1762462, bug 1779603) for causing mochitest failures on browser_partitionedConsoleMessage.js CLOSED TREE
Backed out changeset e3c8cd6f00b6 (bug 1779603)
Backed out changeset 4e46a6f209b4 (bug 1762462)
Backed out changeset 00c0c6314640 (bug 1762462)
Backed out changeset 8f11221f859f (bug 1762462)
Backed out changeset ffbf90e3bbab (bug 1762462)
Backed out changeset 0c760428dfec (bug 1762462)
Backed out changeset 7c99293cc8f9 (bug 1762462)
Backed out changeset 92bd237a95e1 (bug 1762462)
Backed out changeset 74539a3cc7fc (bug 1762462)
Backed out changeset acf08a10c6fb (bug 1762462)
Backed out changeset 0cf191a7739f (bug 1762462)
Backed out changeset 030c276d6669 (bug 1762462)
Backed out changeset a88a099c684d (bug 1762462)
Backed out changeset cbd69786a24b (bug 1762462)
Backed out changeset e5e0655206a8 (bug 1762462)
Backed out changeset 707f9dfed501 (bug 1762462)
Backed out changeset 619e4bb01a81 (bug 1762462)
Backed out changeset 02b7641683b0 (bug 1758745)
Backed out changeset a2f110442038 (bug 1758740)
2022-07-14 17:26:17 -04:00
Thomas Wisniewski 657bf013fa Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-14 19:26:26 +00:00
Kagami Sascha Rosylight e87a2aeb9c Bug 1769290 - Part 25: Apply mozilla-js-handle-rooted-typedef against devtools r=andi
There are some uses without `JS::` namespace in `devtools/`. The autofix adds `JS::` everywhere and this patch intentionally keeps that for consistency, given that most of the code uses `JS::`.

Differential Revision: https://phabricator.services.mozilla.com/D151792
2022-07-14 17:00:25 +00:00
Barret Rennie bf1182a5a0 Bug 1779574 - Use OS.File to read empty files in DevTools content process r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D151827
2022-07-14 13:33:37 +00:00
Norisz Fay 388468729f Backed out 18 changesets (bug 1762462, bug 1758745, bug 1758740) for causing mochitest failures on test_storage_copied.html
Backed out changeset a27ae15872a9 (bug 1762462)
Backed out changeset b7d979a36324 (bug 1762462)
Backed out changeset 6249efe40513 (bug 1762462)
Backed out changeset 1e81ed3014a0 (bug 1762462)
Backed out changeset 92cec5f5db1c (bug 1762462)
Backed out changeset fa3c45b4de5c (bug 1762462)
Backed out changeset 64df67f43ad7 (bug 1762462)
Backed out changeset d66dd76ec2b6 (bug 1762462)
Backed out changeset 4f8aaba02a03 (bug 1762462)
Backed out changeset 81eb7d60dea9 (bug 1762462)
Backed out changeset 01504f5f818a (bug 1762462)
Backed out changeset 2615b571c9ba (bug 1762462)
Backed out changeset 73ed8be3f117 (bug 1762462)
Backed out changeset edb94ba8ec59 (bug 1762462)
Backed out changeset 21dd6fdc672e (bug 1762462)
Backed out changeset 31a70f9ad879 (bug 1762462)
Backed out changeset 5261ee5a2368 (bug 1758745)
Backed out changeset ad6ffd85ef3c (bug 1758740)
2022-07-14 03:16:08 +03:00
Thomas Wisniewski ef5b4e4444 Bug 1762462 - Make tests in devtools/client/storage/test/ reflect Always Partitioning Storage; r=jdescottes
Depends on D148042

Differential Revision: https://phabricator.services.mozilla.com/D148043
2022-07-13 22:44:58 +00:00
Nicolas Chevobbe 96eb3f5022 Bug 1779164 - [devtools] Don't override CodeMirror search UI in netmonitor response panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D151577
2022-07-13 08:09:23 +00:00
Boris Chiou 41a30d913e Bug 1293490 - Part 1: Implement CSS animation-composition longhand in style system. r=emilio
This patch introduces animation-composition longhand but we don't
accept it in @keyframe rule for now. I will support this for @keyframe
in the patch series.

Besides, the shorthand of animation doesn't include animation-composition.
The spec issue is: https://github.com/w3c/csswg-drafts/issues/6946.
We could fix the shorthand once this spec issue gets updated.

Differential Revision: https://phabricator.services.mozilla.com/D150299
2022-07-12 19:02:03 +00:00
criss 3dd6f50995 Backed out changeset ac6b6390147e (bug 1779164) for causing mochitest failures on browser_net_filter-value-preserved.js. CLOSED TREE 2022-07-12 19:25:40 +03:00
Nicolas Chevobbe 75984617a6 Bug 1779164 - [devtools] Don't override CodeMirror search UI in netmonitor response panel. r=bomsy.
Differential Revision: https://phabricator.services.mozilla.com/D151577
2022-07-12 13:32:46 +00:00
Alexandre Poirot 922cfee9b0 Bug 1778647 - [devtools] Store source's framework only once, in symbols. r=bomsy
We are currently duplicated source's framework in symbols and tabs reducers.
This is uncessary and confusing. And this possibly lead to more state/component updates.

This is mostly used to computed the source icon.
I extented test coverage to better cover the behavior of SourceIcon,
while simplifying a few things around this component by unifying the various places
where we compute the final icon, so that now it is only done by getSourceClassnames
and modifier.

Differential Revision: https://phabricator.services.mozilla.com/D151358
2022-07-12 11:55:43 +00:00
Alexandre Poirot f51d0a4a69 Bug 1778514 - [devtools] Avoid mutating source objects because of relative url computation. r=bomsy
While I'm around QuickOpen modal, I also cleanup a few things around formatSources
and avoid computing more formatting than what the modal will display.

Differential Revision: https://phabricator.services.mozilla.com/D151285
2022-07-12 11:55:43 +00:00
Alexandre Poirot 506e9307bc Bug 1778078 - [devtools] Move blackbox state to a dedicated reducer and selectors. r=bomsy
This allows to make the reducer Source object fully immutable.
`isBlackBoxed` was the last mutable attribute of it.

Doing this help pass along source object without having to care if it will ever update.
This should also help reduce the number of unecessary update to components
which manipulate sources but ignore their blackbox state.

Differential Revision: https://phabricator.services.mozilla.com/D151005
2022-07-12 11:55:42 +00:00
Julian Descottes a5ef0bcfcc Bug 1772124 - [devtools] Remove extra console.log in devtools/server/actors/network-monitor/network-observer.js r=devtools-reviewers,bomsy
Differential Revision: https://phabricator.services.mozilla.com/D151589
2022-07-12 10:57:15 +00:00
Sebastian Zartner 245d56e9c5 Bug 1734840 - Added parsing for custom formatters. r=devtools-backward-compat-reviewers,nchevobbe
The first step of parsing custom formatters for objects is checking a website for a global array called `devtoolsFormatters`.
If this array exists, it is looped over to find a custom formatter that can handle the object.
In case there is one, its `header` and `hasBody` methods are executed using `makeSideeffectFreeDebugger()` to ensure to get a result without causing any negative side effects.
Those results are then returned together with the index of the custom formatter.
This index is used in case the custom formatter's body is expandedö. In that case the `body` property is also executed in a safe way and its value then returned.

A test covers basic support of custom formatting for objects. More advanced tests will be added in bug 1752759.

Differential Revision: https://phabricator.services.mozilla.com/D146389
2022-07-12 06:29:48 +00:00
Tooru Fujisawa 6907e51f5c Bug 1777486 - Part 4: Migrate XPCOMUtils.jsm consumers with CommonJS require. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151216
2022-07-12 04:21:35 +00:00
Tooru Fujisawa b6bce4ef39 Bug 1777486 - Part 3: Migrate XPCOMUtils.jsm consumers with manual rewrite. r=kmag
Migrate some files that's not covered by ./mach esmify

Differential Revision: https://phabricator.services.mozilla.com/D151215
2022-07-12 04:21:35 +00:00
Tooru Fujisawa 54623364da Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-12 04:21:34 +00:00
Tooru Fujisawa 7a765c385a Bug 1777486 - Part 0: Use AppConstants.jsm in Cu.getGlobalForObject consumer. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151337
2022-07-12 04:21:33 +00:00
mleclair f15f91dc56 Bug 1772124 - Added Glean metrics to track different type of resources for Early Hints r=dragana,mbucher,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D148741
2022-07-11 22:46:22 +00:00
Andreea Pavel b328806a08 Backed out changeset 47dea14575f1 (bug 1764349) for failing devtools at browser_net_stacktraces-visibility.js on a CLOSED TREE 2022-07-11 22:42:09 +03:00
Andreea Pavel 7738a75fdd Backed out 11 changesets (Bug 1777486) for failing bc at browser_startup.js on a CLOSED TREE
Backed out changeset b6c4c386f1a6 (Bug 1777486)
Backed out changeset 195cc2de8433 (Bug 1777486)
Backed out changeset 20c746fb1648 (Bug 1777486)
Backed out changeset d5fd8173d62d (Bug 1777486)
Backed out changeset 6d758fab5a3e (Bug 1777486)
Backed out changeset e938b601ba15 (Bug 1777486)
Backed out changeset 0c4ea0b9416b (Bug 1777486)
Backed out changeset 0559c53cc668 (Bug 1777486)
Backed out changeset eea573d3a9f9 (Bug 1777486)
Backed out changeset 9ce3a6496a49 (bug 1777486)
Backed out changeset b0867652fc48 (bug 1777486)
2022-07-11 22:24:40 +03:00
Hubert Boma Manilla 1bf7326c9f Bug 1764349 - [devtools] Add clear functionality for network resources r=ochameau
Enable clearing of network resources on all layers(frontend, resource layer, server) when the
user click the clear button.

Differential Revision: https://phabricator.services.mozilla.com/D148694
2022-07-11 16:33:03 +00:00
Tooru Fujisawa 2244a9c200 Bug 1777486 - Part 4: Migrate XPCOMUtils.jsm consumers with CommonJS require. r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D151216
2022-07-11 15:09:14 +00:00
Tooru Fujisawa f06a07101b Bug 1777486 - Part 3: Migrate XPCOMUtils.jsm consumers with manual rewrite. r=kmag
Migrate some files that's not covered by ./mach esmify

Differential Revision: https://phabricator.services.mozilla.com/D151215
2022-07-11 15:09:14 +00:00
Tooru Fujisawa 8cd6ed7409 Bug 1777486 - Part 2: Migrate XPCOMUtils.jsm consumers with automatic migration. r=webdriver-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,kmag,owlish,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D151214
2022-07-11 15:09:13 +00:00
Tooru Fujisawa fe1f9b330b Bug 1777486 - Part 0: Use AppConstants.jsm in Cu.getGlobalForObject consumer. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151337
2022-07-11 15:09:12 +00:00
Tooru Fujisawa 83cffbf4a5 Bug 1667455 - Part 23: Update DevTools TypeScript support. r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D151270
2022-07-11 12:41:58 +00:00
Tooru Fujisawa 5e5a4576f6 Bug 1667455 - Part 17: Update devtools stub. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D150906
2022-07-11 12:41:55 +00:00
Tooru Fujisawa c26c3f5551 Bug 1667455 - Part 14: Stop importing Services.jsm in documents. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150903
2022-07-11 12:41:54 +00:00
Tooru Fujisawa 7539547097 Bug 1667455 - Part 8: Stop importing Services.jsm from chrome-priv JS code, other cases. r=kmag,necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D150897
2022-07-11 12:41:52 +00:00
Tooru Fujisawa c2a1238034 Bug 1667455 - Part 7: Stop importing Services.jsm from chrome-priv JS code, lazy cases. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150896
2022-07-11 12:41:51 +00:00
Tooru Fujisawa 47c8f80432 Bug 1667455 - Part 6: Stop importing Services.jsm from chrome-priv JS code, non-top-level or multi-line cases. r=kmag,perftest-reviewers,AlexandruIonescu,sparky
Differential Revision: https://phabricator.services.mozilla.com/D150895
2022-07-11 12:41:51 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Tooru Fujisawa f3a8c52c53 Bug 1667455 - Part 4: Stop importing Services.jsm from JSM. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,application-update-reviewers,pip-reviewers,twisniewski,devtools-reviewers,m_kato,jdescottes,ochameau,mconley,sfoster,AlexandruIonescu
Differential Revision: https://phabricator.services.mozilla.com/D150893
2022-07-11 12:41:50 +00:00
Tooru Fujisawa a8a2af4b5c Bug 1667455 - Part 2.6: Export Services from Devtools require("chrome"). r=kmag,devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D150908
2022-07-11 12:41:49 +00:00
Tooru Fujisawa 31b421254e Bug 1667455 - Part 2.5: Update DevTools TypeScript support. r=devtools-reviewers,julienw
Differential Revision: https://phabricator.services.mozilla.com/D150909
2022-07-11 12:41:49 +00:00
Tooru Fujisawa badd55d158 Bug 1667455 - Part 2: Add Services to system globals in ESLint. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150891
2022-07-11 12:41:48 +00:00