Commit Graph
102 Commits
Author SHA1 Message Date
cvl123abc e3d8154758 Bug 2015241 - Convert TableWidget internals to private fields and update accessors. r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D283630
2026-02-18 11:38:03 +00:00
Emilio Cobos Álvarez 0f05ae3356 Bug 2008041 - Fix DevTools TableWidget checked usage. 2026-01-07 00:06:37 +00:00
Lorenz A 04c6aa6f2b Bug 2004256 - [devtools] Turn devtools/client/shared/widgets/TableWidget.js into an ES class. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D276390
2025-12-15 15:38:40 +00:00
Mark Banner b38cd3110b Bug 1999554 - Automatically fix ESLint rule jsdoc/check-types for devtools/. r=devtools-reviewers,devtools-backward-compat-reviewers,profiler-reviewers,canaltinova
Differential Revision: https://phabricator.services.mozilla.com/D272173
2025-11-21 16:16:08 +00:00
Nicolas Chevobbe 90643ae4be Bug 1991683 - [devtools] Use Element.replaceChildren where possible. r=devtools-reviewers,ochameau.
In most of the case, we're using it to remove all children, where we used
to loop through children and removing them one by one.
In a few cases where we would actually update the element right away,
clearing the item and adding new children, we migrate to replaceChildren
so we update the Element in one go.

Differential Revision: https://phabricator.services.mozilla.com/D266984
2025-10-03 07:59:01 +00:00
Nicolas Chevobbe 6fb5debd79 Bug 1967707 - [devtools] Display error message when submitting invalid cookies. r=devtools-reviewers,fluent-reviewers,devtools-backward-compat-reviewers,jdescottes,bolsson
Differential Revision: https://phabricator.services.mozilla.com/D253128
2025-06-15 02:13:42 +00:00
cvl123abc a0c98e624c Bug 1888847 - Sync row height for TableWidget to handle tall content and maintain alignment r=nchevobbe,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D244451
2025-06-03 06:18:26 +00:00
Nicolas Chevobbe 78c8fde8c1 Bug 1896652 - [devtools] Fix layout glitch in storage table and variable view. r=devtools-reviewers,ochameau.
The plain class that was removed in Bug 1896330 was set
on a few elements in the variable view, the table and
the chart widgets, as well as in the inspector breadcrumb.
This patch removes the plain class and adjust styling
where it's needed.

Differential Revision: https://phabricator.services.mozilla.com/D210316
2024-05-15 15:56:15 +00:00
Dave Townsend 2af4d349f3 Bug 1864896: Autofix unused function arguments (devtools). r=profiler-reviewers,devtools-reviewers,nchevobbe,julienw
Differential Revision: https://phabricator.services.mozilla.com/D202959
2024-03-05 14:21:15 +00:00
Nicolas Chevobbe 2956fe754e Bug 1803646 - [devtools] Pass storage-expires-session localized value to getStoreObjects. r=jdescottes,fluent-reviewers,flod.
We need the string in devtools/shared `naturalOrder`, but we can't directly retrieve
it from the fluent file as it lives on the client (and won't be available in the
server on Android).
As the client and server might have different locales, we can't move the string
to devtools/shared.
Since the function is used from the server to make sure the data is displayed
properly on the UI, we pass the localized string to `getStoreObjects` so it's
then available to `naturalOrder`.
Tests are updated to match the new signature.

Differential Revision: https://phabricator.services.mozilla.com/D164354
2022-12-14 09:50:15 +00:00
Emilio Cobos Álvarez 1b87d733e4 Bug 1798140 - Remove table-widget-wrapper. r=jdescottes
It was needed only for sticky to work on XUL and it's not needed anymore.

The way splitters work on modern flexbox is that they take the min-width
property of the element they're resizing (without looking at descendants).

This is done for performance reasons (flex item min-width is more expensive to
compute on isolation than XUL flex was). Removing the wrapper makes the
min-width be on the right element anyways.

Differential Revision: https://phabricator.services.mozilla.com/D160722
2022-11-04 11:35:28 +00:00
Alexandre Poirot 59fe57c052 Bug 1793396 - [devtools] Use absolute URLs in all usages of loader.lazyRequireGetter. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D158489
2022-10-03 18:57:13 +00:00
Alexandre Poirot a85b82697f Bug 1792847 - [devtools] Use absolute URLs to import modules in devtools/client/shared. r=jdescottes,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D158379
2022-09-30 15:17:39 +00:00
Julian Descottes 03566c616e Bug 1789052 - [devtools] Fix storage inspector sorting logic r=nchevobbe
Two issues fixed:
- when sorting on one column, other column content should be re-arranged
- natural order sort was not symmetrical for dates and led to inconsistent sorting

Differential Revision: https://phabricator.services.mozilla.com/D156420
2022-09-05 13:00:15 +00:00
Mark Banner 3387a89bc7 Bug 1786197 - Turn on ESLint rule for prefer-boolean-length-check for devtools. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D155167
2022-08-26 13:39:34 +00:00
Kagami Sascha Rosylight a37cf7833d Bug 1695435 - Part 2: Add more words to the chrome script heuristic in use-isInstance r=preferences-reviewers,Gijs,webdriver-reviewers,whimboo,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D110932
2022-08-24 22:47:42 +00:00
Mark Banner 6d03c63e2d Bug 1330099 - Enable object-shorthand eslint rule. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D153567
2022-08-03 14:57:05 +00:00
Michael Ratcliffe 181b8d613f Bug 1713316 - IndexedDB DevTools does not load more than 50 items r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D148338
2022-06-17 16:04:07 +00:00
Michael Ratcliffe 085b3fdc81 Bug 1603831 - Fix cookie sorting by date in storage panel r=devtools-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D58074
2022-06-09 21:41:50 +00:00
Belén Albeza c7331d53d7 Bug 1706679 - [devtools] Fix local/session storage intermittents due to TableWidget error while sorting r=jdescottes
There is a race condition in which the TableWidget was trying to sort values that are no longer available in the table itself, if we change the contents of the table too quickly. This patch should also fix Bug 1696727

Differential Revision: https://phabricator.services.mozilla.com/D122970
2021-08-19 09:00:54 +00:00
Sebastian Zartner 8e1a33dbad Bug 1613356 - Fixed storage data inspection for empty strings. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D110773
2021-04-22 23:01:07 +00:00
Tim Nguyen 2e9d95655a Bug 1691314 - Use DOM hidden property instead of attribute methods in devtools/client. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D104339
2021-02-09 17:32:07 +00:00
Butkovits Atila af8d46b0fb Backed out changeset b2d82e87b557 (bug 1691314) for causing failures on browser_styleeditor_copyurl.js. CLOSED TREE 2021-02-09 19:02:15 +02:00
Tim Nguyen 6acf3f1352 Bug 1691314 - Use DOM hidden property instead of attribute methods in devtools/client. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D104339
2021-02-09 15:36:12 +00:00
Julian Descottes 104a567eab 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
Sebastian Zartner 6dd8004d9d Bug 1309824 - Show proper descriptions for storage types. r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D70663
2020-05-19 17:24:06 +00:00
Brindusan Cristian ca01ba7075 Backed out changeset 1c4b489b6aa0 (bug 1309824) for dt failures at browser_tableWidget_basic.js. CLOSED TREE 2020-05-14 00:14:16 +03:00
Sebastian Zartner 9a62afbefe Bug 1309824 - Show proper descriptions for storage types. r=jdescottes,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D70663
2020-05-13 18:38:02 +00:00
Michael Ratcliffe 8e2f99b679 Bug 1608154 - [storage] Column order should match Chrome's storage panel r=jdescottes
Summary

I needed to make changes to `devtools/client/shared/test/browser_tableWidget_mouse_interaction.js` because it was affected by the tiny change in structure to the table. This test is full of things like `table.tbody.firstChild.firstChild.firstChild` so it should be updated at some point but I am stuck for time at the moment.

Differential Revision: https://phabricator.services.mozilla.com/D59496
2020-01-22 09:33:36 +00:00
Bianca Danforth f825d9f6e8 Bug 1573201 - Add limited write support for extension storage.local data in addon debugger r=miker,rpl
* Update the extensionStorage actor to enable some writing to extension storage.local through the Storage panel client.
* All values in the client are displayed as strings, so the actor must stringify them before sending them to the client and parse them when receiving changes from the client. For this reason, there is currently limited write support.
  * Item values that are JSONifiable (numbers, strings, booleans, object literals, arrays and null) can be edited from the Storage panel.
    * Object literals and arrays are only editable if their values are JSONifiable, with a maximum nested depth of 2 (e.g. an object with a nested object is editable, provided the nested object contains only primitive values). Object literals' keys must also be strings to be editable.
  * Non-JSONifiable values cannot be edited, and will be represented by "{}" in most cases in the panel, though some non-JSONifiable values (undefined, Date, and BigInt) will be displayed as more readable strings.
  * Some modifications are a little more complex, requiring an IndexedDB transaction. This will be handled in a separate patch.
    * Item names cannot be edited from the Storage panel.
    * New items cannot be added from the Storage panel.
  * Any item can be removed.
  * All items can be removed at once.
* In-line comments referencing Bugs 1542038 and 1542039 indicate places where the implementation may differ for local storage versus the other storage areas in the actor.
* The parseItemValue method used in the client was moved to a shared directory, so that the actor could parse string values from the client in its editItem method.

Differential Revision: https://phabricator.services.mozilla.com/D34416
2019-11-22 20:09:59 +00:00
Julian Descottes 4c37b5a51f Bug 1577409 - Move natural-sort helper to fix Storage panel in remote debugging r=daisuke
Differential Revision: https://phabricator.services.mozilla.com/D43922
2019-08-30 07:43:12 +00:00
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Tim Nguyen b4c7c9080f Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190
2019-06-07 21:42:59 +00:00
Dorel Luca ee7075b3ec Backed out changeset 7bf9069eba43 (bug 1557674) for DevTools failures in devtools/client/storage/test/browser_storage_cookies_tab_navigation.js. CLOSED TREE 2019-06-08 00:10:09 +03:00
Tim Nguyen f6a909359a Bug 1557674 - Replace XUL textbox usages with HTML inputs in storage inspector. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D34190
2019-06-07 19:36:00 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Brian Grinstead c8b3483e82 Bug 1479538 - Rewrite non-test callers of document.createElementNS(XUL_NS, ...) to use document.createXULElement(...);r=paolo
Differential Revision: https://phabricator.services.mozilla.com/D3275
2018-08-14 16:22:44 +00:00
Julian Descottes 7d398985fa Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC
2018-07-18 18:01:29 +02:00
Margareta Eliza Balazs 1dbf998512 Backed out changeset 627f2adec73b (bug 1476647) for causing failures in devtools/client/storage/test/browser_storage_overflow.js 2018-07-19 09:05:35 +03:00
Julian Descottes aeb6c90ed6 Bug 1476647 - Fix TableWidget scroll position calculation;r=miker
MozReview-Commit-ID: Kn9PQMXG8bC
2018-07-18 18:01:29 +02:00
Julian Descottes 9456167901 Bug 1454696 - Fix leftover issues for prefer-const;r=yulia
MozReview-Commit-ID: JwOXoqw2mks
2018-06-01 12:19:35 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Boris Zbarsky 8a166e6246 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
Michael Ratcliffe 66b91c9ff6 Bug 1433844 - Storage inspector throws when add item, reload and arrow keys r=pbro
As far as I am aware, we can't create tests to detect whether an error has been thrown... especially if the error has no side affects.

If we really need a test for these simple four fixes you can always insist but I don't think we do.

MozReview-Commit-ID: 7j9N1X4jTHY
2018-04-26 15:56:20 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
yulia bd093feca1 Bug 1382605 - Fix 6 tests failures on devtools/client/shared due the EventEmitter refactoring r=nchevobbe
MozReview-Commit-ID: EaFYqaY2M79
2018-03-07 10:17:03 +01:00
Masayuki Nakano acd24d6ad1 Bug 1439500 - Make devtools/client/shared/widgets handle non-printable keys and key combinations with keydown event r=jryans
We'll stop dispatching keypress event for non-printable keys and key
combinations at least in web content.  This means that widget of
devtools/client cannot be tested with loading them into tabs with mochitest
browser chrome.  Fortunately, they are cleanly independent from other module's
keypress event listeners.  So, we can make they use keydown event to handle
non-printable keys and key combinations.

MozReview-Commit-ID: 6fNSsGi9VbQ
2018-02-20 18:57:35 +09:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00