SthephanShinkufag / Dollchan-Extension-Tools

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

[Bug?] Dollchan in Firemonkey #1404

Closed kr4ssi closed 2 months ago

kr4ssi commented 3 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 3 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 3 years ago

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

kr4ssi commented 3 years ago

That was quick, thanks man.

kr4ssi commented 3 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 3 years ago

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

SthephanShinkufag commented 2 months ago

Seems Firemonkey works fine now.