gecko-dev/devtools/client/shared/widgets
Bianca Danforth c71a7e9564 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

--HG--
rename : devtools/client/shared/vendor/JSON5_LICENSE => devtools/shared/storage/vendor/JSON5_LICENSE
rename : devtools/client/shared/vendor/JSON5_UPGRADING.md => devtools/shared/storage/vendor/JSON5_UPGRADING.md
rename : devtools/client/shared/vendor/json5.js => devtools/shared/storage/vendor/json5.js
rename : devtools/client/shared/vendor/stringvalidator/UPDATING.md => devtools/shared/storage/vendor/stringvalidator/UPDATING.md
rename : devtools/client/shared/vendor/stringvalidator/moz.build => devtools/shared/storage/vendor/stringvalidator/moz.build
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/head_stringvalidator.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/head_stringvalidator.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/test_sanitizers.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/test_sanitizers.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/test_validators.js => devtools/shared/storage/vendor/stringvalidator/tests/unit/test_validators.js
rename : devtools/client/shared/vendor/stringvalidator/tests/unit/xpcshell.ini => devtools/shared/storage/vendor/stringvalidator/tests/unit/xpcshell.ini
rename : devtools/client/shared/vendor/stringvalidator/util/assert.js => devtools/shared/storage/vendor/stringvalidator/util/assert.js
rename : devtools/client/shared/vendor/stringvalidator/util/moz.build => devtools/shared/storage/vendor/stringvalidator/util/moz.build
rename : devtools/client/shared/vendor/stringvalidator/validator.js => devtools/shared/storage/vendor/stringvalidator/validator.js
extra : moz-landing-system : lando
2019-11-22 20:09:59 +00:00
..
tooltip Bug 1590408 - Backed out changeset 84708a4f040d from Bug 1552146 r=miker 2019-11-12 15:45:57 +00:00
AbstractTreeItem.jsm Bug 1568779 - Remove editors settings comments in devtools files. r=pbro. 2019-08-19 12:48:16 +00:00
Chart.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
CubicBezierPresets.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
CubicBezierWidget.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
FilterWidget.js Bug 1554701 - Replace CssProperties.isValidOnClient() with CSS.supports() r=gl 2019-07-12 15:28:29 +00:00
FlameGraph.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
Graphs.js Bug 1592517 - Migrate devtools DOMHelpers.jsm from JSM to plain JS module r=ochameau 2019-10-30 11:25:01 +00:00
GraphsWorker.js Bug 1561435 - Format devtools/client/, a=automatic-formatting 2019-07-05 11:24:38 +02:00
LineGraphWidget.js Bug 1562642 - Part 5 - Add missing MPL2 headers in devtools/ r=jlast 2019-08-12 15:56:26 +00:00
MountainGraphWidget.js Bug 1562642 - Part 5 - Add missing MPL2 headers in devtools/ r=jlast 2019-08-12 15:56:26 +00:00
ShapesInContextEditor.js Bug 1572460 - Refactor `selection` out of the `InspectorFront`. r=yulia 2019-08-14 05:07:38 +00:00
Spectrum.js Bug 1577282 - Part 3: Convert Spectrum to ES6 Class. r=Maliha 2019-08-29 15:01:07 +00:00
TableWidget.js Bug 1573201 - Add limited write support for extension storage.local data in addon debugger r=miker,rpl 2019-11-22 20:09:59 +00:00
TreeWidget.js Bug 1568779 - Remove editors settings comments in devtools files. r=pbro. 2019-08-19 12:48:16 +00:00
VariablesView.jsm Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro 2019-11-05 14:29:04 +00:00
VariablesViewController.jsm Bug 1591330 - Remove LongStringClient. r=jdescottes. 2019-10-28 16:22:06 +00:00
cubic-bezier.css Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast 2019-08-29 10:12:25 +00:00
filter-widget.css Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast 2019-08-29 10:12:25 +00:00
graphs-frame.xhtml Bug 1546501 - Remove unnecessary type attributes (i.e. [type="application/javascript"]) on non-test script tags r=mossop 2019-04-24 19:43:57 +00:00
moz.build Bug 1505295 - Remove unused BarGraphWidget. r=gl 2019-07-18 14:24:57 -04:00
spectrum.css Bug 1575786 - Use unprefixed user-select property in devtools CSS; r=ladybenko,jlast 2019-08-29 10:12:25 +00:00
view-helpers.js Bug 1568779 - Remove editors settings comments in devtools files. r=pbro. 2019-08-19 12:48:16 +00:00
widgets.css Bug 1568779 - Remove editors settings comments in devtools files. r=pbro. 2019-08-19 12:48:16 +00:00