microsoft / microsoft/vscode-livepreview
PDF in iframe tag causes File Explorer pop-up on refresh
Open
@andreamah is already working on this.
Since Dec 10, 2022.
bug
- Dominant language
- TypeScript
- Stars
- 596
- Forks
- 119
- Avg merge
- 1d 4m
- Merged PRs (30d)
- 5
Description
Issue
When a PDF is linked to as the "src" property of an iframe, a File Explorer window pops up every time the Live Preview is refreshed.
Expected Result
Live Preview should not open a File Explorer window every time it refreshes.
Actual Result
Live Preview opens a File Explorer window every time it refreshes.
Steps to Reproduce
- Create an HTML file with an iframe similar to the following in it:
<iframe src="resume.pdf" width="100%" height="700"></iframe> - Launch Live Preview. A File Explorer window will be automatically opened, and additional windows will be opened each time a refresh is called for (automatically or manually by the user).
Supporting Media

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.