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

322 Коммитов

Автор SHA1 Сообщение Дата
Sebastian Zartner 19d52149f6 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
Nicolas Chevobbe 2834d00a38 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 16:03:32 +00:00
Razvan Maries f5f48cab39 Backed out changeset 3c239920e8fb (bug 1636924) for perma failures on browser_ext_devtools_inspectedWindow.js CLOSED TREE 2020-05-15 15:33:15 +03:00
Nicolas Chevobbe 8140fccf69 Bug 1636924 - Remove unnecessary isTopLevel and type properties from onTargetAvailable/onTargetDestroyed callback parameter. r=ochameau.
Since targetFronts now have isTopLevel and targetType properties, we can directly use
those, as the targetFront is included in the callback parameter.
This patch remove those properties and refactor consumer code.

Differential Revision: https://phabricator.services.mozilla.com/D74651
2020-05-15 09:09:28 +00:00
Brindusan Cristian f6e0d86cb5 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 b5e4795236 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
Julian Descottes fdec3e7197 Bug 1625495 - Remove devtools/shared/client folder r=daisuke,ochameau,nchevobbe
Depends on D68599

This changeset moves devtools-client.js and constants.js to devtools/client and removes devtools/shared/client

Differential Revision: https://phabricator.services.mozilla.com/D68600

--HG--
rename : devtools/shared/client/constants.js => devtools/client/constants.js
rename : devtools/shared/client/devtools-client.js => devtools/client/devtools-client.js
extra : moz-landing-system : lando
2020-03-31 08:36:29 +00:00
Michael Ratcliffe 5af09e6675 Bug 1604528 - IndexedDB inspector no longer shows main process data r=jdescottes,johannh
This reverts https://hg.mozilla.org/mozilla-central/rev/c7a6f863a0cc6d74357dc53933b89a0e168c1958 so the patches are exact opposites... not much else to say ;)

Differential Revision: https://phabricator.services.mozilla.com/D59510

--HG--
extra : moz-landing-system : lando
2020-03-30 15:42:39 +00:00
Jason Laster 5f29a6d696 Bug 1622996 - Refactor devtools codebase to use optional chaining (automated changes). r=jdescottes
Depends on D67084

Differential Revision: https://phabricator.services.mozilla.com/D67537

--HG--
extra : moz-landing-system : lando
2020-03-19 21:13:38 +00:00
Ed Lee acb960676c Bug 1620556 - Automatic code fixes for Prettier 1.19.1 upgrade. r=Standard8,remote-protocol-reviewers,marionette-reviewers,webcompat-reviewers,perftest-reviewers,sparky,whimboo,denschub
Differential Revision: https://phabricator.services.mozilla.com/D66128

--HG--
extra : moz-landing-system : lando
2020-03-13 23:38:52 +00:00
Mark Banner 15cfe23b88 Bug 1620542 - Automatically fix ESLint errors in .eslintrc.js files. r=mossop
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D65703

--HG--
extra : moz-landing-system : lando
2020-03-07 10:09:44 +00:00
Liang-Heng Chen 9424bd2cc7 Bug 1615998 - QM: Fix test case in devtools; r=ttung
Differential Revision: https://phabricator.services.mozilla.com/D63151

--HG--
extra : moz-landing-system : lando
2020-02-18 11:14:49 +00:00
Alexandre Poirot f3c23535d7 Bug 1614792 - Rename DebuggerClient to DevToolsClient. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D62495

--HG--
rename : devtools/shared/client/debugger-client.js => devtools/shared/client/devtools-client.js
extra : moz-landing-system : lando
2020-02-17 13:39:25 +00:00
Liang-Heng Chen 683ccfd5e5 Bug 1602890 - use correct window/principal for cache; r=Ehsan,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D61815

--HG--
extra : moz-landing-system : lando
2020-02-17 15:58:28 +00:00
Alexandre Poirot 9073e966ec Bug 1614791 - Rename DebuggerServer to DevToolsServer. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D61363

--HG--
rename : devtools/server/debugger-server.js => devtools/server/devtools-server.js
extra : moz-landing-system : lando
2020-02-17 10:28:24 +00:00
Oana Pop Rus b84237cbb9 Backed out changeset b1527ffd4978 (bug 1602890) for dt failure in browser_aboutdebugging_devtoolstoolbox_reload.js on a CLOSED TREE 2020-02-11 16:07:50 +02:00
Liang-Heng Chen 2e5619cfe3 Bug 1602890 - use correct window/principal for cache; r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D61815

--HG--
extra : moz-landing-system : lando
2020-02-10 16:17:57 +00:00
Brandon Kraft a438b78c1b Bug 1609807 - DevTools: Use label 'None' for SameSite=None cookie values. r=nchevobbe
bug-id: 1609807

Differential Revision: https://phabricator.services.mozilla.com/D60242

--HG--
extra : moz-landing-system : lando
2020-01-23 07:34:27 +00:00
Michael Ratcliffe 41ebc71ae2 Bug 1608890 - [Storage] Column names should match those in Chrome r=jdescottes,flod
Summary

After speaking with some of the l10n guys it is clear that whenever we don't want things translated then it shouldn't be in the `.properties` file. With this in mind I have moved the table header strings into `settings.js`.

Sorry @jdescottes, that means asking you for review again.

Differential Revision: https://phabricator.services.mozilla.com/D59837

--HG--
extra : moz-landing-system : lando
2020-01-22 09:36:40 +00:00
Michael Ratcliffe 72e93e4189 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

--HG--
extra : moz-landing-system : lando
2020-01-22 09:33:36 +00:00
Brian Grinstead 68fdc5799f Bug 1608278 - Automated rewrite away from assigning properties to `this` in JSM files in devtools;r=jdescottes
This patch was generated with the script d2bbd6c459/no-this-property-assign.js
using the following command:

cp .gitignore .rgignore && rg -l -g '*.jsm' '' devtools | jscodeshift --stdin --transform ~/Code/jsm-rewrites/no-this-property-assign.js && ./mach eslint --outgoing --fix

There's also a manual fixup in Loader.jsm from const to var for a couple exports.

Differential Revision: https://phabricator.services.mozilla.com/D60030

--HG--
extra : moz-landing-system : lando
2020-01-16 17:41:38 +00:00
Samael Wang d09c6ebd50 Bug 836567 - Part 2: Replace inapplicable tests with a web-platform-test for reloading after setting javascript: URI, and fix other tests relying on javascript: URI. r=Gijs,miker
Some notes about the changes:

Both test_bug384014.html and test_bug123696.html were testing reloading of
javascript: URI. The expected result of the iframes after reloading would
become about:blank. I deleted both file and instead wrote with
web-platform-test to cover reloading of javascript: URI since wpt is more
preferable.

storage-cache-error.html was utilizing javascript: URI to test bug 1262766.
javascript: URI would cause CacheStorage::Keys to throw a dom security
exception because the URI's principal (which did not match the principal of the
document in this case!) was a nullpricipal.  With my patches the iframe's URL
would no longer be the javascript: URI, so it's no longer applicable for the
test case. Instead we can test what bug 1262766 was originally about - that
CacheStorage::Keys would throw a dom security exception if it's in a private
browsing window.

Differential Revision: https://phabricator.services.mozilla.com/D59465

--HG--
extra : moz-landing-system : lando
2020-01-14 10:43:56 +00:00
Arthur Iakab 81e789c900 Backed out changeset 83736c0c967d (bug 1604528) for causing devtools failures on browser_accessibility_panel_highlighter_multi_tab.js
CLOSED TREE
2020-01-14 14:44:13 +02:00
Michael Ratcliffe bb8ca1a840 Bug 1604528 - IndexedDB inspector no longer shows main process data r=jdescottes,johannh
This reverts https://hg.mozilla.org/mozilla-central/rev/c7a6f863a0cc6d74357dc53933b89a0e168c1958 so the patches are exact opposites... not much else to say ;)

Differential Revision: https://phabricator.services.mozilla.com/D59510

