Replacement for chrome.Port prototype

My extension, sharkzapper was working in older versions of Google Chrome but stopped some time when Chrome 18 or 19 was released, due to my use of the chrome.Port.prototype property which no longer exists. I was previously using it to create an object which extended a chrome.Port via prototypical inheritance so I could log all messages in and out for debugging. The source code in particular of this portion is here.

Is there any other way to inherit from chrome.Port, or any other workaround I could use to get my extension working again?

  • Chromium localStorage not showing in Developer Tools
  • Print without “print dialogue” in node-webkit
  • Event Listeners - Equivalent for Firefox?
  • Chrome Extension: window.innerWidth = 0 ? // bonus: maximizing window
  • Is there a correct way to spot non-fatal errors in js?
  • Google Chrome element remains :hover even when moved away from cursor
  • Thanks.

  • Is there any way to access certificate information from a Chrome Extension
  • Is there a correct way to spot non-fatal errors in js?
  • (Chromium) alpha color value (in rgba) in CSS and javascript
  • Content script communicate with bg page [Synchronous]
  • Web speech api not working currently in chromium / electron / nw js?
  • Disable all hyperlinks in any website