[BUG] 在包含跨域 iframe 的复杂网页(如 Reddit)上,弹出窗口中的翻译接口/规则会自动回退到全局默认设置

作者: sinclair720创建于 2026年9月15日更新于 2026年9月16日
标签bug
  1. Environment / Operating environment
  • OS / Operating system: [Windows 10]
  • Browser / Browser: [Chrome 153]
  • Software Type / Software type: [Extension / Extension]
  • Version / Version number: [v2.0.32]
  • Script Manager / Script manager: [None / None]
  1. Description / Problem description After configuring dedicated rules for some specific complex websites (currently stablely reproduced on Reddit https://www.reddit.com), such as specifying a translation service for a large model or dedicated API:
  2. The rules take effect when Reddit is first opened and viewed through the Popup window;
  3. However, during the page browsing process or when the user clicks the extension icon in the upper right corner of the browser to open the Popup window, the translation interface in the popup automatically reverts to the default interface set in the global rules (such as the global default global model), resulting in the site's custom rules being overwritten or reverted.
  4. Even if the main text is actually in the translation state, the display in the Popup will be disconnected to the global default state, and if the user operates again in the Popup, it may accidentally overwrite the site configuration.
  5. Steps to reproduce / Reproduction steps
  6. Set the default translation interface of the global rules to Interface A, and specify the use of a dedicated Interface B for reddit.com in the personal rules.
  7. Open https://www.reddit.com, click the extension icon to open the Popup window for the first time, and the personal rules are applied normally, using Interface B.
  8. Refresh the Reddit page or scroll through the page slightly.
  9. Click the extension icon again to open the Popup window.
  10. Observe the interface selection box in the Popup interface: it stably reverts to the global default Interface A.
  11. Screenshots (Optional)
  • First time opening the website:

内容来源: fishjar/kiss-translator