MacPWAs: Ensure correct RenderWidgetHostViewCocoa ordering
A WebContentsViewCocoa can have several RenderWidgetHostViewCocoas added as subviews. Each view, when added as a subview, in the function WebContentsViewMac::CreateViewForWidget, is put behind all other subviews (in contrast to the default behavior of -[NSView addSubview], which puts the new subview in front). The analogous code in the app shim, in the function RenderWidgetHostNSViewBridge::SetParentWebContentsNSView, orders the subviews in the default way, which does not match the behavior of the browser. As a result, the NSView ordering can get messed up, resulting in un-clickable contents. This is vaguely similar to the issue in crbug.com/859834, which also involve the login page. The login page hits these sorts of bugs because RenderWidgetHostViewMacs are added to a single WebContentsViewMac at the login page. Bug: 1017446 Change-Id: I11425603b258b47e84c6e3df55ec966cf5246191 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1892577Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: ccameron <ccameron@chromium.org> Cr-Commit-Position: refs/heads/master@{#711237}
Showing
Please register or sign in to comment