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

the browser in the program displays a blank page without triggering the LoadStart event. #122

Open
baimindong opened this issue Nov 24, 2023 · 2 comments

Comments

@baimindong
Copy link

I use CefGlue.Avalonia in Debian 10. the AvaloniaCefBrowser in the program displays a blank page without triggering the LoadStart event.

this is CefGlue code :

internal sealed class ActionTask : CefTask
{
private Action _action;
public ActionTask(Action action)
{
_action = action;
}

    protected override void Execute()
    {
        _action();
        _action = null;
    }

    public static void Run(Action action, CefThreadId threadId = CefThreadId.UI)
    {
        CefRuntime.PostTask(threadId, new ActionTask(action));
    }
}

I found that:
CefRuntime.PostTask(threadId, new ActionTask(action))
the code was executed and returned true, but the code in the Action was not executed.

@joaompneves
Copy link
Collaborator

joaompneves commented Nov 27, 2023

This project is not yet compatible with Linux. There's an open PR, but according to the PR original creator it seems that its not working: #121

@baimindong
Copy link
Author

@joaompneves Thank you very much for reply.
I found cpf.cef , It is another open-source component, using CefGlue90. It works fine with Linux.
It's sourcecode link address is : https://gitee.com/csharpui/cpf.cef .
But it works on CPF, not Avalonia. CPF is a DotNet UI framework too.

I uploaded a example demo : http://202.85.210.133/cpf_cef_demo.zip

It need cef 90.6.5: https://cef-builds.spotifycdn.com/index.html#windows32:90.6.5%2Bg7a604aa%2Bchromium-90.0.4430.93
Download as needed windows32 / windows64 / Or linux x64 .....

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

2 participants