| Index: components/test_runner/test_runner.cc
|
| diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
|
| index 429bf34a2cfd122d66c0e568c6c060effdad5bfa..a90caf5e6614805ba293bdeef3316b19435de11b 100644
|
| --- a/components/test_runner/test_runner.cc
|
| +++ b/components/test_runner/test_runner.cc
|
| @@ -2236,7 +2236,12 @@ bool TestRunnerForSpecificView::IsCommandEnabled(const std::string& command) {
|
| }
|
|
|
| bool TestRunnerForSpecificView::CallShouldCloseOnWebView() {
|
| - return web_view()->mainFrame()->dispatchBeforeUnloadEvent();
|
| + if (web_view()->mainFrame()->toWebLocalFrame()->dispatchBeforeUnloadEvent(
|
| + false) == blink::WebLocalFrame::BeforeUnloadReturnValue::Proceed) {
|
| + return true;
|
| + }
|
| +
|
| + return false;
|
| }
|
|
|
| void TestRunnerForSpecificView::SetDomainRelaxationForbiddenForURLScheme(
|
|
|