CookieStorage does not encode/decode SafeData properly
|Reported by:||Anton Baklanov||Owned by:||Claude Paroz|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When i'm trying to send a Message to user with some SafeData inside (e.g. a link) and message is saved in CookieStorage i get just str back from storage. With SessionStorage everything works, which is expected because it does not converts messages to json and back.
Here is a branch with tests and proposed solution: