Details
- Reviewers
emilio nalexander - Group Reviewers
layout-reviewers - Commits
- rFIREFOXAUTOLAND93e47c6712e9: Bug 2074026 - Always handle CSP before MixedContentBlocker. r=emilio,layout…
rFIREFOXAUTOLAND2a9780916b33: Bug 2074026 - Always handle CSP before MixedContentBlocker. r=emilio,layout… - Bugzilla Bug ID
- 2074026
Diff Detail
- Repository
- rFIREFOXAUTOLAND firefox-autoland
- Branch
- HEAD
Event Timeline
I am totally open to alternative suggestions here. I was considering sorting the cached array for example, but that seemed a bit more difficult?
This seems testable perhaps? Also I have a vague memory of CSP and mixed content upgrade interacting poorly in the past, does that ring a bell? I couldn't find it immediately. I don't think this patch makes that any worse tho.
This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!
Yes, this definitely should have a test. Our previous "test coverage" here was accidental and was nullified by D327776.
| dom/base/nsContentPolicy.cpp | ||
|---|---|---|
| 124 | Yes, exactly. It doesn't seem like we really query/use the content-policy, so it seems like removing it from the list would be the easiest to prevent both policies from being used twice. | |
The analysis task source-test-mozlint-rejected-words failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-c-includes failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-header-guards failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-file-whitespace failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-mscom-init failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-dot-mozilla-reference failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-test-manifest failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-license failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-clang-format failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-mingw-cap failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-file-perm failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-eslint failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-codespell failed, but we could not detect any defect.
Please check this task manually.
The analysis task source-test-mozlint-trojan-source failed, but we could not detect any defect.
Please check this task manually.
If you see a problem in this automated review, please report it here.
Code analysis found 1 defect in diff 1389232:
- 1 defect found by test-manifest (Mozlint)
You can run this analysis locally with:
- ./mach lint --warnings --outgoing
If you see a problem in this automated review, please report it here.
You can view these defects in the Diff Detail section of Phabricator diff 1389232.