Skip to content

PDF viewer window.showSaveFilePicker NotAllowedError #53286

Closed

Description

@stefanodaker

Preflight Checklist

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.

Testcase Gist URL

https://gist.github.com/stefanodaker/d6dabb7f5cf175938f97a8fb231b77f1

Additional Information

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

  1. added theissue type on Aug 28, 2026
  2. moved this to 👀 Unsorted Items in 44-x-yon Aug 28, 2026
  3. moved this to 👀 Unsorted Items in 45-x-yon Aug 28, 2026
  4. moved this from 👀 Unsorted Items to 🛠️ Fixed for Next Release in 45-x-yon Sep 2, 2026
  5. moved this from 👀 Unsorted Items to 🛠️ Fixed for Next Release in 44-x-yon Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

  • Status
    🛠️ Fixed for Next Release

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions