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

Unified Diff: content/browser/message_port_provider.cc

Issue 766623002: Verify that Message Channel Message Ports can be transferred correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix order Created 6 years 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 | « android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/message_port_provider.cc
diff --git a/content/browser/message_port_provider.cc b/content/browser/message_port_provider.cc
index d00fdf1328617f5f9b88b0654f3de4839cfb371e..12be06530fdaa872e592fe2b5e541241f2bc6cb8 100644
--- a/content/browser/message_port_provider.cc
+++ b/content/browser/message_port_provider.cc
@@ -63,6 +63,8 @@ void MessagePortProvider::CreateMessageChannel(WebContents* web_contents,
MessagePortService* msp = MessagePortService::GetInstance();
msp->Create(mf->GetNextRoutingID(), mf, port1);
msp->Create(mf->GetNextRoutingID(), mf, port2);
+ msp->Entangle(*port1, *port2);
+ msp->Entangle(*port2, *port1);
}
} // namespace content
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/PostMessageTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698