SthephanShinkufag / Dollchan-Extension-Tools

The best way to browse imageboards
https://dollchan.net/extension/
MIT License
361 stars 67 forks source link

[Bug?] Dollchan in Firemonkey #1404

Open kr4ssi opened 2 years ago

kr4ssi commented 2 years ago

Just tried to load the newest version of Dollchan into Firemonkey using Firefox 91. Firemonkey uses the Official Userscripts-API. It worked so far until I tried to post, then I get this Error on several tested imageboards:

✖ Internal error:
Error: Accessing TypedArray data over Xrays is slow, and forbidden in order to encourage performant code. To copy TypedArrays across origin boundaries, consider using Components.utils.cloneInto().
    at cleanFile (Dollchan%20Extension%20Tools.user.js:16919:9)
    at _callee23$ (Dollchan%20Extension%20Tools.user.js:16836:45)
    at tryCatch (Dollchan%20Extension%20Tools.user.js:4882:40)
    at invoke (Dollchan%20Extension%20Tools.user.js:5066:30)
    at [244]

There isn't anything else in the console besides of: Error: An unexpected apiScript error occurred

Is this a bug in Dollchan, Firemonkey, or Firefox?

SthephanShinkufag commented 2 years ago

FireMonkey have many problems. It cannot use arraybuffer and blob requests in both GM.xmlHttpRequest and GM_xmlhttpRequest. It has a known Firefox Xray error when accessing TypedArray (like in old Greasemonkey versions).... A lot of bugs.

SthephanShinkufag commented 2 years ago

Tried to fix all of that, but may be another problems.

kr4ssi commented 2 years ago

That was quick, thanks man.

kr4ssi commented 2 years ago

I get "can't load url" when I drag and drop an imagelink into the fileupload. There isn't anything else in the console.

SthephanShinkufag commented 2 years ago

Load titles for YouTube links* also. FireMonkey is raw, and doesn't work as expected.