🎥 Make videos programmatically with React
condense
Jonny Burgera010054194aa
diff --git a/packages/renderer/src/browser/FrameManager.ts b/packages/renderer/src/browser/FrameManager.tsindex 5b41f6af7d..826a30c710 100644--- a/packages/renderer/src/browser/FrameManager.ts+++ b/packages/renderer/src/browser/FrameManager.ts@@ -547,7 +547,6 @@ export class FrameManager extends EventEmitter {export class Frame {#parentFrame: Frame | null;#url = '';- #detached = false;#client!: CDPSession;_frameManager: FrameManager;@@ -570,7 +569,6 @@ export class Frame {this.#parentFrame = parentFrame ?? null;this.#url = '';this._id = frameId;- this.#detached = false;this._loaderId = '';@@ -631,26 +629,14 @@ export class Frame {return this._mainWorld.evaluate<T>(pageFunction, ...args);}- name(): string {- return this._name || '';- }-url(): string {return this.#url;}- parentFrame(): Frame | null {- return this.#parentFrame;- }-childFrames(): Frame[] {return Array.from(this._childFrames);}- isDetached(): boolean {- return this.#detached;- }-waitForFunction(pageFunction: Function | string,...args: SerializableOrJSHandle[]@@ -658,10 +644,6 @@ export class Frame {return this._mainWorld.waitForFunction(pageFunction, ...args);}- title(): Promise<string> {- return this._secondaryWorld.title();- }-_navigated(framePayload: Protocol.Page.Frame): void {this._name = framePayload.name;this.#url = `${framePayload.url}${framePayload.urlFragment || ''}`;@@ -690,7 +672,6 @@ export class Frame {}_detach(): void {- this.#detached = true;this._mainWorld._detach();this._secondaryWorld._detach();if (this.#parentFrame) {diff --git a/packages/renderer/src/browser/LaunchOptions.ts b/packages/renderer/src/browser/LaunchOptions.tsindex a7efda62ea..cf22acda86 100644--- a/packages/renderer/src/browser/LaunchOptions.ts+++ b/packages/renderer/src/browser/LaunchOptions.ts@@ -18,30 +18,10 @@ import type {BrowserConnectOptions} from './BrowserConnector';import type {Product} from './Product';export interface BrowserLaunchArgumentOptions {- /**- * Whether to run the browser in headless mode.- * @defaultValue true- */headless?: boolean | 'chrome';- /**- * Path to a user data directory.- * {@link https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/user_data_dir.md | see the Chromium docs}- * for more info.- */userDataDir?: string;- /**- * Whether to auto-open a DevTools panel for each tab. If this is set to- * `true`, then `headless` will be forced to `false`.- * @defaultValue `false`- */devtools?: boolean;- /**- *- */debuggingPort?: number;- /**- * Additional command line arguments to pass to the browser instance.- */args: string[];}export type ChromeReleaseChannel =@@ -51,74 +31,18 @@ export type ChromeReleaseChannel =| 'chrome-dev';export interface LaunchOptions {- /**- * Chrome Release Channel- */channel?: ChromeReleaseChannel;- /**- * Path to a browser executable to use instead of the bundled Chromium. Note- * that Puppeteer is only guaranteed to work with the bundled Chromium, so use- * this setting at your own risk.- */executablePath?: string;- /**- * If `true`, do not use `puppeteer.defaultArgs()` when creating a browser. If- * an array is provided, these args will be filtered out. Use this with care -- * you probably want the default arguments Puppeteer uses.- * @defaultValue false- */ignoreDefaultArgs?: boolean | string[];- /**- * Close the browser process on `Ctrl+C`.- * @defaultValue `true`- */handleSIGINT?: boolean;- /**- * Close the browser process on `SIGTERM`.- * @defaultValue `true`- */handleSIGTERM?: boolean;- /**- * Close the browser process on `SIGHUP`.- * @defaultValue `true`- */handleSIGHUP?: boolean;- /**- * Maximum time in milliseconds to wait for the browser to start.- * Pass `0` to disable the timeout.- * @defaultValue 30000 (30 seconds).- */timeout?: number;- /**- * If true, pipes the browser process stdout and stderr to `process.stdout`- * and `process.stderr`.- * @defaultValue false- */dumpio?: boolean;- /**- * Specify environment variables that will be visible to the browser.- * @defaultValue The contents of `process.env`.- */env?: Record<string, string | undefined>;- /**- * Connect to a browser over a pipe instead of a WebSocket.- * @defaultValue false- */pipe?: boolean;- /**- * Which browser to launch.- * @defaultValue `chrome`- */product?: Product;- /**- * {@link https://searchfox.org/mozilla-release/source/modules/libpref/init/all.js | Additional preferences } that can be passed when launching with Firefox.- */extraPrefsFirefox?: Record<string, unknown>;- /**- * Whether to wait for the initial page to be ready.- * Useful when a user explicitly disables that (e.g. `--no-startup-window` for Chrome).- * @defaultValue true- */waitForInitialPage?: boolean;}