Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Excluding regl based traces from the strict bundle #5865

Merged
merged 3 commits into from
Jul 30, 2021
Merged

Conversation

archmoj
Copy link
Contributor

@archmoj archmoj commented Jul 30, 2021

Started a "strict" test_dashboard to help identify which traces may not be rendered when there are certain Content-Security-Policy on the page (e.g. to disallow dynamic function constructors).

For now a Function.apply call in regl dependency stopped by CSP resulting in parcoords, splom, scattergl and scatterpolargl not being rendered. Therefore these traces would be excluded from plolty.js-strict until #897 could be addressed.

@plotly/plotly_js

@archmoj archmoj added bug something broken status: reviewable labels Jul 30, 2021
module.exports = function makeWatchifiedBundle(onFirstBundleCallback) {
var b = browserify(constants.pathToPlotlyIndex, {
module.exports = function makeWatchifiedBundle(strict, onFirstBundleCallback) {
var b = browserify(strict ? constants.pathToPlotlyStrict : constants.pathToPlotlyIndex, {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking, but do we actually want the strict dashboard to use the strict bundle? I'd kind of think we want the full bundle there, or at least have that capability, in order to test which of the full set of traces and features work.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could become an option to 'npm start'.

Copy link
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💃

@archmoj archmoj merged commit e1dd72b into master Jul 30, 2021
@archmoj archmoj deleted the strict-devtool branch July 30, 2021 12:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants