fune/devtools/client/shared
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
..
build Bug 1573560 - Have Node compilation write directly into FINAL_TARGET instead of requiring a symlink r=firefox-build-system-reviewers,jlast,mshal 2019-11-04 23:15:19 +00:00
components Bug 1592969 - Show async separator in Frame component. r=davidwalsh. 2019-11-07 17:28:45 +00:00
fluent-l10n
redux
remote-debugging
source-map Bug 1588637 - perf: Reduce memory allocation, avoid regular expressions and layout trashing r=davidwalsh 2019-10-16 18:44:13 +00:00
sourceeditor Backed out 11 changesets (bug 1582512) for causing valgrind bustages. 2019-11-20 18:44:45 +02:00
test Backed out 11 changesets (bug 1582512) for causing valgrind bustages. 2019-11-20 18:44:45 +02:00
vendor 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
widgets 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
async-store-helper.js
autocomplete-popup.js
browser-loader-mocks.js
browser-loader.js
css-angle.js
curl.js
demangle.js
devices.js
enum.js
events.js
focus.js
getjson.js
inplace-editor.js Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro 2019-11-05 14:29:04 +00:00
key-shortcuts.js Bug 1569572 - Do not throw in DevTools key-shortcuts.js when called with a null object r=nchevobbe 2019-11-07 11:02:57 +00:00
keycodes.js
link.js
moz.build Bug 1592513 - Move DOMHelpers.jsm from devtools/client/shared/ to devtools/shared/ r=rcaliman 2019-10-30 11:05:04 +00:00
node-attribute-parser.js
options-view.js
output-parser.js Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro 2019-11-05 14:29:04 +00:00
poller.js
prefs.js
react-utils.js
scroll.js
source-utils.js Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro 2019-11-05 14:29:04 +00:00
splitview.css
SplitView.jsm
stylesheet-utils.js
suggestion-picker.js
telemetry.js Bug 1593921 - Use eslint-disable-next-line to disable complexity checks in DevTools r=pbro 2019-11-05 14:29:04 +00:00
theme-switching.js
theme.js
thread-utils.js Bug 1594941 - Remove unused Frame.environment field. r=bhackett 2019-11-19 19:53:14 +00:00
undo.js
unicode-url.js
view-source.js Bug 1519103 - Remove Scratchpad panel. r=bgrins. 2019-10-27 09:05:58 +00:00
WeakMapMap.js
webgl-utils.js
workers-listener.js Bug 1590401 - Refactor Front.onFront+onFrontDestroyed into Front.watchFronts. r=jdescottes 2019-11-20 17:13:01 +00:00
zoom-keys.js