Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ sidebar: addonsidebar
Gets the amount of storage space, in bytes, used by one or more items stored in the storage area.

> [!NOTE]
> In Firefox this method:
> In Firefox, this method is supported in:
>
> - is supported in {{WebExtAPIRef("storage.sync")}}.
> - is supported in {{WebExtAPIRef("storage.session")}} from Firefox 131.
> - isn't supported in {{WebExtAPIRef("storage.local")}}, see [Firefox bug 1385832](https://bugzil.la/1385832).
> - isn't provided in {{WebExtAPIRef("storage.managed")}}.
> - {{WebExtAPIRef("storage.sync")}}.
> - {{WebExtAPIRef("storage.session")}} from Firefox 131.
> - {{WebExtAPIRef("storage.local")}} and {{WebExtAPIRef("storage.managed")}} from Firefox 144.

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

Expand Down
1 change: 1 addition & 0 deletions files/en-us/mozilla/firefox/releases/144/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ Firefox 144 is the current [Nightly version of Firefox](https://www.firefox.com/
## Changes for add-on developers

- Adds the ability to determine the priority of CSS injected from the [`"content_scripts"` manifest key](/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/content_scripts), in {{WebExtAPIRef("scripting.registerContentScripts()")}} with the `cssOrigin` property on {{WebExtAPIRef("scripting.RegisteredContentScript")}}, and the `cssOrigin` property in {{WebExtAPIRef("contentScripts.register")}}. By default, the `"author"` origin takes precedence. ([Firefox bug 1679997](https://bugzil.la/1679997))
- Adds support for {{WebExtAPIRef("storage.StorageArea.getBytesInUse()","getBytesInUse()")}} to {{WebExtAPIRef("storage.local")}} and {{WebExtAPIRef("storage.managed")}}. ([Firefox bug 1385832](https://bugzil.la/1385832))

<!-- ### Removals -->

Expand Down