| Index: third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| index bda519f1a5bd71f0ca1c1013e4219186aa5a134b..f212a2e920315aaf3a939a8e632172f097a2cff6 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxy.cpp
|
| @@ -63,11 +63,15 @@ WindowProxy::WindowProxy(v8::Isolate* isolate,
|
| lifecycle_(Lifecycle::kContextIsUninitialized) {}
|
|
|
| void WindowProxy::ClearForClose() {
|
| - DisposeContext(Lifecycle::kFrameIsDetached);
|
| + DisposeContext(Lifecycle::kFrameIsDetached, false);
|
| }
|
|
|
| void WindowProxy::ClearForNavigation() {
|
| - DisposeContext(Lifecycle::kGlobalObjectIsDetached);
|
| + DisposeContext(Lifecycle::kGlobalObjectIsDetached, true);
|
| +}
|
| +
|
| +void WindowProxy::ClearForSwap() {
|
| + DisposeContext(Lifecycle::kGlobalObjectIsDetached, false);
|
| }
|
|
|
| v8::Local<v8::Object> WindowProxy::GlobalProxyIfNotDetached() {
|
|
|