| Index: Source/core/frame/DOMWindow.cpp
|
| diff --git a/Source/core/frame/DOMWindow.cpp b/Source/core/frame/DOMWindow.cpp
|
| index 1912f24d0c41b58b5b0ad5c2ba45271db57635ed..e52015a91aa505202e0d1b305712bf8d06a1cea1 100644
|
| --- a/Source/core/frame/DOMWindow.cpp
|
| +++ b/Source/core/frame/DOMWindow.cpp
|
| @@ -450,7 +450,8 @@ void DOMWindow::documentWasClosed()
|
| {
|
| dispatchWindowLoadEvent();
|
| enqueuePageshowEvent(PageshowEventNotPersisted);
|
| - enqueuePopstateEvent(m_pendingStateObject ? m_pendingStateObject.release() : SerializedScriptValue::nullValue());
|
| + if (m_pendingStateObject)
|
| + enqueuePopstateEvent(m_pendingStateObject.release());
|
| }
|
|
|
| void DOMWindow::enqueuePageshowEvent(PageshowEventPersistence persisted)
|
|
|