Session State is not implemented in GTK+ port
The test crashes because it uses WKSessionStateCopyData() that requires an implementation of WebKit::encodeLegacySessionState(). The default implementation returns NULL.
How do you actually run this test? I have worked on an implementation of this ap and tested it with minibrowser, however, I can not find documentation on how to run these type of tests.
Hi, thanks for working on this. Use the script Tools/Scripts/run-gtk-tests to run the tests. You will need to remove this test from the list of skipped tests up towards the top of that file.
That will run all the tests, though; I can't remember if I ever found a way to run a single cross-platform test or not.
Created attachment 261985 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=261985&action=review
> + This commit adds an implimentation of the LegacySessionStateCoding. It is based off of
> + the mac implimentation, however instead of using core foundation dictionaries it uses
> + UIProcess/LegacySessionStateCodingNone.cpp
Instead of doing this, let's remove it from CMakeLists.txt and add it manually to all the other Platform*.cmake files.
*** Bug 88455 has been marked as a duplicate of this bug. ***
Comment on attachment 261985 [details]
I'm sorry if I didn't explain it correctly, I didn't mean we needed a new implementation of the legacy decoders. Those are there only for compatibility with Safari, but still used by the unit tests. We already have a cross-platform implementation of the SessionState, so we don't need to copy the mac legacy encoders/decoders, but simply use the new implementation.
Created attachment 262753 [details]
This is what I meant
That looks great!
Comment on attachment 262753 [details]
Committed r191103: <http://trac.webkit.org/changeset/191103>