Index: third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl |
diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl |
index a4221454f80043ec69787671bca75fa63b3e5d61..d899d7e5e875eab3db528aa1865d8f9dafcf127f 100644 |
--- a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl |
+++ b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl |
@@ -511,6 +511,9 @@ void {{method.name}}MethodCallback{{world_suffix}}(const v8::FunctionCallbackInf |
{##############################################################################} |
{% macro origin_safe_method_getter(method, world_suffix) %} |
+{# TODO(dcheng): This shouldn't be necessary with cross-origin interceptors, but |
+ v8 doesn't support querying the incumbent context. For now, always |
+ incorrectly create per-realm representations. #} |
static void {{method.name}}OriginSafeMethodGetter{{world_suffix}}(const v8::PropertyCallbackInfo<v8::Value>& info) { |
static int domTemplateKey; // This address is used for a key to look up the dom template. |
V8PerIsolateData* data = V8PerIsolateData::from(info.GetIsolate()); |