opr.sidebarAction.setIcon API is broken => "Access to extension API denied."
-
stefanvd last edited by stefanvd
Hi there,
I am updating my Opera extensions, Note Sidebar and Page Sidebar. However, I noticed that the API for changing the icon in the sidebar no longer works. Is this the correct API?
I use Opera: 116.0.5366.21
My Manifest V3 JavaScript code in the background script:opr.sidebarAction.setIcon({ path: "/images/icon38white.png"}, function() { if (chrome.runtime.lastError) { console.error(chrome.runtime.lastError); } else { console.log('Icon changed successfully'); } });
Doc API: https://help.opera.com/en/extensions/sidebar-action-api/#method-seticon
Screenshot of the error:
Thanks,
Stefan
Browser extension developer
www.stefanvd.net -
Mascot1 last edited by
When I call the
opr.sidebarAction.setIcon
API in a Manifest V3 extension on Mac it completely crashes opera.Opera: 116.0.5366.71 (Official Build) Stable (arm64)
Revision: b25b66d9738c53e7a0c818a29d59179c026b7937-refs/branch-heads/6778@{#4325}
OS: macOS Version 15.3 (Build 24D60)