--HG--
extra : moz-landing-system : lando
2020-01-14 11:12:26 +00:00
Alexandre Poirot fd7704e4fb Bug 1602791 - Make the storage panel use the TargetList and support target switching. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D56552

--HG--
extra : moz-landing-system : lando
2019-12-16 16:22:15 +00:00
Alexandre Poirot a17b5ecf2c Bug 1602791 - Move storage front retrieval from Panel to UI. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D56551

--HG--
extra : moz-landing-system : lando
2019-12-16 17:40:33 +00:00
Kris Maglione 9853440599 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:24 +00:00
Kris Maglione 94e3b0bd8d Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-13 20:36:16 +00:00
shindli 91924fedc7 Backed out 9 changesets (bug 1596918) for causing mochitest permafailures in toolkit/content/tests/chrome/test_findbar_events.xhtml CLOSED TREE
Backed out changeset 45a1c42118f2 (bug 1596918)
Backed out changeset db09910ffa56 (bug 1596918)
Backed out changeset 5c9d9f141c10 (bug 1596918)
Backed out changeset 6a135670d603 (bug 1596918)
Backed out changeset 3a0184e0df72 (bug 1596918)
Backed out changeset 2f0036486823 (bug 1596918)
Backed out changeset a770c6d08d52 (bug 1596918)
Backed out changeset ef062eb7a6ee (bug 1596918)
Backed out changeset a6ea596e98db (bug 1596918)
2019-12-11 03:09:26 +02:00
Kris Maglione 3ca78ce8e3 Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:21 +00:00
Kris Maglione 16a9b29848 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-10 23:07:13 +00:00
Noemi Erli 82d41a33b2 Backed out 9 changesets (bug 1596918) for causing multiple browser-chrome failures
Backed out changeset 415007efd8c9 (bug 1596918)
Backed out changeset 011eb5ce927b (bug 1596918)
Backed out changeset e5fd3ee22ea1 (bug 1596918)
Backed out changeset 0bca4de31d40 (bug 1596918)
Backed out changeset 11ec4393f23d (bug 1596918)
Backed out changeset c5404a7c286d (bug 1596918)
Backed out changeset 7e9304405a46 (bug 1596918)
Backed out changeset fa0f0aeabf99 (bug 1596918)
Backed out changeset de196b077000 (bug 1596918)
2019-12-07 22:26:43 +02:00
Kris Maglione fa3556c3fc Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-07 18:44:34 +00:00
Kris Maglione 910eab35d2 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-07 19:11:58 +00:00
Daniel Varga 84a601a6d4 Backed out 17 changesets (bug 1596918) for multiple browser-chrome and dev-tools failures. On a CLOSED TREE
Backed out changeset ab87d2c1afae (bug 1596918)
Backed out changeset 775f3b06a687 (bug 1596918)
Backed out changeset 67cc63ef5d7f (bug 1596918)
Backed out changeset 7d290bcd2067 (bug 1596918)
Backed out changeset 048db9f4db7c (bug 1596918)
Backed out changeset 96a79d2ba614 (bug 1596918)
Backed out changeset be770d112dd8 (bug 1596918)
Backed out changeset 302c8ab8391c (bug 1596918)
Backed out changeset 44ef8f20732e (bug 1596918)
Backed out changeset 38c11ebfb8ff (bug 1596918)
Backed out changeset b586fc081374 (bug 1596918)
Backed out changeset 12283166716f (bug 1596918)
Backed out changeset 99b0421015d8 (bug 1596918)
Backed out changeset 97ec49dbbbf3 (bug 1596918)
Backed out changeset ec79478f58f1 (bug 1596918)
Backed out changeset c6d356833bb8 (bug 1596918)
Backed out changeset 5ef6026806c8 (bug 1596918)
2019-12-07 03:12:07 +02:00
Kris Maglione b5238224ba Bug 1596918: Part 3b - Run code formatters on files changed by previous patch. r=mccr8,remote-protocol-reviewers,ato
Differential Revision: https://phabricator.services.mozilla.com/D53741

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:22 +00:00
Kris Maglione 20da940e14 Bug 1596918: Part 3a - Scripted rewrite of most ContentTask.spawn calls to SpecialPowers.spawn calls. r=mccr8,remote-protocol-reviewers,ato
This is generally pretty straightforward, and rewrites nearly all calls. It
skips the ones that it can detect using frame script globals like
`sendAsyncMessage`, though.

