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

Unified Diff: safari/ext/common.js

Issue 29338621: Issue 3788 - Keep track of Safari tabs without canLoad (Closed)
Patch Set: Strip useless "0." prefix from documentIds Created March 18, 2016, 7:52 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
diff --git a/safari/ext/common.js b/safari/ext/common.js
index ba74b672ad5e744b113798cddbeededf3de2ce14..5f7c14c861a683af02570d8bade2038e3c04a23d 100644
--- a/safari/ext/common.js
+++ b/safari/ext/common.js
@@ -29,6 +29,10 @@
_sendResponse: function(request, message)
{
var response = {};
+
+ if ("documentId" in request)
+ response["targetDocuments"] = [request["documentId"]];
+
for (var prop in request)
response[prop] = request[prop];
response.payload = message;
« 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