| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1172,6 +1172,17 @@ added: | |||
| 1172 | 1172 | ||
| 1173 | 1173 | Use this flag to enable [ShadowRealm][] support. | |
| 1174 | 1174 | ||
| 1175 | + ### `--experimental-storage-inspection` | ||
| 1176 | + | ||
| 1177 | + <!-- YAML | ||
| 1178 | + added: | ||
| 1179 | + - REPLACEME | ||
| 1180 | + --> | ||
| 1181 | + | ||
| 1182 | + > Stability: 1.1 - Active Development | ||
| 1183 | + | ||
| 1184 | + Enable experimental support for storage inspection | ||
| 1185 | + | ||
| 1175 | 1186 | ### `--experimental-test-coverage` | |
| 1176 | 1187 | ||
| 1177 | 1188 | <!-- YAML | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -677,6 +677,103 @@ setNetworkResources().then(() => { | |||
| 677 | 677 | ||
| 678 | 678 | For more details, see the official CDP documentation: [Network.loadNetworkResource](https://chromedevtools.github.io/devtools-protocol/tot/Network/#method-loadNetworkResource) | |
| 679 | 679 | ||
| 680 | + ### `inspector.DOMStorage.domStorageItemAdded` | ||
| 681 | + | ||
| 682 | + <!-- YAML | ||
| 683 | + added: | ||
| 684 | + - REPLACEME | ||
| 685 | + --> | ||
| 686 | + | ||
| 687 | + * `params` {Object} | ||
| 688 | + * `storageId` {Object} | ||
| 689 | + * `securityOrigin` {string} | ||
| 690 | + * `storageKey` {string} | ||
| 691 | + * `isLocalStorage` {boolean} | ||
| 692 | + * `key` {string} | ||
| 693 | + * `newValue` {string} | ||
| 694 | + | ||
| 695 | + This feature is only available with the | ||
| 696 | + `--experimental-storage-inspection` flag enabled. | ||
| 697 | + | ||
| 698 | + Broadcasts the `DOMStorage.domStorageItemAdded` event to connected frontends. | ||
| 699 | + This event indicates that a new item has been added to the storage. | ||
| 700 | + | ||
| 701 | + ### `inspector.DOMStorage.domStorageItemRemoved` | ||
| 702 | + | ||
| 703 | + <!-- YAML | ||
| 704 | + added: | ||
| 705 | + - REPLACEME | ||
| 706 | + --> | ||
| 707 | + | ||
| 708 | + * `params` {Object} | ||
| 709 | + * `storageId` {Object} | ||
| 710 | + * `securityOrigin` {string} | ||
| 711 | + * `storageKey` {string} | ||
| 712 | + * `isLocalStorage` {boolean} | ||
| 713 | + * `key` {string} | ||
| 714 | + | ||
| 715 | + This feature is only available with the | ||
| 716 | + `--experimental-storage-inspection` flag enabled. | ||
| 717 | + | ||
| 718 | + Broadcasts the `DOMStorage.domStorageItemRemoved` event to connected frontends. | ||
| 719 | + This event indicates that an item has been removed from the storage. | ||
| 720 | + | ||
| 721 | + ### `inspector.DOMStorage.domStorageItemUpdated` | ||
| 722 | + | ||
| 723 | + <!-- YAML | ||
| 724 | + added: | ||
| 725 | + - REPLACEME | ||
| 726 | + --> | ||
| 727 | + | ||
| 728 | + * `params` {Object} | ||
| 729 | + * `storageId` {Object} | ||
| 730 | + * `securityOrigin` {string} | ||
| 731 | + * `storageKey` {string} | ||
| 732 | + * `isLocalStorage` {boolean} | ||
| 733 | + * `key` {string} | ||
| 734 | + * `oldValue` {string} | ||
| 735 | + * `newValue` {string} | ||
| 736 | + | ||
| 737 | + This feature is only available with the | ||
| 738 | + `--experimental-storage-inspection` flag enabled. | ||
| 739 | + | ||
| 740 | + Broadcasts the `DOMStorage.domStorageItemUpdated` event to connected frontends. | ||
| 741 | + This event indicates that a storage item has been updated. | ||
| 742 | + | ||
| 743 | + ### `inspector.DOMStorage.domStorageItemsCleared` | ||
| 744 | + | ||
| 745 | + <!-- YAML | ||
| 746 | + added: | ||
| 747 | + - REPLACEME | ||
| 748 | + --> | ||
| 749 | + | ||
| 750 | + * `params` {Object} | ||
| 751 | + * `storageId` {Object} | ||
| 752 | + * `securityOrigin` {string} | ||
| 753 | + * `storageKey` {string} | ||
| 754 | + * `isLocalStorage` {boolean} | ||
| 755 | + | ||
| 756 | + This feature is only available with the | ||
| 757 | + `--experimental-storage-inspection` flag enabled. | ||
| 758 | + | ||
| 759 | + Broadcasts the `DOMStorage.domStorageItemsCleared` event to connected | ||
| 760 | + frontends. This event indicates that all items have been cleared from the | ||
| 761 | + storage. | ||
| 762 | + | ||
| 763 | + ### `inspector.DOMStorage.registerStorage` | ||
| 764 | + | ||
| 765 | + <!-- YAML | ||
| 766 | + added: | ||
| 767 | + - REPLACEME | ||
| 768 | + --> | ||
| 769 | + | ||
| 770 | + * `params` {Object} | ||
| 771 | + * `isLocalStorage` {boolean} | ||
| 772 | + * `storageMap` {Object} | ||
| 773 | + | ||
| 774 | + This feature is only available with the | ||
| 775 | + `--experimental-storage-inspection` flag enabled. | ||
| 776 | + | ||
| 680 | 777 | ## Support of breakpoints | |
| 681 | 778 | ||
| 682 | 779 | The Chrome DevTools Protocol [`Debugger` domain][] allows an | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -231,6 +231,10 @@ Enable the experimental QUIC support. | |||
| 231 | 231 | . | |
| 232 | 232 | .It Fl -experimental-inspector-network-resource | |
| 233 | 233 | Enable experimental support for inspector network resources. | |
| 234 | + | ||
| 235 | + .It Fl -experimental-storage-inspection | ||
| 236 | + Enable experimental support for storage inspection. | ||
| 237 | + | ||
| 234 | 238 | . | |
| 235 | 239 | .It Fl -force-context-aware | |
| 236 | 240 | Disable loading native addons that are not context-aware. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -229,6 +229,16 @@ const NetworkResources = { | |||
| 229 | 229 | put, | |
| 230 | 230 | }; | |
| 231 | 231 | ||
| 232 | + const DOMStorage = { | ||
| 233 | + domStorageItemAdded: (params) => broadcastToFrontend('DOMStorage.domStorageItemAdded', params), | ||
| 234 | + domStorageItemRemoved: (params) => broadcastToFrontend('DOMStorage.domStorageItemRemoved', params), | ||
| 235 | + domStorageItemUpdated: (params) => broadcastToFrontend('DOMStorage.domStorageItemUpdated', params), | ||
| 236 | + domStorageItemsCleared: (params) => broadcastToFrontend('DOMStorage.domStorageItemsCleared', params), | ||
| 237 | + // Pseudo-event: not part of the CDP DOMStorage domain. | ||
| 238 | + // Call DOMStorageAgent::registerStorage in inspector/dom_storage_agent.cc. | ||
| 239 | + registerStorage: (params) => broadcastToFrontend('DOMStorage.registerStorage', params), | ||
| 240 | + }; | ||
| 241 | + | ||
| 232 | 242 | module.exports = { | |
| 233 | 243 | open: inspectorOpen, | |
| 234 | 244 | close: _debugEnd, | |
@@ -238,4 +248,5 @@ module.exports = { | |||
| 238 | 248 | Session, | |
| 239 | 249 | Network, | |
| 240 | 250 | NetworkResources, | |
| 251 | + DOMStorage, | ||
| 241 | 252 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments