Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore serialization replacement by query handling #262

Open
bric3 opened this issue Apr 2, 2024 · 0 comments
Open

Explore serialization replacement by query handling #262

bric3 opened this issue Apr 2, 2024 · 0 comments

Comments

@bric3
Copy link
Owner

bric3 commented Apr 2, 2024

From Vladimir Kharitonov

Looks like you may implement GET/POST handlers(to read/write file). I see in JCEF that it's possible to intercept POST (CefPostDataElement) requests as well as GET.


Other consideration about local storage

Actually starting upcoming 2024.1 version of IntelliJ platform, JCEF offers an option to use Chrome DevTools Protocol. There is no examples of using it so far.
There is no file system API. Don't think it's possible or actually needed.
Don't see a problem in accessing localStorage in CefLoadHandler . So, yes.

I wonder if we can use CefDevToolsClient to restore / save a local storage. (need to have a look at this new API 🙂)

  1. Looks like devtool protocol offers such functionality https://chromedevtools.github.io/devtools-protocol/tot/DOMStorage/#method-setDOMStorageItem
    Not sure that it's better than using JS though

I think the local storage is unique not per Frame by itself, but per origin(domain+port).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant