diff --git a/src/domains/DOM.ts b/src/domains/DOM.ts index 8b4a9b7..b1d8c6d 100644 --- a/src/domains/DOM.ts +++ b/src/domains/DOM.ts @@ -301,6 +301,12 @@ export function getDOMNode(params: any) { } } +export function getTopLayerElements(): DOM.GetTopLayerElementsResponse { + return { + nodeIds: [], + } +} + function parseAttributes(str: string) { str = `
` diff --git a/src/domains/Storage.ts b/src/domains/Storage.ts index 2edd7ae..3ef2b45 100644 --- a/src/domains/Storage.ts +++ b/src/domains/Storage.ts @@ -36,3 +36,20 @@ export function getTrustTokens(): Storage.GetTrustTokensResponse { tokens: [], } } + +export function getStorageKeyForFrame(): Storage.GetStorageKeyForFrameResponse { + return { + storageKey: 'chobitsu', + } +} + +export function getSharedStorageMetadata(): Storage.GetSharedStorageMetadataResponse { + return { + metadata: { + creationTime: 0, + length: 0, + remainingBudget: 0, + bytesUsed: 0, + }, + } +} diff --git a/src/index.ts b/src/index.ts index db9fc26..14a4d37 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,6 +33,7 @@ chobitsu.register('Page', { }) chobitsu.register('Runtime', { ...Runtime, + getExceptionDetails: noop, compileScript: noop, discardConsoleEntries: noop, getHeapUsage: noop, @@ -114,6 +115,9 @@ chobitsu.register('CacheStorage', { }) chobitsu.register('Storage', { ...Storage, + setInterestGroupTracking: noop, + setSharedStorageTracking: noop, + setStorageBucketTracking: noop, untrackCacheStorageForOrigin: noop, untrackIndexedDBForOrigin: noop, trackCacheStorageForOrigin: noop, @@ -139,5 +143,8 @@ chobitsu.register('HeapProfiler', { chobitsu.register('Input', { ...Input, }) +chobitsu.register('Autofill', { + enable: noop, +}) export default chobitsu