-
Notifications
You must be signed in to change notification settings - Fork 9
browser-action-jplib do not meet the criteria of amo #13
Comments
|
I got another addon rejected because of 1). The proposed solution for 1) was rejected by an AMO reviewer, he said:
I'm not sure if there was any progress regarding #1 in the addon-sdk. |
@paracetamolo Have you included a link to this issue / the source code? According to the review guidelines, your add-on should be passed up to an admin reviewer in case of "Obfuscated, minified or binary code" . Use the comments box at your add-on to explain that you're using this library. If that did not help, reply to the email and ask why the add-on was rejected despite the link to the original source code. |
Yes, this issue was linked and I explained it was a workaround for a bug in the sdk. The reviewer claims that the sdk supports loading resource files and, if this is true, he is rightfully asking to load them separately instead of doing a weird hack. The question is if #1 is still around or not. |
The SDK indeed supports loading resource files, but not from third-party libraries. To comply with the review rules, you could copy the files from https://github.com/Rob--W/browser-action-jplib/tree/master/data to your extension's resource directory, and edit https://github.com/Rob--W/browser-action-jplib/blob/master/lib/browser-action-jplib-data.js to use the 'use strict';
const {load, url} = require('sdk/self');
exports.load = load;
exports.url = url; This is a terrible solution though, because you -as a library user- should not have to worry about the implementation details of a library in order to use it. |
Update, the code should be this one: 'use strict';
var self = require('sdk/self');
exports.url = self.data.url;
exports.load = self.data.load; |
Hi all, Thanks so much you @Rob--W |
The dokumentation says:
default_title: 'Badge title', // optional; shown in tooltip
default_popup: 'popup.html' // optional
So i have to store the html-file in /data.
AMO editor says:
We cannot allow executable data, such as JavaScript and HTML files, to be stored as data: URLs in static JavaScript strings. Please store them as individual files in your XPI.
console.error: mtag-toolbar-button:
Message: RequirementError: The
contentURL
option must be a valid URL.Stack:
@:0
The text was updated successfully, but these errors were encountered: