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

Open
#6,288 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area: viewer bug
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:

  1. Create test.html with http://www.google.com as contents
  2. Right click to open in viewer
  3. click link
  4. browser tab opens
  5. right click a second time to re-open in viewer
  6. click link
  7. 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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.