Differential Revision: https://phabricator.services.mozilla.com/D53740

--HG--
extra : moz-landing-system : lando
2019-12-06 22:14:14 +00:00
Michael Ratcliffe f1c47b5478 Bug 1597890 - [Storage] Don't log an error if private field headers are not localized r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D55935

--HG--
extra : moz-landing-system : lando
2019-12-05 10:50:41 +00:00
Nicolas Chevobbe 843d235c75 Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734

--HG--
rename : devtools/client/shared/widgets/VariablesView.jsm => devtools/client/storage/VariablesView.jsm
extra : moz-landing-system : lando
2019-12-04 07:30:26 +00:00
Brindusan Cristian eaecab785f Backed out 2 changesets (bug 1529917, bug 1591874) for ESlint failure on VariablesView.jsm. CLOSED TREE
Backed out changeset a7f97f586d04 (bug 1591874)
Backed out changeset acbd48303fb3 (bug 1529917)

--HG--
rename : devtools/client/storage/VariablesView.jsm => devtools/client/shared/widgets/VariablesView.jsm
2019-12-03 19:20:19 +02:00
Nicolas Chevobbe 9167538ed8 Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734

Depends on D54733

--HG--
rename : devtools/client/shared/widgets/VariablesView.jsm => devtools/client/storage/VariablesView.jsm
extra : rebase_source : 9d02eb5765f795cec4506ddd26cbb6df08f9a4f3
2019-12-03 16:12:33 +01:00
Mihai Alexandru Michis 26c821546b Backed out 2 changesets (bug 1529917, bug 1591874) for causing build bustages in VariablesView.jsm CLOSED TREE
Backed out changeset faeca320475a (bug 1591874)
Backed out changeset 9fbb57c24aa0 (bug 1529917)
2019-12-03 17:16:53 +02:00
Nicolas Chevobbe 172e36ab1a Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734

--HG--
extra : moz-landing-system : lando
2019-12-03 15:12:33 +00:00
Mihai Alexandru Michis b518e576cf Backed out 2 changesets (bug 1529917, bug 1591874) for causing bustages in VariablesView.jsm CLOSED TREE
Backed out changeset 0b5282256e00 (bug 1591874)
Backed out changeset 5f8829083bfc (bug 1529917)
2019-12-03 15:16:14 +02:00
Nicolas Chevobbe b3d177c8bb Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734

--HG--
extra : moz-landing-system : lando
2019-12-03 11:12:19 +00:00
Narcis Beleuzu db6b5c1e00 Backed out 2 changesets (bug 1529917, bug 1591874) for build bustages on storage/moz.build . CLOSED TREE
Backed out changeset 6dc649a6a711 (bug 1591874)
Backed out changeset 9301bdb66fb4 (bug 1529917)
2019-12-03 12:24:07 +02:00
Nicolas Chevobbe 721aadf5c6 Bug 1591874 - Move VariablesView files to devtools/client/storage. r=miker.
Since the storage inspector is the last consumer of the VariablesView,
it makes sense to move the component directly in the storage inspector
folder.
Since it can't have a controller, the bits where we were checking this
are removed.

Differential Revision: https://phabricator.services.mozilla.com/D54734

--HG--
extra : moz-landing-system : lando
2019-12-03 10:10:56 +00:00
Michael Ratcliffe 135486b4d9 Bug 1594810 - Remove DevTools support for IndexedDB persistent storage r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D52564

--HG--
extra : moz-landing-system : lando
2019-11-23 23:30:36 +00:00
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
Oriol Brufau c6d83e8581 Bug 1593552 - Fix delete key not being able to remove cookies in Storage Inspector after opening context menu. r=miker
Differential Revision: https://phabricator.services.mozilla.com/D53707

--HG--
extra : moz-landing-system : lando
2019-11-19 14:01:24 +00:00