New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Continued "unknown error" script save failures #2943
Comments
We really shouldn't need to. The underlining cause is likely some Firefox bug that needs to be brought up. Unfortunately, back when I made the icon patch I tried making a minimal extension to reproduce. But couldn't seem get a reproduction. Maybe a debugging build of Firefox could help. Though I don't even know where I'd find a pre-compiled one, or where to even begin with compiling (and then somehow interpreting results). |
I also struggled to reproduce this. I see it regularly on my main profile, but I don't know what exactly triggers it. |
Might be worth adding another check (or two). After sending the blob to the content-script (and it receives it) make the content-script send another trigger message. In the handler for this message do two things. Firstly, check if the blob is still valid (Fileread, etc). This is to check if the process to 'send' the blob also corrupts the background reference. Secondly, try to resave the blob or object it's attached to with minor modifications (to simulate 'ToggleScript'). See if the 'UnknownError' occurs. |
In the "broken-blob" codebase attached at the above bugzilla issue, I added a
Interesting idea, feel free to give it a shot. But see my update to that bugzilla issue today, only re-launching Firefox with no additional save seems to break it? |
I think the close was an autoclose. I'd reopen it for tracking the bug. I performed a mozregression on the issue, using the provided .xpi. Turns out they did some Blob changes back in May 2017. |
Issues are useful for more than one thing. This is tagged in the 4.4 release, and will go out there. We've "only" got a work around in place, but that's what we can do. Tracking a separate issue (clean up the workaround, if/when the underlying issue is fixed) would be fine, but won't be part of the 4.4 release. |
See #2909 . I've repeatedly tried to narrow down a reproduction case, but I can't. All I know for sure is:
@resource
s.So I think we need to update resources to be stored as buffers instead of raw blobs, just like we did for icons.
The text was updated successfully, but these errors were encountered: