Closed
Bug 2052883
Opened 4 months ago
Closed 4 months ago
Remove redundant code in ClientIsValidPrincipalInfo
Categories
(Core :: DOM: Core & HTML, task)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
154 Branch
People
(Reporter: tschuster, Assigned: tschuster)
References
Details
Attachments
(2 external files)
Basically all code in ClientIsValidPrincipalInfo is sort of redundant now. PrincipalInfoToPrincipal already checks if the content principal spec and origin kinda match, which is most of what the switch case for PrincipalInfo::TContentPrincipalInfo does. On the other ValidatePrincipalCouldPotentiallyBeLoadedBy already restricts which types of principals can be loaded as well, so we don't even need to bother rejecting i.e. expanded principals.
| Assignee | ||
Comment 1•4 months ago
|
||
Nika pointed out to me that we don't reject expanded principals for NOT_REMOTE_TYPE in ValidatePrincipalCouldPotentiallyBeLoadedBy.
| Assignee | ||
Comment 2•4 months ago
|
||
Updated•4 months ago
|
Attachment #9605083 -
Attachment description: WIP: Bug 2052883 - Remove redundant code in ClientIsValidPrincipalInfo → Bug 2052883 - Remove redundant code in ClientIsValidPrincipalInfo. r?#dom-worker-reviewers
Pushed by tschuster@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/864fbc0337b8
https://hg.mozilla.org/integration/autoland/rev/7efc4dcb7c72
Remove redundant code in ClientIsValidPrincipalInfo. r=dom-worker-reviewers,edenchuang
Comment 4•4 months ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 4 months ago
status-firefox154:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Updated•4 months ago
|
QA Whiteboard: [qa-triage-done-c155/b154]
| Assignee | ||
Updated•3 months ago
|
status-firefox153:
--- → wontfix
status-firefox155:
--- → fixed
status-firefox-esr115:
--- → wontfix
status-firefox-esr140:
--- → wontfix
status-firefox-esr153:
--- → affected
Comment 5•3 months ago
|
||
firefox-esr153 Uplift Approval Request
- User impact if declined/Reason for urgency: Required for uplifting bug 2018164
- Code covered by automated testing?: yes
- Fix verified in Nightly?: yes
- Needs manual QE testing?: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Deletes some unnecessary code that is wrong.
- String changes made/needed?: no
- Is Android affected?: yes
Attachment #9617281 -
Flags: approval-mozilla-esr153?
| Assignee | ||
Comment 6•3 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D310826
Updated•3 months ago
|
Attachment #9617281 -
Flags: approval-mozilla-esr153? → approval-mozilla-esr153+
Updated•3 months ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•