Skip to content

fix(best-practices): respect existing heading in #bp-summary#5211

Draft
marcoscaceres wants to merge 13 commits intomainfrom
fix/best-practices-summary
Draft

fix(best-practices): respect existing heading in #bp-summary#5211
marcoscaceres wants to merge 13 commits intomainfrom
fix/best-practices-summary

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

@marcoscaceres marcoscaceres commented Apr 18, 2026

Problem

When #bp-summary already contained a heading, best-practices.js would inject an additional <h1>Best Practices Summary</h1> at the end of the section — producing a duplicate heading below the existing one.

Fix

  • Check for an existing h1h6 before injecting the generated heading.
  • Use prepend() instead of appendChild() so the generated heading always appears at the top of the section.

Other changes

  • core/caniuse.js: Minor TypeScript type annotation improvements (@typedef for CaniuseResult/BrowserCellReducer, narrowing casts to avoid implicit any). No behaviour changes.

Testing

Added a new test: "does not duplicate heading when bp-summary already has one".

Closes #5176

marcoscaceres and others added 9 commits April 17, 2026 18:58
The div has aria-label with the full description, so children are
presentational. Set inner img alt to empty to avoid double-announcement.
Agent-Logs-Url: https://github.com/speced/respec/sessions/6ae7a1ff-7486-4388-b079-084233604857

Co-authored-by: marcoscaceres <870154+marcoscaceres@users.noreply.github.com>
The nullish coalescing operator treats "" as non-nullish, so an
empty-string version would display as blank instead of the em dash
fallback. The ternary correctly maps falsy values (including "")
to the fallback.
Avoid injecting a duplicate heading when #bp-summary already has one,
and use prepend() so the generated heading always appears at the top.

Closes #5176
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes heading injection behavior in the Best Practices summary section so it doesn’t create duplicate headings when authors provide their own, and adjusts Can I Use rendering/tests for improved HTML validity/accessibility labeling.

Changes:

  • core/best-practices: avoid injecting an extra “Best Practices Summary” heading when #bp-summary already has a heading; insert generated heading at the top via prepend().
  • core/caniuse: add role="img" to support cells, move the accessible name to the parent via aria-label, and make inner logo alt empty; adjust aria-label/title wording for unknown versions.
  • Add/adjust spec coverage for both behaviors.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
tests/spec/core/caniuse-spec.js Updates expectations for role="img", empty alt, and “(version unknown)” aria-label wording.
tests/spec/core/best-practices-spec.js Adds a regression test ensuring an existing #bp-summary heading isn’t duplicated.
src/core/caniuse.js Implements role="img" + aria-label-based accessible naming and updates version wording.
src/core/best-practices.js Skips injecting the generated heading when an existing heading is present; prepends generated heading.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/core/best-practices.js Outdated
Comment thread src/core/caniuse.js
querySelector for existing headings in #bp-summary was missing h1,
so a pre-existing <h1> inside #bp-summary would not suppress the
injected heading. Extend selector to h1–h6.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/spec/core/best-practices-spec.js Outdated
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 18, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • accounts.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • android.clients.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
  • api.specref.org
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • cdn.jsdelivr.net
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
  • clients2.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • clientservices.googleapis.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • optimizationguide-pa.googleapis.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
  • redirector.gvt1.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • respec.org
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • safebrowsingohttpgateway.googleapis.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • tools.geostandaarden.nl
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
  • www.google.com
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)
  • www.w3.org
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4417 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-19631766 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,12501630289013698559,588751635857888129,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,17553484437792966366,16362311987023347275,4 --trace-process-track-uuid=3190708989122997041 (dns block)
    • Triggering command: /opt/google/chrome/chrome /usr/bin/google-chrome --user-data-dir=/tmp/karma-19631766 --enable-automation --no-default-browser-check --no-first-run --disable-default-apps --disable-popup-blocking --disable-translate --disable-REDACTED-timer-throttling --disable-renderer-REDACTEDing --disable-device-discovery-notifications http://localhost:9876/?id=19631766 --headless --disable-gpu --disable-dev-shm-usage --remote-debugging-port=9222 (dns block)
    • Triggering command: /proc/self/exe /proc/self/exe --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --disable-dev-shm-usage --use-angle=swiftshader-webgl --crashpad-handler-pid=4973 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/karma-78774644 --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,14279003555213958009,12638749339146441360,262144 --disable-features=PaintHolding --variations-seed-version --pseudonymization-salt-handle=7,i,9654536561450450879,7704320987690674599,4 --trace-process-track-uuid=3190708989122997041 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@marcoscaceres marcoscaceres marked this pull request as draft April 19, 2026 12:44
@marcoscaceres
Copy link
Copy Markdown
Contributor Author

@copilot can you take a look at CI and fix the issue?

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

@copilot can you take a look at CI and fix the issue?

Fixed in b823c8c. I checked the failing CI run (Node CI (PR)Karma Unit Tests (FirefoxHeadless)) and updated the flaky assertion to be browser-robust: it now checks the heading contains Custom Heading (Firefox includes section numbering in heading text). Local validation passed (pnpm lint, pnpm test:build, and FirefoxHeadless integration run with this spec). UI screenshot: N/A (test-only change, no UI output changed).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • ads.mozilla.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • api.specref.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • cloudflare-dns.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • detectportal.firefox.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • example.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • example.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • firefox.settings.services.mozilla.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • foo.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • ipv4only.arpa
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • jasmine.github.io
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • location.services.mozilla.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • normandy.cdn.mozilla.net
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • push.services.mozilla.com
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • respec.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • www.mozilla.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
  • www.w3.org
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=62657194 -profile /tmp/karma-62657194 -no-remote -wait-for-browser -headless --start-debugger-server 6000 ader (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=24942219 -profile /tmp/karma-24942219 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)
    • Triggering command: /usr/lib/firefox/firefox /usr/lib/firefox/firefox http://localhost:9876/?id=3684578 -profile /tmp/karma-3684578 -no-remote -wait-for-browser -headless --start-debugger-server 6000 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants