Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

unsafe html should be a breaking flaw #3192

Merged

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented Mar 11, 2021

Fixes #3177

Once this lands, let's change this line and this line to something like:

export BUILD_FLAW_LEVELS="unsafe_html:error, *:ignore"

I didn't want to spend too much time perfecting the UI for displaying these flaws. The more important aspect is how it works in content CI. But this is what the flaws look like:

Screen Shot 2021-03-10 at 8 40 21 PM

@peterbe peterbe requested a review from escattone March 11, 2021 01:40
build/flaws.js Show resolved Hide resolved
Copy link
Contributor

@escattone escattone left a comment

Choose a reason for hiding this comment

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

@peterbe This looks and works great, thanks @peterbe! I just had a couple of grammar nits.

testing/content/files/en-us/web/unsafe_html/index.html Outdated Show resolved Hide resolved
testing/content/files/en-us/web/unsafe_html/index.html Outdated Show resolved Hide resolved
@escattone escattone merged commit 7766fd2 into mdn:main Mar 11, 2021
@peterbe peterbe deleted the 3177-unsafe-html-should-be-a-breaking-flaw branch March 12, 2021 13:48
wbamberg pushed a commit to wbamberg/yari that referenced this pull request Mar 15, 2021
* upstream/main: (164 commits)
  skip empty srcs for safe iframe srcs (mdn#3216)
  correct code comment (mdn#3223)
  build(deps): bump ahmadnassri/action-dependabot-auto-merge (mdn#3197)
  build(deps-dev): bump @types/react-dom from 17.0.1 to 17.0.2 (mdn#3164)
  create a whatsdeployed.json for translated-content too (mdn#3221)
  avoid double-slash redirects (mdn#3222)
  build(deps): bump image-size from 0.9.4 to 0.9.5 (mdn#3214)
  build(deps): bump boto3 from 1.17.22 to 1.17.26 in /deployer (mdn#3212)
  Fix our auto-merge workflow (mdn#3218)
  build(deps-dev): bump ts-loader from 8.0.17 to 8.0.18 (mdn#3208)
  disable lighthouse PR check unless relevant changes (mdn#3203)
  hide toolbar for frozen locales (mdn#3213)
  build(deps): bump is-svg from 4.2.1 to 4.2.2 (mdn#3209)
  build(deps): bump @mdn/browser-compat-data from 3.1.3 to 3.2.0 (mdn#3210)
  downloading external images for translated-content (mdn#3207)
  add active locales (mdn#3201)
  add tool command for rendering/removing macros (mdn#2955)
  unsafe html should be a breaking flaw (mdn#3192)
  open editor for translated content (mdn#3196)
  add fundamental redirects for /en-US/Security/CSP (mdn#3200)
  ...
peterbe added a commit to peterbe/yari that referenced this pull request Jun 1, 2021
* Unsafe HTML should be a breaking flaw

Part of mdn#3177

* tests

* undo unnecessary if statement

* restore newline

* Update testing/content/files/en-us/web/unsafe_html/index.html

* Update testing/content/files/en-us/web/unsafe_html/index.html

Co-authored-by: Ryan Johnson <escattone@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unsafe HTML should be a breaking flaw
2 participants