Skip to content

Graph viewer: blocked by CSP? #2077

Closed
@hmac

Description

@hmac
Contributor

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.

Activity

added
bugSomething isn't working
on Feb 15, 2023
koesie10

koesie10 commented on Feb 15, 2023

@koesie10
Member

Thanks for reporting the issue and figuring out that this means that the CSP disallows loading the WASM module! This should be fixed by #2085.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    VSCodebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @hmac@koesie10

      Issue actions

        Graph viewer: blocked by CSP? · Issue #2077 · github/vscode-codeql