puppeteer/test/assets/simple-extension/index.js
Andrey Lushnikov ad1802188d
fix(launcher): disable component extensions (#4704)
Chrome has a set of component extensions - e.g. CryptoTokenExtension
that helps with 2FA.

These extensions are loaded regardless of the `--disable-extensions`
flag we already pass. To disable these extensions, we need to pass additional
`--disable-component-extensions-with-background-pages` flag.

Fix #4300
2019-07-15 17:54:42 -07:00

3 lines
59 B
JavaScript

// Mock script for background extension
window.MAGIC = 42;