Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Google earth is not loading in v93.1.1.140#3826

RamakrishnaKolli started this conversation inGeneral
Discussion options

Hello Team,

I have downloaded the CefSharp.MinimalExample from the GitHub repohttps://github.com/cefsharp/CefSharp.MinimalExample.

Which is having the CefSharp NuGet package with version 93.1.1.140, I am running WPF app on my windows 10 x64 machine (project platform set to x64 in visual studio).

And when I run the project and navigate tohttp://earth.google.com in the browser, the web page is not loading even after 2minutes.

I made some changes to the App.xaml file to enable WebGL, even after that, I observed the same behavior with Google earth.

settings.CefCommandLineArgs.Add("enable-gpu");
settings.CefCommandLineArgs.Add("enable-webgl");

Even same behavior observed with WinForms application also.

Can you guys please help me with this, am I missing any thing on configuration.

You must be logged in to vote

Replies: 8 comments 4 replies

This comment has been hidden.

This comment has been hidden.

@amaitland

This comment has been hidden.

This comment has been hidden.

@amaitland

This comment has been hidden.

This comment has been hidden.

@amaitland

This comment has been hidden.

Comment options

Google Earth is usingShareArrayBuffer which can be enabled with an origin trial which it seems like cef does not support.

Here is the relevant exception from the DevTools log:

[0925/090023.156:INFO:CONSOLE(1)] "Uncaught ReferenceError: SharedArrayBuffer is not defined", source: https://earth.google.com/static/9.146.0.2/earthwasm.js (1)

Chrome:
image

CefSharp:
image

See:https://developer.chrome.com/blog/enabling-shared-array-buffer/

However I was able to get it working by enabling theSharedArrayBuffer feature via command line argument:

settings.CefCommandLineArgs.Add("enable-features","SharedArrayBuffer");

You might need to clear thecache folder.

Seehttps://web.dev/cross-origin-isolation-guide/

CefSharp:
image

image

You must be logged in to vote
0 replies
Comment options

@campersau: Amazing, thanks a lot. That worked like a charm. ✔✔
image

@amaitland: Thanks for pointing out in the right direction. 👍👍

You must be logged in to vote
1 reply
@amaitland
Comment options

However I was able to get it working by enabling the SharedArrayBuffer feature via command line argument:

This suggestion should come with a security disclaimer.

Comment options

Background information:
I have created a discussion ticket last time on enabling geo-location in cefsharp (even with fixed longitude and latitude),@amaitland suggested to use emualtion.

Tried setting fixed values, but getting same issue.
Browser.GetDevToolsClient().Emulation.SetGeolocationOverrideAsync(37.2968617,-121.81741295,50);

image

@campersau : Do you have any suggestion on this on how to enable ?
#3719

You must be logged in to vote
0 replies
Comment options

Hi@campersau:
i was going through few articles regarding ShareArrayBuffer is prone to "Spectre and Meltdown" attacks, and need to enable CORP.
https://developer.chrome.com/blog/enabling-shared-array-buffer/
https://web.dev/cross-origin-isolation-guide/

I am using below args, please let me know if that solve the problem of security.

//Isolates the browsing context exclusively to same-origin documents. Cross-origin documents are not loaded in the same browsing context.
settings.CefCommandLineArgs.Add("cross-origin-resource-policy", "same-site");
//A document can only load resources from the same origin, or resources explicitly marked as loadable from another origin
settings.CefCommandLineArgs.Add("cross-origin-opener-policy", "same-origin");
settings.CefCommandLineArgs.Add("cross-origin-embedder-policy", "require-corp");
settings.CefCommandLineArgs.Add("enable-features", "SharedArrayBuffer");

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
4 participants
@RamakrishnaKolli@amaitland@campersau@schandra09net
Converted from issue

This discussion was converted from issue #3825 on September 24, 2021 19:05.


[8]ページ先頭

©2009-2025 Movatter.jp