microsoft / microsoft/vscode-livepreview
Javascript injected in non-html/javascript files
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 596
- Forks
- 119
- Avg merge
- 1d 4m
- Merged PRs (30d)
- 5
Description
It appears livepreview treating unknown type of files as html. So if server serves json file without .json extension, it corrupts it with <script>..</script>.
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.
Research direction
Start by tracing the livepreview server's response handling for files whose type is unknown, then reproduce the issue with JSON served without a .json extension. Done means non-HTML and non-JavaScript content is returned unchanged rather than wrapped with script tags.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100