Attempted to use a disabled port


Sometimes the error "Trying to use a disabled port object" appears in my chrome extension in the file: chrome / RendererExtensionBindings in line number 159.

I checked the following functions in the chrome API and in my code base:

  • chrome.tabs.connect
  • chrome.extension.connect
  • chrome.extension.onConnect (and onConnect external)

Because I know that they are the only ones using the Port object. I use only three methods for communication in my code base:

  • chrome.tabs.onRequest
  • chrome.tabs.sendRequest
  • iframe messaging (postMessage and message event listener)

In addition, I do not know in which scenario this is happening. Do you have any suggestions? maybe i'm wrong and this message may come from chrome.tabs.onRequest / chrome.tabs.sendRequest?

,
-

+5
1

, iframe. , postMessage iframe/window/tab, . " " , .

+1

All Articles