Index: safari/ext/background.js |
=================================================================== |
--- a/safari/ext/background.js |
+++ b/safari/ext/background.js |
@@ -42,16 +42,20 @@ |
this.browserAction = new BrowserAction(this); |
this.contextMenus = new ContextMenus(this); |
}; |
Page.prototype = { |
get url() |
{ |
return this._frames[0].url; |
}, |
+ equals: function(page) |
+ { |
+ return this._id == page._id; |
+ }, |
activate: function() |
{ |
this._tab.activate(); |
}, |
sendMessage: function(message, responseCallback) |
{ |
this._messageProxy.sendMessage(message, responseCallback, {pageId: this._id}); |
} |