warnings on addon upload
-
A Former User last edited by
I'm getting warnings that Opera://favicon permission (also chrome://favicon/) is not needed
but if I remove it, My extension is not able to show favicons.also "clipboardWrite", "clipboardRead"...
while developing extension I didn't use it...and it was working fine but when uploading to addons page I had to add it -
for_d last edited by
unlimitedStorage is a known problem, on its way to be fixed. If you want to have it, you should include the permission and ignore the warning.
opera:favicon: You can ignore this warning. We'll look into fixing it.
clipboardRead/Write: You say: "I had to add it". Does that mean that it causes an error rather than a warning for you? If it causes a warning, you can ignore it. We'll look into fixing it.
-
for_d last edited by
Did some more research on clipboardRead and clipboardWrite.
clipboardWrite is optional to declare, but addons.opera.com actually requires it if you use document.execCommand('copy') or document.execCommand('cut'). We could change this, but I'm thinking we want to expose more permission information to the user, not less.
clipboardRead is required if you use document.execCommand('paste'), but we seem to also require it if you use 'copy', which seems to be wrong.
-
A Former User last edited by
clipboardRead/Write: You say: "I had to add it". Does that mean that it causes an error rather than a warning for you? If it causes a warning, you can ignore it. We'll look into fixing it.
No, I was confused on first upload, thought warnings were legit, so i add it...but later I removed permission and upload it (with warnings)
I also added on second upload necessary permissions that i removed after first attempt (again, because of false warnings) -
A Former User last edited by
Did some more research on clipboardRead and clipboardWrite.
clipboardWrite is optional to declare, but addons.opera.com actually requires it if you use document.execCommand('copy') or document.execCommand('cut'). We could change this, but I'm thinking we want to expose more permission information to the user, not less.
clipboardRead is required if you use document.execCommand('paste'), but we seem to also require it if you use 'copy', which seems to be wrong.sry, did't saw your second post, maybe forum had some "hiccups"...
I'm using my notes extensions without any of clipboardRead/Write permissions and document.execCommand('copy'); works fine in dev 29
so what would be the right way,
adding permission even if it's not necessary for work or ignoring warning upon upload? -
for_d last edited by
You should declare clipboardWrite, even though the extension works without it. The docs states that declaring it is optional for regular extensions, but that it is recommended to do so regardless. This way you inform your users more clearly what your extension does.