From 97cd3bd0d7e0ddb530301008c1fd718543d758c7 Mon Sep 17 00:00:00 2001 From: Anton Date: Fri, 15 Nov 2024 17:34:06 +0100 Subject: [PATCH] browsingData.removeCache: removalOptions is not optional --- .../webextensions/api/browsingdata/removecache/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/mozilla/add-ons/webextensions/api/browsingdata/removecache/index.md b/files/en-us/mozilla/add-ons/webextensions/api/browsingdata/removecache/index.md index 61573a0a3bd25ab..a37475301b57519 100644 --- a/files/en-us/mozilla/add-ons/webextensions/api/browsingdata/removecache/index.md +++ b/files/en-us/mozilla/add-ons/webextensions/api/browsingdata/removecache/index.md @@ -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). @@ -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