Skip to content

VM2.31.3 beta doesn't run scripts in content mode #2400

@personalmountains

Description

@personalmountains

Scripts are not loading in any tab since 2.31.3 today, the icon is greyed in the toolbar. I see TypeError: can't convert undefined to object in the console. After prettifying the source, I see this:

e => {
    for (let t = 0, n = [
        'setInterval',
        'setTimeout'
    ]; t < n.length; t++) {
        const o = n[t];
        e[o] = Q(z(g, o), null)        // error here
    }
    return e
}

g is a Sandbox object, o is "setInterval" and z is Object.getOwnPropertyDescriptor. There is no "setInterval" property in g. I'm guessing it has to do with #2392, but I can't check the commit right now because Github is showing me a unicorn instead. [edit: Yes, looks like 9297486.]

Environment:

  • OS: Windows 10 22H2
  • Browser: Firefox 145.0.2
  • Violentmonkey Version: 2.31.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions