chore: hide indexedDB from storageState() and BrowserContext option (#35058)
This commit is contained in:
parent
aae74d7757
commit
6f99ad63dd
|
@ -71,7 +71,6 @@ Methods like [`method: APIRequestContext.get`] take the base URL into considerat
|
|||
- `localStorage` <[Array]<[Object]>>
|
||||
- `name` <[string]>
|
||||
- `value` <[string]>
|
||||
- `indexedDB` ?<[Array]<[unknown]>> indexedDB to set for context
|
||||
|
||||
Populates context with given storage state. This option can be used to initialize context with logged-in information
|
||||
obtained via [`method: BrowserContext.storageState`] or [`method: APIRequestContext.storageState`]. Either a path to the
|
||||
|
|
|
@ -880,7 +880,6 @@ context cookies from the response. The method will automatically follow redirect
|
|||
- `localStorage` <[Array]<[Object]>>
|
||||
- `name` <[string]>
|
||||
- `value` <[string]>
|
||||
- `indexedDB` <[Array]<[unknown]>>
|
||||
|
||||
Returns storage state for this request context, contains current cookies and local storage snapshot if it was passed to the constructor.
|
||||
|
||||
|
|
|
@ -1509,7 +1509,6 @@ Whether to emulate network being offline for the browser context.
|
|||
- `localStorage` <[Array]<[Object]>>
|
||||
- `name` <[string]>
|
||||
- `value` <[string]>
|
||||
- `indexedDB` <[Array]<[unknown]>>
|
||||
|
||||
Returns storage state for this browser context, contains current cookies, local storage snapshot and IndexedDB snapshot.
|
||||
|
||||
|
|
|
@ -264,7 +264,6 @@ Specify environment variables that will be visible to the browser. Defaults to `
|
|||
- `localStorage` <[Array]<[Object]>> localStorage to set for context
|
||||
- `name` <[string]>
|
||||
- `value` <[string]>
|
||||
- `indexedDB` ?<[Array]<[unknown]>> indexedDB to set for context
|
||||
|
||||
Learn more about [storage state and auth](../auth.md).
|
||||
|
||||
|
|
|
@ -9317,8 +9317,6 @@ export interface BrowserContext {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
indexedDB: Array<unknown>;
|
||||
}>;
|
||||
}>;
|
||||
|
||||
|
@ -10085,11 +10083,6 @@ export interface Browser {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
@ -17638,11 +17631,6 @@ export interface APIRequest {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
@ -18457,8 +18445,6 @@ export interface APIRequestContext {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
indexedDB: Array<unknown>;
|
||||
}>;
|
||||
}>;
|
||||
|
||||
|
@ -22306,11 +22292,6 @@ export interface BrowserContextOptions {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ export type SelectOptionOptions = { force?: boolean, timeout?: number };
|
|||
export type FilePayload = { name: string, mimeType: string, buffer: Buffer };
|
||||
export type StorageState = {
|
||||
cookies: channels.NetworkCookie[],
|
||||
origins: (Omit<channels.OriginStorage, 'indexedDB'> & { indexedDB: unknown[] })[],
|
||||
origins: (Omit<channels.OriginStorage, 'indexedDB'>)[],
|
||||
};
|
||||
export type SetStorageState = {
|
||||
cookies?: channels.SetNetworkCookie[],
|
||||
|
|
|
@ -9317,8 +9317,6 @@ export interface BrowserContext {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
indexedDB: Array<unknown>;
|
||||
}>;
|
||||
}>;
|
||||
|
||||
|
@ -10085,11 +10083,6 @@ export interface Browser {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
@ -17638,11 +17631,6 @@ export interface APIRequest {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
@ -18457,8 +18445,6 @@ export interface APIRequestContext {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
indexedDB: Array<unknown>;
|
||||
}>;
|
||||
}>;
|
||||
|
||||
|
@ -22306,11 +22292,6 @@ export interface BrowserContextOptions {
|
|||
|
||||
value: string;
|
||||
}>;
|
||||
|
||||
/**
|
||||
* indexedDB to set for context
|
||||
*/
|
||||
indexedDB?: Array<unknown>;
|
||||
}>;
|
||||
};
|
||||
|
||||
|
|
|
@ -352,25 +352,27 @@ it('should preserve local storage on import/export of storage state', async ({ p
|
|||
name: 'name1',
|
||||
value: 'value1'
|
||||
}],
|
||||
indexedDB: [
|
||||
{
|
||||
name: 'db',
|
||||
version: 5,
|
||||
stores: [
|
||||
{
|
||||
name: 'store',
|
||||
keyPath: 'id',
|
||||
autoIncrement: false,
|
||||
indexes: [],
|
||||
records: [
|
||||
{
|
||||
value: { id: 'foo', name: 'John Doe' }
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
...{
|
||||
indexedDB: [
|
||||
{
|
||||
name: 'db',
|
||||
version: 5,
|
||||
stores: [
|
||||
{
|
||||
name: 'store',
|
||||
keyPath: 'id',
|
||||
autoIncrement: false,
|
||||
indexes: [],
|
||||
records: [
|
||||
{
|
||||
value: { id: 'foo', name: 'John Doe' }
|
||||
}
|
||||
],
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
},
|
||||
]
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue