mdn/webextensions-examples

Native messaging example doesn't pong after a while

Risto-Stevcev opened this issue · 3 comments

Here's a screencast of what it looks like:

bug

Is the beahaviour specific to Firefox?

I'm not sure, but it's happening on Firefox, I don't currently use Chrome or Safari

Cannot reproduce.

I included this at the top of background.js

const start = new Date();

then this inside onMessage handler

console.log("Received: " + response, (new Date() - start) / 60000);

At the time of the screenshot of inspected window the extension has been active for 13 minutes.

Screenshot_2022-12-11_07-21-21