Skip to content

Graph viewer: blocked by CSP? #2077

Closed
@hmac

Description

@hmac

Describe the bug
Previously, running a graph query would render the results in the graph viewer. Now, the results view shows but no graph is rendered. Instead, the console shows this error:

webview.js:1696 Uncaught (in promise) RuntimeError: Aborted(CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder). Build with -sASSERTIONS for more info.
    at $ (webview.js:1696:87261)
    at webview.js:1696:130912

Version
CodeQL extension version: 1.7.8
CodeQL CLI version: 2.12.2
Platform: darwin x64

To reproduce
With a database selected, run a @kind graph query.

Expected behavior
The results view should render a graph.

Additional context
It seems that the CSP policy now disallows the wasm that d3-graphviz evaluates to render the graph. But I'm not super familiar with internals of this extension so I may be mistaken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions