Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: extensions/renderer/resources/messaging.js

Issue 709933002: Add frameId to MessageSender (extension messaging API) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test: sender.tab.status = 'complete' Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | extensions/renderer/runtime_custom_bindings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/resources/messaging.js
diff --git a/extensions/renderer/resources/messaging.js b/extensions/renderer/resources/messaging.js
index 5a83654c501357ad0b0a8c6578aa464076eb3fe8..d0491c01b95adc4752d757fe3f6893a8aebd5b02 100644
--- a/extensions/renderer/resources/messaging.js
+++ b/extensions/renderer/resources/messaging.js
@@ -216,6 +216,7 @@
function dispatchOnConnect(portId,
channelName,
sourceTab,
+ sourceFrameId,
sourceExtensionId,
targetExtensionId,
sourceUrl,
@@ -244,6 +245,8 @@
sender.url = sourceUrl;
if (sourceTab)
sender.tab = sourceTab;
+ if (sourceFrameId >= 0)
+ sender.frameId = sourceFrameId;
if (tlsChannelId !== undefined)
sender.tlsChannelId = tlsChannelId;
« no previous file with comments | « extensions/renderer/messaging_bindings.cc ('k') | extensions/renderer/runtime_custom_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698