forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.17] Puppeteer v18.1 (elastic#143485) (elastic#143710)
* Puppeteer v18.1 * fix types & remove any * remove referencing puppeteer types * fix unwanted diff * fix unused translations * fix pretty * fix wait_for_elements implementation * remove more puppeteer references
- Loading branch information
Showing
16 changed files
with
190 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
x-pack/plugins/reporting/server/browsers/chromium/driver_factory/puppeteer_launcher.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import puppeteer from 'puppeteer'; | ||
|
||
/** | ||
* This function exists as a JS file in order to prevent the v4.1.3 TypeScript compiler from interpreting types | ||
* in the Puppeteer node module. | ||
*/ | ||
|
||
export async function launch( | ||
browserConfig, | ||
userDataDir, | ||
binaryPath, | ||
chromiumArgs, | ||
viewport, | ||
browserTimezone | ||
) { | ||
return await puppeteer.launch({ | ||
pipe: !browserConfig.inspect, | ||
userDataDir: userDataDir, | ||
executablePath: binaryPath, | ||
ignoreHTTPSErrors: true, | ||
handleSIGHUP: false, | ||
args: chromiumArgs, | ||
defaultViewport: viewport, | ||
env: { | ||
TZ: browserTimezone, | ||
}, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.