Skip to content

[BUG] datauri 被错误地要求权限存取 #1635

Description

@cyfung1031

提交前检查

  • 我已经搜索过现有 issues,并尽量用最新 stable 或 beta 版本确认问题仍然存在

问题描述

Image

due to #1506

复现步骤

// ==UserScript==
// @name        GM_download data: URI test
// @match       *://*/*
// @grant       GM_download
// @run-at      document-idle
// ==/UserScript==

const csv = "a,b,c\n1,2,3";
const dataUrl = `data:text/csv;charset=utf-8,${encodeURIComponent(csv)}`;
GM_download({
  url: dataUrl,
  name: "test.csv",
  saveAs: true,
  onload: () => console.log("onload fired"),
  onerror: (e) => console.error("onerror:", e),
});

ScriptCat 版本

V1.5.0-BETA

系统 / 浏览器及版本

Helium, macOS

相关脚本 / 日志 / 截图

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions