Repository navigation
fix: allow the PDF viewer to show a save file picker again - #53326
Merged
MarshallOfSound merged 1 commit intoAug 31, 2026
Conversation
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]>
4 tasks done
MarshallOfSound
approved these changes
Aug 31, 2026
MarshallOfSound
enabled auto-merge (squash)
August 31, 2026 15:50
ckerr
approved these changes
Aug 31, 2026
MarshallOfSound
disabled auto-merge
August 31, 2026 17:47
|
Release Notes Persisted
|
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
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.