downloads.setShelfEnabled()

The setShelfEnabled() function of the downloads API enables or disables the gray shelf at the bottom of every window associated with the current browser profile. The shelf will be disabled as long as at least one extension has disabled it.

If you try to enable the shelf when at least one other extension has already disabled it, the call will fail and runtime.lastError will be set with an appropriate error message.

Note: To use this function in your extension you must ask for the "downloads.shelf" manifest permission, as well as the "downloads" permission.

Syntax

js
chrome.downloads.setShelfEnabled(enabled);

This API is also available as browser.downloads.setShelfEnabled().

Parameters

enabled

A boolean representing the state that you want to set setShelfEnabled() to — true for enable, and false for disable.

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Firefox for Android
Safari on iOS
setShelfEnabled
Chrome – Full support
Chrome 30 (Release date: 2013-10-01)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote No support
Opera – Full support
Opera 17 (Release date: 2013-10-08)
footnote Full support
Safari – No support
Safari
footnote No support
Firefox for Android – No support
Firefox for Android
footnote No support
Safari on iOS – No support
Safari on iOS
footnote No support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

Note: This API is based on Chromium's chrome.downloads API.