| Index: Source/web/WebLeakDetector.cpp
|
| diff --git a/Source/web/WebLeakDetector.cpp b/Source/web/WebLeakDetector.cpp
|
| index 27b9ddf123875086258eb240b2a83f1badcbdd41..72b85fac0a9773b54c954dfadc8496f62b99f660 100644
|
| --- a/Source/web/WebLeakDetector.cpp
|
| +++ b/Source/web/WebLeakDetector.cpp
|
| @@ -103,6 +103,8 @@ void WebLeakDetectorImpl::collectGarbageAndGetDOMCounts(WebLocalFrame* frame)
|
| V8GCController::collectAllGarbageForTesting(isolate);
|
| // Note: Oilpan precise GC is scheduled at the end of the event loop.
|
|
|
| + V8PerIsolateData::from(isolate)->clearScriptRegexpContext();
|
| +
|
| // Task queue may contain delayed object destruction tasks.
|
| // This method is called from navigation hook inside FrameLoader,
|
| // so previous document is still held by the loader until the next event loop.
|
|
|