Local storage lost after update to 129. New Default folder.

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Local storage lost after update to 129. New Default folder.

Postby smayoral » Thu Nov 14, 2024 6:47 am

Hi,
we were using version 127.0.6533.100 for Windows.
we updated to 130.0.6723.70 and after starting our application all information saved in the local storage went lost.

After many investigation we figured out that the new Chromium version creates a new folder under:

C:\...\chromium\cache

which is called Default

Inside this Default folder there is another LocalStorage folder:

C:\...\chromium\cache\Default\Local Storage\leveldb

And apparently Chromium reads the localStorage from this folder but the old content is already in the original LocalStorage folder:

C:\...\chromium\cache\Local Storage\leveldb

If I override the content inside the Default folder with the old content I get the data back and my application loads the old local storage content.

How can we avoid this problem? Why is this Default folder created?

Regards,
Sergio
smayoral
Mentor
 
Posts: 58
Joined: Wed Jan 10, 2018 8:58 am

Re: Local storage lost after update to 129. New Default fold

Postby magreenblatt » Thu Nov 14, 2024 8:16 am

magreenblatt
Site Admin
 
Posts: 12807
Joined: Fri May 29, 2009 6:57 pm

Re: Local storage lost after update to 129. New Default fold

Postby smayoral » Thu Nov 14, 2024 10:25 am

thanks for the answer.
During startup of my application and before anything with Cef Chromium is initialized, I create the Default directory (if not available) and then copy the old Local Storage, Session Storage and Network directories (also if available) to the new created Default directory.
Local Storage is then ok.
smayoral
Mentor
 
Posts: 58
Joined: Wed Jan 10, 2018 8:58 am

Re: Local storage lost after update to 129. New Default fold

Postby a1dharm » Thu Nov 28, 2024 1:57 am

Can we disable to auto create default folder and use existing location for local storage.
a1dharm
Techie
 
Posts: 27
Joined: Fri Oct 22, 2021 2:08 am

Re: Local storage lost after update to 129. New Default fold

Postby amaitland » Thu Nov 28, 2024 3:50 am

No, you'll need to migrate the folder structure.
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1315
Joined: Wed Jan 14, 2015 2:35 am

Re: Local storage lost after update to 129. New Default fold

Postby a1dharm » Thu Nov 28, 2024 7:46 am

Actually the problem is after moving the localstorage to default folder. the localstorage is overwriting or doesn't locating same folder by Cefsharp. So is there any flag/way to prevent overwriting/locating the same localstorage folder.

Our problem is we are storing the token in the local storage but after upgradation it is asking for reauthentication.
a1dharm
Techie
 
Posts: 27
Joined: Fri Oct 22, 2021 2:08 am

Re: Local storage lost after update to 129. New Default fold

Postby amaitland » Thu Nov 28, 2024 3:46 pm

Likely it overrides as it's invalid. There's no setting.

Have you tried the suggestion in https://github.com/cefsharp/CefSharp/is ... 2187957130
Maintainer of the CefSharp project.
amaitland
Virtuoso
 
Posts: 1315
Joined: Wed Jan 14, 2015 2:35 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 29 guests