Unable to send response back to popup js from content js - not working on win 10 16299

Confirmed Issue #16448655 • Assigned to Balaje K.

Details

Author
abhay k.
Created
Mar 19, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Sending message to content js from popup js using below code:

browser.tabs.query({ active: true, currentWindow: true }, function (tabs) {

        browser.tabs.sendMessage(tabs[0].id, { ShouldImport: "ShouldImport" }, function (response) {
            
            if (response.ShouldImportResponse == "Yes") {
                alert('in popup');
       
            }
        });
    });

Getting message on content js and sending back to popup.js using below code:

browser.runtime.onMessage.addListener(function (message, sender, sendResponse) {

if (message.ShouldImport == "ShouldImport") 

{
sendResponse({ ShouldImportResponse: “Yes” });
}
});

sendresponse is not sending message back to popupjs.
It works till win 10 -15063
but stopped working on win 10-16299

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Balaje K.”

      Changed Status to “Confirmed”

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

    Sign in