Skip to content
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

[BUG] Unable to load unsandboxed extension #149

Open
totchi-lagawi opened this issue Dec 8, 2024 · 0 comments
Open

[BUG] Unable to load unsandboxed extension #149

totchi-lagawi opened this issue Dec 8, 2024 · 0 comments

Comments

@totchi-lagawi
Copy link
Contributor

Description

I am currently developing a Scratch extension. I tried to run it from the "Load custom extension" menu, using the textbox, however I got an error, saying that Content at moz-nullprincipal:{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}?https://studio.penguinmod.com may not load data from blob:https://studio.penguinmod.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx. and <script> source URI is not allowed in this document: “blob:https://studio.penguinmod.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx".. There's nothing else, and so I'm quite confused about how this happened. The extension loads fine in TurboWarp.

Reproduce the bug

  • Open the extension menu
  • Click on "Load custom extension"
  • Go to "Text"
  • Load the following extension unsandboxed
class Extension {
    getInfo() {
        return {
            id: "extension",
            name: "Extension",
            blocks: [
                {
                    opcode: "block",
                    blocktype: "command",
                    text: "Hello world!"
                }
            ]
        }
    }

    block() {
        console.log("Hello world!")
    }
}

Scratch.extensions.register(new Extension())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant