| 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 a036d5839d10565c153094f907d8123dcc7e408e..2dbda1416c78df2807af4184a0714c794f6f66b0 100644
|
| --- a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| +++ b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
| @@ -493,9 +493,9 @@ static void postMessageImpl(const char* interfaceName, {{cpp_class}}* instance,
|
| return;
|
| }
|
|
|
| - // FIXME: Only pass context/exceptionState if instance really requires it.
|
| - ExecutionContext* context = currentExecutionContext(info.GetIsolate());
|
| - instance->postMessage(context, message.release(), transferables.messagePorts, exceptionState);
|
| + // FIXME: Only pass scriptState/exceptionState if instance really requires it.
|
| + ScriptState* scriptState = ScriptState::current(info.GetIsolate());
|
| + instance->postMessage(scriptState, message.release(), transferables.messagePorts, exceptionState);
|
| }
|
| {% endmacro %}
|
|
|
|
|