Thank you for releasing support for the Safari Browser Button!
The feature doesn't seem to fully work for me -- I do get a button, and it does behave correctly when I click it. But the icon is just a gray box, it is not my own icon.
In my code I am toggling my icon with:
appAPI.browserAction.setResourceIcon('icon-on.png');
its working fine in other browsers, but in Safari it just remains the gray box. Thanks for your help.
Help get this topic noticed by sharing it on
Twitter,
Facebook, or email.
Twitter,
Facebook, or email.
-
I suspect my problem here may be due to something else -- I am going to post another question re: function scope in extension.js in Safari. I would like to delete this question for now but I don't see a delete mechanism.
-
-
I've answered your question on the other thread.
Please keep us posted if this has been fixed for you or not.-
Can you post the link to the other thread?
-
-
Abihishek, this was a private thread as far as I can remember from 1 year ago :)
-
-
-
-
-
This is still a problem for me (no icon). I have two icons in my resource folder, and I switch between them using "setResourceIcon". This is working fine on all browsers except Safari.
I downloaded the extension for Safari, and untared it, and looked inside. I don't see my two icons in the archive anywhere, though I do see "Icon.png" which I am not even using. Is this a clue to the problem? -
-
More info -- the badge API doesn't seem to be working either, in Safari:
appAPI.browserAction.setBadgeText('SomeText');
I never see the badge text show up (against the gray icon), though the extension appears operating fine in all other respects. -
-
Hello Bryan:
Safari button support has only just been released (it will appear in the change log shortly) and due to browser limitations will have the following known issues:
1. The button can only be displayed in grayscale since Safari automatically converts them color images
2. The button can only display the extension icon, which means that your can't change the image with setResourceIcon. -
-
I'm having this issue now as well (extension id 28000)
I am setting the button using setResourceIcon to be same png as what the extension icon is, and instead of a grayscale version I just see a gray box. -
-
Hello Taylor:
If you are referring to Safari, then setResourceIcon is not supported. Due to Safari browser limitations, the following rules apply to Safari buttons:
1. Safari button icons are taken from the extension icon (*Settings* > *General Settings*)
2. Transparent pixels in the extension icon are rendered white, all other pixels are rendered in black/grayscale -
Loading Profile...




EMPLOYEE
EMPLOYEE

