webextensions-examples icon indicating copy to clipboard operation
webextensions-examples copied to clipboard

native-messaging example does not show how to correctly use Port.disconnect()

Open paul-hammant opened this issue 6 years ago • 1 comments

Ref: https://github.com/mdn/webextensions-examples/blob/master/native-messaging/add-on/background.js

And perhaps it should. Python-side too.

paul-hammant avatar Oct 21 '18 15:10 paul-hammant

I encountered a case on Chromium 96 where Port.disconnect() does not immediately disconnect the port - onMessage handler is still dispatched after disconnect() is called.

guest271314 avatar Sep 19 '21 03:09 guest271314