fix: webContents.printToPDF() with cross-process subframes (#46257)

fix: webContents.printToPDF() with cross-process subframes

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
trop[bot] 2025-03-25 11:35:15 -05:00 committed by GitHub
parent 8a120b6b58
commit 7d27b2c542
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 1 deletions

View file

@ -630,6 +630,11 @@ class WebContents final : public ExclusiveAccessContext,
void DraggableRegionsChanged(
const std::vector<blink::mojom::DraggableRegionPtr>& regions,
content::WebContents* contents) override;
void PrintCrossProcessSubframe(
content::WebContents* web_contents,
const gfx::Rect& rect,
int document_cookie,
content::RenderFrameHost* subframe_host) const override;
// content::WebContentsObserver:
void BeforeUnloadFired(bool proceed) override;