Source symbols: packages/playwright-core/src/client/browserContext.ts
Deterministic, value-free symbol metadata extracted from public source. Implementations and literal values are not copied into this page.
- Revision: main@4cd8608744bf4d18c9f23578c3cf4a1cd1862b2d · 2026-07-20T11:02:36Z
- Declarations: 49
- Referenced calls: 136
Declared symbols
RecorderEventSink— interface at line 56BrowserContext— exported class at line 62; referencesfrom,constructor,super,TimeoutSettings,Clock,Credentials,_onBinding,_onClose,_onPage,_onRoute,_onWebSocketRoute,add,emit,fromNullable,ConsoleMessage,has,_serviceWorkerScope,for,url,startsWithfrom— static at line 88fromNullable— static at line 92; referencesfromserviceWorker— const at line 113; referencesfrom,add,emit,fromNullable,ConsoleMessage,has,_serviceWorkerScope,for,url,startsWithworker— const at line 119; referencesfromNullable,ConsoleMessage,emit,has,_serviceWorkerScope,for,url,startsWithpage— const at line 120; referencesfromNullable,ConsoleMessage,emit,has,_serviceWorkerScope,for,url,startsWithconsoleMessage— const at line 121; referencesConsoleMessage,emit,has,_serviceWorkerScope,for,url,startsWithscope— const at line 125; references_serviceWorkerScope,for,url,startsWith,emitpageObject— const at line 134; referencesfrom,parseError,emit,WebError,type,accept,dismissparsedError— const at line 135; referencesparseError,emit,WebError,from,type,accept,dismissdialogObject— const at line 141; referencesfrom,emit,type,accept,dismisshasListeners— let at line 142; referencesemit,type,accept,dismisspage— const at line 143; referencesemit,type,accept,dismissdefaultContent— const at line 184; referencesendsWith,_recordIntoHARrequest— const at line 221; referencesfrom,fromNullable,_setResponseEndTiming,emit,resolve,_onRoute,_safePage,slice,for,isClosed,matches,url,indexOf,willExpire,splice,handle,_updateInterceptionPatterns,_innerContinueresponse— const at line 222; referencesfromNullable,_setResponseEndTiming,emit,resolve,_onRoute,request,_safePage,slice,for,isClosed,matches,url,indexOf,willExpire,splice,handle,_updateInterceptionPatterns,_innerContinuepage— const at line 223; referencesfromNullable,_setResponseEndTiming,emit,resolve,_onRoute,request,_safePage,slice,for,isClosed,matches,url,indexOf,willExpire,splice,handle,_updateInterceptionPatterns,_innerContinuepage— const at line 234; referencesrequest,_safePage,slice,for,isClosed,matches,url,indexOf,willExpire,splice,handle,_updateInterceptionPatternsrouteHandlers— const at line 235; referencesslice,for,isClosed,matches,request,url,indexOf,willExpire,splice,handle,_updateInterceptionPatternsindex— const at line 242; referencesindexOf,willExpire,splice,handle,_updateInterceptionPatternshandled— const at line 247; referenceshandle,_updateInterceptionPatternsrouteHandler— const at line 259; referencesfind,matches,url,handle,connectToServer,_onBinding,get,callfunc— const at line 267; referencesget,call,_serviceWorkerScope,URL,endsWithurl— let at line 275; referencesURL,endsWithsource— const at line 362; referencesevaluationScript,from,addInitScriptresult— const at line 367; referencesexposeBindingresult— const at line 373; referencesexposeBindingbinding— const at line 374; referencescallback,set,from,route,unshift,RouteHandler,_updateInterceptionPatterns,DisposableStub,unroutelocalUtils— const at line 391; referencesError,_recordIntoHARharRouter— const at line 398; referencescreateremoved— const at line 416; referencesfor,urlMatchesEqual,pushremaining— const at line 417; referencesfor,urlMatchesEqual,pushpromises— const at line 430; referencesstop,all,_updateInterceptionPatternspatterns— const at line 437; referencesprepareInterceptionPatterns,_wrapApiCall,setNetworkInterceptionPatternspatterns— const at line 442; referencesprepareInterceptionPatterns,_wrapApiCall,setWebSocketInterceptionPatternstimeoutOptions— const at line 452; referencestimeoutpredicate— const at line 453; referencescreateForEvent,rejectOnTimeout,rejectOnEvent,TargetClosedError,_effectiveCloseReason,waitForEvent,dispose,storageState,mkdirIfNeeded,writeFile,stringifywaiter— const at line 454; referencescreateForEvent,rejectOnTimeout,rejectOnEvent,TargetClosedError,_effectiveCloseReason,waitForEvent,dispose,storageState,mkdirIfNeeded,writeFile,stringifyresult— const at line 458; referenceswaitForEvent,dispose,storageState,mkdirIfNeeded,writeFile,stringifystate— const at line 465; referencesstorageStatestate— const at line 474; referencesprepareStorageState,setStorageStateresult— const at line 490; referencesnewCDPSessionprepareStorageState— function at line 537; referencesparse,readFile,rewriteErrorMessageprepareBrowserContextParams— exported function at line 548; referencesvalidateHeaders,headersObjectToArray,prepareStorageState,toAcceptDownloadsProtocol,toClientCertificatesProtocol,resolvecontextParams— const at line 551; referencesheadersObjectToArray,prepareStorageState,toAcceptDownloadsProtocol,toClientCertificatesProtocoltoAcceptDownloadsProtocol— function at line 570toClientCertificatesProtocol— exported function at line 578; referencesasync,readFile,all,bufferizeContentbufferizeContent— const at line 582; referencesasync,readFile
Imported modules
fspath@isomorphic/headers@isomorphic/urlMatch@isomorphic/rtti@utils/stackTrace./browser./cdpSession./channelOwner./clientHelper./clock./consoleMessage./credentials./debugger./dialog./disposable./errors./events./fetch./frame./harRouter./network./page./tracing./waiter./webError./worker./timeoutSettings./fileUtils./types../../types/structs../../types/types./channels@isomorphic/codegen/actions
File-level call references
from— line 93constructor— line 96super— line 97TimeoutSettings— line 99Clock— line 104Credentials— line 105_onBinding— line 107_onClose— line 108_onPage— line 109_onRoute— line 110_onWebSocketRoute— line 111add— line 115emit— line 116fromNullable— line 119ConsoleMessage— line 121has— line 124_serviceWorkerScope— line 125for— line 126url— line 127startsWith— line 127parseError— line 135WebError— line 136type— line 151accept— line 152dismiss— line 154_onRequest— line 157_onRequestFailed— line 158_onRequestFinished— line 159_onResponse— line 160Promise— line 169once— line 169_setEventToSubscriptionMapping— line 171_initializeHarFromOptions— line 181endsWith— line 184_recordIntoHAR— line 185isClosed— line 195_setResponseEndTiming— line 213resolve— line 229request— line 234_safePage— line 234slice— line 235matches— line 240indexOf— line 242willExpire— line 245splice— line 246handle— line 247_updateInterceptionPatterns— line 249_innerContinue— line 255find— line 259connectToServer— line 263get— line 267call— line 270URL— line 275setDefaultNavigationTimeout— line 284setDefaultTimeout— line 288browser— line 292pages— line 296newPage— line 304Error— line 306cookies— line 310addCookies— line 318clearCookies— line 322isString— line 324isRegExp— line 325grantPermissions— line 336clearPermissions— line 340setGeolocation— line 344setExtraHTTPHeaders— line 348validateHeaders— line 349headersObjectToArray— line 350setOffline— line 353setHTTPCredentials— line 357addInitScript— line 361evaluationScript— line 362exposeBinding— line 366set— line 368exposeFunction— line 372callback— line 374route— line 379unshift— line 380RouteHandler— line 380DisposableStub— line 382unroute— line 382routeWebSocket— line 385WebSocketRouteHandler— line 386_updateWebSocketInterceptionPatterns— line 387routeFromHAR— line 390create— line 398push— line 399addContextRoute— line 400addAPIRequestRoute— line 402_disposeHarRouters— line 405dispose— line 406unrouteAll— line 410_unrouteInternal— line 411urlMatchesEqual— line 419stop— line 430all— line 431prepareInterceptionPatterns— line 437_wrapApiCall— line 438setNetworkInterceptionPatterns— line 438setWebSocketInterceptionPatterns— line 443_effectiveCloseReason— line 446waitForEvent— line 450async— line 451timeout— line 452createForEvent— line 454rejectOnTimeout— line 455rejectOnEvent— line 457TargetClosedError— line 457storageState— line 464mkdirIfNeeded— line 467writeFile— line 468stringify— line 468setStorageState— line 473prepareStorageState— line 474backgroundPages— line 478serviceWorkers— line 482newCDPSession— line 486delete— line 496
Source: packages/playwright-core/src/client/browserContext.ts