[Linux] MozillaBrowser uses deprecated "-remote" flag causing URL to be silently dropped on Firefox 57+

未关闭 适合新手
#4,016 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
72/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
java
领域
desktop

调研方向

从阅读构建 Firefox 命令行参数的 MozillaBrowser 代码开始,然后检查 DefaultWebBrowser.java,issue 也指出它使用了已弃用的 flag。检查两种情况下 URL 参数是如何传递的。完成意味着在 Linux 上将 Firefox 57+ 选为外部浏览器时会打开所请求的 URL。

由索引模型根据 Issue 内容生成。

描述

bug
  • I verified I can reproduce this issue against latest Integration
    Build of Eclipse SDK

Steps to reproduce

  • Install Firefox and Chrome on Linux
  • Set Chrome as system default browser
  • Preferences > General > Web Browser >
    Use external web browser > Select Firefox > Apply and Close
  • Open any URL in Eclipse

I expected: Firefox opens with the URL

But got: Firefox launches but URL is not opened

Image

Root Cause

MozillaBrowser uses deprecated "-remote openURL(...)" flag
which was removed in Firefox 57 (2017), causing URL to be
silently dropped.

Fix suggestion

// Before
parameters + " -remote openURL(" + IBrowserDescriptor.URL_PARAMETER + ")"

// After
parameters + " --new-tab " + IBrowserDescriptor.URL_PARAMETER

Tested under this environment:

  • OS: Linux Ubuntu 22.04.4 LTS
  • Eclipse version: Eclipse Platform 4.38 (2025-12) and CDT version 12.3.0.
  • Firefox version: Mozilla Firefox 150.0.3

Note

The same deprecated "-remote" flag is also used in
DefaultWebBrowser.java but has not been verified whether
it is reachable in practice. It may need the same fix.

Community

  • I understand reporting an issue to this OSS project does not
    mandate anyone to fix it. Other contributors may consider the
    issue, or not, at their own convenience. The most efficient way
    to get it fixed is that I fix it myself and contribute it back
    as a good quality patch to the project.
主要语言
Java
星标
124
派生
269
平均合并
2 天 15 小时
30 天内合并 PR
64

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

eclipse-platform/eclipse.platform.ui 的其他 Issue

查看 eclipse-platform/eclipse.platform.ui 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。