prebid-integration-monitor/node_modules/puppeteer-extra-plugin-stealth/evasions/chrome.csi
2024-04-30 06:48:50 -06:00
..
index.js initial commit 2024-04-30 06:48:50 -06:00
index.test.js initial commit 2024-04-30 06:48:50 -06:00
package.json initial commit 2024-04-30 06:48:50 -06:00
readme.md initial commit 2024-04-30 06:48:50 -06:00

API

Table of Contents

class: Plugin

  • opts (optional, default {})

Extends: PuppeteerExtraPlugin

Mock the chrome.csi function if not available (e.g. when running headless). It's a deprecated (but unfortunately still existing) chrome specific API to fetch browser timings.

Internally chromium switched the implementation to use the WebPerformance API, so we can do the same to create a fully functional mock. :-)

Note: We're using the deprecated PerformanceTiming API instead of the new Navigation Timing Level 2 API on purpopse.