OSR transparency lost during cross-site navigation [Windows]

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

OSR transparency lost during cross-site navigation [Windows]

Postby 0xDEADFEED » Wed Jul 05, 2017 4:25 pm

I have been debugging an issue with a recent integration of the 3071 CEF branch into my application. We have some cross-site navigation to/from transparent pages. When running with off screen rendering, disable-gpu, and disable-gpu-compositing, this navigation results in the transparent background turning opaque white.

It appears that the transparency is set to the incorrect view during some cases where the RenderFrameHostManager creates a pending render frame host. To fix the issue I made the following change:

web_contents_view_osr.cc
Code: Select all
void CefWebContentsViewOSR::RenderViewCreated(content::RenderViewHost* host) {
  if (host && host->GetWidget() && host->GetWidget()->GetView())
  {
    CefRenderWidgetHostViewOSR* PasedInView =
      static_cast<CefRenderWidgetHostViewOSR*>(host->GetWidget()->GetView());
    if (PasedInView)
    {
      PasedInView->InstallTransparency();
    }
  }
  // Old code that will use the current RenderViewHost, not the pending/created one
  //CefRenderWidgetHostViewOSR* view = GetView();
  //if (view)
  //  view->InstallTransparency();
}


Is there a reason this function was not using the passed in host param before? Also, before finding this issue, I have been seeing and working around a number of issues revolving around this type of navigation. Looking back, I'm starting to wonder if there are other Pending vs Current frame host issues lurking about.
0xDEADFEED
Newbie
 
Posts: 6
Joined: Thu Mar 30, 2017 6:00 pm

Re: OSR transparency lost during cross-site navigation [Wind

Postby magreenblatt » Wed Jul 05, 2017 6:36 pm

Please add an issue in the tracker.
magreenblatt
Site Admin
 
Posts: 12408
Joined: Fri May 29, 2009 6:57 pm

Re: OSR transparency lost during cross-site navigation [Wind

Postby 0xDEADFEED » Mon Jul 10, 2017 5:37 pm

0xDEADFEED
Newbie
 
Posts: 6
Joined: Thu Mar 30, 2017 6:00 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 56 guests