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: Created March 18, 2016, 2: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
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;

Powered by Google App Engine
This is Rietveld