diff options
Diffstat (limited to 'chrome/renderer/resources/renderer_extension_bindings.js')
| -rw-r--r-- | chrome/renderer/resources/renderer_extension_bindings.js | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/chrome/renderer/resources/renderer_extension_bindings.js b/chrome/renderer/resources/renderer_extension_bindings.js index f6222d7..31b97ed 100644 --- a/chrome/renderer/resources/renderer_extension_bindings.js +++ b/chrome/renderer/resources/renderer_extension_bindings.js @@ -10,7 +10,6 @@ var chrome = chrome || {}; (function () { native function OpenChannelToExtension(id); - native function CloseChannel(portId); native function PostMessage(portId, msg); // Port object. Represents a connection to another script context through @@ -67,12 +66,6 @@ var chrome = chrome || {}; PostMessage(this.portId_, JSON.stringify(msg)); }; - // Disconnects the port from the other end. - chrome.Port.prototype.disconnect = function() { - delete chrome.Port.ports_[this.portId_]; - CloseChannel(this.portId_); - } - // Extension object. chrome.Extension = function(id) { this.id_ = id; @@ -92,10 +85,4 @@ var chrome = chrome || {}; chrome.Extension.prototype.getURL = function(path) { return "chrome-extension://" + this.id_ + "/" + path; }; - - chrome.onUnload_.addListener(function() { - for (var i in chrome.Port.ports_) { - chrome.Port.ports_[i].disconnect(); - } - }); })(); |
