| 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 3b33bb890be160e9c7ee7d28faaae173b2a5a685..5ec7d5637e4054dd55ead0bd3f22f33ff836edb0 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
|
|
|