| Index: Source/bindings/scripts/code_generator_v8.pm
|
| diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
|
| index a0e3fcd3102a20d470ba26a43d69e12d2616a4c4..424850d54aff65cef84273053f5f8d0d8994fa51 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -1232,8 +1232,8 @@ static void ${funcName}OriginSafeMethodGetter${forMainWorldSuffix}(const v8::Pro
|
|
|
| v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8ClassName}::GetTemplate(info.GetIsolate(), currentWorldType));
|
| if (holder.IsEmpty()) {
|
| - // can only reach here by 'object.__proto__.func', and it should passed
|
| - // domain security check already
|
| + // This is only reachable via |object.__proto__.func|, in which case it
|
| + // has already passed the same origin security check
|
| v8SetReturnValue(info, privateTemplate->GetFunction());
|
| return;
|
| }
|
| @@ -3354,10 +3354,6 @@ sub GenerateNonStandardFunction
|
| # and then accessed on a different domain we do not return the underlying value but instead
|
| # return a new copy of the original function. This is achieved by storing the changed value
|
| # as hidden property.
|
| - $code .= <<END;
|
| -
|
| - // $commentInfo
|
| -END
|
| if ($function->extendedAttributes->{"PerWorldBindings"}) {
|
| $code .= <<END;
|
| if (currentWorldType == MainWorld) {
|
|
|