Skip to content

Fix: Resolve TypeError and unintended link opening on right-click#2153

Open
Alby7503 wants to merge 1 commit into
ebkr:developfrom
Alby7503:develop
Open

Fix: Resolve TypeError and unintended link opening on right-click#2153
Alby7503 wants to merge 1 commit into
ebkr:developfrom
Alby7503:develop

Conversation

@Alby7503
Copy link
Copy Markdown

  • Fixes the TypeError 'conversion failure from null' when right-clicking UI elements (like settings tabs) without an href attribute.
  • Restricts the auxclick listener to middle-clicks only to restore standard right-click context menu behavior.
  • Scopes preventDefault to only handle successful link interceptions, preserving autoscroll on non-link elements.
  • Adds protocol validation to openExternal IPC handler to prevent RCE vulnerabilities.
  • Updates LinkProvider types to explicitly handle null/undefined values for better type safety.
  • Adds unit tests for LinkImpl to prevent regressions.

- Fixes the TypeError 'conversion failure from null' when right-clicking UI elements (like settings tabs) without an href attribute.
- Restricts the auxclick listener to middle-clicks only to restore standard right-click context menu behavior.
- Scopes preventDefault to only handle successful link interceptions, preserving autoscroll on non-link elements.
- Adds protocol validation to openExternal IPC handler to prevent RCE vulnerabilities.
- Updates LinkProvider types to explicitly handle null/undefined values for better type safety.
- Adds unit tests for LinkImpl to prevent regressions.
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 11, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants