| 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..b4f4df34238e00a8b9efaff3a10a185040d5ed01 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,
|
| + bool reusing_frame) {
|
| 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(), reusing_frame);
|
|
|
| if (next_status == Lifecycle::kFrameIsDetached) {
|
| // The context's frame is detached from the DOM, so there shouldn't be a
|
|
|