diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:33 +0000 |
commit | 086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch) | |
tree | a4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /devtools/shared/commands/resource/resource-command.js | |
parent | Adding debian version 124.0.1-1. (diff) | |
download | firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip |
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'devtools/shared/commands/resource/resource-command.js')
-rw-r--r-- | devtools/shared/commands/resource/resource-command.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/devtools/shared/commands/resource/resource-command.js b/devtools/shared/commands/resource/resource-command.js index c45dc6a584..5b34bf4442 100644 --- a/devtools/shared/commands/resource/resource-command.js +++ b/devtools/shared/commands/resource/resource-command.js @@ -826,7 +826,7 @@ class ResourceCommand { * Called everytime a resource is destroyed in the remote target. * See _onResourceAvailable for the argument description. */ - async _onResourceDestroyed({ targetFront, watcherFront }, resources) { + async _onResourceDestroyed({ targetFront }, resources) { for (const resource of resources) { const { resourceType, resourceId } = resource; this._cache.delete(cacheKey(resourceType, resourceId)); @@ -923,7 +923,7 @@ class ResourceCommand { return null; } - _onWillNavigate(targetFront) { + _onWillNavigate() { // Special case for toolboxes debugging a document, // purge the cache entirely when we start navigating to a new document. // Other toolboxes and additional target for remote iframes or content process @@ -1243,11 +1243,7 @@ const WORKER_RESOURCE_TYPES = [ // Each section added here should eventually be removed once the equivalent server // code is implement in Firefox, in its release channel. const LegacyListeners = { - async [ResourceCommand.TYPES.DOCUMENT_EVENT]({ - targetCommand, - targetFront, - onAvailable, - }) { + async [ResourceCommand.TYPES.DOCUMENT_EVENT]({ targetFront, onAvailable }) { // DocumentEventsListener of webconsole handles only top level document. if (!targetFront.isTopLevel) { return; |