Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions api/src/modules/sessions/sessions.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ const CreateSession = z.object({
.optional()
.describe("Flag to indicate if fingerprint injection should be skipped for this session."),
deviceConfig: deviceConfigSchema,
fullscreen: z
.boolean()
.optional()
.describe("Launch the browser in fullscreen mode, covering the full screen with no Chrome UI."),
// Specific to hosted steel
logSinkUrl: z.string().optional().describe("Deprecated: Log sink URL to use for the session"),
extensions: z.array(z.string()).optional().describe("Extensions to use for the session"),
Expand Down
1 change: 1 addition & 0 deletions api/src/services/cdp/cdp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,7 @@ export class CDPService extends EventEmitter {
this.launchConfig.options.proxyUrl
? `--proxy-server=${this.launchConfig.options.proxyUrl}`
: "",
this.launchConfig.fullscreen === true ? "--kiosk" : "",
];

const uniq = (xs: string[]) => Array.from(new Set(xs.filter(Boolean)));
Expand Down
3 changes: 3 additions & 0 deletions api/src/services/session.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class SessionService {
skipFingerprintInjection?: boolean;
userPreferences?: Record<string, any>;
deviceConfig?: { device: "desktop" | "mobile" };
fullscreen?: boolean;
headless?: boolean;
dangerouslyLogRequestDetails?: boolean;
}): Promise<SessionDetails> {
Expand All @@ -133,6 +134,7 @@ export class SessionService {
skipFingerprintInjection,
userPreferences,
deviceConfig,
fullscreen,
headless,
dangerouslyLogRequestDetails,
} = options;
Expand Down Expand Up @@ -228,6 +230,7 @@ export class SessionService {
credentials,
skipFingerprintInjection,
deviceConfig,
fullscreen,
dangerouslyLogRequestDetails,
};

Expand Down
1 change: 1 addition & 0 deletions api/src/types/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export interface BrowserLauncherOptions {
credentials?: CredentialsOptions;
skipFingerprintInjection?: boolean;
deviceConfig?: { device: "desktop" | "mobile" };
fullscreen?: boolean;
dangerouslyLogRequestDetails?: boolean;
}

Expand Down
Loading