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

Unified Diff: Source/modules/navigatorconnect/NavigatorConnect.cpp

Issue 799703003: Expose the origin of the client calling navigator.connect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | public/platform/WebNavigatorConnectProvider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorconnect/NavigatorConnect.cpp
diff --git a/Source/modules/navigatorconnect/NavigatorConnect.cpp b/Source/modules/navigatorconnect/NavigatorConnect.cpp
index f69ff857efc573677c6fdf4fd033b5bbfd42bcaf..6869883fe5da8aba403f0687b2aceea02bf52ef2 100644
--- a/Source/modules/navigatorconnect/NavigatorConnect.cpp
+++ b/Source/modules/navigatorconnect/NavigatorConnect.cpp
@@ -75,6 +75,7 @@ ScriptPromise NavigatorConnect::connect(ScriptState* scriptState, const String&
OwnPtr<WebMessagePortChannel> webchannel = channel->port2()->disentangle();
provider->connect(
scriptState->executionContext()->completeURL(url),
+ scriptState->executionContext()->securityOrigin()->toString(),
webchannel.leakPtr(),
new ConnectCallbacks(resolver, channel->port1()));
return promise;
« no previous file with comments | « no previous file | public/platform/WebNavigatorConnectProvider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698