Index: safari/ext/common.js |
=================================================================== |
--- a/safari/ext/common.js |
+++ b/safari/ext/common.js |
@@ -69,7 +69,7 @@ |
{ |
return function(event) |
{ |
- if (event.name == "request") |
+ if (event.name == "request" && !this._ignoreIf(event)) |
listener(event.message.payload, this._getSenderDetails(event), function(message) |
{ |
this._getResponseDispatcher(event).dispatchMessage("response", |
@@ -98,7 +98,7 @@ |
if (event.name == "response" && event.message.requestId == requestId) |
{ |
responseEventTarget.removeEventListener("message", responseListener, false); |
- responseCallback(event.message.payload); |
+ responseCallback(event.message); |
} |
}; |
responseEventTarget.addEventListener("message", responseListener, false); |