Repository navigation
fix: allow the PDF viewer to show a save file picker again - #53313
Merged
Merged
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.
MarshallOfSound
force-pushed
the
fix/pdf-viewer-save-file-picker
branch
from
August 30, 2026 06:45
cae015a to
cbf600f
Compare
deepak1556
approved these changes
Aug 31, 2026
jkleinsc
approved these changes
Aug 31, 2026
|
Release Notes Persisted
|
This was referenced Aug 31, 2026
Contributor
|
I have automatically backported this PR to "45-x-y", please check out #53326 |
Contributor
|
I have automatically backported this PR to "43-x-y", please check out #53327 |
Contributor
|
I have automatically backported this PR to "44-x-y", please check out #53328 |
3 tasks done
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.
Description of Change
Fixes #53286
Refs CL:7806164
ContentClient::IsFilePickerAllowedForCrossOriginSubframe()to a new browser-sideContentBrowserClient::IsCrossOriginSubframeAllowedToShowFilePicker()hook. Electron only overrode the old hook (fix: allow PDF viewer to show save file picker #51042), so the browser-side check fell through to the default and denied the PDF viewer's "save with your changes" picker withNotAllowedError: Third party iframes are not allowed to show a file picker.ChromeContentBrowserClient.Verified locally on Linux by loading a PDF and calling
window.showSaveFilePicker()from the PDF extension frame with a user gesture: before this change it rejects with the error above, after it the native save dialog opens.Checklist
Release Notes
Notes: Fixed the PDF viewer failing to save an edited PDF with
NotAllowedError: Third party iframes are not allowed to show a file picker.