Closed Bug 2052883 Opened 4 months ago Closed 4 months ago

Remove redundant code in ClientIsValidPrincipalInfo

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
154 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 --- wontfix
firefox-esr153 --- fixed
firefox153 --- wontfix
firefox154 --- fixed
firefox155 --- fixed

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.

Nika pointed out to me that we don't reject expanded principals for NOT_REMOTE_TYPE in ValidatePrincipalCouldPotentiallyBeLoadedBy.

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
Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Blocks: 2054833
QA Whiteboard: [qa-triage-done-c155/b154]
Blocks: 2018164

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?
Attachment #9617281 - Flags: approval-mozilla-esr153? → approval-mozilla-esr153+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: