Skip to content

Commit

Permalink
browsingData.removeCache: removalOptions is not optional (#36812)
Browse files Browse the repository at this point in the history
Co-authored-by: rebloor <[email protected]>
  • Loading branch information
atjn and rebloor authored Nov 27, 2024
1 parent 66fa0ac commit 73eeba4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ browser-compat: webextensions.api.browsingData.removeCache

Clears the browser's cache.

Note that although this function can take a {{WebExtAPIRef("browsingData.RemovalOptions")}} object, it will be ignored. The entire cache is always cleared when using this function.
Note that this function requires a {{WebExtAPIRef("browsingData.RemovalOptions")}} object, but all options are ignored. The entire cache is always cleared when using this function.

This is an asynchronous function that returns a [`Promise`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).

Expand All @@ -23,8 +23,8 @@ let removing = browser.browsingData.removeCache(

### Parameters

- `removalOptions` {{optional_inline}}
- : `object`. A {{WebExtAPIRef("browsingData.RemovalOptions")}} object. This parameter has no effect.
- `removalOptions`
- : `object`. A {{WebExtAPIRef("browsingData.RemovalOptions")}} object. This parameter must be set but has no effect.

### Return value

Expand Down

0 comments on commit 73eeba4

Please sign in to comment.