You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0cf71cd
Browse filesBrowse the repository at this point in the historyBrowse files
Let the graph draw under the policy it has to live with
The policy went out forbidding unsafe-eval on the theory that only the
development bundles wanted it, and that was measured on a page that does
not have a graph on it. pixi.js builds its shader batches by evaluating
strings, so the graph rendered nothing and postscript.js threw on its way
past — on every page, since the graph is in the sidebar. Checking the
built HTML for the absence of the word eval is not the same as loading
the page, and only the second one finds this.
So script-src takes unsafe-eval, and the comment above it says which page
needs which of the two unsafe words rather than leaving them to look like
carelessness. pixi ships a pixi.js/unsafe-eval module that would avoid it,
but reaching that means editing the graph plugin, which is somebody
else's and pinned to a commit.
What is left is a script-src that constrains where a script may be
fetched from and nothing about what runs once it is there. The directives
that were doing the work — connect-src above all, and base-uri,
object-src, form-action, frame-src — are untouched.
The development branch is now just the reload websocket.
0 commit comments