microsoft / microsoft/vscode-livepreview

PDF in iframe tag causes File Explorer pop-up on refresh

Open
#248 1 comment 0 reactions 1 assignee View on GitHub

@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

  1. Create an HTML file with an iframe similar to the following in it: <iframe src="resume.pdf" width="100%" height="700"></iframe>
  2. 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

image

https://github.com/abhaycashikar/abhaycashikar.github.io

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.