| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index 6643b522c8654e18c93e0e3822dd875ca377a551..b20ac07afa56e29a5f143b6b438998b627a40ab5 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -2971,6 +2971,7 @@ bool Document::dispatchBeforeUnloadEvent(ChromeClient& chromeClient,
|
| return false;
|
|
|
| BeforeUnloadEvent* beforeUnloadEvent = BeforeUnloadEvent::create();
|
| + beforeUnloadEvent->initEvent(EventTypeNames::beforeunload, false, true);
|
| m_loadEventProgress = BeforeUnloadEventInProgress;
|
| m_domWindow->dispatchEvent(beforeUnloadEvent, this);
|
| m_loadEventProgress = BeforeUnloadEventCompleted;
|
|
|