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

Child window doesn't load correctly #135

Open
mohdimas opened this issue Apr 4, 2024 · 7 comments
Open

Child window doesn't load correctly #135

mohdimas opened this issue Apr 4, 2024 · 7 comments

Comments

@mohdimas
Copy link

mohdimas commented Apr 4, 2024

Hi there,

When trying to login to twitter via apple account, the browser opens a child window to process the authentication. But in the Avalonia demo example, the child window doesn't load the url. See the attached screencast below:

Kapture 2024-04-04 at 18 23 58

Is this a known issue?

@joaompneves
Copy link
Collaborator

joaompneves commented Apr 4, 2024

Try without OSR mode on, there's a run configuration for that.

@mohdimas
Copy link
Author

mohdimas commented Apr 4, 2024

Try without OSR mode on, there's a run configuration for that.

Thanks for the quick reply, unfortunately it's the same without the OSR
Kapture 2024-04-04 at 18 43 59

@mohdimas
Copy link
Author

mohdimas commented Apr 4, 2024

I tried this demo here and it also didn't open it correctly.

Kapture 2024-04-04 at 18 49 03

@joaompneves
Copy link
Collaborator

You need to handle the popup opening, something like this:
52455aa

You should also beware that some sites (like google) don't allow users to login through embedded browsers (such as CEF).

@mohdimas
Copy link
Author

mohdimas commented Apr 5, 2024

You need to handle the popup opening, something like this: 52455aa

You should also beware that some sites (like google) don't allow users to login through embedded browsers (such as CEF).

thanks for the solution, but I'm afraid there's more to than just loading a new browser with the target url. The Apple account page behaves differently when it's opened in a new tab vs in the popup. See my demonstration:

Kapture 2024-04-05 at 17 58 18

Basically what happens with the suggestion above is like we're opening a new tab manually then load the url. And as I simulated in the screencast, it doesn't work even though it's the same url. My guess is that it's related to Window.opener property. But do you may have idea why?

@joaompneves
Copy link
Collaborator

I suggest that you look here.

@mohdimas
Copy link
Author

I suggest that you look here.

Unfortunately I couldn't find anything there. But I also tried running the Wpf example from CefSharp and it works. Meanwhile it doesn't work for CefGlue both for the Wpf and also Avalonia example.

cefsharp

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