opr.sidebarAction bg script?

  • I see that there is no background script for sidebar extensions.
    Is that mean that script(s) called from main html will have all (direct) access to Chrome/Opera APIs just like they are executing in bg page?
    tabs, storage, chrome://favicon/, downloads...etc

  • The APIs will be available for sidebar scripts just like for browser/page action pages, although no active tab permission will be granted. Also currently (this is still being designed and discussed) sidebar action pages are similar to browser/page action popups in the sense that they are loaded when the panel is shown and closed together with panel. The extension can have the background script and panel page interacting with each other and must have the required permissions to use specified APIs.

  • ok tnx
    Is there going to be limitation in the way that, sidebar extension can't have browser action or page action icon?
    in other words, can SB extension have toolbar or omnibar icon? (I guess not both, but at least one of them)

    edit: actually, SB icon is probably counted as browser action...
    so I guess that will also block any page action icons...

  • Yes, it can. You can have a sidebar action with a browser action too.

  • tnx, that's great

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.