郑墨安
My feedback
1 result found
-
24 votes
An error occurred while saving the comment An error occurred while saving the comment 郑墨安 commentedIn https://developer.chrome.com/extensions/management#manifest , there is a note:
management.getPermissionWarningsByManifest, management.uninstallSelf, and management.getSelf do not require the management permission.
I think they only need to remove the requirement for management permission, and nothing more to do.An error occurred while saving the comment 郑墨安 commentedI found some codes added after this update, and it suggested that the developer in Wikiwand believe that they need the managemant permission, so called MANAGE AND INSTALL OTHER EXTENSIONS, to run `chrome.management.getSelf`, but actually not.
````
(function () {
var isDevelopment = false;
chrome.management.getSelf(function ({ installType }) {
if (chrome.runtime.lastError) {
console.log(chrome.runtime.lastError.message);
return;
}
if (installType.toLowerCase() === 'development') {
isDevelopment = true;
console.log('Development mode', new Date().getTime());
}
});chrome.tabs.onUpdated.addListener(function (tabId, info) {
if (info.status === 'complete') {
chrome.tabs.sendMessage(tabId, { type: 'extension-mode-development', payload: isDevelopment });
}
});
})();
````郑墨安 supported this idea ·
BTW, Why uservoice did not support Markdown?