| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index 7bc3b65ad94ad57e797a296f45685f0f49f0658c..ab44b79ea82ef7e1207d259dd36c8a0134d86464 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -2341,7 +2341,7 @@ bool Document::dispatchBeforeUnloadEvent(Chrome& chrome, Document* navigatingDoc
|
| m_loadEventProgress = BeforeUnloadEventCompleted;
|
| if (!beforeUnloadEvent->defaultPrevented())
|
| defaultEventHandler(beforeUnloadEvent.get());
|
| - if (beforeUnloadEvent->result().isNull())
|
| + if (beforeUnloadEvent->returnValue().isNull())
|
| return true;
|
|
|
| if (navigatingDocument->m_didAllowNavigationViaBeforeUnloadConfirmationPanel) {
|
| @@ -2349,7 +2349,7 @@ bool Document::dispatchBeforeUnloadEvent(Chrome& chrome, Document* navigatingDoc
|
| return true;
|
| }
|
|
|
| - String text = displayStringModifiedByEncoding(beforeUnloadEvent->result());
|
| + String text = displayStringModifiedByEncoding(beforeUnloadEvent->returnValue());
|
| if (chrome.runBeforeUnloadConfirmPanel(text, m_frame)) {
|
| navigatingDocument->m_didAllowNavigationViaBeforeUnloadConfirmationPanel = true;
|
| return true;
|
|
|