Skip to content

SRI bonus granted when only some same-origin scripts use SRI #675

In review

Description

@caugner

What information was incorrect, unhelpful, or incomplete?

The Subresource Integrity test grants sri-implemented-and-all-scripts-loaded-securely (+5) as soon as one same-origin script has an integrity attribute, even if other same-origin scripts don't:

<script src="/a.js" integrity="sha384-..."></script>
<script src="/b.js"></script>

Pages whose external scripts all use SRI over HTTPS also get this result ("all scripts are loaded from a similar origin") instead of sri-implemented-and-external-scripts-loaded-securely.

What did you expect to see?

  • sri-not-implemented-but-all-scripts-loaded-from-secure-origin (0) unless every same-origin script uses SRI.
  • sri-implemented-and-external-scripts-loaded-securely when external scripts are present and all use SRI over HTTPS.

Do you have any supporting links, references, or citations?

Spotted while working on #561.

Do you have anything more you want to share?

No response

Activity

  1. added
    needs triage
    on Nov 24, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. added
    p1
    test: SRI
    and removed
    needs triage
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

p1test: SRI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions