Skip to content

fix(media-observer) honor nonce in style tag(#38)#39

Merged
DuncanFaulkner merged 2 commits intongbracket:mainfrom
yogeshgadge:my-fix-branch
Sep 17, 2023
Merged

fix(media-observer) honor nonce in style tag(#38)#39
DuncanFaulkner merged 2 commits intongbracket:mainfrom
yogeshgadge:my-fix-branch

Conversation

@yogeshgadge
Copy link
Copy Markdown
Contributor

Fixes #38 both browser and universal

@DuncanFaulkner
Copy link
Copy Markdown
Contributor

@yogeshgadge thanks for the PR really appreciate your support. Are you able to add unit tests to cover this?

Thanks

@yogeshgadge
Copy link
Copy Markdown
Contributor Author

yogeshgadge commented Sep 13, 2023

That part os code is not quite unit testable - I went for it initially but gave up since the fix is in the private/un-exported functions (buildQueryCss) not implicitly unit tested obviously. Having said that I might be able to query document and use side effects. Let me see what I can do without exposing that function.

@yogeshgadge
Copy link
Copy Markdown
Contributor Author

added unit test

@DuncanFaulkner
Copy link
Copy Markdown
Contributor

@yogeshgadge thanks for your support on this, I will try and add your PR and create a release in the next few days.

@DuncanFaulkner DuncanFaulkner merged commit 1e68e71 into ngbracket:main Sep 17, 2023
DuncanFaulkner added a commit that referenced this pull request Sep 17, 2023
* Merge main back into 16.x.x (#37)
* fix(media-observer) honor nonce in style tag(#38) (#39)
* fix(media-observer) honor nonce in style tag(#38)
* fix(media-observer) unit tests(#38)
Co-authored-by: ygopensource <yogeshgadge@users.noreply.github.com>
DuncanFaulkner added a commit that referenced this pull request Sep 18, 2023
* Merge main back into 16.x.x (#37)

* chore(changelog): create a tag for updating the changelog

* docs(home): update home document

* chore(change log): update to changelog

* chore(changelog): update version & changelog

* chore(docs): update docs

* chore(docs): update docs

* chore(changelog): fix issues with change log

* chore(changlelog): update changelog issues

* Update README.md

* fix(media-observer) honor nonce in style tag(#38) (#39)

* fix(media-observer) honor nonce in style tag(#38)

* fix(media-observer) unit tests(#38)

* chore(changelog): update change log

* chore(changelog): update change log

* chore(media): fix unit test

* chore(version):release version 16.1.2

* chore(version): update version to 16.1.3

---------

Co-authored-by: ygopensource <yogeshgadge@users.noreply.github.com>
DuncanFaulkner added a commit that referenced this pull request Sep 18, 2023
* Merge main back into 16.x.x (#37)

* chore(changelog): create a tag for updating the changelog

* docs(home): update home document

* chore(change log): update to changelog

* chore(changelog): update version & changelog

* chore(docs): update docs

* chore(docs): update docs

* chore(changelog): fix issues with change log

* chore(changlelog): update changelog issues

* Update README.md

* fix(media-observer) honor nonce in style tag(#38) (#39)

* fix(media-observer) honor nonce in style tag(#38)

* fix(media-observer) unit tests(#38)

* chore(changelog): update change log

* chore(changelog): update change log

* chore(media): fix unit test

* chore(version):release version 16.1.2

* chore(version): update version to 16.1.3

---------

Co-authored-by: ygopensource <yogeshgadge@users.noreply.github.com>
@yogeshgadge yogeshgadge deleted the my-fix-branch branch September 19, 2023 00:49
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.

breaks angular nonce based content-security-policy

2 participants