| Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| index f1363a1dab40481862f6c971bd07b950a2c70ad7..901a73831f44c4cf0eb827f20b37b63c7c53521e 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp
|
| @@ -676,6 +676,10 @@ LocalDOMWindow* enteredDOMWindow(v8::Isolate* isolate)
|
| // We don't always have an entered DOM window, for example during microtask callbacks from V8
|
| // (where the entered context may be the DOM-in-JS context). In that case, we fall back
|
| // to the current context.
|
| + //
|
| + // TODO(haraken): It's nasty to return a current window from enteredDOMWindow.
|
| + // All call sites should be updated so that it works even if it doesn't have
|
| + // an entered window.
|
| window = currentDOMWindow(isolate);
|
| ASSERT(window);
|
| }
|
|
|