ext-saladict icon indicating copy to clipboard operation
ext-saladict copied to clipboard

Firefox中沙拉查词无法获取本地PDF文件

Open ghost opened this issue 3 years ago • 2 comments

设备信息

  • 操作系统: [Ubuntu 16.04]
  • 浏览器版本: [Firefox 88.0(64-bit)]
  • 沙拉查词版本: [v7.19.1]

描述问题

使用浏览器阅读本地pdf文件时,无法使用沙拉查词。
Missing PDF file.

PDF.js v2.9.333 (build: 3da9f077b)
Message: Missing PDF "file:///home/<username>/Desktop/test.pdf

复现步骤

  1. 用Firefox打开某一pdf文件
  2. 右键点击右上角沙拉查词图标
  3. 点击“在PDF阅读器中打开”
  4. 即可看到报错信息:Missing PDF file.

期待的正常行为

本地PDF读取无碍

截图

额外信息

ghost avatar Aug 06 '21 09:08 ghost

很可惜火狐应该是不支持扩展访问本地文件。

crimx avatar Aug 07 '21 02:08 crimx

可以在本地开个 http server,再在浏览器中访问

pu-007 avatar May 28 '22 03:05 pu-007