1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["18601"],{39123(e,r,t){t.r(r),t.d(r,{metadata:()=>s,default:()=>d,frontMatter:()=>a,contentTitle:()=>i,toc:()=>p,assets:()=>l});var s=JSON.parse('{"id":"api/puppeteer.browser.defaultbrowsercontext","title":"Browser.defaultBrowserContext() method","description":"Gets the default browser context.","source":"@site/versioned_docs/version-25.12.0/api/puppeteer.browser.defaultbrowsercontext.md","sourceDirName":"api","slug":"/api/puppeteer.browser.defaultbrowsercontext","permalink":"/api/puppeteer.browser.defaultbrowsercontext","draft":false,"unlisted":false,"tags":[],"version":"25.12.0","frontMatter":{"sidebar_label":"Browser.defaultBrowserContext"},"sidebar":"api","previous":{"title":"Browser.createBrowserContext","permalink":"/api/puppeteer.browser.createbrowsercontext"},"next":{"title":"Browser.deleteCookie","permalink":"/api/puppeteer.browser.deletecookie"}}'),n=t(74848),o=t(28453);let a={sidebar_label:"Browser.defaultBrowserContext"},i="Browser.defaultBrowserContext() method",l={},p=[{value:"Signature",id:"signature",level:3},{value:"Remarks",id:"remarks",level:2}];function c(e){let r={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",p:"p",pre:"pre",strong:"strong",...(0,o.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.header,{children:(0,n.jsx)(r.h1,{id:"browserdefaultbrowsercontext-method",children:"Browser.defaultBrowserContext() method"})}),"\n",(0,n.jsxs)(r.p,{children:["Gets the default ",(0,n.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"browser context"}),"."]}),"\n",(0,n.jsx)(r.h3,{id:"signature",children:"Signature"}),"\n",(0,n.jsx)(r.pre,{children:(0,n.jsx)(r.code,{className:"language-typescript",children:"class Browser {\n abstract defaultBrowserContext(): BrowserContext;\n}\n"})}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"BrowserContext"})}),"\n",(0,n.jsx)(r.h2,{id:"remarks",children:"Remarks"}),"\n",(0,n.jsxs)(r.p,{children:["The default ",(0,n.jsx)(r.a,{href:"/api/puppeteer.browsercontext",children:"browser context"})," cannot be closed."]})]})}function d(e={}){let{wrapper:r}={...(0,o.R)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(c,{...e})}):c(e)}},28453(e,r,t){t.d(r,{R:()=>a,x:()=>i});var s=t(96540);let n={},o=s.createContext(n);function a(e){let r=s.useContext(o);return s.useMemo(function(){return"function"==typeof e?e(r):{...r,...e}},[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:a(e.components),s.createElement(o.Provider,{value:r},e.children)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.