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

fix: webContents.printToPDF() with cross-process subframes
This commit is contained in:
Shelley Vohr 2025-03-25 14:16:47 +01:00 committed by GitHub
parent 8e856dfdb8
commit 1d6cb348b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 1 deletions

View file

@ -585,6 +585,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;