Skip to content

cookie-flags: merged cookie-httponly message counts one page's cookies, not the items it lists #2300

Description

@nc9

Since the cookie-flags change in #2299, a report that merges cookie-httponly WARN results from several pages keeps one page's message. A local fixture (two pages, PHPSESSID on both, pref on one; only one page loads a third-party script) gives a WARN check with two items (PHPSESSID from /plain, pref from /) whose message reads 1 cookie(s) missing the HttpOnly flag. Before #2299 the same fixture read 1 to 2 cookie(s) missing the HttpOnly flag, a range across pages. The count in the merged message no longer matches the items listed.

Acceptance Criteria

  • When cookie-httponly results from several pages are merged into one report check, the message's cookie count matches the merged items (or reads as a range across pages, as before fix(rules): one cookie-httponly check that fails on pages with third-party scripts #2298 #2299)
  • The FAIL message (third-party scripts) gets the same treatment for its count and its host list
  • A test covers a two-page fixture with different cookie counts per page, for both the WARN and the FAIL check

Activity

  1. added
    bug
    size: XS
    rules
    in-progress
    on Nov 24, 2026
  2. self-assigned this
    on Nov 24, 2026
  3. added theissue type 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

bugin-progressrulessize: XS

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions