browserless 13.9.14 → 13.9.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "browserless",
3
3
  "description": "The headless Chrome/Chromium driver on top of Puppeteer. Take screenshots, generate PDFs, extract text and HTML with a production-ready API.",
4
4
  "homepage": "https://browserless.js.org",
5
- "version": "13.9.14",
5
+ "version": "13.9.17",
6
6
  "types": "index.d.ts",
7
7
  "main": "src/index.js",
8
8
  "author": {
@@ -36,9 +36,9 @@
36
36
  ],
37
37
  "dependencies": {
38
38
  "@browserless/errors": "13.9.11",
39
- "@browserless/goto": "13.9.14",
40
- "@browserless/pdf": "13.9.14",
41
- "@browserless/screenshot": "13.9.14",
39
+ "@browserless/goto": "13.9.17",
40
+ "@browserless/pdf": "13.9.17",
41
+ "@browserless/screenshot": "13.9.17",
42
42
  "debug-logfmt": "~1.4.15",
43
43
  "kill-process-group": "~1.0.16",
44
44
  "p-reflect": "~2.1.0",
@@ -69,5 +69,5 @@
69
69
  "timeout": "2m",
70
70
  "workerThreads": false
71
71
  },
72
- "gitHead": "1c0e13f6528aebe6e45066584d9f9f859ea37e71"
72
+ "gitHead": "23a3064ebf0ebc903178c705e223cc70907e256b"
73
73
  }
package/src/driver.js CHANGED
@@ -15,11 +15,9 @@ const defaultArgs = [
15
15
  '--autoplay-policy=user-gesture-required', // https://source.chromium.org/search?q=lang:cpp+symbol:kAutoplayPolicy&ss=chromium
16
16
  '--disable-blink-features=PrettyPrintJSONDocument,AutomationControlled', // https://blog.m157q.tw/posts/2020/09/11/bypass-cloudflare-detection-while-using-selenium-with-chromedriver/
17
17
  '--disable-domain-reliability', // https://source.chromium.org/search?q=lang:cpp+symbol:kDisableDomainReliability&ss=chromium
18
- '--disable-notifications', // https://source.chromium.org/search?q=lang%3Acpp+symbol%3AkDisablePermissionsAPI&ss=chromium
19
18
  '--disable-print-preview', // https://source.chromium.org/search?q=lang:cpp+symbol:kDisablePrintPreview&ss=chromium
20
19
  '--disable-setuid-sandbox', // https://source.chromium.org/search?q=lang:cpp+symbol:kDisableSetuidSandbox&ss=chromium
21
20
  '--disable-site-isolation-trials', // https://source.chromium.org/search?q=lang:cpp+symbol:kDisableSiteIsolation&ss=chromium
22
- '--disable-speech-api', // https://source.chromium.org/search?q=lang:cpp+symbol:kDisableSpeechAPI&ss=chromium
23
21
  '--disk-cache-size=33554432', // https://source.chromium.org/search?q=lang:cpp+symbol:kDiskCacheSize&ss=chromium
24
22
  '--font-render-hinting=none', // https://github.com/puppeteer/puppeteer/issues/2410#issuecomment-2886054614
25
23
  '--ignore-gpu-blocklist', // https://source.chromium.org/search?q=lang:cpp+symbol:kIgnoreGpuBlocklist&ss=chromium
@@ -43,9 +41,7 @@ const defaultArgs = [
43
41
  'CanvasOopRasterization',
44
42
  'InterestFeedV2',
45
43
  'IsolateOrigins',
46
- 'PushMessaging',
47
- 'site-per-process', // Disables OOPIF. https://www.chromium.org/Home/chromium-security/site-isolation
48
- 'WebPayments'
44
+ 'site-per-process' // Disables OOPIF. https://www.chromium.org/Home/chromium-security/site-isolation
49
45
  ].join(',')}`
50
46
  ]
51
47
 
package/src/index.js CHANGED
@@ -205,7 +205,12 @@ module.exports = ({ timeout: globalTimeout = 30000, ...launchOpts } = {}) => {
205
205
  page: createPage,
206
206
  pdf: withPage(createPdf({ goto })),
207
207
  screenshot: withPage(createScreenshot({ goto })),
208
- text: evaluate(page => page.evaluate(() => document.body.innerText)),
208
+ text: evaluate(page =>
209
+ page
210
+ .mainFrame()
211
+ .isolatedRealm()
212
+ .evaluate(() => document.body.innerText)
213
+ ),
209
214
  getDevice: goto.getDevice,
210
215
  destroyContext,
211
216
  withPage