In my chrome extension sometimes I have an error of "Attempting to use disconnected port object", in file : chrome/RendererExtensionBindings, in line number 159.
I checked in the chrome API and in my code base the next functions:
Because I know that they are the only using the Port object.. I am using only three methods for communication in my code base:
In addition I don't know in which scenario it happens.. do you have suggestions? maybe I am wrong and this message can pop from chrome.tabs.onRequest/ chrome.tabs.sendRequest?
Thanks in advance,
- Yosy
I think your issue is with the iframe messaging. More specifically you are trying to postMessage
to an iframe/window/tab that no longer exists. Try using the Developer Tools scripts tab to pause on uncaught exceptions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With