Skip to content

Core: fix FPD keyword enrichment on Chrome 50 (NodeList.forEach) - #16340

Merged
patmmccann merged 2 commits into
prebid:masterfrom
patmmccann:agent/enrichment-nodelist-foreach
Nov 26, 2026
Merged

patmmccann merged 2 commits into
prebid:masterfrom
patmmccann:agent/enrichment-nodelist-foreach

Conversation

@patmmccann

Copy link
Copy Markdown
Collaborator

🤖 This PR was written by an AI agent (Claude Code) on behalf of @patmmccann.

Type of change

  • Bugfix

Description of change

#16314 made FPD keyword enrichment call .forEach directly on the NodeList that querySelectorAll returns. Chrome 50 has no NodeList.prototype.forEach (it arrived in Chrome 51), and the ES5 build doesn't polyfill it. So getMetaTagKeywords and getJsonLdKeywords threw in both the top and the self window, enrichment failed, and auctions got no targeting.

The ES5 E2E job (Chrome 50 on BrowserStack) has failed on every master push since #16314 (first failure at 4e3f315, last pass at 7a505c9), with expected {} to have property 'hb_format' and then no rendered creative. Firefox 65 passes the same specs.

This goes back to Array.from(...), as the code did before #16314. A new test stubs NodeList.prototype.forEach away: it fails on master and passes with the fix.

Other information

Found while looking into the Chrome 50 lane for #16338 (WebdriverIO 10).

🤖 Generated with Claude Code

Chrome 50 has no NodeList.prototype.forEach, so FPD enrichment threw in both
the top and the self window, and auctions got no targeting. This broke the
ES5 E2E job on Chrome 50 from prebid#16314 on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T21:08:18.003009Z 1347373 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1347373757

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/fpd/enrichment.ts Resolved
Removed comment about Chrome 50 compatibility for clarity.
@patmmccann
patmmccann merged commit d465294 into prebid:master Nov 26, 2026
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant