Skip to content

Conversation

@koddsson
Copy link
Contributor

@koddsson koddsson commented Apr 16, 2019

This is pretty much lifted from github/github but you can see the only difference in
299cf78 where I add the ability to hook into the HTML response so we can do some nonce security checks with html-safe.js. I'm not a big fan of the approach but I'm unsure on what else to do in order to be able to stop throw if there is a mismatch and not have html-safe.js live in this repo.

I've been told that we don't need html-safe.js anymore since we are supporting a lot newer browsers that don't have previous security issues as well as a lot stricter CSP that make the html-safe.js checking not needed any more.

Ref: https://github.com/github/web-systems/issues/200

@koddsson koddsson requested a review from a team April 16, 2019 11:43
@koddsson
Copy link
Contributor Author

cc/ @github/web-systems

@koddsson koddsson requested review from a team and keithamus May 2, 2019 09:36
Copy link
Contributor

@dgraham dgraham left a comment

Choose a reason for hiding this comment

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

⚡️

Kristján Oddsson and others added 5 commits May 9, 2019 16:48
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
Co-Authored-By: David Graham <dgraham@github.com>
"plugins": [
["@babel/plugin-transform-modules-umd", {
"globals": {
"selector-set": "SelectorSet"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The UMD build was looking for selectorSet in global but in the selector-set UMD build the global is set to SelectorSet:

https://github.com/josh/selector-set/blob/master/selector-set.js#L7

@koddsson koddsson merged commit 234f942 into master May 13, 2019
@koddsson koddsson deleted the init branch May 13, 2019 14:44
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.

4 participants