Skip to content

PDF viewer showSaveFilePicker CORS error #51041

Closed

Description

@tbratanov

Preflight Checklist

Electron Version

41.2.0, 42.0.0-beta.3

What operating system(s) are you using?

Windows

Operating System Version

Windows 11 Business, 25H2, 26200.8037

What arch are you using?

x64

Last Known Working Electron version

40.8.3

Does the issue also appear in Chromium / Google Chrome?

No

Expected Behavior

The user should be able to open and fill out PDF files with forms and save them with the changes applied to the file.

Actual Behavior

The user is able to open a PDF file with a form within. Upon entering the data within the form and selecting another field - when the user clicks on the 'save' icon they are prompted with 2 options from a drop-down menu displayed from the 'save' button - 'with your changes' & 'without your changes'. Upon selecting 'with your changes' a further pop-up is not displayed to prompt a save location. (without works as expected).

An error is displayed in the console of the PDF viewer/electron window:
'window.showSaveFilePicker failed: SecurityError: Failed to execute 'showSaveFilePicker' on 'Window': Cross origin sub frames aren't allowed to show a file picker.'

Image

Testcase Gist URL

https://gist.github.com/tbratanov/54c3f1106fa7aadf4cc4450157c14ed8/

Additional Information

No response

Activity

  1. added theissue type on Apr 14, 2026
  2. added
    has-repro-gist
    on Apr 14, 2026
  3. moved this to 👀 Unsorted Items in 41-x-yon Apr 14, 2026
  4. moved this to 👀 Unsorted Items in 42-x-yon Apr 14, 2026
  5. nikwen commented on Apr 14, 2026

    @nikwen
    Member

    Thanks for reporting!

    Would you be able to check which v41 alpha/beta/nightly version introduced the issue? You can switch Electron versions easily in Electron Fiddle. (You might need to enable nightly versions in the Electron Fiddle settings.)

  6. added
    bug/regression ↩️
    on Apr 14, 2026
  7. self-assigned this
    on Apr 14, 2026
  8. Akashgite1 commented on Apr 14, 2026

    @Akashgite1

    Seems related to Chromium restriction on cross-origin frames

  9. added
    status/confirmed
    on Apr 14, 2026
  10. moved this from 👀 Unsorted Items to 🔄 Follow Up Before Stable in 41-x-yon Apr 15, 2026
  11. moved this from 👀 Unsorted Items to 🔄 Follow Up Before Stable in 42-x-yon Apr 15, 2026
  12. moved this from 🔄 Follow Up Before Stable to 🛠️ Fixed for Next Release in 42-x-yon Apr 22, 2026
  13. moved this from 🔄 Follow Up Before Stable to 🛠️ Fixed for Next Release in 41-x-yon Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

41-x-y42-x-ybug 🪲bug/regression ↩️component/pdf-viewerhas-repro-gistplatform/windowsstatus/confirmed

Type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions