| Index: content/shell/renderer/layout_test/blink_test_runner.cc
|
| diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
|
| index 09c91b67a66ea057195c38a7fef7b219d18e50c6..18ed15316b27fef73c33b755048cfa60d30386c2 100644
|
| --- a/content/shell/renderer/layout_test/blink_test_runner.cc
|
| +++ b/content/shell/renderer/layout_test/blink_test_runner.cc
|
| @@ -10,6 +10,7 @@
|
| #include <clocale>
|
| #include <cmath>
|
| #include <memory>
|
| +#include <string>
|
| #include <utility>
|
|
|
| #include "base/base64.h"
|
| @@ -1050,8 +1051,12 @@ void BlinkTestRunner::OnTestFinishedInSecondaryRenderer() {
|
|
|
| void BlinkTestRunner::OnTryLeakDetection() {
|
| blink::WebFrame* main_frame = render_view()->GetWebView()->MainFrame();
|
| - DCHECK_EQ(GURL(url::kAboutBlankURL), GURL(main_frame->GetDocument().Url()));
|
| +
|
| DCHECK(!main_frame->IsLoading());
|
| + if (main_frame->IsWebLocalFrame()) {
|
| + DCHECK_EQ(GURL(url::kAboutBlankURL),
|
| + GURL(main_frame->ToWebLocalFrame()->GetDocument().Url()));
|
| + }
|
|
|
| leak_detector_->TryLeakDetection(main_frame);
|
| }
|
|
|