plotly / plotly/plotly.js

Revisit Plotly.js compatibility with strict CSP

オープン
#7,543 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature P2
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

https://github.com/plotly/plotly.js/pull/7109 was added in to make Plotly.js work better in strict CSP environments (specifically, ones which disallow inline CSS); however, it seems some of that work was broken by the migration to ESBuild.

For example, we no longer produce a separate plotly.css file (see recent comments on that PR).

@camdecoster recently added #7527 which makes it easier to test different CSPs in the devtools.

There's at least one obvious issue when inline styles are disallowed, which is that the modebar button styling is completely broken:

Image

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず PR #7109 とその最近のコメントを確認し、次に ESBuild への移行と issue #7527 の CSP テスト設定を調査します。Inline CSS が許可されていない場合に modebar ボタンのスタイリングが失敗する問題を再現し、別個の plotly.css ファイルが生成されるか確認します。厳格な CSP 環境で modebar のスタイリングが正常に機能し続け、関連する build 出力が検証されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
data-visualization, security
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。