runtime.onMessage works incorrectly if run runtime.setUninstallURL

Fixed Issue #10117896

Details

Author
Alexander B.
Created
Dec 8, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.14971
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Edge 15.14971 supports browser.runtime.setUninstallURL

If call browser.runtime.setUninstallURL in the background script, than browser.runtime.onMessage works incorrectly for asynchronous messages:

bg.js:
browser.runtime.setUninstallURL(‘https://www.microsoft.com/’);

browser.runtime.onMessage.addListener(function(message, sender, sendResponse) {
    setTimeout(function() {
        sendResponse('response');
    }, 1000);
    return true;
});

onMessage doesn’t wait an asynchronous calling of sendResponse('response');, so the content script receives undefined

If remove calling browser.runtime.setUninstallURL, than browser.runtime.onMessage works fine

Please see sample in the attach

Attachments

1 attachment

Comments and activity

  • Reproduced on Edge 15.14986

  • Microsoft Edge Team

    Changed Assigned To to “Brad E.”

    Changed Assigned To to “Akshay P.”

    Changed Assigned To from “Akshay P.” to “Snehita P.”

    Changed Status to “Confirmed”

    Changed Assigned To from “Snehita P.” to “Anshul K.”

    Changed Status from “Confirmed” to “Fixed”

    Changed Assigned To to “Anshul K.”

You need to sign in to your Microsoft account to add a comment.

Sign in