Chromium Site Isolation

Think CEF could benefit from a new feature or capability? Discuss CEF feature requests here.

Chromium Site Isolation

Postby jakec045 » Tue May 21, 2019 3:08 pm

Does (or will) CEF support Chromium's Site Isolation http://www.chromium.org/Home/chromium-security/site-isolation process model?
jakec045
Newbie
 
Posts: 3
Joined: Tue May 21, 2019 3:04 pm

Re: Chromium Site Isolation

Postby magreenblatt » Tue May 21, 2019 3:43 pm

It is currently disabled by default in CEF. See https://bitbucket.org/chromiumembedded/ ... er-process
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Chromium Site Isolation

Postby jakec045 » Tue May 21, 2019 5:10 pm

Thanks for the link - I voted it up.

In our embedding, a common use case is a single/base webpage whose links generate new browser tabs. Those new tabs end up in the same process as the original page. I believe that is expected behavior for target="_blank" links in the current process model. Although, after a number of clicks to create new tabs from the base page, it creates a lot of memory pressure on that one browser subprocess (often eventually leading to that process exiting due to out of memory issues).

From what I understand of site isolation, there will be a new browser subprocess created regardless of how the new tab is triggered which may help resolve the use case above.
jakec045
Newbie
 
Posts: 3
Joined: Tue May 21, 2019 3:04 pm

Re: Chromium Site Isolation

Postby magreenblatt » Wed May 22, 2019 1:06 am

Do all of the links share the same origin (protocol + host)? If so, they may continue to use the same renderer process. The most reliable way to force separate processes is by manually creating CefBrowsers with different CefRequestContexts.
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Chromium Site Isolation

Postby jakec045 » Thu May 23, 2019 12:00 pm

No, they are from various different protocol : hosts. I'm using the CefSharp wrapper at the moment... in the 'popup' handling I will try handling the operation manually (telling CefSharp/Cef to cancel the 'popup'), but need to be a bit careful since that also detaches the javascript objects associated with the operation (like 'opener' in destination page or return value of a window.open in the source page).
jakec045
Newbie
 
Posts: 3
Joined: Tue May 21, 2019 3:04 pm


Return to Feature Request Forum

Who is online

Users browsing this forum: No registered users and 10 guests