| Index: third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| index d8c2cd101c1a4d38de65d939beee3e7c39063e5d..c6917f364d78d0d7834aabb950b46496a0e3173b 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| @@ -64,7 +64,8 @@
|
|
|
| namespace blink {
|
|
|
| -void LocalWindowProxy::DisposeContext(Lifecycle next_status) {
|
| +void LocalWindowProxy::DisposeContext(Lifecycle next_status,
|
| + FrameReuseStatus frame_reuse_status) {
|
| DCHECK(next_status == Lifecycle::kGlobalObjectIsDetached ||
|
| next_status == Lifecycle::kFrameIsDetached);
|
|
|
| @@ -99,12 +100,11 @@ void LocalWindowProxy::DisposeContext(Lifecycle next_status) {
|
| }
|
|
|
| script_state_->DisposePerContextData();
|
| -
|
| // It's likely that disposing the context has created a lot of
|
| // garbage. Notify V8 about this so it'll have a chance of cleaning
|
| // it up when idle.
|
| V8GCForContextDispose::Instance().NotifyContextDisposed(
|
| - GetFrame()->IsMainFrame());
|
| + GetFrame()->IsMainFrame(), frame_reuse_status);
|
|
|
| if (next_status == Lifecycle::kFrameIsDetached) {
|
| // The context's frame is detached from the DOM, so there shouldn't be a
|
|
|