You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PDF viewer window.showSaveFilePicker NotAllowedError #53286
I agree to follow the Code of Conduct that this project adheres to.
I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
43.0.0-alpha.3, 43.4.1, 44.0.0, 45.0.0-alpha.1
What operating system(s) are you using?
Windows
Operating System Version
Windows 11 Enterprise 23H2
What arch are you using?
x64
Last Known Working Electron version
43.0.0-alpha.2
Does the issue also appear in Chromium / Google Chrome?
No
Expected Behavior
Downloading PDFs with changes should work.
Actual Behavior
When trying to download a modified PDF "with your changes" the following error is thrown:
window.showSaveFilePicker failed: NotAllowedError: Failed to execute 'showSaveFilePicker' on 'Window': Third party iframes are not allowed to show a file picker.
This bug was already present in earlier electron versions and was fixed, see issue and pr. The bug is reproducible with the gist of the original issue.
With version 43.0.0-alpha.3 chromium was updated to 150.0.7834.0 pr. In chromium 150.0.7833.0, the logic for IsFilePickerAllowedForCrossOriginSubframe changed, see this pr.
Additional note: With electron 43.0.0-alpha.2 the save dialog will open, but if the dialog gets closed via cancel or x button, the electron window cannot be closed and the process has to be killed.
EDIT: Added gist. Use the "Draw" function from the PDF viewer to modify the pdf and try to download the modified pdf. The error is printed in the devtools console.
Activity