Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: safari/ext/common.js

Issue 5092502491103232: Deal with preloadded pages in Safari 7.0 (Closed)
Patch Set: Created Jan. 23, 2014, 3:21 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « safari/ext/background.js ('k') | safari/ext/content.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « safari/ext/background.js ('k') | safari/ext/content.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld