REGRESSION(r170676): [GTK] UI process crashes when the Web Process crashes
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2014 07:56:28 +0000 (07:56 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 3 Jul 2014 07:56:28 +0000 (07:56 +0000)
commitc148b5554f4f8a98f53a9736972df0ced6c08f4e
tree76763b53b2bca1dcbf1bba4183778409cc5f853d
parent7c1dade280f4935641e1bd335f10c36f818c1c4a
REGRESSION(r170676): [GTK] UI process crashes when the Web Process crashes
https://bugs.webkit.org/show_bug.cgi?id=134541

Reviewed by Gyuyoung Kim.

It happens when attaching a new web process, because it tries to
encode a null SessionState.

* UIProcess/LegacySessionStateCodingNone.cpp:
(WebKit::encodeLegacySessionState): Return an empty API::Data
object instead of nullptr.
(WebKit::encodeLegacySessionHistoryEntryData): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@170748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/LegacySessionStateCodingNone.cpp