-
Notifications
You must be signed in to change notification settings - Fork 26.2k
LTS-only - fix(core): use appropriate inert document strategy for Firefox & Safari #22077
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
LTS-only - fix(core): use appropriate inert document strategy for Firefox & Safari #22077
Conversation
uh. oh. I'm afraid that if we want to merge this we'll need several of @gkalpak's CI stability changes as well - at minimum the chrome/chrome-driver changes that prevent chrome flakes and crashes. |
I'll try backporting the changes. It shouldn't be too bad (since it is just infrastructure changes). |
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
This reverts commit 8bcb268.
976cfa4
to
9dc047b
Compare
Since our version of Chromium is also pinned, a new ChromeDriver (that drops support for our Chromium version) can cause random (and unrelated to the corresponding changes) errors on CI. This commit pins the version of ChromeDriver and it should now be manually upgraded to a vrsion that is compatible with th currently used Chromium version. PR Close angular#20940
There seems to be some issue that causes Chrome/ChromeDriver to unexpectedly reload during the aio e2e tests, causing flakes. It is not clear what exactly is causing the reloading, but to the best of my knowledge it is something inside Chrome or ChromeDriver. Pinning Chrome to r494239 (between 62.0.3185.0 and 62.0.3186.0) fixes the flakes. Fixes angular#20159
Related to angular#21422. PR Close angular#21641
Both Firefox and Safari are vulnerable to XSS if we use an inert document created via `document.implementation.createHTMLDocument()`. Now we check for those vulnerabilities and then use a DOMParser or XHR strategy if needed. Further the platform-server has its own library for parsing HTML, so we sniff for that (by checking whether DOMParser exists) and fall back to the standard strategy. Thanks to @cure53 for the heads up on this issue.
9dc047b
to
53045c7
Compare
CI is green now 🎉 |
the instructions at https://g3doc.corp.google.com/javascript/angular/g3doc/sync.md#syncing-tap-status-to-github don't work for me, so I can't force push the g3 status for this pr. @mhevery can you please try to force push the status? since this PR targets the lts branch, the g3 check is pointless. |
wrt the error, I'm getting |
…ri (#22077) Both Firefox and Safari are vulnerable to XSS if we use an inert document created via `document.implementation.createHTMLDocument()`. Now we check for those vulnerabilities and then use a DOMParser or XHR strategy if needed. Further the platform-server has its own library for parsing HTML, so we sniff for that (by checking whether DOMParser exists) and fall back to the standard strategy. Thanks to @cure53 for the heads up on this issue.
merged as 2c5cf19 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Both Firefox and Safari are vulnerable to XSS if we use an inert document
created via
document.implementation.createHTMLDocument()
.Now we check for those vulnerabilities and then use a DOMParser or XHR
strategy if needed.
Further the platform-server has its own library for parsing HTML, so we
sniff for that (by checking whether DOMParser exists) and fall back to
the standard strategy.
Thanks to @cure53 for the heads up on this issue.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Other information
This is the LTS version of #17019