forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[unseasoned-pdf] Print the correct RenderFrameHost using one WebContents
GetRenderFrameHostToUse() took two WebContents to apply its heuristics for printing the right RenderFrameHost. The function assumed the WebContents to use were that of a full page plugin if and only if it was different than the "owning" WebContents. That logic was faulty when the "owning" WebContents was that of a full page plugin already, which is possible when the print operation is targeted to the plugin's WebContents from the context menu. Instead, directly check whether the WebContents to use is a full page plugin, and dispose of the need to check using the "owning" WebContents. Fixed: 1259307 Change-Id: I36ee95f2385a457e18db43a24f853f9fd1bdbc1d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3219937 Reviewed-by: Lei Zhang <thestig@chromium.org> Commit-Queue: Daniel Hosseinian <dhoss@chromium.org> Cr-Commit-Position: refs/heads/main@{#931850}
- Loading branch information
Daniel Hosseinian
authored and
Chromium LUCI CQ
committed
Oct 15, 2021
1 parent
9b241cc
commit df5669f
Showing
2 changed files
with
39 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters