Use the outermost embedder WebContents in ConstrainedWindowMac.
Currently, ConstrainedWindowMac uses the embedder WebContents of the GuestView if the WebContents is in a GuestView. However, with OOP PDF, a mime handler view can be embedded in a webview that is embedded in an app window; in this case, the webview WebContents is used instead of the app window WebContents. This CL changes ConstrainedWindowMac to use the outermost embedder WebContents. This is the same fix as http://crrev.com/321248, but for mac. BUG=457672 Review URL: https://codereview.chromium.org/1029583007 Cr-Commit-Position: refs/heads/master@{#322305}
Showing
Please register or sign in to comment