I've updated my google chrome browser from version: 56.0.2924 to 57.0.2987.
I have an extension, and it can not work in this new version. I debuged, and find the reason is chrome.runtime.sendMessage do not work. I send a message in background page:
chrome.runtime.sendMessage({"name": EVENT_ENUM.JOB_INIT, "data": job});
And i have a listener (the same background page):
chrome.runtime.onMessage.addListener(
function (request, sender, sendResponse) {
if (request.name == EVENT_ENUM.JOB_INIT) {
//do something
}
});
My manifiest has surely injected these codes.
But after run the chrome.runtime.sendMessage nothing happened. I searched but got no issue about that. Is anyone has the same issue with me? Thank you