Skip to content

fix: allow the PDF viewer to show a save file picker again - #53326

Merged
MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-allow-the-pdf-viewer-to-show-a-save-file-picker-again-1788190352434
Aug 31, 2026
Merged

MarshallOfSound merged 1 commit into
45-x-yfrom
trop/45-x-y-bp-fix-allow-the-pdf-viewer-to-show-a-save-file-picker-again-1788190352434

Conversation

@trop

@trop trop Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Backport of #53313

See that PR for details.

Notes: Fixed the PDF viewer failing to save an edited PDF with NotAllowedError: Third party iframes are not allowed to show a file picker.

Chromium 150 (CL 7806164) moved the authoritative cross-origin file picker
check from the renderer-side ContentClient hook to a new browser-side
ContentBrowserClient::IsCrossOriginSubframeAllowedToShowFilePicker() hook.
Electron only overrode the old hook, so the browser-side check fell through
to the default (deny) and the PDF viewer's "save with your changes" flow
failed with NotAllowedError: Third party iframes are not allowed to show a
file picker.

Override the new hook for the PDF extension origin, matching what Chrome
does in ChromeContentBrowserClient.

Co-authored-by: Sam Attard <[email protected]>
@trop
trop Bot requested a review from MarshallOfSound August 31, 2026 15:32
@trop trop Bot added 45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 31, 2026
@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) August 31, 2026 15:50
@MarshallOfSound
MarshallOfSound merged commit 2b8b111 into 45-x-y Aug 31, 2026
93 of 95 checks passed
@release-clerk

release-clerk Bot commented Aug 31, 2026

Copy link
Copy Markdown

Release Notes Persisted

Fixed the PDF viewer failing to save an edited PDF with NotAllowedError: Third party iframes are not allowed to show a file picker.

@MarshallOfSound
MarshallOfSound deleted the trop/45-x-y-bp-fix-allow-the-pdf-viewer-to-show-a-save-file-picker-again-1788190352434 branch August 31, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants