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

Unified Diff: chrome/renderer/extensions/app_bindings.cc

Issue 8659009: Consider the origin when computing extension permissions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/renderer/extensions/app_bindings.cc
===================================================================
--- chrome/renderer/extensions/app_bindings.cc (revision 112565)
+++ chrome/renderer/extensions/app_bindings.cc (working copy)
@@ -187,8 +187,9 @@
v8::Handle<v8::Value> AppBindingsHandler::GetDetailsForFrameImpl(
WebFrame* frame) {
- const ::Extension* extension =
- dispatcher_->extensions()->GetByURL(frame->document().url());
+ const ::Extension* extension = dispatcher_->extensions()->GetByURL(
+ ExtensionURLInfo(frame->document().securityOrigin(),
+ frame->document().url()));
if (!extension)
return v8::Null();
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/extensions/chrome_v8_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698