Skip to content

郑墨安

My feedback

1 result found

  1. 24 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    郑墨安 commented  · 

    BTW, Why uservoice did not support Markdown?

    An error occurred while saving the comment
    郑墨安 commented  · 

    In 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
    郑墨安 commented  · 

    I 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  · 

Feedback and Knowledge Base