posit-dev / posit-dev/positron
Using "open in viewer" twice with a link results in the link not opening in an external viewer the second time
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 4.3k
- Forks
- 184
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 206
Description
System details:
Positron and OS details:
Positron Version: 2025.03.0 (Universal) build 11
Code - OSS Version: 1.96.0
Commit: df069df9bf377c02ff135b78efdcf3d0276c060c
Date: 2025-02-11T02:37:23.505Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.1.0
Interpreter details:
N/A
Describe the issue:
Created a simple html file:
<a href="http://www.google.com">http://www.google.com</a>
Right clicked the filename to open in viewer. The first time I use "open in viewer", clicking the link opens a tab in Chrome. The second time I right click to open in viewer, the viewer goes blank and no tab opens
Steps to reproduce the issue:
- Create test.html with http://www.google.com as contents
- Right click to open in viewer
- click link
- browser tab opens
- right click a second time to re-open in viewer
- click link
- viewer goes blank and no tab opens
Expected or desired behavior:
Each time file is opened in viewer, it works the same way
Were there any error messages in the UI, Output panel, or Developer Tools console?
Refused to display 'https://www.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
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
Reproduce the issue with test.html containing the linked Google URL, opening it in the viewer twice and clicking the link each time. Start by tracing the viewer's handling of external links and the reported X-Frame-Options failure. Done means repeated opens behave identically and the link opens an external browser tab each time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100