123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673 |
- {
- "version": {
- "major": "1",
- "minor": "3"
- },
- "domains": [
- {
- "domain": "Accessibility",
- "experimental": true,
- "dependencies": [
- "DOM"
- ],
- "types": [
- {
- "id": "AXNodeId",
- "description": "Unique accessibility node identifier.",
- "type": "string"
- },
- {
- "id": "AXValueType",
- "description": "Enum of possible property types.",
- "type": "string",
- "enum": [
- "boolean",
- "tristate",
- "booleanOrUndefined",
- "idref",
- "idrefList",
- "integer",
- "node",
- "nodeList",
- "number",
- "string",
- "computedString",
- "token",
- "tokenList",
- "domRelation",
- "role",
- "internalRole",
- "valueUndefined"
- ]
- },
- {
- "id": "AXValueSourceType",
- "description": "Enum of possible property sources.",
- "type": "string",
- "enum": [
- "attribute",
- "implicit",
- "style",
- "contents",
- "placeholder",
- "relatedElement"
- ]
- },
- {
- "id": "AXValueNativeSourceType",
- "description": "Enum of possible native property sources (as a subtype of a particular AXValueSourceType).",
- "type": "string",
- "enum": [
- "description",
- "figcaption",
- "label",
- "labelfor",
- "labelwrapped",
- "legend",
- "rubyannotation",
- "tablecaption",
- "title",
- "other"
- ]
- },
- {
- "id": "AXValueSource",
- "description": "A single source for a computed AX property.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "What type of source this is.",
- "$ref": "AXValueSourceType"
- },
- {
- "name": "value",
- "description": "The value of this property source.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "attribute",
- "description": "The name of the relevant attribute, if any.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "attributeValue",
- "description": "The value of the relevant attribute, if any.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "superseded",
- "description": "Whether this source is superseded by a higher priority source.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "nativeSource",
- "description": "The native markup source for this value, e.g. a <label> element.",
- "optional": true,
- "$ref": "AXValueNativeSourceType"
- },
- {
- "name": "nativeSourceValue",
- "description": "The value, such as a node or node list, of the native source.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "invalid",
- "description": "Whether the value for this property is invalid.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "invalidReason",
- "description": "Reason for the value being invalid, if it is.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "AXRelatedNode",
- "type": "object",
- "properties": [
- {
- "name": "backendDOMNodeId",
- "description": "The BackendNodeId of the related DOM node.",
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "idref",
- "description": "The IDRef value provided, if any.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "text",
- "description": "The text alternative of this node in the current context.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "AXProperty",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "The name of this property.",
- "$ref": "AXPropertyName"
- },
- {
- "name": "value",
- "description": "The value of this property.",
- "$ref": "AXValue"
- }
- ]
- },
- {
- "id": "AXValue",
- "description": "A single computed AX property.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "The type of this value.",
- "$ref": "AXValueType"
- },
- {
- "name": "value",
- "description": "The computed value of this property.",
- "optional": true,
- "type": "any"
- },
- {
- "name": "relatedNodes",
- "description": "One or more related nodes, if applicable.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AXRelatedNode"
- }
- },
- {
- "name": "sources",
- "description": "The sources which contributed to the computation of this property.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AXValueSource"
- }
- }
- ]
- },
- {
- "id": "AXPropertyName",
- "description": "Values of AXProperty name:\n- from 'busy' to 'roledescription': states which apply to every AX node\n- from 'live' to 'root': attributes which apply to nodes in live regions\n- from 'autocomplete' to 'valuetext': attributes which apply to widgets\n- from 'checked' to 'selected': states which apply to widgets\n- from 'activedescendant' to 'owns' - relationships between elements other than parent/child/sibling.",
- "type": "string",
- "enum": [
- "busy",
- "disabled",
- "editable",
- "focusable",
- "focused",
- "hidden",
- "hiddenRoot",
- "invalid",
- "keyshortcuts",
- "settable",
- "roledescription",
- "live",
- "atomic",
- "relevant",
- "root",
- "autocomplete",
- "hasPopup",
- "level",
- "multiselectable",
- "orientation",
- "multiline",
- "readonly",
- "required",
- "valuemin",
- "valuemax",
- "valuetext",
- "checked",
- "expanded",
- "modal",
- "pressed",
- "selected",
- "activedescendant",
- "controls",
- "describedby",
- "details",
- "errormessage",
- "flowto",
- "labelledby",
- "owns"
- ]
- },
- {
- "id": "AXNode",
- "description": "A node in the accessibility tree.",
- "type": "object",
- "properties": [
- {
- "name": "nodeId",
- "description": "Unique identifier for this node.",
- "$ref": "AXNodeId"
- },
- {
- "name": "ignored",
- "description": "Whether this node is ignored for accessibility",
- "type": "boolean"
- },
- {
- "name": "ignoredReasons",
- "description": "Collection of reasons why this node is hidden.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AXProperty"
- }
- },
- {
- "name": "role",
- "description": "This `Node`'s role, whether explicit or implicit.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "chromeRole",
- "description": "This `Node`'s Chrome raw role.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "name",
- "description": "The accessible name for this `Node`.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "description",
- "description": "The accessible description for this `Node`.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "value",
- "description": "The value for this `Node`.",
- "optional": true,
- "$ref": "AXValue"
- },
- {
- "name": "properties",
- "description": "All other properties",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AXProperty"
- }
- },
- {
- "name": "parentId",
- "description": "ID for this node's parent.",
- "optional": true,
- "$ref": "AXNodeId"
- },
- {
- "name": "childIds",
- "description": "IDs for each of this node's child nodes.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AXNodeId"
- }
- },
- {
- "name": "backendDOMNodeId",
- "description": "The backend ID for the associated DOM node, if any.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "frameId",
- "description": "The frame ID for the frame associated with this nodes document.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables the accessibility domain."
- },
- {
- "name": "enable",
- "description": "Enables the accessibility domain which causes `AXNodeId`s to remain consistent between method calls.\nThis turns on accessibility for the page, which can impact performance until accessibility is disabled."
- },
- {
- "name": "getPartialAXTree",
- "description": "Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node to get the partial accessibility tree for.",
- "optional": true,
- "$ref": "DOM.NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node to get the partial accessibility tree for.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper to get the partial accessibility tree for.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "fetchRelatives",
- "description": "Whether to fetch this node's ancestors, siblings and children. Defaults to true.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "description": "The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and\nchildren, if requested.",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- },
- {
- "name": "getFullAXTree",
- "description": "Fetches the entire accessibility tree for the root Document",
- "experimental": true,
- "parameters": [
- {
- "name": "depth",
- "description": "The maximum depth at which descendants of the root node should be retrieved.\nIf omitted, the full tree is returned.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "frameId",
- "description": "The frame for whose document the AX tree should be retrieved.\nIf omited, the root frame is used.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- },
- {
- "name": "getRootAXNode",
- "description": "Fetches the root node.\nRequires `enable()` to have been called previously.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "node",
- "$ref": "AXNode"
- }
- ]
- },
- {
- "name": "getAXNodeAndAncestors",
- "description": "Fetches a node and all ancestors up to and including the root.\nRequires `enable()` to have been called previously.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node to get.",
- "optional": true,
- "$ref": "DOM.NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node to get.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper to get.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- },
- {
- "name": "getChildAXNodes",
- "description": "Fetches a particular accessibility node by AXNodeId.\nRequires `enable()` to have been called previously.",
- "experimental": true,
- "parameters": [
- {
- "name": "id",
- "$ref": "AXNodeId"
- },
- {
- "name": "frameId",
- "description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- },
- {
- "name": "queryAXTree",
- "description": "Query a DOM node's accessibility subtree for accessible name and role.\nThis command computes the name and role for all nodes in the subtree, including those that are\nignored for accessibility, and returns those that mactch the specified name and role. If no DOM\nnode is specified, or the DOM node does not exist, the command returns an error. If neither\n`accessibleName` or `role` is specified, it returns all the accessibility nodes in the subtree.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node for the root to query.",
- "optional": true,
- "$ref": "DOM.NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node for the root to query.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper for the root to query.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "accessibleName",
- "description": "Find nodes with this computed name.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "role",
- "description": "Find nodes with this computed role.",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "description": "A list of `Accessibility.AXNode` matching the specified attributes,\nincluding nodes that are ignored for accessibility.",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "loadComplete",
- "description": "The loadComplete event mirrors the load complete event sent by the browser to assistive\ntechnology when the web page has finished loading.",
- "experimental": true,
- "parameters": [
- {
- "name": "root",
- "description": "New document root node.",
- "$ref": "AXNode"
- }
- ]
- },
- {
- "name": "nodesUpdated",
- "description": "The nodesUpdated event is sent every time a previously requested node has changed the in tree.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodes",
- "description": "Updated node data.",
- "type": "array",
- "items": {
- "$ref": "AXNode"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Animation",
- "experimental": true,
- "dependencies": [
- "Runtime",
- "DOM"
- ],
- "types": [
- {
- "id": "Animation",
- "description": "Animation instance.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "`Animation`'s id.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "`Animation`'s name.",
- "type": "string"
- },
- {
- "name": "pausedState",
- "description": "`Animation`'s internal paused state.",
- "type": "boolean"
- },
- {
- "name": "playState",
- "description": "`Animation`'s play state.",
- "type": "string"
- },
- {
- "name": "playbackRate",
- "description": "`Animation`'s playback rate.",
- "type": "number"
- },
- {
- "name": "startTime",
- "description": "`Animation`'s start time.",
- "type": "number"
- },
- {
- "name": "currentTime",
- "description": "`Animation`'s current time.",
- "type": "number"
- },
- {
- "name": "type",
- "description": "Animation type of `Animation`.",
- "type": "string",
- "enum": [
- "CSSTransition",
- "CSSAnimation",
- "WebAnimation"
- ]
- },
- {
- "name": "source",
- "description": "`Animation`'s source animation node.",
- "optional": true,
- "$ref": "AnimationEffect"
- },
- {
- "name": "cssId",
- "description": "A unique ID for `Animation` representing the sources that triggered this CSS\nanimation/transition.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "AnimationEffect",
- "description": "AnimationEffect instance",
- "type": "object",
- "properties": [
- {
- "name": "delay",
- "description": "`AnimationEffect`'s delay.",
- "type": "number"
- },
- {
- "name": "endDelay",
- "description": "`AnimationEffect`'s end delay.",
- "type": "number"
- },
- {
- "name": "iterationStart",
- "description": "`AnimationEffect`'s iteration start.",
- "type": "number"
- },
- {
- "name": "iterations",
- "description": "`AnimationEffect`'s iterations.",
- "type": "number"
- },
- {
- "name": "duration",
- "description": "`AnimationEffect`'s iteration duration.",
- "type": "number"
- },
- {
- "name": "direction",
- "description": "`AnimationEffect`'s playback direction.",
- "type": "string"
- },
- {
- "name": "fill",
- "description": "`AnimationEffect`'s fill mode.",
- "type": "string"
- },
- {
- "name": "backendNodeId",
- "description": "`AnimationEffect`'s target node.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "keyframesRule",
- "description": "`AnimationEffect`'s keyframes.",
- "optional": true,
- "$ref": "KeyframesRule"
- },
- {
- "name": "easing",
- "description": "`AnimationEffect`'s timing function.",
- "type": "string"
- }
- ]
- },
- {
- "id": "KeyframesRule",
- "description": "Keyframes Rule",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "CSS keyframed animation's name.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "keyframes",
- "description": "List of animation keyframes.",
- "type": "array",
- "items": {
- "$ref": "KeyframeStyle"
- }
- }
- ]
- },
- {
- "id": "KeyframeStyle",
- "description": "Keyframe Style",
- "type": "object",
- "properties": [
- {
- "name": "offset",
- "description": "Keyframe's time offset.",
- "type": "string"
- },
- {
- "name": "easing",
- "description": "`AnimationEffect`'s timing function.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables animation domain notifications."
- },
- {
- "name": "enable",
- "description": "Enables animation domain notifications."
- },
- {
- "name": "getCurrentTime",
- "description": "Returns the current time of the an animation.",
- "parameters": [
- {
- "name": "id",
- "description": "Id of animation.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "currentTime",
- "description": "Current time of the page.",
- "type": "number"
- }
- ]
- },
- {
- "name": "getPlaybackRate",
- "description": "Gets the playback rate of the document timeline.",
- "returns": [
- {
- "name": "playbackRate",
- "description": "Playback rate for animations on page.",
- "type": "number"
- }
- ]
- },
- {
- "name": "releaseAnimations",
- "description": "Releases a set of animations to no longer be manipulated.",
- "parameters": [
- {
- "name": "animations",
- "description": "List of animation ids to seek.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "resolveAnimation",
- "description": "Gets the remote object of the Animation.",
- "parameters": [
- {
- "name": "animationId",
- "description": "Animation id.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "remoteObject",
- "description": "Corresponding remote object.",
- "$ref": "Runtime.RemoteObject"
- }
- ]
- },
- {
- "name": "seekAnimations",
- "description": "Seek a set of animations to a particular time within each animation.",
- "parameters": [
- {
- "name": "animations",
- "description": "List of animation ids to seek.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "currentTime",
- "description": "Set the current time of each animation.",
- "type": "number"
- }
- ]
- },
- {
- "name": "setPaused",
- "description": "Sets the paused state of a set of animations.",
- "parameters": [
- {
- "name": "animations",
- "description": "Animations to set the pause state of.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "paused",
- "description": "Paused state to set to.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setPlaybackRate",
- "description": "Sets the playback rate of the document timeline.",
- "parameters": [
- {
- "name": "playbackRate",
- "description": "Playback rate for animations on page",
- "type": "number"
- }
- ]
- },
- {
- "name": "setTiming",
- "description": "Sets the timing of an animation node.",
- "parameters": [
- {
- "name": "animationId",
- "description": "Animation id.",
- "type": "string"
- },
- {
- "name": "duration",
- "description": "Duration of the animation.",
- "type": "number"
- },
- {
- "name": "delay",
- "description": "Delay of the animation.",
- "type": "number"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "animationCanceled",
- "description": "Event for when an animation has been cancelled.",
- "parameters": [
- {
- "name": "id",
- "description": "Id of the animation that was cancelled.",
- "type": "string"
- }
- ]
- },
- {
- "name": "animationCreated",
- "description": "Event for each animation that has been created.",
- "parameters": [
- {
- "name": "id",
- "description": "Id of the animation that was created.",
- "type": "string"
- }
- ]
- },
- {
- "name": "animationStarted",
- "description": "Event for animation that has been started.",
- "parameters": [
- {
- "name": "animation",
- "description": "Animation that was started.",
- "$ref": "Animation"
- }
- ]
- }
- ]
- },
- {
- "domain": "Audits",
- "description": "Audits domain allows investigation of page violations and possible improvements.",
- "experimental": true,
- "dependencies": [
- "Network"
- ],
- "types": [
- {
- "id": "AffectedCookie",
- "description": "Information about a cookie that is affected by an inspector issue.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "The following three properties uniquely identify a cookie",
- "type": "string"
- },
- {
- "name": "path",
- "type": "string"
- },
- {
- "name": "domain",
- "type": "string"
- }
- ]
- },
- {
- "id": "AffectedRequest",
- "description": "Information about a request that is affected by an inspector issue.",
- "type": "object",
- "properties": [
- {
- "name": "requestId",
- "description": "The unique request id.",
- "$ref": "Network.RequestId"
- },
- {
- "name": "url",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "AffectedFrame",
- "description": "Information about the frame affected by an inspector issue.",
- "type": "object",
- "properties": [
- {
- "name": "frameId",
- "$ref": "Page.FrameId"
- }
- ]
- },
- {
- "id": "CookieExclusionReason",
- "type": "string",
- "enum": [
- "ExcludeSameSiteUnspecifiedTreatedAsLax",
- "ExcludeSameSiteNoneInsecure",
- "ExcludeSameSiteLax",
- "ExcludeSameSiteStrict",
- "ExcludeInvalidSameParty",
- "ExcludeSamePartyCrossPartyContext",
- "ExcludeDomainNonASCII",
- "ExcludeThirdPartyCookieBlockedInFirstPartySet"
- ]
- },
- {
- "id": "CookieWarningReason",
- "type": "string",
- "enum": [
- "WarnSameSiteUnspecifiedCrossSiteContext",
- "WarnSameSiteNoneInsecure",
- "WarnSameSiteUnspecifiedLaxAllowUnsafe",
- "WarnSameSiteStrictLaxDowngradeStrict",
- "WarnSameSiteStrictCrossDowngradeStrict",
- "WarnSameSiteStrictCrossDowngradeLax",
- "WarnSameSiteLaxCrossDowngradeStrict",
- "WarnSameSiteLaxCrossDowngradeLax",
- "WarnAttributeValueExceedsMaxSize",
- "WarnDomainNonASCII"
- ]
- },
- {
- "id": "CookieOperation",
- "type": "string",
- "enum": [
- "SetCookie",
- "ReadCookie"
- ]
- },
- {
- "id": "CookieIssueDetails",
- "description": "This information is currently necessary, as the front-end has a difficult\ntime finding a specific cookie. With this, we can convey specific error\ninformation without the cookie.",
- "type": "object",
- "properties": [
- {
- "name": "cookie",
- "description": "If AffectedCookie is not set then rawCookieLine contains the raw\nSet-Cookie header string. This hints at a problem where the\ncookie line is syntactically or semantically malformed in a way\nthat no valid cookie could be created.",
- "optional": true,
- "$ref": "AffectedCookie"
- },
- {
- "name": "rawCookieLine",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cookieWarningReasons",
- "type": "array",
- "items": {
- "$ref": "CookieWarningReason"
- }
- },
- {
- "name": "cookieExclusionReasons",
- "type": "array",
- "items": {
- "$ref": "CookieExclusionReason"
- }
- },
- {
- "name": "operation",
- "description": "Optionally identifies the site-for-cookies and the cookie url, which\nmay be used by the front-end as additional context.",
- "$ref": "CookieOperation"
- },
- {
- "name": "siteForCookies",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cookieUrl",
- "optional": true,
- "type": "string"
- },
- {
- "name": "request",
- "optional": true,
- "$ref": "AffectedRequest"
- }
- ]
- },
- {
- "id": "MixedContentResolutionStatus",
- "type": "string",
- "enum": [
- "MixedContentBlocked",
- "MixedContentAutomaticallyUpgraded",
- "MixedContentWarning"
- ]
- },
- {
- "id": "MixedContentResourceType",
- "type": "string",
- "enum": [
- "AttributionSrc",
- "Audio",
- "Beacon",
- "CSPReport",
- "Download",
- "EventSource",
- "Favicon",
- "Font",
- "Form",
- "Frame",
- "Image",
- "Import",
- "Manifest",
- "Ping",
- "PluginData",
- "PluginResource",
- "Prefetch",
- "Resource",
- "Script",
- "ServiceWorker",
- "SharedWorker",
- "Stylesheet",
- "Track",
- "Video",
- "Worker",
- "XMLHttpRequest",
- "XSLT"
- ]
- },
- {
- "id": "MixedContentIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "resourceType",
- "description": "The type of resource causing the mixed content issue (css, js, iframe,\nform,...). Marked as optional because it is mapped to from\nblink::mojom::RequestContextType, which will be replaced\nby network::mojom::RequestDestination",
- "optional": true,
- "$ref": "MixedContentResourceType"
- },
- {
- "name": "resolutionStatus",
- "description": "The way the mixed content issue is being resolved.",
- "$ref": "MixedContentResolutionStatus"
- },
- {
- "name": "insecureURL",
- "description": "The unsafe http url causing the mixed content issue.",
- "type": "string"
- },
- {
- "name": "mainResourceURL",
- "description": "The url responsible for the call to an unsafe url.",
- "type": "string"
- },
- {
- "name": "request",
- "description": "The mixed content request.\nDoes not always exist (e.g. for unsafe form submission urls).",
- "optional": true,
- "$ref": "AffectedRequest"
- },
- {
- "name": "frame",
- "description": "Optional because not every mixed content issue is necessarily linked to a frame.",
- "optional": true,
- "$ref": "AffectedFrame"
- }
- ]
- },
- {
- "id": "BlockedByResponseReason",
- "description": "Enum indicating the reason a response has been blocked. These reasons are\nrefinements of the net error BLOCKED_BY_RESPONSE.",
- "type": "string",
- "enum": [
- "CoepFrameResourceNeedsCoepHeader",
- "CoopSandboxedIFrameCannotNavigateToCoopPage",
- "CorpNotSameOrigin",
- "CorpNotSameOriginAfterDefaultedToSameOriginByCoep",
- "CorpNotSameSite"
- ]
- },
- {
- "id": "BlockedByResponseIssueDetails",
- "description": "Details for a request that has been blocked with the BLOCKED_BY_RESPONSE\ncode. Currently only used for COEP/COOP, but may be extended to include\nsome CSP errors in the future.",
- "type": "object",
- "properties": [
- {
- "name": "request",
- "$ref": "AffectedRequest"
- },
- {
- "name": "parentFrame",
- "optional": true,
- "$ref": "AffectedFrame"
- },
- {
- "name": "blockedFrame",
- "optional": true,
- "$ref": "AffectedFrame"
- },
- {
- "name": "reason",
- "$ref": "BlockedByResponseReason"
- }
- ]
- },
- {
- "id": "HeavyAdResolutionStatus",
- "type": "string",
- "enum": [
- "HeavyAdBlocked",
- "HeavyAdWarning"
- ]
- },
- {
- "id": "HeavyAdReason",
- "type": "string",
- "enum": [
- "NetworkTotalLimit",
- "CpuTotalLimit",
- "CpuPeakLimit"
- ]
- },
- {
- "id": "HeavyAdIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "resolution",
- "description": "The resolution status, either blocking the content or warning.",
- "$ref": "HeavyAdResolutionStatus"
- },
- {
- "name": "reason",
- "description": "The reason the ad was blocked, total network or cpu or peak cpu.",
- "$ref": "HeavyAdReason"
- },
- {
- "name": "frame",
- "description": "The frame that was blocked.",
- "$ref": "AffectedFrame"
- }
- ]
- },
- {
- "id": "ContentSecurityPolicyViolationType",
- "type": "string",
- "enum": [
- "kInlineViolation",
- "kEvalViolation",
- "kURLViolation",
- "kTrustedTypesSinkViolation",
- "kTrustedTypesPolicyViolation",
- "kWasmEvalViolation"
- ]
- },
- {
- "id": "SourceCodeLocation",
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "optional": true,
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "lineNumber",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "type": "integer"
- }
- ]
- },
- {
- "id": "ContentSecurityPolicyIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "blockedURL",
- "description": "The url not included in allowed sources.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "violatedDirective",
- "description": "Specific directive that is violated, causing the CSP issue.",
- "type": "string"
- },
- {
- "name": "isReportOnly",
- "type": "boolean"
- },
- {
- "name": "contentSecurityPolicyViolationType",
- "$ref": "ContentSecurityPolicyViolationType"
- },
- {
- "name": "frameAncestor",
- "optional": true,
- "$ref": "AffectedFrame"
- },
- {
- "name": "sourceCodeLocation",
- "optional": true,
- "$ref": "SourceCodeLocation"
- },
- {
- "name": "violatingNodeId",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- }
- ]
- },
- {
- "id": "SharedArrayBufferIssueType",
- "type": "string",
- "enum": [
- "TransferIssue",
- "CreationIssue"
- ]
- },
- {
- "id": "SharedArrayBufferIssueDetails",
- "description": "Details for a issue arising from an SAB being instantiated in, or\ntransferred to a context that is not cross-origin isolated.",
- "type": "object",
- "properties": [
- {
- "name": "sourceCodeLocation",
- "$ref": "SourceCodeLocation"
- },
- {
- "name": "isWarning",
- "type": "boolean"
- },
- {
- "name": "type",
- "$ref": "SharedArrayBufferIssueType"
- }
- ]
- },
- {
- "id": "LowTextContrastIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "violatingNodeId",
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "violatingNodeSelector",
- "type": "string"
- },
- {
- "name": "contrastRatio",
- "type": "number"
- },
- {
- "name": "thresholdAA",
- "type": "number"
- },
- {
- "name": "thresholdAAA",
- "type": "number"
- },
- {
- "name": "fontSize",
- "type": "string"
- },
- {
- "name": "fontWeight",
- "type": "string"
- }
- ]
- },
- {
- "id": "CorsIssueDetails",
- "description": "Details for a CORS related issue, e.g. a warning or error related to\nCORS RFC1918 enforcement.",
- "type": "object",
- "properties": [
- {
- "name": "corsErrorStatus",
- "$ref": "Network.CorsErrorStatus"
- },
- {
- "name": "isWarning",
- "type": "boolean"
- },
- {
- "name": "request",
- "$ref": "AffectedRequest"
- },
- {
- "name": "location",
- "optional": true,
- "$ref": "SourceCodeLocation"
- },
- {
- "name": "initiatorOrigin",
- "optional": true,
- "type": "string"
- },
- {
- "name": "resourceIPAddressSpace",
- "optional": true,
- "$ref": "Network.IPAddressSpace"
- },
- {
- "name": "clientSecurityState",
- "optional": true,
- "$ref": "Network.ClientSecurityState"
- }
- ]
- },
- {
- "id": "AttributionReportingIssueType",
- "type": "string",
- "enum": [
- "PermissionPolicyDisabled",
- "UntrustworthyReportingOrigin",
- "InsecureContext",
- "InvalidHeader",
- "InvalidRegisterTriggerHeader",
- "SourceAndTriggerHeaders",
- "SourceIgnored",
- "TriggerIgnored",
- "OsSourceIgnored",
- "OsTriggerIgnored",
- "InvalidRegisterOsSourceHeader",
- "InvalidRegisterOsTriggerHeader",
- "WebAndOsHeaders",
- "NoWebOrOsSupport"
- ]
- },
- {
- "id": "AttributionReportingIssueDetails",
- "description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/attribution-reporting-api",
- "type": "object",
- "properties": [
- {
- "name": "violationType",
- "$ref": "AttributionReportingIssueType"
- },
- {
- "name": "request",
- "optional": true,
- "$ref": "AffectedRequest"
- },
- {
- "name": "violatingNodeId",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "invalidParameter",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "QuirksModeIssueDetails",
- "description": "Details for issues about documents in Quirks Mode\nor Limited Quirks Mode that affects page layouting.",
- "type": "object",
- "properties": [
- {
- "name": "isLimitedQuirksMode",
- "description": "If false, it means the document's mode is \"quirks\"\ninstead of \"limited-quirks\".",
- "type": "boolean"
- },
- {
- "name": "documentNodeId",
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "frameId",
- "$ref": "Page.FrameId"
- },
- {
- "name": "loaderId",
- "$ref": "Network.LoaderId"
- }
- ]
- },
- {
- "id": "NavigatorUserAgentIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "location",
- "optional": true,
- "$ref": "SourceCodeLocation"
- }
- ]
- },
- {
- "id": "GenericIssueErrorType",
- "type": "string",
- "enum": [
- "CrossOriginPortalPostMessageError",
- "FormLabelForNameError",
- "FormDuplicateIdForInputError",
- "FormInputWithNoLabelError",
- "FormAutocompleteAttributeEmptyError",
- "FormEmptyIdAndNameAttributesForInputError",
- "FormAriaLabelledByToNonExistingId",
- "FormInputAssignedAutocompleteValueToIdOrNameAttributeError",
- "FormLabelHasNeitherForNorNestedInput",
- "FormLabelForMatchesNonExistingIdError",
- "FormInputHasWrongButWellIntendedAutocompleteValueError"
- ]
- },
- {
- "id": "GenericIssueDetails",
- "description": "Depending on the concrete errorType, different properties are set.",
- "type": "object",
- "properties": [
- {
- "name": "errorType",
- "description": "Issues with the same errorType are aggregated in the frontend.",
- "$ref": "GenericIssueErrorType"
- },
- {
- "name": "frameId",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "violatingNodeId",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "violatingNodeAttribute",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "DeprecationIssueDetails",
- "description": "This issue tracks information needed to print a deprecation message.\nhttps://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/frame/third_party/blink/renderer/core/frame/deprecation/README.md",
- "type": "object",
- "properties": [
- {
- "name": "affectedFrame",
- "optional": true,
- "$ref": "AffectedFrame"
- },
- {
- "name": "sourceCodeLocation",
- "$ref": "SourceCodeLocation"
- },
- {
- "name": "type",
- "description": "One of the deprecation names from third_party/blink/renderer/core/frame/deprecation/deprecation.json5",
- "type": "string"
- }
- ]
- },
- {
- "id": "BounceTrackingIssueDetails",
- "description": "This issue warns about sites in the redirect chain of a finished navigation\nthat may be flagged as trackers and have their state cleared if they don't\nreceive a user interaction. Note that in this context 'site' means eTLD+1.\nFor example, if the URL `https://example.test:80/bounce` was in the\nredirect chain, the site reported would be `example.test`.",
- "type": "object",
- "properties": [
- {
- "name": "trackingSites",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "ClientHintIssueReason",
- "type": "string",
- "enum": [
- "MetaTagAllowListInvalidOrigin",
- "MetaTagModifiedHTML"
- ]
- },
- {
- "id": "FederatedAuthRequestIssueDetails",
- "type": "object",
- "properties": [
- {
- "name": "federatedAuthRequestIssueReason",
- "$ref": "FederatedAuthRequestIssueReason"
- }
- ]
- },
- {
- "id": "FederatedAuthRequestIssueReason",
- "description": "Represents the failure reason when a federated authentication reason fails.\nShould be updated alongside RequestIdTokenStatus in\nthird_party/blink/public/mojom/devtools/inspector_issue.mojom to include\nall cases except for success.",
- "type": "string",
- "enum": [
- "ShouldEmbargo",
- "TooManyRequests",
- "WellKnownHttpNotFound",
- "WellKnownNoResponse",
- "WellKnownInvalidResponse",
- "WellKnownListEmpty",
- "WellKnownInvalidContentType",
- "ConfigNotInWellKnown",
- "WellKnownTooBig",
- "ConfigHttpNotFound",
- "ConfigNoResponse",
- "ConfigInvalidResponse",
- "ConfigInvalidContentType",
- "ClientMetadataHttpNotFound",
- "ClientMetadataNoResponse",
- "ClientMetadataInvalidResponse",
- "ClientMetadataInvalidContentType",
- "DisabledInSettings",
- "ErrorFetchingSignin",
- "InvalidSigninResponse",
- "AccountsHttpNotFound",
- "AccountsNoResponse",
- "AccountsInvalidResponse",
- "AccountsListEmpty",
- "AccountsInvalidContentType",
- "IdTokenHttpNotFound",
- "IdTokenNoResponse",
- "IdTokenInvalidResponse",
- "IdTokenInvalidRequest",
- "IdTokenInvalidContentType",
- "ErrorIdToken",
- "Canceled",
- "RpPageNotVisible",
- "SilentMediationFailure"
- ]
- },
- {
- "id": "ClientHintIssueDetails",
- "description": "This issue tracks client hints related issues. It's used to deprecate old\nfeatures, encourage the use of new ones, and provide general guidance.",
- "type": "object",
- "properties": [
- {
- "name": "sourceCodeLocation",
- "$ref": "SourceCodeLocation"
- },
- {
- "name": "clientHintIssueReason",
- "$ref": "ClientHintIssueReason"
- }
- ]
- },
- {
- "id": "InspectorIssueCode",
- "description": "A unique identifier for the type of issue. Each type may use one of the\noptional fields in InspectorIssueDetails to convey more specific\ninformation about the kind of issue.",
- "type": "string",
- "enum": [
- "CookieIssue",
- "MixedContentIssue",
- "BlockedByResponseIssue",
- "HeavyAdIssue",
- "ContentSecurityPolicyIssue",
- "SharedArrayBufferIssue",
- "LowTextContrastIssue",
- "CorsIssue",
- "AttributionReportingIssue",
- "QuirksModeIssue",
- "NavigatorUserAgentIssue",
- "GenericIssue",
- "DeprecationIssue",
- "ClientHintIssue",
- "FederatedAuthRequestIssue",
- "BounceTrackingIssue"
- ]
- },
- {
- "id": "InspectorIssueDetails",
- "description": "This struct holds a list of optional fields with additional information\nspecific to the kind of issue. When adding a new issue code, please also\nadd a new optional field to this type.",
- "type": "object",
- "properties": [
- {
- "name": "cookieIssueDetails",
- "optional": true,
- "$ref": "CookieIssueDetails"
- },
- {
- "name": "mixedContentIssueDetails",
- "optional": true,
- "$ref": "MixedContentIssueDetails"
- },
- {
- "name": "blockedByResponseIssueDetails",
- "optional": true,
- "$ref": "BlockedByResponseIssueDetails"
- },
- {
- "name": "heavyAdIssueDetails",
- "optional": true,
- "$ref": "HeavyAdIssueDetails"
- },
- {
- "name": "contentSecurityPolicyIssueDetails",
- "optional": true,
- "$ref": "ContentSecurityPolicyIssueDetails"
- },
- {
- "name": "sharedArrayBufferIssueDetails",
- "optional": true,
- "$ref": "SharedArrayBufferIssueDetails"
- },
- {
- "name": "lowTextContrastIssueDetails",
- "optional": true,
- "$ref": "LowTextContrastIssueDetails"
- },
- {
- "name": "corsIssueDetails",
- "optional": true,
- "$ref": "CorsIssueDetails"
- },
- {
- "name": "attributionReportingIssueDetails",
- "optional": true,
- "$ref": "AttributionReportingIssueDetails"
- },
- {
- "name": "quirksModeIssueDetails",
- "optional": true,
- "$ref": "QuirksModeIssueDetails"
- },
- {
- "name": "navigatorUserAgentIssueDetails",
- "optional": true,
- "$ref": "NavigatorUserAgentIssueDetails"
- },
- {
- "name": "genericIssueDetails",
- "optional": true,
- "$ref": "GenericIssueDetails"
- },
- {
- "name": "deprecationIssueDetails",
- "optional": true,
- "$ref": "DeprecationIssueDetails"
- },
- {
- "name": "clientHintIssueDetails",
- "optional": true,
- "$ref": "ClientHintIssueDetails"
- },
- {
- "name": "federatedAuthRequestIssueDetails",
- "optional": true,
- "$ref": "FederatedAuthRequestIssueDetails"
- },
- {
- "name": "bounceTrackingIssueDetails",
- "optional": true,
- "$ref": "BounceTrackingIssueDetails"
- }
- ]
- },
- {
- "id": "IssueId",
- "description": "A unique id for a DevTools inspector issue. Allows other entities (e.g.\nexceptions, CDP message, console messages, etc.) to reference an issue.",
- "type": "string"
- },
- {
- "id": "InspectorIssue",
- "description": "An inspector issue reported from the back-end.",
- "type": "object",
- "properties": [
- {
- "name": "code",
- "$ref": "InspectorIssueCode"
- },
- {
- "name": "details",
- "$ref": "InspectorIssueDetails"
- },
- {
- "name": "issueId",
- "description": "A unique id for this issue. May be omitted if no other entity (e.g.\nexception, CDP message, etc.) is referencing this issue.",
- "optional": true,
- "$ref": "IssueId"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getEncodedResponse",
- "description": "Returns the response body and size if it were re-encoded with the specified settings. Only\napplies to images.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier of the network request to get content for.",
- "$ref": "Network.RequestId"
- },
- {
- "name": "encoding",
- "description": "The encoding to use.",
- "type": "string",
- "enum": [
- "webp",
- "jpeg",
- "png"
- ]
- },
- {
- "name": "quality",
- "description": "The quality of the encoding (0-1). (defaults to 1)",
- "optional": true,
- "type": "number"
- },
- {
- "name": "sizeOnly",
- "description": "Whether to only return the size information (defaults to false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "body",
- "description": "The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "originalSize",
- "description": "Size before re-encoding.",
- "type": "integer"
- },
- {
- "name": "encodedSize",
- "description": "Size after re-encoding.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables issues domain, prevents further issues from being reported to the client."
- },
- {
- "name": "enable",
- "description": "Enables issues domain, sends the issues collected so far to the client by means of the\n`issueAdded` event."
- },
- {
- "name": "checkContrast",
- "description": "Runs the contrast check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
- "parameters": [
- {
- "name": "reportAAA",
- "description": "Whether to report WCAG AAA level issues. Default is false.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "checkFormsIssues",
- "description": "Runs the form issues check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
- "returns": [
- {
- "name": "formIssues",
- "type": "array",
- "items": {
- "$ref": "GenericIssueDetails"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "issueAdded",
- "parameters": [
- {
- "name": "issue",
- "$ref": "InspectorIssue"
- }
- ]
- }
- ]
- },
- {
- "domain": "Autofill",
- "description": "Defines commands and events for Autofill.",
- "experimental": true,
- "types": [
- {
- "id": "CreditCard",
- "type": "object",
- "properties": [
- {
- "name": "number",
- "description": "16-digit credit card number.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Name of the credit card owner.",
- "type": "string"
- },
- {
- "name": "expiryMonth",
- "description": "2-digit expiry month.",
- "type": "string"
- },
- {
- "name": "expiryYear",
- "description": "4-digit expiry year.",
- "type": "string"
- },
- {
- "name": "cvc",
- "description": "3-digit card verification code.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "trigger",
- "description": "Trigger autofill on a form identified by the fieldId.\nIf the field and related form cannot be autofilled, returns an error.",
- "parameters": [
- {
- "name": "fieldId",
- "description": "Identifies a field that serves as an anchor for autofill.",
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "frameId",
- "description": "Identifies the frame that field belongs to.",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "card",
- "description": "Credit card information to fill out the form. Credit card data is not saved.",
- "$ref": "CreditCard"
- }
- ]
- }
- ]
- },
- {
- "domain": "BackgroundService",
- "description": "Defines events for background web platform features.",
- "experimental": true,
- "types": [
- {
- "id": "ServiceName",
- "description": "The Background Service that will be associated with the commands/events.\nEvery Background Service operates independently, but they share the same\nAPI.",
- "type": "string",
- "enum": [
- "backgroundFetch",
- "backgroundSync",
- "pushMessaging",
- "notifications",
- "paymentHandler",
- "periodicBackgroundSync"
- ]
- },
- {
- "id": "EventMetadata",
- "description": "A key-value pair for additional event information to pass along.",
- "type": "object",
- "properties": [
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "BackgroundServiceEvent",
- "type": "object",
- "properties": [
- {
- "name": "timestamp",
- "description": "Timestamp of the event (in seconds).",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "origin",
- "description": "The origin this event belongs to.",
- "type": "string"
- },
- {
- "name": "serviceWorkerRegistrationId",
- "description": "The Service Worker ID that initiated the event.",
- "$ref": "ServiceWorker.RegistrationID"
- },
- {
- "name": "service",
- "description": "The Background Service this event belongs to.",
- "$ref": "ServiceName"
- },
- {
- "name": "eventName",
- "description": "A description of the event.",
- "type": "string"
- },
- {
- "name": "instanceId",
- "description": "An identifier that groups related events together.",
- "type": "string"
- },
- {
- "name": "eventMetadata",
- "description": "A list of event-specific information.",
- "type": "array",
- "items": {
- "$ref": "EventMetadata"
- }
- },
- {
- "name": "storageKey",
- "description": "Storage key this event belongs to.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "startObserving",
- "description": "Enables event updates for the service.",
- "parameters": [
- {
- "name": "service",
- "$ref": "ServiceName"
- }
- ]
- },
- {
- "name": "stopObserving",
- "description": "Disables event updates for the service.",
- "parameters": [
- {
- "name": "service",
- "$ref": "ServiceName"
- }
- ]
- },
- {
- "name": "setRecording",
- "description": "Set the recording state for the service.",
- "parameters": [
- {
- "name": "shouldRecord",
- "type": "boolean"
- },
- {
- "name": "service",
- "$ref": "ServiceName"
- }
- ]
- },
- {
- "name": "clearEvents",
- "description": "Clears all stored data for the service.",
- "parameters": [
- {
- "name": "service",
- "$ref": "ServiceName"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "recordingStateChanged",
- "description": "Called when the recording state for the service has been updated.",
- "parameters": [
- {
- "name": "isRecording",
- "type": "boolean"
- },
- {
- "name": "service",
- "$ref": "ServiceName"
- }
- ]
- },
- {
- "name": "backgroundServiceEventReceived",
- "description": "Called with all existing backgroundServiceEvents when enabled, and all new\nevents afterwards if enabled and recording.",
- "parameters": [
- {
- "name": "backgroundServiceEvent",
- "$ref": "BackgroundServiceEvent"
- }
- ]
- }
- ]
- },
- {
- "domain": "Browser",
- "description": "The Browser domain defines methods and events for browser managing.",
- "types": [
- {
- "id": "BrowserContextID",
- "experimental": true,
- "type": "string"
- },
- {
- "id": "WindowID",
- "experimental": true,
- "type": "integer"
- },
- {
- "id": "WindowState",
- "description": "The state of the browser window.",
- "experimental": true,
- "type": "string",
- "enum": [
- "normal",
- "minimized",
- "maximized",
- "fullscreen"
- ]
- },
- {
- "id": "Bounds",
- "description": "Browser window bounds information",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "left",
- "description": "The offset from the left edge of the screen to the window in pixels.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "top",
- "description": "The offset from the top edge of the screen to the window in pixels.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "width",
- "description": "The window width in pixels.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "height",
- "description": "The window height in pixels.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "windowState",
- "description": "The window state. Default to normal.",
- "optional": true,
- "$ref": "WindowState"
- }
- ]
- },
- {
- "id": "PermissionType",
- "experimental": true,
- "type": "string",
- "enum": [
- "accessibilityEvents",
- "audioCapture",
- "backgroundSync",
- "backgroundFetch",
- "clipboardReadWrite",
- "clipboardSanitizedWrite",
- "displayCapture",
- "durableStorage",
- "flash",
- "geolocation",
- "idleDetection",
- "localFonts",
- "midi",
- "midiSysex",
- "nfc",
- "notifications",
- "paymentHandler",
- "periodicBackgroundSync",
- "protectedMediaIdentifier",
- "sensors",
- "storageAccess",
- "topLevelStorageAccess",
- "videoCapture",
- "videoCapturePanTiltZoom",
- "wakeLockScreen",
- "wakeLockSystem",
- "windowManagement"
- ]
- },
- {
- "id": "PermissionSetting",
- "experimental": true,
- "type": "string",
- "enum": [
- "granted",
- "denied",
- "prompt"
- ]
- },
- {
- "id": "PermissionDescriptor",
- "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dictdef-permissiondescriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Name of permission.\nSee https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.",
- "type": "string"
- },
- {
- "name": "sysex",
- "description": "For \"midi\" permission, may also specify sysex control.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "userVisibleOnly",
- "description": "For \"push\" permission, may specify userVisibleOnly.\nNote that userVisibleOnly = true is the only currently supported type.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "allowWithoutSanitization",
- "description": "For \"clipboard\" permission, may specify allowWithoutSanitization.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "panTiltZoom",
- "description": "For \"camera\" permission, may specify panTiltZoom.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "BrowserCommandId",
- "description": "Browser command ids used by executeBrowserCommand.",
- "experimental": true,
- "type": "string",
- "enum": [
- "openTabSearch",
- "closeTabSearch"
- ]
- },
- {
- "id": "Bucket",
- "description": "Chrome histogram bucket.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "low",
- "description": "Minimum value (inclusive).",
- "type": "integer"
- },
- {
- "name": "high",
- "description": "Maximum value (exclusive).",
- "type": "integer"
- },
- {
- "name": "count",
- "description": "Number of samples.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "Histogram",
- "description": "Chrome histogram.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Name.",
- "type": "string"
- },
- {
- "name": "sum",
- "description": "Sum of sample values.",
- "type": "integer"
- },
- {
- "name": "count",
- "description": "Total number of samples.",
- "type": "integer"
- },
- {
- "name": "buckets",
- "description": "Buckets.",
- "type": "array",
- "items": {
- "$ref": "Bucket"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "setPermission",
- "description": "Set permission settings for given origin.",
- "experimental": true,
- "parameters": [
- {
- "name": "permission",
- "description": "Descriptor of permission to override.",
- "$ref": "PermissionDescriptor"
- },
- {
- "name": "setting",
- "description": "Setting of the permission.",
- "$ref": "PermissionSetting"
- },
- {
- "name": "origin",
- "description": "Origin the permission applies to, all origins if not specified.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "browserContextId",
- "description": "Context to override. When omitted, default browser context is used.",
- "optional": true,
- "$ref": "BrowserContextID"
- }
- ]
- },
- {
- "name": "grantPermissions",
- "description": "Grant specific permissions to the given origin and reject all others.",
- "experimental": true,
- "parameters": [
- {
- "name": "permissions",
- "type": "array",
- "items": {
- "$ref": "PermissionType"
- }
- },
- {
- "name": "origin",
- "description": "Origin the permission applies to, all origins if not specified.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "browserContextId",
- "description": "BrowserContext to override permissions. When omitted, default browser context is used.",
- "optional": true,
- "$ref": "BrowserContextID"
- }
- ]
- },
- {
- "name": "resetPermissions",
- "description": "Reset all permission management for all origins.",
- "experimental": true,
- "parameters": [
- {
- "name": "browserContextId",
- "description": "BrowserContext to reset permissions. When omitted, default browser context is used.",
- "optional": true,
- "$ref": "BrowserContextID"
- }
- ]
- },
- {
- "name": "setDownloadBehavior",
- "description": "Set the behavior when downloading a file.",
- "experimental": true,
- "parameters": [
- {
- "name": "behavior",
- "description": "Whether to allow all or deny all download requests, or use default Chrome behavior if\navailable (otherwise deny). |allowAndName| allows download and names files according to\ntheir dowmload guids.",
- "type": "string",
- "enum": [
- "deny",
- "allow",
- "allowAndName",
- "default"
- ]
- },
- {
- "name": "browserContextId",
- "description": "BrowserContext to set download behavior. When omitted, default browser context is used.",
- "optional": true,
- "$ref": "BrowserContextID"
- },
- {
- "name": "downloadPath",
- "description": "The default path to save downloaded files to. This is required if behavior is set to 'allow'\nor 'allowAndName'.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "eventsEnabled",
- "description": "Whether to emit download events (defaults to false).",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "cancelDownload",
- "description": "Cancel a download if in progress",
- "experimental": true,
- "parameters": [
- {
- "name": "guid",
- "description": "Global unique identifier of the download.",
- "type": "string"
- },
- {
- "name": "browserContextId",
- "description": "BrowserContext to perform the action in. When omitted, default browser context is used.",
- "optional": true,
- "$ref": "BrowserContextID"
- }
- ]
- },
- {
- "name": "close",
- "description": "Close browser gracefully."
- },
- {
- "name": "crash",
- "description": "Crashes browser on the main thread.",
- "experimental": true
- },
- {
- "name": "crashGpuProcess",
- "description": "Crashes GPU process.",
- "experimental": true
- },
- {
- "name": "getVersion",
- "description": "Returns version information.",
- "returns": [
- {
- "name": "protocolVersion",
- "description": "Protocol version.",
- "type": "string"
- },
- {
- "name": "product",
- "description": "Product name.",
- "type": "string"
- },
- {
- "name": "revision",
- "description": "Product revision.",
- "type": "string"
- },
- {
- "name": "userAgent",
- "description": "User-Agent.",
- "type": "string"
- },
- {
- "name": "jsVersion",
- "description": "V8 version.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getBrowserCommandLine",
- "description": "Returns the command line switches for the browser process if, and only if\n--enable-automation is on the commandline.",
- "experimental": true,
- "returns": [
- {
- "name": "arguments",
- "description": "Commandline parameters",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "getHistograms",
- "description": "Get Chrome histograms.",
- "experimental": true,
- "parameters": [
- {
- "name": "query",
- "description": "Requested substring in name. Only histograms which have query as a\nsubstring in their name are extracted. An empty or absent query returns\nall histograms.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "delta",
- "description": "If true, retrieve delta since last delta call.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "histograms",
- "description": "Histograms.",
- "type": "array",
- "items": {
- "$ref": "Histogram"
- }
- }
- ]
- },
- {
- "name": "getHistogram",
- "description": "Get a Chrome histogram by name.",
- "experimental": true,
- "parameters": [
- {
- "name": "name",
- "description": "Requested histogram name.",
- "type": "string"
- },
- {
- "name": "delta",
- "description": "If true, retrieve delta since last delta call.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "histogram",
- "description": "Histogram.",
- "$ref": "Histogram"
- }
- ]
- },
- {
- "name": "getWindowBounds",
- "description": "Get position and size of the browser window.",
- "experimental": true,
- "parameters": [
- {
- "name": "windowId",
- "description": "Browser window id.",
- "$ref": "WindowID"
- }
- ],
- "returns": [
- {
- "name": "bounds",
- "description": "Bounds information of the window. When window state is 'minimized', the restored window\nposition and size are returned.",
- "$ref": "Bounds"
- }
- ]
- },
- {
- "name": "getWindowForTarget",
- "description": "Get the browser window that contains the devtools target.",
- "experimental": true,
- "parameters": [
- {
- "name": "targetId",
- "description": "Devtools agent host id. If called as a part of the session, associated targetId is used.",
- "optional": true,
- "$ref": "Target.TargetID"
- }
- ],
- "returns": [
- {
- "name": "windowId",
- "description": "Browser window id.",
- "$ref": "WindowID"
- },
- {
- "name": "bounds",
- "description": "Bounds information of the window. When window state is 'minimized', the restored window\nposition and size are returned.",
- "$ref": "Bounds"
- }
- ]
- },
- {
- "name": "setWindowBounds",
- "description": "Set position and/or size of the browser window.",
- "experimental": true,
- "parameters": [
- {
- "name": "windowId",
- "description": "Browser window id.",
- "$ref": "WindowID"
- },
- {
- "name": "bounds",
- "description": "New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined\nwith 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.",
- "$ref": "Bounds"
- }
- ]
- },
- {
- "name": "setDockTile",
- "description": "Set dock tile details, platform-specific.",
- "experimental": true,
- "parameters": [
- {
- "name": "badgeLabel",
- "optional": true,
- "type": "string"
- },
- {
- "name": "image",
- "description": "Png encoded image. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "executeBrowserCommand",
- "description": "Invoke custom browser commands used by telemetry.",
- "experimental": true,
- "parameters": [
- {
- "name": "commandId",
- "$ref": "BrowserCommandId"
- }
- ]
- },
- {
- "name": "addPrivacySandboxEnrollmentOverride",
- "description": "Allows a site to use privacy sandbox features that require enrollment\nwithout the site actually being enrolled. Only supported on page targets.",
- "parameters": [
- {
- "name": "url",
- "type": "string"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "downloadWillBegin",
- "description": "Fired when page is about to start a download.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that caused the download to begin.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "guid",
- "description": "Global unique identifier of the download.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "URL of the resource being downloaded.",
- "type": "string"
- },
- {
- "name": "suggestedFilename",
- "description": "Suggested file name of the resource (the actual name of the file saved on disk may differ).",
- "type": "string"
- }
- ]
- },
- {
- "name": "downloadProgress",
- "description": "Fired when download makes progress. Last call has |done| == true.",
- "experimental": true,
- "parameters": [
- {
- "name": "guid",
- "description": "Global unique identifier of the download.",
- "type": "string"
- },
- {
- "name": "totalBytes",
- "description": "Total expected bytes to download.",
- "type": "number"
- },
- {
- "name": "receivedBytes",
- "description": "Total bytes received.",
- "type": "number"
- },
- {
- "name": "state",
- "description": "Download status.",
- "type": "string",
- "enum": [
- "inProgress",
- "completed",
- "canceled"
- ]
- }
- ]
- }
- ]
- },
- {
- "domain": "CSS",
- "description": "This domain exposes CSS read/write operations. All CSS objects (stylesheets, rules, and styles)\nhave an associated `id` used in subsequent operations on the related object. Each object type has\na specific `id` structure, and those are not interchangeable between objects of different kinds.\nCSS objects can be loaded using the `get*ForNode()` calls (which accept a DOM node id). A client\ncan also keep track of stylesheets via the `styleSheetAdded`/`styleSheetRemoved` events and\nsubsequently load the required stylesheet contents using the `getStyleSheet[Text]()` methods.",
- "experimental": true,
- "dependencies": [
- "DOM",
- "Page"
- ],
- "types": [
- {
- "id": "StyleSheetId",
- "type": "string"
- },
- {
- "id": "StyleSheetOrigin",
- "description": "Stylesheet type: \"injected\" for stylesheets injected via extension, \"user-agent\" for user-agent\nstylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via\ninspector\" rules), \"regular\" for regular stylesheets.",
- "type": "string",
- "enum": [
- "injected",
- "user-agent",
- "inspector",
- "regular"
- ]
- },
- {
- "id": "PseudoElementMatches",
- "description": "CSS rule collection for a single pseudo style.",
- "type": "object",
- "properties": [
- {
- "name": "pseudoType",
- "description": "Pseudo element type.",
- "$ref": "DOM.PseudoType"
- },
- {
- "name": "pseudoIdentifier",
- "description": "Pseudo element custom ident.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "matches",
- "description": "Matches of CSS rules applicable to the pseudo style.",
- "type": "array",
- "items": {
- "$ref": "RuleMatch"
- }
- }
- ]
- },
- {
- "id": "InheritedStyleEntry",
- "description": "Inherited CSS rule collection from ancestor node.",
- "type": "object",
- "properties": [
- {
- "name": "inlineStyle",
- "description": "The ancestor node's inline style, if any, in the style inheritance chain.",
- "optional": true,
- "$ref": "CSSStyle"
- },
- {
- "name": "matchedCSSRules",
- "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain.",
- "type": "array",
- "items": {
- "$ref": "RuleMatch"
- }
- }
- ]
- },
- {
- "id": "InheritedPseudoElementMatches",
- "description": "Inherited pseudo element matches from pseudos of an ancestor node.",
- "type": "object",
- "properties": [
- {
- "name": "pseudoElements",
- "description": "Matches of pseudo styles from the pseudos of an ancestor node.",
- "type": "array",
- "items": {
- "$ref": "PseudoElementMatches"
- }
- }
- ]
- },
- {
- "id": "RuleMatch",
- "description": "Match data for a CSS rule.",
- "type": "object",
- "properties": [
- {
- "name": "rule",
- "description": "CSS rule in the match.",
- "$ref": "CSSRule"
- },
- {
- "name": "matchingSelectors",
- "description": "Matching selector indices in the rule's selectorList selectors (0-based).",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "id": "Value",
- "description": "Data for a simple selector (these are delimited by commas in a selector list).",
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Value text.",
- "type": "string"
- },
- {
- "name": "range",
- "description": "Value range in the underlying resource (if available).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "specificity",
- "description": "Specificity of the selector.",
- "experimental": true,
- "optional": true,
- "$ref": "Specificity"
- }
- ]
- },
- {
- "id": "Specificity",
- "description": "Specificity:\nhttps://drafts.csswg.org/selectors/#specificity-rules",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "a",
- "description": "The a component, which represents the number of ID selectors.",
- "type": "integer"
- },
- {
- "name": "b",
- "description": "The b component, which represents the number of class selectors, attributes selectors, and\npseudo-classes.",
- "type": "integer"
- },
- {
- "name": "c",
- "description": "The c component, which represents the number of type selectors and pseudo-elements.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "SelectorList",
- "description": "Selector list data.",
- "type": "object",
- "properties": [
- {
- "name": "selectors",
- "description": "Selectors in the list.",
- "type": "array",
- "items": {
- "$ref": "Value"
- }
- },
- {
- "name": "text",
- "description": "Rule selector text.",
- "type": "string"
- }
- ]
- },
- {
- "id": "CSSStyleSheetHeader",
- "description": "CSS stylesheet metainformation.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The stylesheet identifier.",
- "$ref": "StyleSheetId"
- },
- {
- "name": "frameId",
- "description": "Owner frame identifier.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "sourceURL",
- "description": "Stylesheet resource URL. Empty if this is a constructed stylesheet created using\nnew CSSStyleSheet() (but non-empty if this is a constructed sylesheet imported\nas a CSS module script).",
- "type": "string"
- },
- {
- "name": "sourceMapURL",
- "description": "URL of source map associated with the stylesheet (if any).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "origin",
- "description": "Stylesheet origin.",
- "$ref": "StyleSheetOrigin"
- },
- {
- "name": "title",
- "description": "Stylesheet title.",
- "type": "string"
- },
- {
- "name": "ownerNode",
- "description": "The backend id for the owner node of the stylesheet.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "disabled",
- "description": "Denotes whether the stylesheet is disabled.",
- "type": "boolean"
- },
- {
- "name": "hasSourceURL",
- "description": "Whether the sourceURL field value comes from the sourceURL comment.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isInline",
- "description": "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for\ndocument.written STYLE tags.",
- "type": "boolean"
- },
- {
- "name": "isMutable",
- "description": "Whether this stylesheet is mutable. Inline stylesheets become mutable\nafter they have been modified via CSSOM API.\n<link> element's stylesheets become mutable only if DevTools modifies them.\nConstructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.",
- "type": "boolean"
- },
- {
- "name": "isConstructed",
- "description": "True if this stylesheet is created through new CSSStyleSheet() or imported as a\nCSS module script.",
- "type": "boolean"
- },
- {
- "name": "startLine",
- "description": "Line offset of the stylesheet within the resource (zero based).",
- "type": "number"
- },
- {
- "name": "startColumn",
- "description": "Column offset of the stylesheet within the resource (zero based).",
- "type": "number"
- },
- {
- "name": "length",
- "description": "Size of the content (in characters).",
- "type": "number"
- },
- {
- "name": "endLine",
- "description": "Line offset of the end of the stylesheet within the resource (zero based).",
- "type": "number"
- },
- {
- "name": "endColumn",
- "description": "Column offset of the end of the stylesheet within the resource (zero based).",
- "type": "number"
- },
- {
- "name": "loadingFailed",
- "description": "If the style sheet was loaded from a network resource, this indicates when the resource failed to load",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "CSSRule",
- "description": "CSS rule representation.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "selectorList",
- "description": "Rule selector data.",
- "$ref": "SelectorList"
- },
- {
- "name": "nestingSelectors",
- "description": "Array of selectors from ancestor style rules, sorted by distance from the current rule.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "origin",
- "description": "Parent stylesheet's origin.",
- "$ref": "StyleSheetOrigin"
- },
- {
- "name": "style",
- "description": "Associated style declaration.",
- "$ref": "CSSStyle"
- },
- {
- "name": "media",
- "description": "Media list array (for rules involving media queries). The array enumerates media queries\nstarting with the innermost one, going outwards.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSMedia"
- }
- },
- {
- "name": "containerQueries",
- "description": "Container query list array (for rules involving container queries).\nThe array enumerates container queries starting with the innermost one, going outwards.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSContainerQuery"
- }
- },
- {
- "name": "supports",
- "description": "@supports CSS at-rule array.\nThe array enumerates @supports at-rules starting with the innermost one, going outwards.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSSupports"
- }
- },
- {
- "name": "layers",
- "description": "Cascade layer array. Contains the layer hierarchy that this rule belongs to starting\nwith the innermost layer and going outwards.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSLayer"
- }
- },
- {
- "name": "scopes",
- "description": "@scope CSS at-rule array.\nThe array enumerates @scope at-rules starting with the innermost one, going outwards.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSScope"
- }
- }
- ]
- },
- {
- "id": "RuleUsage",
- "description": "CSS coverage information.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
- "$ref": "StyleSheetId"
- },
- {
- "name": "startOffset",
- "description": "Offset of the start of the rule (including selector) from the beginning of the stylesheet.",
- "type": "number"
- },
- {
- "name": "endOffset",
- "description": "Offset of the end of the rule body from the beginning of the stylesheet.",
- "type": "number"
- },
- {
- "name": "used",
- "description": "Indicates whether the rule was actually used by some element in the page.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "SourceRange",
- "description": "Text range within a resource. All numbers are zero-based.",
- "type": "object",
- "properties": [
- {
- "name": "startLine",
- "description": "Start line of range.",
- "type": "integer"
- },
- {
- "name": "startColumn",
- "description": "Start column of range (inclusive).",
- "type": "integer"
- },
- {
- "name": "endLine",
- "description": "End line of range",
- "type": "integer"
- },
- {
- "name": "endColumn",
- "description": "End column of range (exclusive).",
- "type": "integer"
- }
- ]
- },
- {
- "id": "ShorthandEntry",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Shorthand name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Shorthand value.",
- "type": "string"
- },
- {
- "name": "important",
- "description": "Whether the property has \"!important\" annotation (implies `false` if absent).",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "CSSComputedStyleProperty",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Computed style property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Computed style property value.",
- "type": "string"
- }
- ]
- },
- {
- "id": "CSSStyle",
- "description": "CSS style representation.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "cssProperties",
- "description": "CSS properties in the style.",
- "type": "array",
- "items": {
- "$ref": "CSSProperty"
- }
- },
- {
- "name": "shorthandEntries",
- "description": "Computed values for all shorthands found in the style.",
- "type": "array",
- "items": {
- "$ref": "ShorthandEntry"
- }
- },
- {
- "name": "cssText",
- "description": "Style declaration text (if available).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "range",
- "description": "Style declaration range in the enclosing stylesheet (if available).",
- "optional": true,
- "$ref": "SourceRange"
- }
- ]
- },
- {
- "id": "CSSProperty",
- "description": "CSS property declaration data.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "The property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "The property value.",
- "type": "string"
- },
- {
- "name": "important",
- "description": "Whether the property has \"!important\" annotation (implies `false` if absent).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "implicit",
- "description": "Whether the property is implicit (implies `false` if absent).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "text",
- "description": "The full property text as specified in the style.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "parsedOk",
- "description": "Whether the property is understood by the browser (implies `true` if absent).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "disabled",
- "description": "Whether the property is disabled by the user (present for source-based properties only).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "range",
- "description": "The entire property range in the enclosing style declaration (if available).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "longhandProperties",
- "description": "Parsed longhand components of this property if it is a shorthand.\nThis field will be empty if the given property is not a shorthand.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSProperty"
- }
- }
- ]
- },
- {
- "id": "CSSMedia",
- "description": "CSS media rule descriptor.",
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Media query text.",
- "type": "string"
- },
- {
- "name": "source",
- "description": "Source of the media query: \"mediaRule\" if specified by a @media rule, \"importRule\" if\nspecified by an @import rule, \"linkedSheet\" if specified by a \"media\" attribute in a linked\nstylesheet's LINK tag, \"inlineSheet\" if specified by a \"media\" attribute in an inline\nstylesheet's STYLE tag.",
- "type": "string",
- "enum": [
- "mediaRule",
- "importRule",
- "linkedSheet",
- "inlineSheet"
- ]
- },
- {
- "name": "sourceURL",
- "description": "URL of the document containing the media query description.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "range",
- "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if\navailable).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "styleSheetId",
- "description": "Identifier of the stylesheet containing this object (if exists).",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "mediaList",
- "description": "Array of media queries.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "MediaQuery"
- }
- }
- ]
- },
- {
- "id": "MediaQuery",
- "description": "Media query descriptor.",
- "type": "object",
- "properties": [
- {
- "name": "expressions",
- "description": "Array of media query expressions.",
- "type": "array",
- "items": {
- "$ref": "MediaQueryExpression"
- }
- },
- {
- "name": "active",
- "description": "Whether the media query condition is satisfied.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "MediaQueryExpression",
- "description": "Media query expression descriptor.",
- "type": "object",
- "properties": [
- {
- "name": "value",
- "description": "Media query expression value.",
- "type": "number"
- },
- {
- "name": "unit",
- "description": "Media query expression units.",
- "type": "string"
- },
- {
- "name": "feature",
- "description": "Media query expression feature.",
- "type": "string"
- },
- {
- "name": "valueRange",
- "description": "The associated range of the value text in the enclosing stylesheet (if available).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "computedLength",
- "description": "Computed length of media query expression (if applicable).",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "CSSContainerQuery",
- "description": "CSS container query rule descriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Container query text.",
- "type": "string"
- },
- {
- "name": "range",
- "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "styleSheetId",
- "description": "Identifier of the stylesheet containing this object (if exists).",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "name",
- "description": "Optional name for the container.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "physicalAxes",
- "description": "Optional physical axes queried for the container.",
- "optional": true,
- "$ref": "DOM.PhysicalAxes"
- },
- {
- "name": "logicalAxes",
- "description": "Optional logical axes queried for the container.",
- "optional": true,
- "$ref": "DOM.LogicalAxes"
- }
- ]
- },
- {
- "id": "CSSSupports",
- "description": "CSS Supports at-rule descriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Supports rule text.",
- "type": "string"
- },
- {
- "name": "active",
- "description": "Whether the supports condition is satisfied.",
- "type": "boolean"
- },
- {
- "name": "range",
- "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "styleSheetId",
- "description": "Identifier of the stylesheet containing this object (if exists).",
- "optional": true,
- "$ref": "StyleSheetId"
- }
- ]
- },
- {
- "id": "CSSScope",
- "description": "CSS Scope at-rule descriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Scope rule text.",
- "type": "string"
- },
- {
- "name": "range",
- "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "styleSheetId",
- "description": "Identifier of the stylesheet containing this object (if exists).",
- "optional": true,
- "$ref": "StyleSheetId"
- }
- ]
- },
- {
- "id": "CSSLayer",
- "description": "CSS Layer at-rule descriptor.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "text",
- "description": "Layer name.",
- "type": "string"
- },
- {
- "name": "range",
- "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
- "optional": true,
- "$ref": "SourceRange"
- },
- {
- "name": "styleSheetId",
- "description": "Identifier of the stylesheet containing this object (if exists).",
- "optional": true,
- "$ref": "StyleSheetId"
- }
- ]
- },
- {
- "id": "CSSLayerData",
- "description": "CSS Layer data.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Layer name.",
- "type": "string"
- },
- {
- "name": "subLayers",
- "description": "Direct sub-layers",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSLayerData"
- }
- },
- {
- "name": "order",
- "description": "Layer order. The order determines the order of the layer in the cascade order.\nA higher number has higher priority in the cascade order.",
- "type": "number"
- }
- ]
- },
- {
- "id": "PlatformFontUsage",
- "description": "Information about amount of glyphs that were rendered with given font.",
- "type": "object",
- "properties": [
- {
- "name": "familyName",
- "description": "Font's family name reported by platform.",
- "type": "string"
- },
- {
- "name": "isCustomFont",
- "description": "Indicates if the font was downloaded or resolved locally.",
- "type": "boolean"
- },
- {
- "name": "glyphCount",
- "description": "Amount of glyphs that were rendered with this font.",
- "type": "number"
- }
- ]
- },
- {
- "id": "FontVariationAxis",
- "description": "Information about font variation axes for variable fonts",
- "type": "object",
- "properties": [
- {
- "name": "tag",
- "description": "The font-variation-setting tag (a.k.a. \"axis tag\").",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Human-readable variation name in the default language (normally, \"en\").",
- "type": "string"
- },
- {
- "name": "minValue",
- "description": "The minimum value (inclusive) the font supports for this tag.",
- "type": "number"
- },
- {
- "name": "maxValue",
- "description": "The maximum value (inclusive) the font supports for this tag.",
- "type": "number"
- },
- {
- "name": "defaultValue",
- "description": "The default value.",
- "type": "number"
- }
- ]
- },
- {
- "id": "FontFace",
- "description": "Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions\nand additional information such as platformFontFamily and fontVariationAxes.",
- "type": "object",
- "properties": [
- {
- "name": "fontFamily",
- "description": "The font-family.",
- "type": "string"
- },
- {
- "name": "fontStyle",
- "description": "The font-style.",
- "type": "string"
- },
- {
- "name": "fontVariant",
- "description": "The font-variant.",
- "type": "string"
- },
- {
- "name": "fontWeight",
- "description": "The font-weight.",
- "type": "string"
- },
- {
- "name": "fontStretch",
- "description": "The font-stretch.",
- "type": "string"
- },
- {
- "name": "fontDisplay",
- "description": "The font-display.",
- "type": "string"
- },
- {
- "name": "unicodeRange",
- "description": "The unicode-range.",
- "type": "string"
- },
- {
- "name": "src",
- "description": "The src.",
- "type": "string"
- },
- {
- "name": "platformFontFamily",
- "description": "The resolved platform font family",
- "type": "string"
- },
- {
- "name": "fontVariationAxes",
- "description": "Available variation settings (a.k.a. \"axes\").",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "FontVariationAxis"
- }
- }
- ]
- },
- {
- "id": "CSSTryRule",
- "description": "CSS try rule representation.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "origin",
- "description": "Parent stylesheet's origin.",
- "$ref": "StyleSheetOrigin"
- },
- {
- "name": "style",
- "description": "Associated style declaration.",
- "$ref": "CSSStyle"
- }
- ]
- },
- {
- "id": "CSSPositionFallbackRule",
- "description": "CSS position-fallback rule representation.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "$ref": "Value"
- },
- {
- "name": "tryRules",
- "description": "List of keyframes.",
- "type": "array",
- "items": {
- "$ref": "CSSTryRule"
- }
- }
- ]
- },
- {
- "id": "CSSKeyframesRule",
- "description": "CSS keyframes rule representation.",
- "type": "object",
- "properties": [
- {
- "name": "animationName",
- "description": "Animation name.",
- "$ref": "Value"
- },
- {
- "name": "keyframes",
- "description": "List of keyframes.",
- "type": "array",
- "items": {
- "$ref": "CSSKeyframeRule"
- }
- }
- ]
- },
- {
- "id": "CSSKeyframeRule",
- "description": "CSS keyframe rule representation.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
- "optional": true,
- "$ref": "StyleSheetId"
- },
- {
- "name": "origin",
- "description": "Parent stylesheet's origin.",
- "$ref": "StyleSheetOrigin"
- },
- {
- "name": "keyText",
- "description": "Associated key text.",
- "$ref": "Value"
- },
- {
- "name": "style",
- "description": "Associated style declaration.",
- "$ref": "CSSStyle"
- }
- ]
- },
- {
- "id": "StyleDeclarationEdit",
- "description": "A descriptor of operation to mutate style declaration text.",
- "type": "object",
- "properties": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier.",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "description": "The range of the style text in the enclosing stylesheet.",
- "$ref": "SourceRange"
- },
- {
- "name": "text",
- "description": "New style text.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "addRule",
- "description": "Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the\nposition specified by `location`.",
- "parameters": [
- {
- "name": "styleSheetId",
- "description": "The css style sheet identifier where a new rule should be inserted.",
- "$ref": "StyleSheetId"
- },
- {
- "name": "ruleText",
- "description": "The text of a new rule.",
- "type": "string"
- },
- {
- "name": "location",
- "description": "Text position of a new rule in the target style sheet.",
- "$ref": "SourceRange"
- }
- ],
- "returns": [
- {
- "name": "rule",
- "description": "The newly created rule.",
- "$ref": "CSSRule"
- }
- ]
- },
- {
- "name": "collectClassNames",
- "description": "Returns all class names from specified stylesheet.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- }
- ],
- "returns": [
- {
- "name": "classNames",
- "description": "Class name list.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "createStyleSheet",
- "description": "Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created.",
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "styleSheetId",
- "description": "Identifier of the created \"via-inspector\" stylesheet.",
- "$ref": "StyleSheetId"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables the CSS agent for the given page."
- },
- {
- "name": "enable",
- "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been\nenabled until the result of this command is received."
- },
- {
- "name": "forcePseudoState",
- "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by\nthe browser.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "The element id for which to force the pseudo state.",
- "$ref": "DOM.NodeId"
- },
- {
- "name": "forcedPseudoClasses",
- "description": "Element pseudo classes to force when computing the element's style.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "getBackgroundColors",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to get background colors for.",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "backgroundColors",
- "description": "The range of background colors behind this element, if it contains any visible text. If no\nvisible text is present, this will be undefined. In the case of a flat background color,\nthis will consist of simply that color. In the case of a gradient, this will consist of each\nof the color stops. For anything more complicated, this will be an empty array. Images will\nbe ignored (as if the image had failed to load).",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "computedFontSize",
- "description": "The computed font size for this node, as a CSS computed value string (e.g. '12px').",
- "optional": true,
- "type": "string"
- },
- {
- "name": "computedFontWeight",
- "description": "The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or\n'100').",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "getComputedStyleForNode",
- "description": "Returns the computed style for a DOM node identified by `nodeId`.",
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "computedStyle",
- "description": "Computed style for the specified DOM node.",
- "type": "array",
- "items": {
- "$ref": "CSSComputedStyleProperty"
- }
- }
- ]
- },
- {
- "name": "getInlineStylesForNode",
- "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.",
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "inlineStyle",
- "description": "Inline style for the specified DOM node.",
- "optional": true,
- "$ref": "CSSStyle"
- },
- {
- "name": "attributesStyle",
- "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\").",
- "optional": true,
- "$ref": "CSSStyle"
- }
- ]
- },
- {
- "name": "getMatchedStylesForNode",
- "description": "Returns requested styles for a DOM node identified by `nodeId`.",
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "inlineStyle",
- "description": "Inline style for the specified DOM node.",
- "optional": true,
- "$ref": "CSSStyle"
- },
- {
- "name": "attributesStyle",
- "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\").",
- "optional": true,
- "$ref": "CSSStyle"
- },
- {
- "name": "matchedCSSRules",
- "description": "CSS rules matching this node, from all applicable stylesheets.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "RuleMatch"
- }
- },
- {
- "name": "pseudoElements",
- "description": "Pseudo style matches for this node.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "PseudoElementMatches"
- }
- },
- {
- "name": "inherited",
- "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root).",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "InheritedStyleEntry"
- }
- },
- {
- "name": "inheritedPseudoElements",
- "description": "A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "InheritedPseudoElementMatches"
- }
- },
- {
- "name": "cssKeyframesRules",
- "description": "A list of CSS keyframed animations matching this node.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSKeyframesRule"
- }
- },
- {
- "name": "cssPositionFallbackRules",
- "description": "A list of CSS position fallbacks matching this node.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "CSSPositionFallbackRule"
- }
- },
- {
- "name": "parentLayoutNodeId",
- "description": "Id of the first parent element that does not have display: contents.",
- "experimental": true,
- "optional": true,
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "name": "getMediaQueries",
- "description": "Returns all media queries parsed by the rendering engine.",
- "returns": [
- {
- "name": "medias",
- "type": "array",
- "items": {
- "$ref": "CSSMedia"
- }
- }
- ]
- },
- {
- "name": "getPlatformFontsForNode",
- "description": "Requests information about platform fonts which we used to render child TextNodes in the given\nnode.",
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "fonts",
- "description": "Usage statistics for every employed platform font.",
- "type": "array",
- "items": {
- "$ref": "PlatformFontUsage"
- }
- }
- ]
- },
- {
- "name": "getStyleSheetText",
- "description": "Returns the current textual content for a stylesheet.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- }
- ],
- "returns": [
- {
- "name": "text",
- "description": "The stylesheet text.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getLayersForNode",
- "description": "Returns all layers parsed by the rendering engine for the tree scope of a node.\nGiven a DOM element identified by nodeId, getLayersForNode returns the root\nlayer for the nearest ancestor document or shadow root. The layer root contains\nthe full layer tree for the tree scope and their ordering.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "rootLayer",
- "$ref": "CSSLayerData"
- }
- ]
- },
- {
- "name": "trackComputedStyleUpdates",
- "description": "Starts tracking the given computed styles for updates. The specified array of properties\nreplaces the one previously specified. Pass empty array to disable tracking.\nUse takeComputedStyleUpdates to retrieve the list of nodes that had properties modified.\nThe changes to computed style properties are only tracked for nodes pushed to the front-end\nby the DOM agent. If no changes to the tracked properties occur after the node has been pushed\nto the front-end, no updates will be issued for the node.",
- "experimental": true,
- "parameters": [
- {
- "name": "propertiesToTrack",
- "type": "array",
- "items": {
- "$ref": "CSSComputedStyleProperty"
- }
- }
- ]
- },
- {
- "name": "takeComputedStyleUpdates",
- "description": "Polls the next batch of computed style updates.",
- "experimental": true,
- "returns": [
- {
- "name": "nodeIds",
- "description": "The list of node Ids that have their tracked computed styles updated.",
- "type": "array",
- "items": {
- "$ref": "DOM.NodeId"
- }
- }
- ]
- },
- {
- "name": "setEffectivePropertyValueForNode",
- "description": "Find a rule with the given active property for the given node and set the new value for this\nproperty",
- "parameters": [
- {
- "name": "nodeId",
- "description": "The element id for which to set property.",
- "$ref": "DOM.NodeId"
- },
- {
- "name": "propertyName",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "name": "setKeyframeKey",
- "description": "Modifies the keyframe rule key text.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "keyText",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "keyText",
- "description": "The resulting key text after modification.",
- "$ref": "Value"
- }
- ]
- },
- {
- "name": "setMediaText",
- "description": "Modifies the rule selector.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "text",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "media",
- "description": "The resulting CSS media rule after modification.",
- "$ref": "CSSMedia"
- }
- ]
- },
- {
- "name": "setContainerQueryText",
- "description": "Modifies the expression of a container query.",
- "experimental": true,
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "text",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "containerQuery",
- "description": "The resulting CSS container query rule after modification.",
- "$ref": "CSSContainerQuery"
- }
- ]
- },
- {
- "name": "setSupportsText",
- "description": "Modifies the expression of a supports at-rule.",
- "experimental": true,
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "text",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "supports",
- "description": "The resulting CSS Supports rule after modification.",
- "$ref": "CSSSupports"
- }
- ]
- },
- {
- "name": "setScopeText",
- "description": "Modifies the expression of a scope at-rule.",
- "experimental": true,
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "text",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "scope",
- "description": "The resulting CSS Scope rule after modification.",
- "$ref": "CSSScope"
- }
- ]
- },
- {
- "name": "setRuleSelector",
- "description": "Modifies the rule selector.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "range",
- "$ref": "SourceRange"
- },
- {
- "name": "selector",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "selectorList",
- "description": "The resulting selector list after modification.",
- "$ref": "SelectorList"
- }
- ]
- },
- {
- "name": "setStyleSheetText",
- "description": "Sets the new stylesheet text.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- },
- {
- "name": "text",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "sourceMapURL",
- "description": "URL of source map associated with script (if any).",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setStyleTexts",
- "description": "Applies specified style edits one after another in the given order.",
- "parameters": [
- {
- "name": "edits",
- "type": "array",
- "items": {
- "$ref": "StyleDeclarationEdit"
- }
- }
- ],
- "returns": [
- {
- "name": "styles",
- "description": "The resulting styles after modification.",
- "type": "array",
- "items": {
- "$ref": "CSSStyle"
- }
- }
- ]
- },
- {
- "name": "startRuleUsageTracking",
- "description": "Enables the selector recording."
- },
- {
- "name": "stopRuleUsageTracking",
- "description": "Stop tracking rule usage and return the list of rules that were used since last call to\n`takeCoverageDelta` (or since start of coverage instrumentation).",
- "returns": [
- {
- "name": "ruleUsage",
- "type": "array",
- "items": {
- "$ref": "RuleUsage"
- }
- }
- ]
- },
- {
- "name": "takeCoverageDelta",
- "description": "Obtain list of rules that became used since last call to this method (or since start of coverage\ninstrumentation).",
- "returns": [
- {
- "name": "coverage",
- "type": "array",
- "items": {
- "$ref": "RuleUsage"
- }
- },
- {
- "name": "timestamp",
- "description": "Monotonically increasing time, in seconds.",
- "type": "number"
- }
- ]
- },
- {
- "name": "setLocalFontsEnabled",
- "description": "Enables/disables rendering of local CSS fonts (enabled by default).",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether rendering of local fonts is enabled.",
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "fontsUpdated",
- "description": "Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded\nweb font.",
- "parameters": [
- {
- "name": "font",
- "description": "The web font that has loaded.",
- "optional": true,
- "$ref": "FontFace"
- }
- ]
- },
- {
- "name": "mediaQueryResultChanged",
- "description": "Fires whenever a MediaQuery result changes (for example, after a browser window has been\nresized.) The current implementation considers only viewport-dependent media features."
- },
- {
- "name": "styleSheetAdded",
- "description": "Fired whenever an active document stylesheet is added.",
- "parameters": [
- {
- "name": "header",
- "description": "Added stylesheet metainfo.",
- "$ref": "CSSStyleSheetHeader"
- }
- ]
- },
- {
- "name": "styleSheetChanged",
- "description": "Fired whenever a stylesheet is changed as a result of the client operation.",
- "parameters": [
- {
- "name": "styleSheetId",
- "$ref": "StyleSheetId"
- }
- ]
- },
- {
- "name": "styleSheetRemoved",
- "description": "Fired whenever an active document stylesheet is removed.",
- "parameters": [
- {
- "name": "styleSheetId",
- "description": "Identifier of the removed stylesheet.",
- "$ref": "StyleSheetId"
- }
- ]
- }
- ]
- },
- {
- "domain": "CacheStorage",
- "experimental": true,
- "dependencies": [
- "Storage"
- ],
- "types": [
- {
- "id": "CacheId",
- "description": "Unique identifier of the Cache object.",
- "type": "string"
- },
- {
- "id": "CachedResponseType",
- "description": "type of HTTP response cached",
- "type": "string",
- "enum": [
- "basic",
- "cors",
- "default",
- "error",
- "opaqueResponse",
- "opaqueRedirect"
- ]
- },
- {
- "id": "DataEntry",
- "description": "Data entry.",
- "type": "object",
- "properties": [
- {
- "name": "requestURL",
- "description": "Request URL.",
- "type": "string"
- },
- {
- "name": "requestMethod",
- "description": "Request method.",
- "type": "string"
- },
- {
- "name": "requestHeaders",
- "description": "Request headers",
- "type": "array",
- "items": {
- "$ref": "Header"
- }
- },
- {
- "name": "responseTime",
- "description": "Number of seconds since epoch.",
- "type": "number"
- },
- {
- "name": "responseStatus",
- "description": "HTTP response status code.",
- "type": "integer"
- },
- {
- "name": "responseStatusText",
- "description": "HTTP response status text.",
- "type": "string"
- },
- {
- "name": "responseType",
- "description": "HTTP response type",
- "$ref": "CachedResponseType"
- },
- {
- "name": "responseHeaders",
- "description": "Response headers",
- "type": "array",
- "items": {
- "$ref": "Header"
- }
- }
- ]
- },
- {
- "id": "Cache",
- "description": "Cache identifier.",
- "type": "object",
- "properties": [
- {
- "name": "cacheId",
- "description": "An opaque unique id of the cache.",
- "$ref": "CacheId"
- },
- {
- "name": "securityOrigin",
- "description": "Security origin of the cache.",
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key of the cache.",
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket of the cache.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "cacheName",
- "description": "The name of the cache.",
- "type": "string"
- }
- ]
- },
- {
- "id": "Header",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "CachedResponse",
- "description": "Cached response",
- "type": "object",
- "properties": [
- {
- "name": "body",
- "description": "Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "deleteCache",
- "description": "Deletes a cache.",
- "parameters": [
- {
- "name": "cacheId",
- "description": "Id of cache for deletion.",
- "$ref": "CacheId"
- }
- ]
- },
- {
- "name": "deleteEntry",
- "description": "Deletes a cache entry.",
- "parameters": [
- {
- "name": "cacheId",
- "description": "Id of cache where the entry will be deleted.",
- "$ref": "CacheId"
- },
- {
- "name": "request",
- "description": "URL spec of the request.",
- "type": "string"
- }
- ]
- },
- {
- "name": "requestCacheNames",
- "description": "Requests cache names.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- }
- ],
- "returns": [
- {
- "name": "caches",
- "description": "Caches for the security origin.",
- "type": "array",
- "items": {
- "$ref": "Cache"
- }
- }
- ]
- },
- {
- "name": "requestCachedResponse",
- "description": "Fetches cache entry.",
- "parameters": [
- {
- "name": "cacheId",
- "description": "Id of cache that contains the entry.",
- "$ref": "CacheId"
- },
- {
- "name": "requestURL",
- "description": "URL spec of the request.",
- "type": "string"
- },
- {
- "name": "requestHeaders",
- "description": "headers of the request.",
- "type": "array",
- "items": {
- "$ref": "Header"
- }
- }
- ],
- "returns": [
- {
- "name": "response",
- "description": "Response read from the cache.",
- "$ref": "CachedResponse"
- }
- ]
- },
- {
- "name": "requestEntries",
- "description": "Requests data from cache.",
- "parameters": [
- {
- "name": "cacheId",
- "description": "ID of cache to get entries from.",
- "$ref": "CacheId"
- },
- {
- "name": "skipCount",
- "description": "Number of records to skip.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pageSize",
- "description": "Number of records to fetch.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pathFilter",
- "description": "If present, only return the entries containing this substring in the path",
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "cacheDataEntries",
- "description": "Array of object store data entries.",
- "type": "array",
- "items": {
- "$ref": "DataEntry"
- }
- },
- {
- "name": "returnCount",
- "description": "Count of returned entries from this storage. If pathFilter is empty, it\nis the count of all entries from this storage.",
- "type": "number"
- }
- ]
- }
- ]
- },
- {
- "domain": "Cast",
- "description": "A domain for interacting with Cast, Presentation API, and Remote Playback API\nfunctionalities.",
- "experimental": true,
- "types": [
- {
- "id": "Sink",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "session",
- "description": "Text describing the current session. Present only if there is an active\nsession on the sink.",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Starts observing for sinks that can be used for tab mirroring, and if set,\nsinks compatible with |presentationUrl| as well. When sinks are found, a\n|sinksUpdated| event is fired.\nAlso starts observing for issue messages. When an issue is added or removed,\nan |issueUpdated| event is fired.",
- "parameters": [
- {
- "name": "presentationUrl",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Stops observing for sinks and issues."
- },
- {
- "name": "setSinkToUse",
- "description": "Sets a sink to be used when the web page requests the browser to choose a\nsink via Presentation API, Remote Playback API, or Cast SDK.",
- "parameters": [
- {
- "name": "sinkName",
- "type": "string"
- }
- ]
- },
- {
- "name": "startDesktopMirroring",
- "description": "Starts mirroring the desktop to the sink.",
- "parameters": [
- {
- "name": "sinkName",
- "type": "string"
- }
- ]
- },
- {
- "name": "startTabMirroring",
- "description": "Starts mirroring the tab to the sink.",
- "parameters": [
- {
- "name": "sinkName",
- "type": "string"
- }
- ]
- },
- {
- "name": "stopCasting",
- "description": "Stops the active Cast session on the sink.",
- "parameters": [
- {
- "name": "sinkName",
- "type": "string"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "sinksUpdated",
- "description": "This is fired whenever the list of available sinks changes. A sink is a\ndevice or a software surface that you can cast to.",
- "parameters": [
- {
- "name": "sinks",
- "type": "array",
- "items": {
- "$ref": "Sink"
- }
- }
- ]
- },
- {
- "name": "issueUpdated",
- "description": "This is fired whenever the outstanding issue/error message changes.\n|issueMessage| is empty if there is no issue.",
- "parameters": [
- {
- "name": "issueMessage",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "DOM",
- "description": "This domain exposes DOM read/write operations. Each DOM Node is represented with its mirror object\nthat has an `id`. This `id` can be used to get additional information on the Node, resolve it into\nthe JavaScript object wrapper, etc. It is important that client receives DOM events only for the\nnodes that are known to the client. Backend keeps track of the nodes that were sent to the client\nand never sends the same node twice. It is client's responsibility to collect information about\nthe nodes that were sent to the client.<p>Note that `iframe` owner elements will return\ncorresponding document elements as their child nodes.</p>",
- "dependencies": [
- "Runtime"
- ],
- "types": [
- {
- "id": "NodeId",
- "description": "Unique DOM node identifier.",
- "type": "integer"
- },
- {
- "id": "BackendNodeId",
- "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the\nfront-end.",
- "type": "integer"
- },
- {
- "id": "BackendNode",
- "description": "Backend node with a friendly name.",
- "type": "object",
- "properties": [
- {
- "name": "nodeType",
- "description": "`Node`'s nodeType.",
- "type": "integer"
- },
- {
- "name": "nodeName",
- "description": "`Node`'s nodeName.",
- "type": "string"
- },
- {
- "name": "backendNodeId",
- "$ref": "BackendNodeId"
- }
- ]
- },
- {
- "id": "PseudoType",
- "description": "Pseudo element type.",
- "type": "string",
- "enum": [
- "first-line",
- "first-letter",
- "before",
- "after",
- "marker",
- "backdrop",
- "selection",
- "target-text",
- "spelling-error",
- "grammar-error",
- "highlight",
- "first-line-inherited",
- "scrollbar",
- "scrollbar-thumb",
- "scrollbar-button",
- "scrollbar-track",
- "scrollbar-track-piece",
- "scrollbar-corner",
- "resizer",
- "input-list-button",
- "view-transition",
- "view-transition-group",
- "view-transition-image-pair",
- "view-transition-old",
- "view-transition-new"
- ]
- },
- {
- "id": "ShadowRootType",
- "description": "Shadow root type.",
- "type": "string",
- "enum": [
- "user-agent",
- "open",
- "closed"
- ]
- },
- {
- "id": "CompatibilityMode",
- "description": "Document compatibility mode.",
- "type": "string",
- "enum": [
- "QuirksMode",
- "LimitedQuirksMode",
- "NoQuirksMode"
- ]
- },
- {
- "id": "PhysicalAxes",
- "description": "ContainerSelector physical axes",
- "type": "string",
- "enum": [
- "Horizontal",
- "Vertical",
- "Both"
- ]
- },
- {
- "id": "LogicalAxes",
- "description": "ContainerSelector logical axes",
- "type": "string",
- "enum": [
- "Inline",
- "Block",
- "Both"
- ]
- },
- {
- "id": "Node",
- "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.\nDOMNode is a base node mirror type.",
- "type": "object",
- "properties": [
- {
- "name": "nodeId",
- "description": "Node identifier that is passed into the rest of the DOM messages as the `nodeId`. Backend\nwill only push node with given `id` once. It is aware of all requested nodes and will only\nfire DOM events for nodes known to the client.",
- "$ref": "NodeId"
- },
- {
- "name": "parentId",
- "description": "The id of the parent node if any.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "The BackendNodeId for this node.",
- "$ref": "BackendNodeId"
- },
- {
- "name": "nodeType",
- "description": "`Node`'s nodeType.",
- "type": "integer"
- },
- {
- "name": "nodeName",
- "description": "`Node`'s nodeName.",
- "type": "string"
- },
- {
- "name": "localName",
- "description": "`Node`'s localName.",
- "type": "string"
- },
- {
- "name": "nodeValue",
- "description": "`Node`'s nodeValue.",
- "type": "string"
- },
- {
- "name": "childNodeCount",
- "description": "Child count for `Container` nodes.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "children",
- "description": "Child nodes of this node when requested with children.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Node"
- }
- },
- {
- "name": "attributes",
- "description": "Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "documentURL",
- "description": "Document URL that `Document` or `FrameOwner` node points to.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "baseURL",
- "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "publicId",
- "description": "`DocumentType`'s publicId.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "systemId",
- "description": "`DocumentType`'s systemId.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "internalSubset",
- "description": "`DocumentType`'s internalSubset.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "xmlVersion",
- "description": "`Document`'s XML version in case of XML documents.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "name",
- "description": "`Attr`'s name.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "value",
- "description": "`Attr`'s value.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "pseudoType",
- "description": "Pseudo element type for this node.",
- "optional": true,
- "$ref": "PseudoType"
- },
- {
- "name": "pseudoIdentifier",
- "description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "shadowRootType",
- "description": "Shadow root type.",
- "optional": true,
- "$ref": "ShadowRootType"
- },
- {
- "name": "frameId",
- "description": "Frame ID for frame owner elements.",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "contentDocument",
- "description": "Content document for frame owner elements.",
- "optional": true,
- "$ref": "Node"
- },
- {
- "name": "shadowRoots",
- "description": "Shadow root list for given element host.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Node"
- }
- },
- {
- "name": "templateContent",
- "description": "Content document fragment for template elements.",
- "optional": true,
- "$ref": "Node"
- },
- {
- "name": "pseudoElements",
- "description": "Pseudo elements associated with this node.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Node"
- }
- },
- {
- "name": "importedDocument",
- "description": "Deprecated, as the HTML Imports API has been removed (crbug.com/937746).\nThis property used to return the imported document for the HTMLImport links.\nThe property is always undefined now.",
- "deprecated": true,
- "optional": true,
- "$ref": "Node"
- },
- {
- "name": "distributedNodes",
- "description": "Distributed nodes for given insertion point.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "BackendNode"
- }
- },
- {
- "name": "isSVG",
- "description": "Whether the node is SVG.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "compatibilityMode",
- "optional": true,
- "$ref": "CompatibilityMode"
- },
- {
- "name": "assignedSlot",
- "optional": true,
- "$ref": "BackendNode"
- }
- ]
- },
- {
- "id": "RGBA",
- "description": "A structure holding an RGBA color.",
- "type": "object",
- "properties": [
- {
- "name": "r",
- "description": "The red component, in the [0-255] range.",
- "type": "integer"
- },
- {
- "name": "g",
- "description": "The green component, in the [0-255] range.",
- "type": "integer"
- },
- {
- "name": "b",
- "description": "The blue component, in the [0-255] range.",
- "type": "integer"
- },
- {
- "name": "a",
- "description": "The alpha component, in the [0-1] range (default: 1).",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "Quad",
- "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.",
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "id": "BoxModel",
- "description": "Box model.",
- "type": "object",
- "properties": [
- {
- "name": "content",
- "description": "Content box",
- "$ref": "Quad"
- },
- {
- "name": "padding",
- "description": "Padding box",
- "$ref": "Quad"
- },
- {
- "name": "border",
- "description": "Border box",
- "$ref": "Quad"
- },
- {
- "name": "margin",
- "description": "Margin box",
- "$ref": "Quad"
- },
- {
- "name": "width",
- "description": "Node width",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Node height",
- "type": "integer"
- },
- {
- "name": "shapeOutside",
- "description": "Shape outside coordinates",
- "optional": true,
- "$ref": "ShapeOutsideInfo"
- }
- ]
- },
- {
- "id": "ShapeOutsideInfo",
- "description": "CSS Shape Outside details.",
- "type": "object",
- "properties": [
- {
- "name": "bounds",
- "description": "Shape bounds",
- "$ref": "Quad"
- },
- {
- "name": "shape",
- "description": "Shape coordinate details",
- "type": "array",
- "items": {
- "type": "any"
- }
- },
- {
- "name": "marginShape",
- "description": "Margin shape bounds",
- "type": "array",
- "items": {
- "type": "any"
- }
- }
- ]
- },
- {
- "id": "Rect",
- "description": "Rectangle.",
- "type": "object",
- "properties": [
- {
- "name": "x",
- "description": "X coordinate",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate",
- "type": "number"
- },
- {
- "name": "width",
- "description": "Rectangle width",
- "type": "number"
- },
- {
- "name": "height",
- "description": "Rectangle height",
- "type": "number"
- }
- ]
- },
- {
- "id": "CSSComputedStyleProperty",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Computed style property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Computed style property value.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "collectClassNamesFromSubtree",
- "description": "Collects class names for the node with given id and all of it's child nodes.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to collect class names.",
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "classNames",
- "description": "Class name list.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "copyTo",
- "description": "Creates a deep copy of the specified node and places it into the target container before the\ngiven anchor.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to copy.",
- "$ref": "NodeId"
- },
- {
- "name": "targetNodeId",
- "description": "Id of the element to drop the copy into.",
- "$ref": "NodeId"
- },
- {
- "name": "insertBeforeNodeId",
- "description": "Drop the copy before this node (if absent, the copy becomes the last child of\n`targetNodeId`).",
- "optional": true,
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "Id of the node clone.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "describeNode",
- "description": "Describes node given its id, does not require domain to be enabled. Does not start tracking any\nobjects, can be used for automation.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "depth",
- "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the\nentire subtree or provide an integer larger than 0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "node",
- "description": "Node description.",
- "$ref": "Node"
- }
- ]
- },
- {
- "name": "scrollIntoViewIfNeeded",
- "description": "Scrolls the specified rect of the given node into view if not already visible.\nNote: exactly one between nodeId, backendNodeId and objectId should be passed\nto identify the node.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "rect",
- "description": "The rect to be scrolled into view, relative to the node's border box, in CSS pixels.\nWhen omitted, center of the node will be used, similar to Element.scrollIntoView.",
- "optional": true,
- "$ref": "Rect"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables DOM agent for the given page."
- },
- {
- "name": "discardSearchResults",
- "description": "Discards search results from the session with the given id. `getSearchResults` should no longer\nbe called for that search.",
- "experimental": true,
- "parameters": [
- {
- "name": "searchId",
- "description": "Unique search session identifier.",
- "type": "string"
- }
- ]
- },
- {
- "name": "enable",
- "description": "Enables DOM agent for the given page.",
- "parameters": [
- {
- "name": "includeWhitespace",
- "description": "Whether to include whitespaces in the children array of returned Nodes.",
- "experimental": true,
- "optional": true,
- "type": "string",
- "enum": [
- "none",
- "all"
- ]
- }
- ]
- },
- {
- "name": "focus",
- "description": "Focuses the given element.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ]
- },
- {
- "name": "getAttributes",
- "description": "Returns attributes for the specified node.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to retrieve attibutes for.",
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "attributes",
- "description": "An interleaved array of node attribute names and values.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "getBoxModel",
- "description": "Returns boxes for the given node.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "model",
- "description": "Box model for the node.",
- "$ref": "BoxModel"
- }
- ]
- },
- {
- "name": "getContentQuads",
- "description": "Returns quads that describe node position on the page. This method\nmight return multiple quads for inline nodes.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "quads",
- "description": "Quads that describe node layout relative to viewport.",
- "type": "array",
- "items": {
- "$ref": "Quad"
- }
- }
- ]
- },
- {
- "name": "getDocument",
- "description": "Returns the root DOM node (and optionally the subtree) to the caller.\nImplicitly enables the DOM domain events for the current target.",
- "parameters": [
- {
- "name": "depth",
- "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the\nentire subtree or provide an integer larger than 0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "root",
- "description": "Resulting node.",
- "$ref": "Node"
- }
- ]
- },
- {
- "name": "getFlattenedDocument",
- "description": "Returns the root DOM node (and optionally the subtree) to the caller.\nDeprecated, as it is not designed to work well with the rest of the DOM agent.\nUse DOMSnapshot.captureSnapshot instead.",
- "deprecated": true,
- "parameters": [
- {
- "name": "depth",
- "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the\nentire subtree or provide an integer larger than 0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "nodes",
- "description": "Resulting node.",
- "type": "array",
- "items": {
- "$ref": "Node"
- }
- }
- ]
- },
- {
- "name": "getNodesForSubtreeByStyle",
- "description": "Finds nodes with a given computed style in a subtree.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Node ID pointing to the root of a subtree.",
- "$ref": "NodeId"
- },
- {
- "name": "computedStyles",
- "description": "The style to filter nodes by (includes nodes if any of properties matches).",
- "type": "array",
- "items": {
- "$ref": "CSSComputedStyleProperty"
- }
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots in the same target should be traversed when returning the\nresults (default is false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "nodeIds",
- "description": "Resulting nodes.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "getNodeForLocation",
- "description": "Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is\neither returned or not.",
- "parameters": [
- {
- "name": "x",
- "description": "X coordinate.",
- "type": "integer"
- },
- {
- "name": "y",
- "description": "Y coordinate.",
- "type": "integer"
- },
- {
- "name": "includeUserAgentShadowDOM",
- "description": "False to skip to the nearest non-UA shadow root ancestor (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "ignorePointerEventsNone",
- "description": "Whether to ignore pointer-events: none on elements and hit test them.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "backendNodeId",
- "description": "Resulting node.",
- "$ref": "BackendNodeId"
- },
- {
- "name": "frameId",
- "description": "Frame this node belongs to.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "nodeId",
- "description": "Id of the node at given coordinates, only when enabled and requested document.",
- "optional": true,
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "getOuterHTML",
- "description": "Returns node's HTML markup.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "outerHTML",
- "description": "Outer HTML markup.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getRelayoutBoundary",
- "description": "Returns the id of the nearest ancestor that is a relayout boundary.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node.",
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "Relayout boundary node id for the given node.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "getSearchResults",
- "description": "Returns search results from given `fromIndex` to given `toIndex` from the search with the given\nidentifier.",
- "experimental": true,
- "parameters": [
- {
- "name": "searchId",
- "description": "Unique search session identifier.",
- "type": "string"
- },
- {
- "name": "fromIndex",
- "description": "Start index of the search result to be returned.",
- "type": "integer"
- },
- {
- "name": "toIndex",
- "description": "End index of the search result to be returned.",
- "type": "integer"
- }
- ],
- "returns": [
- {
- "name": "nodeIds",
- "description": "Ids of the search result nodes.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "hideHighlight",
- "description": "Hides any highlight.",
- "redirect": "Overlay"
- },
- {
- "name": "highlightNode",
- "description": "Highlights DOM node.",
- "redirect": "Overlay"
- },
- {
- "name": "highlightRect",
- "description": "Highlights given rectangle.",
- "redirect": "Overlay"
- },
- {
- "name": "markUndoableState",
- "description": "Marks last undoable state.",
- "experimental": true
- },
- {
- "name": "moveTo",
- "description": "Moves node into the new container, places it before the given anchor.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to move.",
- "$ref": "NodeId"
- },
- {
- "name": "targetNodeId",
- "description": "Id of the element to drop the moved node into.",
- "$ref": "NodeId"
- },
- {
- "name": "insertBeforeNodeId",
- "description": "Drop node before this one (if absent, the moved node becomes the last child of\n`targetNodeId`).",
- "optional": true,
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "New id of the moved node.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "performSearch",
- "description": "Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or\n`cancelSearch` to end this search session.",
- "experimental": true,
- "parameters": [
- {
- "name": "query",
- "description": "Plain text or query selector or XPath search query.",
- "type": "string"
- },
- {
- "name": "includeUserAgentShadowDOM",
- "description": "True to search in user agent shadow DOM.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "searchId",
- "description": "Unique search session identifier.",
- "type": "string"
- },
- {
- "name": "resultCount",
- "description": "Number of search results.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "pushNodeByPathToFrontend",
- "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath",
- "experimental": true,
- "parameters": [
- {
- "name": "path",
- "description": "Path to node in the proprietary format.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "Id of the node for given path.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "pushNodesByBackendIdsToFrontend",
- "description": "Requests that a batch of nodes is sent to the caller given their backend node ids.",
- "experimental": true,
- "parameters": [
- {
- "name": "backendNodeIds",
- "description": "The array of backend node ids.",
- "type": "array",
- "items": {
- "$ref": "BackendNodeId"
- }
- }
- ],
- "returns": [
- {
- "name": "nodeIds",
- "description": "The array of ids of pushed nodes that correspond to the backend ids specified in\nbackendNodeIds.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "querySelector",
- "description": "Executes `querySelector` on a given node.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to query upon.",
- "$ref": "NodeId"
- },
- {
- "name": "selector",
- "description": "Selector string.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "Query selector result.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "querySelectorAll",
- "description": "Executes `querySelectorAll` on a given node.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to query upon.",
- "$ref": "NodeId"
- },
- {
- "name": "selector",
- "description": "Selector string.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "nodeIds",
- "description": "Query selector result.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "getTopLayerElements",
- "description": "Returns NodeIds of current top layer elements.\nTop layer is rendered closest to the user within a viewport, therefore its elements always\nappear on top of all other content.",
- "experimental": true,
- "returns": [
- {
- "name": "nodeIds",
- "description": "NodeIds of top layer elements",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "redo",
- "description": "Re-does the last undone action.",
- "experimental": true
- },
- {
- "name": "removeAttribute",
- "description": "Removes attribute with given name from an element with given id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the element to remove attribute from.",
- "$ref": "NodeId"
- },
- {
- "name": "name",
- "description": "Name of the attribute to remove.",
- "type": "string"
- }
- ]
- },
- {
- "name": "removeNode",
- "description": "Removes node with given id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to remove.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "requestChildNodes",
- "description": "Requests that children of the node with given id are returned to the caller in form of\n`setChildNodes` events where not only immediate children are retrieved, but all children down to\nthe specified depth.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to get children for.",
- "$ref": "NodeId"
- },
- {
- "name": "depth",
- "description": "The maximum depth at which children should be retrieved, defaults to 1. Use -1 for the\nentire subtree or provide an integer larger than 0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots should be traversed when returning the sub-tree\n(default is false).",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "requestNode",
- "description": "Requests that the node is sent to the caller given the JavaScript node object reference. All\nnodes that form the path from the node to the root are also sent to the client as a series of\n`setChildNodes` notifications.",
- "parameters": [
- {
- "name": "objectId",
- "description": "JavaScript object id to convert into node.",
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "Node id for given object.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "resolveNode",
- "description": "Resolves the JavaScript node object for a given NodeId or BackendNodeId.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to resolve.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Backend identifier of the node to resolve.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectGroup",
- "description": "Symbolic group name that can be used to release multiple objects.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "executionContextId",
- "description": "Execution context in which to resolve the node.",
- "optional": true,
- "$ref": "Runtime.ExecutionContextId"
- }
- ],
- "returns": [
- {
- "name": "object",
- "description": "JavaScript object wrapper for given node.",
- "$ref": "Runtime.RemoteObject"
- }
- ]
- },
- {
- "name": "setAttributeValue",
- "description": "Sets attribute for an element with given id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the element to set attribute for.",
- "$ref": "NodeId"
- },
- {
- "name": "name",
- "description": "Attribute name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Attribute value.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setAttributesAsText",
- "description": "Sets attributes on element with given id. This method is useful when user edits some existing\nattribute value and types in several attribute name/value pairs.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the element to set attributes for.",
- "$ref": "NodeId"
- },
- {
- "name": "text",
- "description": "Text with a number of attributes. Will parse this text using HTML parser.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Attribute name to replace with new attributes derived from text in case text parsed\nsuccessfully.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setFileInputFiles",
- "description": "Sets files for the given file input element.",
- "parameters": [
- {
- "name": "files",
- "description": "Array of file paths to set.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node.",
- "optional": true,
- "$ref": "NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node.",
- "optional": true,
- "$ref": "BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ]
- },
- {
- "name": "setNodeStackTracesEnabled",
- "description": "Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.",
- "experimental": true,
- "parameters": [
- {
- "name": "enable",
- "description": "Enable or disable.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getNodeStackTraces",
- "description": "Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to get stack traces for.",
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "creation",
- "description": "Creation stack trace, if available.",
- "optional": true,
- "$ref": "Runtime.StackTrace"
- }
- ]
- },
- {
- "name": "getFileInfo",
- "description": "Returns file information for the given\nFile wrapper.",
- "experimental": true,
- "parameters": [
- {
- "name": "objectId",
- "description": "JavaScript object id of the node wrapper.",
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "path",
- "type": "string"
- }
- ]
- },
- {
- "name": "setInspectedNode",
- "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details\n$x functions).",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "DOM node id to be accessible by means of $x command line API.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "setNodeName",
- "description": "Sets node name for a node with given id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to set name for.",
- "$ref": "NodeId"
- },
- {
- "name": "name",
- "description": "New node's name.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "New node's id.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "setNodeValue",
- "description": "Sets node value for a node with given id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to set value for.",
- "$ref": "NodeId"
- },
- {
- "name": "value",
- "description": "New node's value.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setOuterHTML",
- "description": "Sets node HTML markup, returns new node id.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to set markup for.",
- "$ref": "NodeId"
- },
- {
- "name": "outerHTML",
- "description": "Outer HTML markup to set.",
- "type": "string"
- }
- ]
- },
- {
- "name": "undo",
- "description": "Undoes the last performed action.",
- "experimental": true
- },
- {
- "name": "getFrameOwner",
- "description": "Returns iframe node that owns iframe with the given domain.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "backendNodeId",
- "description": "Resulting node.",
- "$ref": "BackendNodeId"
- },
- {
- "name": "nodeId",
- "description": "Id of the node at given coordinates, only when enabled and requested document.",
- "optional": true,
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "getContainerForNode",
- "description": "Returns the query container of the given node based on container query\nconditions: containerName, physical, and logical axes. If no axes are\nprovided, the style container is returned, which is the direct parent or the\nclosest element with a matching container-name.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "NodeId"
- },
- {
- "name": "containerName",
- "optional": true,
- "type": "string"
- },
- {
- "name": "physicalAxes",
- "optional": true,
- "$ref": "PhysicalAxes"
- },
- {
- "name": "logicalAxes",
- "optional": true,
- "$ref": "LogicalAxes"
- }
- ],
- "returns": [
- {
- "name": "nodeId",
- "description": "The container node for the given node, or null if not found.",
- "optional": true,
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "getQueryingDescendantsForContainer",
- "description": "Returns the descendants of a container query container that have\ncontainer queries against this container.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the container node to find querying descendants from.",
- "$ref": "NodeId"
- }
- ],
- "returns": [
- {
- "name": "nodeIds",
- "description": "Descendant nodes with container queries against the given container.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "attributeModified",
- "description": "Fired when `Element`'s attribute is modified.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node that has changed.",
- "$ref": "NodeId"
- },
- {
- "name": "name",
- "description": "Attribute name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Attribute value.",
- "type": "string"
- }
- ]
- },
- {
- "name": "attributeRemoved",
- "description": "Fired when `Element`'s attribute is removed.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node that has changed.",
- "$ref": "NodeId"
- },
- {
- "name": "name",
- "description": "A ttribute name.",
- "type": "string"
- }
- ]
- },
- {
- "name": "characterDataModified",
- "description": "Mirrors `DOMCharacterDataModified` event.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node that has changed.",
- "$ref": "NodeId"
- },
- {
- "name": "characterData",
- "description": "New text value.",
- "type": "string"
- }
- ]
- },
- {
- "name": "childNodeCountUpdated",
- "description": "Fired when `Container`'s child node count has changed.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node that has changed.",
- "$ref": "NodeId"
- },
- {
- "name": "childNodeCount",
- "description": "New node count.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "childNodeInserted",
- "description": "Mirrors `DOMNodeInserted` event.",
- "parameters": [
- {
- "name": "parentNodeId",
- "description": "Id of the node that has changed.",
- "$ref": "NodeId"
- },
- {
- "name": "previousNodeId",
- "description": "Id of the previous sibling.",
- "$ref": "NodeId"
- },
- {
- "name": "node",
- "description": "Inserted node data.",
- "$ref": "Node"
- }
- ]
- },
- {
- "name": "childNodeRemoved",
- "description": "Mirrors `DOMNodeRemoved` event.",
- "parameters": [
- {
- "name": "parentNodeId",
- "description": "Parent id.",
- "$ref": "NodeId"
- },
- {
- "name": "nodeId",
- "description": "Id of the node that has been removed.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "distributedNodesUpdated",
- "description": "Called when distribution is changed.",
- "experimental": true,
- "parameters": [
- {
- "name": "insertionPointId",
- "description": "Insertion point where distributed nodes were updated.",
- "$ref": "NodeId"
- },
- {
- "name": "distributedNodes",
- "description": "Distributed nodes for given insertion point.",
- "type": "array",
- "items": {
- "$ref": "BackendNode"
- }
- }
- ]
- },
- {
- "name": "documentUpdated",
- "description": "Fired when `Document` has been totally updated. Node ids are no longer valid."
- },
- {
- "name": "inlineStyleInvalidated",
- "description": "Fired when `Element`'s inline style is modified via a CSS property modification.",
- "experimental": true,
- "parameters": [
- {
- "name": "nodeIds",
- "description": "Ids of the nodes for which the inline styles have been invalidated.",
- "type": "array",
- "items": {
- "$ref": "NodeId"
- }
- }
- ]
- },
- {
- "name": "pseudoElementAdded",
- "description": "Called when a pseudo element is added to an element.",
- "experimental": true,
- "parameters": [
- {
- "name": "parentId",
- "description": "Pseudo element's parent element id.",
- "$ref": "NodeId"
- },
- {
- "name": "pseudoElement",
- "description": "The added pseudo element.",
- "$ref": "Node"
- }
- ]
- },
- {
- "name": "topLayerElementsUpdated",
- "description": "Called when top layer elements are changed.",
- "experimental": true
- },
- {
- "name": "pseudoElementRemoved",
- "description": "Called when a pseudo element is removed from an element.",
- "experimental": true,
- "parameters": [
- {
- "name": "parentId",
- "description": "Pseudo element's parent element id.",
- "$ref": "NodeId"
- },
- {
- "name": "pseudoElementId",
- "description": "The removed pseudo element id.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "setChildNodes",
- "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon\nmost of the calls requesting node ids.",
- "parameters": [
- {
- "name": "parentId",
- "description": "Parent node id to populate with children.",
- "$ref": "NodeId"
- },
- {
- "name": "nodes",
- "description": "Child nodes array.",
- "type": "array",
- "items": {
- "$ref": "Node"
- }
- }
- ]
- },
- {
- "name": "shadowRootPopped",
- "description": "Called when shadow root is popped from the element.",
- "experimental": true,
- "parameters": [
- {
- "name": "hostId",
- "description": "Host element id.",
- "$ref": "NodeId"
- },
- {
- "name": "rootId",
- "description": "Shadow root id.",
- "$ref": "NodeId"
- }
- ]
- },
- {
- "name": "shadowRootPushed",
- "description": "Called when shadow root is pushed into the element.",
- "experimental": true,
- "parameters": [
- {
- "name": "hostId",
- "description": "Host element id.",
- "$ref": "NodeId"
- },
- {
- "name": "root",
- "description": "Shadow root.",
- "$ref": "Node"
- }
- ]
- }
- ]
- },
- {
- "domain": "DOMDebugger",
- "description": "DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript\nexecution will stop on these operations as if there was a regular breakpoint set.",
- "dependencies": [
- "DOM",
- "Debugger",
- "Runtime"
- ],
- "types": [
- {
- "id": "DOMBreakpointType",
- "description": "DOM breakpoint type.",
- "type": "string",
- "enum": [
- "subtree-modified",
- "attribute-modified",
- "node-removed"
- ]
- },
- {
- "id": "CSPViolationType",
- "description": "CSP Violation type.",
- "experimental": true,
- "type": "string",
- "enum": [
- "trustedtype-sink-violation",
- "trustedtype-policy-violation"
- ]
- },
- {
- "id": "EventListener",
- "description": "Object event listener.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "`EventListener`'s type.",
- "type": "string"
- },
- {
- "name": "useCapture",
- "description": "`EventListener`'s useCapture.",
- "type": "boolean"
- },
- {
- "name": "passive",
- "description": "`EventListener`'s passive flag.",
- "type": "boolean"
- },
- {
- "name": "once",
- "description": "`EventListener`'s once flag.",
- "type": "boolean"
- },
- {
- "name": "scriptId",
- "description": "Script id of the handler code.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "lineNumber",
- "description": "Line number in the script (0-based).",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "description": "Column number in the script (0-based).",
- "type": "integer"
- },
- {
- "name": "handler",
- "description": "Event handler function value.",
- "optional": true,
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "originalHandler",
- "description": "Event original handler function value.",
- "optional": true,
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "backendNodeId",
- "description": "Node the listener is added to (if any).",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getEventListeners",
- "description": "Returns event listeners of the given object.",
- "parameters": [
- {
- "name": "objectId",
- "description": "Identifier of the object to return listeners for.",
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "depth",
- "description": "The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the\nentire subtree or provide an integer larger than 0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pierce",
- "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false). Reports listeners for all contexts if pierce is enabled.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "listeners",
- "description": "Array of relevant listeners.",
- "type": "array",
- "items": {
- "$ref": "EventListener"
- }
- }
- ]
- },
- {
- "name": "removeDOMBreakpoint",
- "description": "Removes DOM breakpoint that was set using `setDOMBreakpoint`.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node to remove breakpoint from.",
- "$ref": "DOM.NodeId"
- },
- {
- "name": "type",
- "description": "Type of the breakpoint to remove.",
- "$ref": "DOMBreakpointType"
- }
- ]
- },
- {
- "name": "removeEventListenerBreakpoint",
- "description": "Removes breakpoint on particular DOM event.",
- "parameters": [
- {
- "name": "eventName",
- "description": "Event name.",
- "type": "string"
- },
- {
- "name": "targetName",
- "description": "EventTarget interface name.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "removeInstrumentationBreakpoint",
- "description": "Removes breakpoint on particular native event.",
- "experimental": true,
- "parameters": [
- {
- "name": "eventName",
- "description": "Instrumentation name to stop on.",
- "type": "string"
- }
- ]
- },
- {
- "name": "removeXHRBreakpoint",
- "description": "Removes breakpoint from XMLHttpRequest.",
- "parameters": [
- {
- "name": "url",
- "description": "Resource URL substring.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setBreakOnCSPViolation",
- "description": "Sets breakpoint on particular CSP violations.",
- "experimental": true,
- "parameters": [
- {
- "name": "violationTypes",
- "description": "CSP Violations to stop upon.",
- "type": "array",
- "items": {
- "$ref": "CSPViolationType"
- }
- }
- ]
- },
- {
- "name": "setDOMBreakpoint",
- "description": "Sets breakpoint on particular operation with DOM.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Identifier of the node to set breakpoint on.",
- "$ref": "DOM.NodeId"
- },
- {
- "name": "type",
- "description": "Type of the operation to stop upon.",
- "$ref": "DOMBreakpointType"
- }
- ]
- },
- {
- "name": "setEventListenerBreakpoint",
- "description": "Sets breakpoint on particular DOM event.",
- "parameters": [
- {
- "name": "eventName",
- "description": "DOM Event name to stop on (any DOM event will do).",
- "type": "string"
- },
- {
- "name": "targetName",
- "description": "EventTarget interface name to stop on. If equal to `\"*\"` or not provided, will stop on any\nEventTarget.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setInstrumentationBreakpoint",
- "description": "Sets breakpoint on particular native event.",
- "experimental": true,
- "parameters": [
- {
- "name": "eventName",
- "description": "Instrumentation name to stop on.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setXHRBreakpoint",
- "description": "Sets breakpoint on XMLHttpRequest.",
- "parameters": [
- {
- "name": "url",
- "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon.",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "EventBreakpoints",
- "description": "EventBreakpoints permits setting breakpoints on particular operations and\nevents in targets that run JavaScript but do not have a DOM.\nJavaScript execution will stop on these operations as if there was a regular\nbreakpoint set.",
- "experimental": true,
- "commands": [
- {
- "name": "setInstrumentationBreakpoint",
- "description": "Sets breakpoint on particular native event.",
- "parameters": [
- {
- "name": "eventName",
- "description": "Instrumentation name to stop on.",
- "type": "string"
- }
- ]
- },
- {
- "name": "removeInstrumentationBreakpoint",
- "description": "Removes breakpoint on particular native event.",
- "parameters": [
- {
- "name": "eventName",
- "description": "Instrumentation name to stop on.",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "DOMSnapshot",
- "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.",
- "experimental": true,
- "dependencies": [
- "CSS",
- "DOM",
- "DOMDebugger",
- "Page"
- ],
- "types": [
- {
- "id": "DOMNode",
- "description": "A Node in the DOM tree.",
- "type": "object",
- "properties": [
- {
- "name": "nodeType",
- "description": "`Node`'s nodeType.",
- "type": "integer"
- },
- {
- "name": "nodeName",
- "description": "`Node`'s nodeName.",
- "type": "string"
- },
- {
- "name": "nodeValue",
- "description": "`Node`'s nodeValue.",
- "type": "string"
- },
- {
- "name": "textValue",
- "description": "Only set for textarea elements, contains the text value.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "inputValue",
- "description": "Only set for input elements, contains the input's associated text value.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "inputChecked",
- "description": "Only set for radio and checkbox input elements, indicates if the element has been checked",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "optionSelected",
- "description": "Only set for option elements, indicates if the element has been selected",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "backendNodeId",
- "description": "`Node`'s id, corresponds to DOM.Node.backendNodeId.",
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "childNodeIndexes",
- "description": "The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if\nany.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "attributes",
- "description": "Attributes of an `Element` node.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "NameValue"
- }
- },
- {
- "name": "pseudoElementIndexes",
- "description": "Indexes of pseudo elements associated with this node in the `domNodes` array returned by\n`getSnapshot`, if any.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "layoutNodeIndex",
- "description": "The index of the node's related layout tree node in the `layoutTreeNodes` array returned by\n`getSnapshot`, if any.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "documentURL",
- "description": "Document URL that `Document` or `FrameOwner` node points to.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "baseURL",
- "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "contentLanguage",
- "description": "Only set for documents, contains the document's content language.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "documentEncoding",
- "description": "Only set for documents, contains the document's character set encoding.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "publicId",
- "description": "`DocumentType` node's publicId.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "systemId",
- "description": "`DocumentType` node's systemId.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "frameId",
- "description": "Frame ID for frame owner elements and also for the document node.",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "contentDocumentIndex",
- "description": "The index of a frame owner element's content document in the `domNodes` array returned by\n`getSnapshot`, if any.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "pseudoType",
- "description": "Type of a pseudo element node.",
- "optional": true,
- "$ref": "DOM.PseudoType"
- },
- {
- "name": "shadowRootType",
- "description": "Shadow root type.",
- "optional": true,
- "$ref": "DOM.ShadowRootType"
- },
- {
- "name": "isClickable",
- "description": "Whether this DOM node responds to mouse clicks. This includes nodes that have had click\nevent listeners attached via JavaScript as well as anchor tags that naturally navigate when\nclicked.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "eventListeners",
- "description": "Details of the node's event listeners, if any.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "DOMDebugger.EventListener"
- }
- },
- {
- "name": "currentSourceURL",
- "description": "The selected url for nodes with a srcset attribute.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "originURL",
- "description": "The url of the script (if any) that generates this node.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "scrollOffsetX",
- "description": "Scroll offsets, set when this node is a Document.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "scrollOffsetY",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "InlineTextBox",
- "description": "Details of post layout rendered text positions. The exact layout should not be regarded as\nstable and may change between versions.",
- "type": "object",
- "properties": [
- {
- "name": "boundingBox",
- "description": "The bounding box in document coordinates. Note that scroll offset of the document is ignored.",
- "$ref": "DOM.Rect"
- },
- {
- "name": "startCharacterIndex",
- "description": "The starting index in characters, for this post layout textbox substring. Characters that\nwould be represented as a surrogate pair in UTF-16 have length 2.",
- "type": "integer"
- },
- {
- "name": "numCharacters",
- "description": "The number of characters in this post layout textbox substring. Characters that would be\nrepresented as a surrogate pair in UTF-16 have length 2.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "LayoutTreeNode",
- "description": "Details of an element in the DOM tree with a LayoutObject.",
- "type": "object",
- "properties": [
- {
- "name": "domNodeIndex",
- "description": "The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.",
- "type": "integer"
- },
- {
- "name": "boundingBox",
- "description": "The bounding box in document coordinates. Note that scroll offset of the document is ignored.",
- "$ref": "DOM.Rect"
- },
- {
- "name": "layoutText",
- "description": "Contents of the LayoutText, if any.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "inlineTextNodes",
- "description": "The post-layout inline text nodes, if any.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "InlineTextBox"
- }
- },
- {
- "name": "styleIndex",
- "description": "Index into the `computedStyles` array returned by `getSnapshot`.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "paintOrder",
- "description": "Global paint order index, which is determined by the stacking order of the nodes. Nodes\nthat are painted together will have the same index. Only provided if includePaintOrder in\ngetSnapshot was true.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "isStackingContext",
- "description": "Set to true to indicate the element begins a new stacking context.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "ComputedStyle",
- "description": "A subset of the full ComputedStyle as defined by the request whitelist.",
- "type": "object",
- "properties": [
- {
- "name": "properties",
- "description": "Name/value pairs of computed style properties.",
- "type": "array",
- "items": {
- "$ref": "NameValue"
- }
- }
- ]
- },
- {
- "id": "NameValue",
- "description": "A name/value pair.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Attribute/property name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Attribute/property value.",
- "type": "string"
- }
- ]
- },
- {
- "id": "StringIndex",
- "description": "Index of the string in the strings table.",
- "type": "integer"
- },
- {
- "id": "ArrayOfStrings",
- "description": "Index of the string in the strings table.",
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- },
- {
- "id": "RareStringData",
- "description": "Data that is only present on rare nodes.",
- "type": "object",
- "properties": [
- {
- "name": "index",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "value",
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- }
- ]
- },
- {
- "id": "RareBooleanData",
- "type": "object",
- "properties": [
- {
- "name": "index",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "id": "RareIntegerData",
- "type": "object",
- "properties": [
- {
- "name": "index",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "value",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- },
- {
- "id": "Rectangle",
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "id": "DocumentSnapshot",
- "description": "Document snapshot.",
- "type": "object",
- "properties": [
- {
- "name": "documentURL",
- "description": "Document URL that `Document` or `FrameOwner` node points to.",
- "$ref": "StringIndex"
- },
- {
- "name": "title",
- "description": "Document title.",
- "$ref": "StringIndex"
- },
- {
- "name": "baseURL",
- "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
- "$ref": "StringIndex"
- },
- {
- "name": "contentLanguage",
- "description": "Contains the document's content language.",
- "$ref": "StringIndex"
- },
- {
- "name": "encodingName",
- "description": "Contains the document's character set encoding.",
- "$ref": "StringIndex"
- },
- {
- "name": "publicId",
- "description": "`DocumentType` node's publicId.",
- "$ref": "StringIndex"
- },
- {
- "name": "systemId",
- "description": "`DocumentType` node's systemId.",
- "$ref": "StringIndex"
- },
- {
- "name": "frameId",
- "description": "Frame ID for frame owner elements and also for the document node.",
- "$ref": "StringIndex"
- },
- {
- "name": "nodes",
- "description": "A table with dom nodes.",
- "$ref": "NodeTreeSnapshot"
- },
- {
- "name": "layout",
- "description": "The nodes in the layout tree.",
- "$ref": "LayoutTreeSnapshot"
- },
- {
- "name": "textBoxes",
- "description": "The post-layout inline text nodes.",
- "$ref": "TextBoxSnapshot"
- },
- {
- "name": "scrollOffsetX",
- "description": "Horizontal scroll offset.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "scrollOffsetY",
- "description": "Vertical scroll offset.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "contentWidth",
- "description": "Document content width.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "contentHeight",
- "description": "Document content height.",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "NodeTreeSnapshot",
- "description": "Table containing nodes.",
- "type": "object",
- "properties": [
- {
- "name": "parentIndex",
- "description": "Parent node index.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "nodeType",
- "description": "`Node`'s nodeType.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "shadowRootType",
- "description": "Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "nodeName",
- "description": "`Node`'s nodeName.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- },
- {
- "name": "nodeValue",
- "description": "`Node`'s nodeValue.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- },
- {
- "name": "backendNodeId",
- "description": "`Node`'s id, corresponds to DOM.Node.backendNodeId.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "DOM.BackendNodeId"
- }
- },
- {
- "name": "attributes",
- "description": "Attributes of an `Element` node. Flatten name, value pairs.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "ArrayOfStrings"
- }
- },
- {
- "name": "textValue",
- "description": "Only set for textarea elements, contains the text value.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "inputValue",
- "description": "Only set for input elements, contains the input's associated text value.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "inputChecked",
- "description": "Only set for radio and checkbox input elements, indicates if the element has been checked",
- "optional": true,
- "$ref": "RareBooleanData"
- },
- {
- "name": "optionSelected",
- "description": "Only set for option elements, indicates if the element has been selected",
- "optional": true,
- "$ref": "RareBooleanData"
- },
- {
- "name": "contentDocumentIndex",
- "description": "The index of the document in the list of the snapshot documents.",
- "optional": true,
- "$ref": "RareIntegerData"
- },
- {
- "name": "pseudoType",
- "description": "Type of a pseudo element node.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "pseudoIdentifier",
- "description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "isClickable",
- "description": "Whether this DOM node responds to mouse clicks. This includes nodes that have had click\nevent listeners attached via JavaScript as well as anchor tags that naturally navigate when\nclicked.",
- "optional": true,
- "$ref": "RareBooleanData"
- },
- {
- "name": "currentSourceURL",
- "description": "The selected url for nodes with a srcset attribute.",
- "optional": true,
- "$ref": "RareStringData"
- },
- {
- "name": "originURL",
- "description": "The url of the script (if any) that generates this node.",
- "optional": true,
- "$ref": "RareStringData"
- }
- ]
- },
- {
- "id": "LayoutTreeSnapshot",
- "description": "Table of details of an element in the DOM tree with a LayoutObject.",
- "type": "object",
- "properties": [
- {
- "name": "nodeIndex",
- "description": "Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "styles",
- "description": "Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.",
- "type": "array",
- "items": {
- "$ref": "ArrayOfStrings"
- }
- },
- {
- "name": "bounds",
- "description": "The absolute position bounding box.",
- "type": "array",
- "items": {
- "$ref": "Rectangle"
- }
- },
- {
- "name": "text",
- "description": "Contents of the LayoutText, if any.",
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- },
- {
- "name": "stackingContexts",
- "description": "Stacking context information.",
- "$ref": "RareBooleanData"
- },
- {
- "name": "paintOrders",
- "description": "Global paint order index, which is determined by the stacking order of the nodes. Nodes\nthat are painted together will have the same index. Only provided if includePaintOrder in\ncaptureSnapshot was true.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "offsetRects",
- "description": "The offset rect of nodes. Only available when includeDOMRects is set to true",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Rectangle"
- }
- },
- {
- "name": "scrollRects",
- "description": "The scroll rect of nodes. Only available when includeDOMRects is set to true",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Rectangle"
- }
- },
- {
- "name": "clientRects",
- "description": "The client rect of nodes. Only available when includeDOMRects is set to true",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Rectangle"
- }
- },
- {
- "name": "blendedBackgroundColors",
- "description": "The list of background colors that are blended with colors of overlapping elements.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "StringIndex"
- }
- },
- {
- "name": "textColorOpacities",
- "description": "The list of computed text opacities.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ]
- },
- {
- "id": "TextBoxSnapshot",
- "description": "Table of details of the post layout rendered text positions. The exact layout should not be regarded as\nstable and may change between versions.",
- "type": "object",
- "properties": [
- {
- "name": "layoutIndex",
- "description": "Index of the layout tree node that owns this box collection.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "bounds",
- "description": "The absolute position bounding box.",
- "type": "array",
- "items": {
- "$ref": "Rectangle"
- }
- },
- {
- "name": "start",
- "description": "The starting index in characters, for this post layout textbox substring. Characters that\nwould be represented as a surrogate pair in UTF-16 have length 2.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- },
- {
- "name": "length",
- "description": "The number of characters in this post layout textbox substring. Characters that would be\nrepresented as a surrogate pair in UTF-16 have length 2.",
- "type": "array",
- "items": {
- "type": "integer"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables DOM snapshot agent for the given page."
- },
- {
- "name": "enable",
- "description": "Enables DOM snapshot agent for the given page."
- },
- {
- "name": "getSnapshot",
- "description": "Returns a document snapshot, including the full DOM tree of the root node (including iframes,\ntemplate contents, and imported documents) in a flattened array, as well as layout and\nwhite-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is\nflattened.",
- "deprecated": true,
- "parameters": [
- {
- "name": "computedStyleWhitelist",
- "description": "Whitelist of computed styles to return.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "includeEventListeners",
- "description": "Whether or not to retrieve details of DOM listeners (default false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includePaintOrder",
- "description": "Whether to determine and include the paint order index of LayoutTreeNodes (default false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeUserAgentShadowTree",
- "description": "Whether to include UA shadow tree in the snapshot (default false).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "domNodes",
- "description": "The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.",
- "type": "array",
- "items": {
- "$ref": "DOMNode"
- }
- },
- {
- "name": "layoutTreeNodes",
- "description": "The nodes in the layout tree.",
- "type": "array",
- "items": {
- "$ref": "LayoutTreeNode"
- }
- },
- {
- "name": "computedStyles",
- "description": "Whitelisted ComputedStyle properties for each node in the layout tree.",
- "type": "array",
- "items": {
- "$ref": "ComputedStyle"
- }
- }
- ]
- },
- {
- "name": "captureSnapshot",
- "description": "Returns a document snapshot, including the full DOM tree of the root node (including iframes,\ntemplate contents, and imported documents) in a flattened array, as well as layout and\nwhite-listed computed style information for the nodes. Shadow DOM in the returned DOM tree is\nflattened.",
- "parameters": [
- {
- "name": "computedStyles",
- "description": "Whitelist of computed styles to return.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "includePaintOrder",
- "description": "Whether to include layout object paint orders into the snapshot.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeDOMRects",
- "description": "Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeBlendedBackgroundColors",
- "description": "Whether to include blended background colors in the snapshot (default: false).\nBlended background color is achieved by blending background colors of all elements\nthat overlap with the current element.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeTextColorOpacities",
- "description": "Whether to include text color opacity in the snapshot (default: false).\nAn element might have the opacity property set that affects the text color of the element.\nThe final text color opacity is computed based on the opacity of all overlapping elements.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "documents",
- "description": "The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.",
- "type": "array",
- "items": {
- "$ref": "DocumentSnapshot"
- }
- },
- {
- "name": "strings",
- "description": "Shared string table that all string properties refer to with indexes.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "DOMStorage",
- "description": "Query and modify DOM storage.",
- "experimental": true,
- "types": [
- {
- "id": "SerializedStorageKey",
- "type": "string"
- },
- {
- "id": "StorageId",
- "description": "DOM Storage identifier.",
- "type": "object",
- "properties": [
- {
- "name": "securityOrigin",
- "description": "Security origin for the storage.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Represents a key by which DOM Storage keys its CachedStorageAreas",
- "optional": true,
- "$ref": "SerializedStorageKey"
- },
- {
- "name": "isLocalStorage",
- "description": "Whether the storage is local storage (not session storage).",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "Item",
- "description": "DOM Storage item.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ],
- "commands": [
- {
- "name": "clear",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables storage tracking, prevents storage events from being sent to the client."
- },
- {
- "name": "enable",
- "description": "Enables storage tracking, storage events will now be delivered to the client."
- },
- {
- "name": "getDOMStorageItems",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- }
- ],
- "returns": [
- {
- "name": "entries",
- "type": "array",
- "items": {
- "$ref": "Item"
- }
- }
- ]
- },
- {
- "name": "removeDOMStorageItem",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- },
- {
- "name": "key",
- "type": "string"
- }
- ]
- },
- {
- "name": "setDOMStorageItem",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- },
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "domStorageItemAdded",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- },
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "newValue",
- "type": "string"
- }
- ]
- },
- {
- "name": "domStorageItemRemoved",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- },
- {
- "name": "key",
- "type": "string"
- }
- ]
- },
- {
- "name": "domStorageItemUpdated",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- },
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "oldValue",
- "type": "string"
- },
- {
- "name": "newValue",
- "type": "string"
- }
- ]
- },
- {
- "name": "domStorageItemsCleared",
- "parameters": [
- {
- "name": "storageId",
- "$ref": "StorageId"
- }
- ]
- }
- ]
- },
- {
- "domain": "Database",
- "experimental": true,
- "types": [
- {
- "id": "DatabaseId",
- "description": "Unique identifier of Database object.",
- "type": "string"
- },
- {
- "id": "Database",
- "description": "Database object.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "Database ID.",
- "$ref": "DatabaseId"
- },
- {
- "name": "domain",
- "description": "Database domain.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Database name.",
- "type": "string"
- },
- {
- "name": "version",
- "description": "Database version.",
- "type": "string"
- }
- ]
- },
- {
- "id": "Error",
- "description": "Database error.",
- "type": "object",
- "properties": [
- {
- "name": "message",
- "description": "Error message.",
- "type": "string"
- },
- {
- "name": "code",
- "description": "Error code.",
- "type": "integer"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables database tracking, prevents database events from being sent to the client."
- },
- {
- "name": "enable",
- "description": "Enables database tracking, database events will now be delivered to the client."
- },
- {
- "name": "executeSQL",
- "parameters": [
- {
- "name": "databaseId",
- "$ref": "DatabaseId"
- },
- {
- "name": "query",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "columnNames",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "values",
- "optional": true,
- "type": "array",
- "items": {
- "type": "any"
- }
- },
- {
- "name": "sqlError",
- "optional": true,
- "$ref": "Error"
- }
- ]
- },
- {
- "name": "getDatabaseTableNames",
- "parameters": [
- {
- "name": "databaseId",
- "$ref": "DatabaseId"
- }
- ],
- "returns": [
- {
- "name": "tableNames",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "addDatabase",
- "parameters": [
- {
- "name": "database",
- "$ref": "Database"
- }
- ]
- }
- ]
- },
- {
- "domain": "DeviceOrientation",
- "experimental": true,
- "commands": [
- {
- "name": "clearDeviceOrientationOverride",
- "description": "Clears the overridden Device Orientation."
- },
- {
- "name": "setDeviceOrientationOverride",
- "description": "Overrides the Device Orientation.",
- "parameters": [
- {
- "name": "alpha",
- "description": "Mock alpha",
- "type": "number"
- },
- {
- "name": "beta",
- "description": "Mock beta",
- "type": "number"
- },
- {
- "name": "gamma",
- "description": "Mock gamma",
- "type": "number"
- }
- ]
- }
- ]
- },
- {
- "domain": "Emulation",
- "description": "This domain emulates different environments for the page.",
- "dependencies": [
- "DOM",
- "Page",
- "Runtime"
- ],
- "types": [
- {
- "id": "ScreenOrientation",
- "description": "Screen orientation.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Orientation type.",
- "type": "string",
- "enum": [
- "portraitPrimary",
- "portraitSecondary",
- "landscapePrimary",
- "landscapeSecondary"
- ]
- },
- {
- "name": "angle",
- "description": "Orientation angle.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "DisplayFeature",
- "type": "object",
- "properties": [
- {
- "name": "orientation",
- "description": "Orientation of a display feature in relation to screen",
- "type": "string",
- "enum": [
- "vertical",
- "horizontal"
- ]
- },
- {
- "name": "offset",
- "description": "The offset from the screen origin in either the x (for vertical\norientation) or y (for horizontal orientation) direction.",
- "type": "integer"
- },
- {
- "name": "maskLength",
- "description": "A display feature may mask content such that it is not physically\ndisplayed - this length along with the offset describes this area.\nA display feature that only splits content will have a 0 mask_length.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "MediaFeature",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "VirtualTimePolicy",
- "description": "advance: If the scheduler runs out of immediate work, the virtual time base may fast forward to\nallow the next delayed task (if any) to run; pause: The virtual time base may not advance;\npauseIfNetworkFetchesPending: The virtual time base may not advance if there are any pending\nresource fetches.",
- "experimental": true,
- "type": "string",
- "enum": [
- "advance",
- "pause",
- "pauseIfNetworkFetchesPending"
- ]
- },
- {
- "id": "UserAgentBrandVersion",
- "description": "Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "brand",
- "type": "string"
- },
- {
- "name": "version",
- "type": "string"
- }
- ]
- },
- {
- "id": "UserAgentMetadata",
- "description": "Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints\nMissing optional values will be filled in by the target with what it would normally use.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "brands",
- "description": "Brands appearing in Sec-CH-UA.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "UserAgentBrandVersion"
- }
- },
- {
- "name": "fullVersionList",
- "description": "Brands appearing in Sec-CH-UA-Full-Version-List.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "UserAgentBrandVersion"
- }
- },
- {
- "name": "fullVersion",
- "deprecated": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "platform",
- "type": "string"
- },
- {
- "name": "platformVersion",
- "type": "string"
- },
- {
- "name": "architecture",
- "type": "string"
- },
- {
- "name": "model",
- "type": "string"
- },
- {
- "name": "mobile",
- "type": "boolean"
- },
- {
- "name": "bitness",
- "optional": true,
- "type": "string"
- },
- {
- "name": "wow64",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "DisabledImageType",
- "description": "Enum of image types that can be disabled.",
- "experimental": true,
- "type": "string",
- "enum": [
- "avif",
- "webp"
- ]
- }
- ],
- "commands": [
- {
- "name": "canEmulate",
- "description": "Tells whether emulation is supported.",
- "returns": [
- {
- "name": "result",
- "description": "True if emulation is supported.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "clearDeviceMetricsOverride",
- "description": "Clears the overridden device metrics."
- },
- {
- "name": "clearGeolocationOverride",
- "description": "Clears the overridden Geolocation Position and Error."
- },
- {
- "name": "resetPageScaleFactor",
- "description": "Requests that page scale factor is reset to initial values.",
- "experimental": true
- },
- {
- "name": "setFocusEmulationEnabled",
- "description": "Enables or disables simulating a focused and active page.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether to enable to disable focus emulation.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setAutoDarkModeOverride",
- "description": "Automatically render all web contents using a dark theme.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether to enable or disable automatic dark mode.\nIf not specified, any existing override will be cleared.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setCPUThrottlingRate",
- "description": "Enables CPU throttling to emulate slow CPUs.",
- "experimental": true,
- "parameters": [
- {
- "name": "rate",
- "description": "Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).",
- "type": "number"
- }
- ]
- },
- {
- "name": "setDefaultBackgroundColorOverride",
- "description": "Sets or clears an override of the default background color of the frame. This override is used\nif the content does not specify one.",
- "parameters": [
- {
- "name": "color",
- "description": "RGBA of the default background color. If not specified, any existing override will be\ncleared.",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "name": "setDeviceMetricsOverride",
- "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height,\nwindow.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media\nquery results).",
- "parameters": [
- {
- "name": "width",
- "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
- "type": "integer"
- },
- {
- "name": "deviceScaleFactor",
- "description": "Overriding device scale factor value. 0 disables the override.",
- "type": "number"
- },
- {
- "name": "mobile",
- "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text\nautosizing and more.",
- "type": "boolean"
- },
- {
- "name": "scale",
- "description": "Scale to apply to resulting view image.",
- "experimental": true,
- "optional": true,
- "type": "number"
- },
- {
- "name": "screenWidth",
- "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "screenHeight",
- "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "positionX",
- "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "positionY",
- "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "dontSetVisibleSize",
- "description": "Do not set visible view size, rely upon explicit setVisibleSize call.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "screenOrientation",
- "description": "Screen orientation override.",
- "optional": true,
- "$ref": "ScreenOrientation"
- },
- {
- "name": "viewport",
- "description": "If set, the visible area of the page will be overridden to this viewport. This viewport\nchange is not observed by the page, e.g. viewport-relative elements do not change positions.",
- "experimental": true,
- "optional": true,
- "$ref": "Page.Viewport"
- },
- {
- "name": "displayFeature",
- "description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.",
- "experimental": true,
- "optional": true,
- "$ref": "DisplayFeature"
- }
- ]
- },
- {
- "name": "setScrollbarsHidden",
- "experimental": true,
- "parameters": [
- {
- "name": "hidden",
- "description": "Whether scrollbars should be always hidden.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setDocumentCookieDisabled",
- "experimental": true,
- "parameters": [
- {
- "name": "disabled",
- "description": "Whether document.coookie API should be disabled.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setEmitTouchEventsForMouse",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether touch emulation based on mouse input should be enabled.",
- "type": "boolean"
- },
- {
- "name": "configuration",
- "description": "Touch/gesture events configuration. Default: current platform.",
- "optional": true,
- "type": "string",
- "enum": [
- "mobile",
- "desktop"
- ]
- }
- ]
- },
- {
- "name": "setEmulatedMedia",
- "description": "Emulates the given media type or media feature for CSS media queries.",
- "parameters": [
- {
- "name": "media",
- "description": "Media type to emulate. Empty string disables the override.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "features",
- "description": "Media features to emulate.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "MediaFeature"
- }
- }
- ]
- },
- {
- "name": "setEmulatedVisionDeficiency",
- "description": "Emulates the given vision deficiency.",
- "experimental": true,
- "parameters": [
- {
- "name": "type",
- "description": "Vision deficiency to emulate. Order: best-effort emulations come first, followed by any\nphysiologically accurate emulations for medically recognized color vision deficiencies.",
- "type": "string",
- "enum": [
- "none",
- "blurredVision",
- "reducedContrast",
- "achromatopsia",
- "deuteranopia",
- "protanopia",
- "tritanopia"
- ]
- }
- ]
- },
- {
- "name": "setGeolocationOverride",
- "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position\nunavailable.",
- "parameters": [
- {
- "name": "latitude",
- "description": "Mock latitude",
- "optional": true,
- "type": "number"
- },
- {
- "name": "longitude",
- "description": "Mock longitude",
- "optional": true,
- "type": "number"
- },
- {
- "name": "accuracy",
- "description": "Mock accuracy",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "setIdleOverride",
- "description": "Overrides the Idle state.",
- "experimental": true,
- "parameters": [
- {
- "name": "isUserActive",
- "description": "Mock isUserActive",
- "type": "boolean"
- },
- {
- "name": "isScreenUnlocked",
- "description": "Mock isScreenUnlocked",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "clearIdleOverride",
- "description": "Clears Idle state overrides.",
- "experimental": true
- },
- {
- "name": "setNavigatorOverrides",
- "description": "Overrides value returned by the javascript navigator object.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "platform",
- "description": "The platform navigator.platform should return.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setPageScaleFactor",
- "description": "Sets a specified page scale factor.",
- "experimental": true,
- "parameters": [
- {
- "name": "pageScaleFactor",
- "description": "Page scale factor.",
- "type": "number"
- }
- ]
- },
- {
- "name": "setScriptExecutionDisabled",
- "description": "Switches script execution in the page.",
- "parameters": [
- {
- "name": "value",
- "description": "Whether script execution should be disabled in the page.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setTouchEmulationEnabled",
- "description": "Enables touch on platforms which do not support them.",
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether the touch event emulation should be enabled.",
- "type": "boolean"
- },
- {
- "name": "maxTouchPoints",
- "description": "Maximum touch points supported. Defaults to one.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "setVirtualTimePolicy",
- "description": "Turns on virtual time for all frames (replacing real-time with a synthetic time source) and sets\nthe current virtual time policy. Note this supersedes any previous time budget.",
- "experimental": true,
- "parameters": [
- {
- "name": "policy",
- "$ref": "VirtualTimePolicy"
- },
- {
- "name": "budget",
- "description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a\nvirtualTimeBudgetExpired event is sent.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "maxVirtualTimeTaskStarvationCount",
- "description": "If set this specifies the maximum number of tasks that can be run before virtual is forced\nforwards to prevent deadlock.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "initialVirtualTime",
- "description": "If set, base::Time::Now will be overridden to initially return this value.",
- "optional": true,
- "$ref": "Network.TimeSinceEpoch"
- }
- ],
- "returns": [
- {
- "name": "virtualTimeTicksBase",
- "description": "Absolute timestamp at which virtual time was first enabled (up time in milliseconds).",
- "type": "number"
- }
- ]
- },
- {
- "name": "setLocaleOverride",
- "description": "Overrides default host system locale with the specified one.",
- "experimental": true,
- "parameters": [
- {
- "name": "locale",
- "description": "ICU style C locale (e.g. \"en_US\"). If not specified or empty, disables the override and\nrestores default host system locale.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setTimezoneOverride",
- "description": "Overrides default host system timezone with the specified one.",
- "experimental": true,
- "parameters": [
- {
- "name": "timezoneId",
- "description": "The timezone identifier. If empty, disables the override and\nrestores default host system timezone.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setVisibleSize",
- "description": "Resizes the frame/viewport of the page. Note that this does not affect the frame's container\n(e.g. browser window). Can be used to produce screenshots of the specified size. Not supported\non Android.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "width",
- "description": "Frame width (DIP).",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Frame height (DIP).",
- "type": "integer"
- }
- ]
- },
- {
- "name": "setDisabledImageTypes",
- "experimental": true,
- "parameters": [
- {
- "name": "imageTypes",
- "description": "Image types to disable.",
- "type": "array",
- "items": {
- "$ref": "DisabledImageType"
- }
- }
- ]
- },
- {
- "name": "setHardwareConcurrencyOverride",
- "experimental": true,
- "parameters": [
- {
- "name": "hardwareConcurrency",
- "description": "Hardware concurrency to report",
- "type": "integer"
- }
- ]
- },
- {
- "name": "setUserAgentOverride",
- "description": "Allows overriding user agent with the given string.",
- "parameters": [
- {
- "name": "userAgent",
- "description": "User agent to use.",
- "type": "string"
- },
- {
- "name": "acceptLanguage",
- "description": "Browser langugage to emulate.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "platform",
- "description": "The platform navigator.platform should return.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "userAgentMetadata",
- "description": "To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData",
- "experimental": true,
- "optional": true,
- "$ref": "UserAgentMetadata"
- }
- ]
- },
- {
- "name": "setAutomationOverride",
- "description": "Allows overriding the automation flag.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether the override should be enabled.",
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "virtualTimeBudgetExpired",
- "description": "Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.",
- "experimental": true
- }
- ]
- },
- {
- "domain": "HeadlessExperimental",
- "description": "This domain provides experimental commands only supported in headless mode.",
- "experimental": true,
- "dependencies": [
- "Page",
- "Runtime"
- ],
- "types": [
- {
- "id": "ScreenshotParams",
- "description": "Encoding options for a screenshot.",
- "type": "object",
- "properties": [
- {
- "name": "format",
- "description": "Image compression format (defaults to png).",
- "optional": true,
- "type": "string",
- "enum": [
- "jpeg",
- "png",
- "webp"
- ]
- },
- {
- "name": "quality",
- "description": "Compression quality from range [0..100] (jpeg only).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "optimizeForSpeed",
- "description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
- "optional": true,
- "type": "boolean"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "beginFrame",
- "description": "Sends a BeginFrame to the target and returns when the frame was completed. Optionally captures a\nscreenshot from the resulting frame. Requires that the target was created with enabled\nBeginFrameControl. Designed for use with --run-all-compositor-stages-before-draw, see also\nhttps://goo.gle/chrome-headless-rendering for more background.",
- "parameters": [
- {
- "name": "frameTimeTicks",
- "description": "Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,\nthe current time will be used.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "interval",
- "description": "The interval between BeginFrames that is reported to the compositor, in milliseconds.\nDefaults to a 60 frames/second interval, i.e. about 16.666 milliseconds.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "noDisplayUpdates",
- "description": "Whether updates should not be committed and drawn onto the display. False by default. If\ntrue, only side effects of the BeginFrame will be run, such as layout and animations, but\nany visual updates may not be visible on the display or in screenshots.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "screenshot",
- "description": "If set, a screenshot of the frame will be captured and returned in the response. Otherwise,\nno screenshot will be captured. Note that capturing a screenshot can fail, for example,\nduring renderer initialization. In such a case, no screenshot data will be returned.",
- "optional": true,
- "$ref": "ScreenshotParams"
- }
- ],
- "returns": [
- {
- "name": "hasDamage",
- "description": "Whether the BeginFrame resulted in damage and, thus, a new frame was committed to the\ndisplay. Reported for diagnostic uses, may be removed in the future.",
- "type": "boolean"
- },
- {
- "name": "screenshotData",
- "description": "Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables headless events for the target.",
- "deprecated": true
- },
- {
- "name": "enable",
- "description": "Enables headless events for the target.",
- "deprecated": true
- }
- ]
- },
- {
- "domain": "IO",
- "description": "Input/Output operations for streams produced by DevTools.",
- "types": [
- {
- "id": "StreamHandle",
- "description": "This is either obtained from another method or specified as `blob:<uuid>` where\n`<uuid>` is an UUID of a Blob.",
- "type": "string"
- }
- ],
- "commands": [
- {
- "name": "close",
- "description": "Close the stream, discard any temporary backing storage.",
- "parameters": [
- {
- "name": "handle",
- "description": "Handle of the stream to close.",
- "$ref": "StreamHandle"
- }
- ]
- },
- {
- "name": "read",
- "description": "Read a chunk of the stream",
- "parameters": [
- {
- "name": "handle",
- "description": "Handle of the stream to read.",
- "$ref": "StreamHandle"
- },
- {
- "name": "offset",
- "description": "Seek to the specified offset before reading (if not specificed, proceed with offset\nfollowing the last read). Some types of streams may only support sequential reads.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "size",
- "description": "Maximum number of bytes to read (left upon the agent discretion if not specified).",
- "optional": true,
- "type": "integer"
- }
- ],
- "returns": [
- {
- "name": "base64Encoded",
- "description": "Set if the data is base64-encoded",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "data",
- "description": "Data that were read.",
- "type": "string"
- },
- {
- "name": "eof",
- "description": "Set if the end-of-file condition occurred while reading.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "resolveBlob",
- "description": "Return UUID of Blob object specified by a remote object id.",
- "parameters": [
- {
- "name": "objectId",
- "description": "Object id of a Blob object wrapper.",
- "$ref": "Runtime.RemoteObjectId"
- }
- ],
- "returns": [
- {
- "name": "uuid",
- "description": "UUID of the specified Blob.",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "IndexedDB",
- "experimental": true,
- "dependencies": [
- "Runtime",
- "Storage"
- ],
- "types": [
- {
- "id": "DatabaseWithObjectStores",
- "description": "Database with an array of object stores.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Database name.",
- "type": "string"
- },
- {
- "name": "version",
- "description": "Database version (type is not 'integer', as the standard\nrequires the version number to be 'unsigned long long')",
- "type": "number"
- },
- {
- "name": "objectStores",
- "description": "Object stores in this database.",
- "type": "array",
- "items": {
- "$ref": "ObjectStore"
- }
- }
- ]
- },
- {
- "id": "ObjectStore",
- "description": "Object store.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Object store name.",
- "type": "string"
- },
- {
- "name": "keyPath",
- "description": "Object store key path.",
- "$ref": "KeyPath"
- },
- {
- "name": "autoIncrement",
- "description": "If true, object store has auto increment flag set.",
- "type": "boolean"
- },
- {
- "name": "indexes",
- "description": "Indexes in this object store.",
- "type": "array",
- "items": {
- "$ref": "ObjectStoreIndex"
- }
- }
- ]
- },
- {
- "id": "ObjectStoreIndex",
- "description": "Object store index.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Index name.",
- "type": "string"
- },
- {
- "name": "keyPath",
- "description": "Index key path.",
- "$ref": "KeyPath"
- },
- {
- "name": "unique",
- "description": "If true, index is unique.",
- "type": "boolean"
- },
- {
- "name": "multiEntry",
- "description": "If true, index allows multiple entries for a key.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "Key",
- "description": "Key.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Key type.",
- "type": "string",
- "enum": [
- "number",
- "string",
- "date",
- "array"
- ]
- },
- {
- "name": "number",
- "description": "Number value.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "string",
- "description": "String value.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "date",
- "description": "Date value.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "array",
- "description": "Array value.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Key"
- }
- }
- ]
- },
- {
- "id": "KeyRange",
- "description": "Key range.",
- "type": "object",
- "properties": [
- {
- "name": "lower",
- "description": "Lower bound.",
- "optional": true,
- "$ref": "Key"
- },
- {
- "name": "upper",
- "description": "Upper bound.",
- "optional": true,
- "$ref": "Key"
- },
- {
- "name": "lowerOpen",
- "description": "If true lower bound is open.",
- "type": "boolean"
- },
- {
- "name": "upperOpen",
- "description": "If true upper bound is open.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "DataEntry",
- "description": "Data entry.",
- "type": "object",
- "properties": [
- {
- "name": "key",
- "description": "Key object.",
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "primaryKey",
- "description": "Primary key object.",
- "$ref": "Runtime.RemoteObject"
- },
- {
- "name": "value",
- "description": "Value object.",
- "$ref": "Runtime.RemoteObject"
- }
- ]
- },
- {
- "id": "KeyPath",
- "description": "Key path.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Key path type.",
- "type": "string",
- "enum": [
- "null",
- "string",
- "array"
- ]
- },
- {
- "name": "string",
- "description": "String value.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "array",
- "description": "Array value.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "clearObjectStore",
- "description": "Clears all entries from an object store.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "description": "Database name.",
- "type": "string"
- },
- {
- "name": "objectStoreName",
- "description": "Object store name.",
- "type": "string"
- }
- ]
- },
- {
- "name": "deleteDatabase",
- "description": "Deletes a database.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "description": "Database name.",
- "type": "string"
- }
- ]
- },
- {
- "name": "deleteObjectStoreEntries",
- "description": "Delete a range of entries from an object store",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "type": "string"
- },
- {
- "name": "objectStoreName",
- "type": "string"
- },
- {
- "name": "keyRange",
- "description": "Range of entry keys to delete",
- "$ref": "KeyRange"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables events from backend."
- },
- {
- "name": "enable",
- "description": "Enables events from backend."
- },
- {
- "name": "requestData",
- "description": "Requests data from object store or index.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "description": "Database name.",
- "type": "string"
- },
- {
- "name": "objectStoreName",
- "description": "Object store name.",
- "type": "string"
- },
- {
- "name": "indexName",
- "description": "Index name, empty string for object store data requests.",
- "type": "string"
- },
- {
- "name": "skipCount",
- "description": "Number of records to skip.",
- "type": "integer"
- },
- {
- "name": "pageSize",
- "description": "Number of records to fetch.",
- "type": "integer"
- },
- {
- "name": "keyRange",
- "description": "Key range.",
- "optional": true,
- "$ref": "KeyRange"
- }
- ],
- "returns": [
- {
- "name": "objectStoreDataEntries",
- "description": "Array of object store data entries.",
- "type": "array",
- "items": {
- "$ref": "DataEntry"
- }
- },
- {
- "name": "hasMore",
- "description": "If true, there are more entries to fetch in the given range.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getMetadata",
- "description": "Gets metadata of an object store.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "description": "Database name.",
- "type": "string"
- },
- {
- "name": "objectStoreName",
- "description": "Object store name.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "entriesCount",
- "description": "the entries count",
- "type": "number"
- },
- {
- "name": "keyGeneratorValue",
- "description": "the current value of key generator, to become the next inserted\nkey into the object store. Valid if objectStore.autoIncrement\nis true.",
- "type": "number"
- }
- ]
- },
- {
- "name": "requestDatabase",
- "description": "Requests database with given name in given frame.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- },
- {
- "name": "databaseName",
- "description": "Database name.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "databaseWithObjectStores",
- "description": "Database with an array of object stores.",
- "$ref": "DatabaseWithObjectStores"
- }
- ]
- },
- {
- "name": "requestDatabaseNames",
- "description": "Requests database names for given security origin.",
- "parameters": [
- {
- "name": "securityOrigin",
- "description": "At least and at most one of securityOrigin, storageKey, or storageBucket must be specified.\nSecurity origin.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "storageBucket",
- "description": "Storage bucket. If not specified, it uses the default bucket.",
- "optional": true,
- "$ref": "Storage.StorageBucket"
- }
- ],
- "returns": [
- {
- "name": "databaseNames",
- "description": "Database names for origin.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Input",
- "types": [
- {
- "id": "TouchPoint",
- "type": "object",
- "properties": [
- {
- "name": "x",
- "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to\nthe top of the viewport and Y increases as it proceeds towards the bottom of the viewport.",
- "type": "number"
- },
- {
- "name": "radiusX",
- "description": "X radius of the touch area (default: 1.0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "radiusY",
- "description": "Y radius of the touch area (default: 1.0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "rotationAngle",
- "description": "Rotation angle (default: 0.0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "force",
- "description": "Force (default: 1.0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "tangentialPressure",
- "description": "The normalized tangential pressure, which has a range of [-1,1] (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "number"
- },
- {
- "name": "tiltX",
- "description": "The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "tiltY",
- "description": "The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "twist",
- "description": "The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "id",
- "description": "Identifier used to track touch sources between events, must be unique within an event.",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "GestureSourceType",
- "experimental": true,
- "type": "string",
- "enum": [
- "default",
- "touch",
- "mouse"
- ]
- },
- {
- "id": "MouseButton",
- "type": "string",
- "enum": [
- "none",
- "left",
- "middle",
- "right",
- "back",
- "forward"
- ]
- },
- {
- "id": "TimeSinceEpoch",
- "description": "UTC time in seconds, counted from January 1, 1970.",
- "type": "number"
- },
- {
- "id": "DragDataItem",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "mimeType",
- "description": "Mime type of the dragged data.",
- "type": "string"
- },
- {
- "name": "data",
- "description": "Depending of the value of `mimeType`, it contains the dragged link,\ntext, HTML markup or any other data.",
- "type": "string"
- },
- {
- "name": "title",
- "description": "Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".",
- "optional": true,
- "type": "string"
- },
- {
- "name": "baseURL",
- "description": "Stores the base URL for the contained markup. Only valid when `mimeType`\n== \"text/html\".",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "DragData",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "items",
- "type": "array",
- "items": {
- "$ref": "DragDataItem"
- }
- },
- {
- "name": "files",
- "description": "List of filenames that should be included when dropping",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "dragOperationsMask",
- "description": "Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16",
- "type": "integer"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "dispatchDragEvent",
- "description": "Dispatches a drag event into the page.",
- "experimental": true,
- "parameters": [
- {
- "name": "type",
- "description": "Type of the drag event.",
- "type": "string",
- "enum": [
- "dragEnter",
- "dragOver",
- "drop",
- "dragCancel"
- ]
- },
- {
- "name": "x",
- "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to\nthe top of the viewport and Y increases as it proceeds towards the bottom of the viewport.",
- "type": "number"
- },
- {
- "name": "data",
- "$ref": "DragData"
- },
- {
- "name": "modifiers",
- "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "dispatchKeyEvent",
- "description": "Dispatches a key event to the page.",
- "parameters": [
- {
- "name": "type",
- "description": "Type of the key event.",
- "type": "string",
- "enum": [
- "keyDown",
- "keyUp",
- "rawKeyDown",
- "char"
- ]
- },
- {
- "name": "modifiers",
- "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "timestamp",
- "description": "Time at which the event occurred.",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "text",
- "description": "Text as generated by processing a virtual key code with a keyboard layout. Not needed for\nfor `keyUp` and `rawKeyDown` events (default: \"\")",
- "optional": true,
- "type": "string"
- },
- {
- "name": "unmodifiedText",
- "description": "Text that would have been generated by the keyboard if no modifiers were pressed (except for\nshift). Useful for shortcut (accelerator) key handling (default: \"\").",
- "optional": true,
- "type": "string"
- },
- {
- "name": "keyIdentifier",
- "description": "Unique key identifier (e.g., 'U+0041') (default: \"\").",
- "optional": true,
- "type": "string"
- },
- {
- "name": "code",
- "description": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\").",
- "optional": true,
- "type": "string"
- },
- {
- "name": "key",
- "description": "Unique DOM defined string value describing the meaning of the key in the context of active\nmodifiers, keyboard layout, etc (e.g., 'AltGr') (default: \"\").",
- "optional": true,
- "type": "string"
- },
- {
- "name": "windowsVirtualKeyCode",
- "description": "Windows virtual key code (default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "nativeVirtualKeyCode",
- "description": "Native virtual key code (default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "autoRepeat",
- "description": "Whether the event was generated from auto repeat (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isKeypad",
- "description": "Whether the event was generated from the keypad (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isSystemKey",
- "description": "Whether the event was a system key event (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "location",
- "description": "Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:\n0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "commands",
- "description": "Editing commands to send with the key event (e.g., 'selectAll') (default: []).\nThese are related to but not equal the command names used in `document.execCommand` and NSStandardKeyBindingResponding.\nSee https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "insertText",
- "description": "This method emulates inserting text that doesn't come from a key press,\nfor example an emoji keyboard or an IME.",
- "experimental": true,
- "parameters": [
- {
- "name": "text",
- "description": "The text to insert.",
- "type": "string"
- }
- ]
- },
- {
- "name": "imeSetComposition",
- "description": "This method sets the current candidate text for ime.\nUse imeCommitComposition to commit the final text.\nUse imeSetComposition with empty string as text to cancel composition.",
- "experimental": true,
- "parameters": [
- {
- "name": "text",
- "description": "The text to insert",
- "type": "string"
- },
- {
- "name": "selectionStart",
- "description": "selection start",
- "type": "integer"
- },
- {
- "name": "selectionEnd",
- "description": "selection end",
- "type": "integer"
- },
- {
- "name": "replacementStart",
- "description": "replacement start",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "replacementEnd",
- "description": "replacement end",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "dispatchMouseEvent",
- "description": "Dispatches a mouse event to the page.",
- "parameters": [
- {
- "name": "type",
- "description": "Type of the mouse event.",
- "type": "string",
- "enum": [
- "mousePressed",
- "mouseReleased",
- "mouseMoved",
- "mouseWheel"
- ]
- },
- {
- "name": "x",
- "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to\nthe top of the viewport and Y increases as it proceeds towards the bottom of the viewport.",
- "type": "number"
- },
- {
- "name": "modifiers",
- "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "timestamp",
- "description": "Time at which the event occurred.",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "button",
- "description": "Mouse button (default: \"none\").",
- "optional": true,
- "$ref": "MouseButton"
- },
- {
- "name": "buttons",
- "description": "A number indicating which buttons are pressed on the mouse when a mouse event is triggered.\nLeft=1, Right=2, Middle=4, Back=8, Forward=16, None=0.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "clickCount",
- "description": "Number of times the mouse button was clicked (default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "force",
- "description": "The normalized pressure, which has a range of [0,1] (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "number"
- },
- {
- "name": "tangentialPressure",
- "description": "The normalized tangential pressure, which has a range of [-1,1] (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "number"
- },
- {
- "name": "tiltX",
- "description": "The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "tiltY",
- "description": "The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "twist",
- "description": "The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "deltaX",
- "description": "X delta in CSS pixels for mouse wheel event (default: 0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "deltaY",
- "description": "Y delta in CSS pixels for mouse wheel event (default: 0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "pointerType",
- "description": "Pointer type (default: \"mouse\").",
- "optional": true,
- "type": "string",
- "enum": [
- "mouse",
- "pen"
- ]
- }
- ]
- },
- {
- "name": "dispatchTouchEvent",
- "description": "Dispatches a touch event to the page.",
- "parameters": [
- {
- "name": "type",
- "description": "Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while\nTouchStart and TouchMove must contains at least one.",
- "type": "string",
- "enum": [
- "touchStart",
- "touchEnd",
- "touchMove",
- "touchCancel"
- ]
- },
- {
- "name": "touchPoints",
- "description": "Active touch points on the touch device. One event per any changed point (compared to\nprevious touch event in a sequence) is generated, emulating pressing/moving/releasing points\none by one.",
- "type": "array",
- "items": {
- "$ref": "TouchPoint"
- }
- },
- {
- "name": "modifiers",
- "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "timestamp",
- "description": "Time at which the event occurred.",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- }
- ]
- },
- {
- "name": "emulateTouchFromMouseEvent",
- "description": "Emulates touch event from the mouse event parameters.",
- "experimental": true,
- "parameters": [
- {
- "name": "type",
- "description": "Type of the mouse event.",
- "type": "string",
- "enum": [
- "mousePressed",
- "mouseReleased",
- "mouseMoved",
- "mouseWheel"
- ]
- },
- {
- "name": "x",
- "description": "X coordinate of the mouse pointer in DIP.",
- "type": "integer"
- },
- {
- "name": "y",
- "description": "Y coordinate of the mouse pointer in DIP.",
- "type": "integer"
- },
- {
- "name": "button",
- "description": "Mouse button. Only \"none\", \"left\", \"right\" are supported.",
- "$ref": "MouseButton"
- },
- {
- "name": "timestamp",
- "description": "Time at which the event occurred (default: current time).",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "deltaX",
- "description": "X delta in DIP for mouse wheel event (default: 0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "deltaY",
- "description": "Y delta in DIP for mouse wheel event (default: 0).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "modifiers",
- "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "clickCount",
- "description": "Number of times the mouse button was clicked (default: 0).",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "setIgnoreInputEvents",
- "description": "Ignores input events (useful while auditing page).",
- "parameters": [
- {
- "name": "ignore",
- "description": "Ignores input events processing when set to true.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setInterceptDrags",
- "description": "Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.\nDrag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "synthesizePinchGesture",
- "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
- "experimental": true,
- "parameters": [
- {
- "name": "x",
- "description": "X coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "scaleFactor",
- "description": "Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).",
- "type": "number"
- },
- {
- "name": "relativeSpeed",
- "description": "Relative pointer speed in pixels per second (default: 800).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "gestureSourceType",
- "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
- "optional": true,
- "$ref": "GestureSourceType"
- }
- ]
- },
- {
- "name": "synthesizeScrollGesture",
- "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.",
- "experimental": true,
- "parameters": [
- {
- "name": "x",
- "description": "X coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "xDistance",
- "description": "The distance to scroll along the X axis (positive to scroll left).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "yDistance",
- "description": "The distance to scroll along the Y axis (positive to scroll up).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "xOverscroll",
- "description": "The number of additional pixels to scroll back along the X axis, in addition to the given\ndistance.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "yOverscroll",
- "description": "The number of additional pixels to scroll back along the Y axis, in addition to the given\ndistance.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "preventFling",
- "description": "Prevent fling (default: true).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "speed",
- "description": "Swipe speed in pixels per second (default: 800).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "gestureSourceType",
- "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
- "optional": true,
- "$ref": "GestureSourceType"
- },
- {
- "name": "repeatCount",
- "description": "The number of times to repeat the gesture (default: 0).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "repeatDelayMs",
- "description": "The number of milliseconds delay between each repeat. (default: 250).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "interactionMarkerName",
- "description": "The name of the interaction markers to generate, if not empty (default: \"\").",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "synthesizeTapGesture",
- "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
- "experimental": true,
- "parameters": [
- {
- "name": "x",
- "description": "X coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y coordinate of the start of the gesture in CSS pixels.",
- "type": "number"
- },
- {
- "name": "duration",
- "description": "Duration between touchdown and touchup events in ms (default: 50).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "tapCount",
- "description": "Number of times to perform the tap (e.g. 2 for double tap, default: 1).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "gestureSourceType",
- "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
- "optional": true,
- "$ref": "GestureSourceType"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "dragIntercepted",
- "description": "Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to\nrestore normal drag and drop behavior.",
- "experimental": true,
- "parameters": [
- {
- "name": "data",
- "$ref": "DragData"
- }
- ]
- }
- ]
- },
- {
- "domain": "Inspector",
- "experimental": true,
- "commands": [
- {
- "name": "disable",
- "description": "Disables inspector domain notifications."
- },
- {
- "name": "enable",
- "description": "Enables inspector domain notifications."
- }
- ],
- "events": [
- {
- "name": "detached",
- "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
- "parameters": [
- {
- "name": "reason",
- "description": "The reason why connection has been terminated.",
- "type": "string"
- }
- ]
- },
- {
- "name": "targetCrashed",
- "description": "Fired when debugging target has crashed"
- },
- {
- "name": "targetReloadedAfterCrash",
- "description": "Fired when debugging target has reloaded after crash"
- }
- ]
- },
- {
- "domain": "LayerTree",
- "experimental": true,
- "dependencies": [
- "DOM"
- ],
- "types": [
- {
- "id": "LayerId",
- "description": "Unique Layer identifier.",
- "type": "string"
- },
- {
- "id": "SnapshotId",
- "description": "Unique snapshot identifier.",
- "type": "string"
- },
- {
- "id": "ScrollRect",
- "description": "Rectangle where scrolling happens on the main thread.",
- "type": "object",
- "properties": [
- {
- "name": "rect",
- "description": "Rectangle itself.",
- "$ref": "DOM.Rect"
- },
- {
- "name": "type",
- "description": "Reason for rectangle to force scrolling on the main thread",
- "type": "string",
- "enum": [
- "RepaintsOnScroll",
- "TouchEventHandler",
- "WheelEventHandler"
- ]
- }
- ]
- },
- {
- "id": "StickyPositionConstraint",
- "description": "Sticky position constraints.",
- "type": "object",
- "properties": [
- {
- "name": "stickyBoxRect",
- "description": "Layout rectangle of the sticky element before being shifted",
- "$ref": "DOM.Rect"
- },
- {
- "name": "containingBlockRect",
- "description": "Layout rectangle of the containing block of the sticky element",
- "$ref": "DOM.Rect"
- },
- {
- "name": "nearestLayerShiftingStickyBox",
- "description": "The nearest sticky layer that shifts the sticky box",
- "optional": true,
- "$ref": "LayerId"
- },
- {
- "name": "nearestLayerShiftingContainingBlock",
- "description": "The nearest sticky layer that shifts the containing block",
- "optional": true,
- "$ref": "LayerId"
- }
- ]
- },
- {
- "id": "PictureTile",
- "description": "Serialized fragment of layer picture along with its offset within the layer.",
- "type": "object",
- "properties": [
- {
- "name": "x",
- "description": "Offset from owning layer left boundary",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Offset from owning layer top boundary",
- "type": "number"
- },
- {
- "name": "picture",
- "description": "Base64-encoded snapshot data. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- },
- {
- "id": "Layer",
- "description": "Information about a compositing layer.",
- "type": "object",
- "properties": [
- {
- "name": "layerId",
- "description": "The unique id for this layer.",
- "$ref": "LayerId"
- },
- {
- "name": "parentLayerId",
- "description": "The id of parent (not present for root).",
- "optional": true,
- "$ref": "LayerId"
- },
- {
- "name": "backendNodeId",
- "description": "The backend id for the node associated with this layer.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "offsetX",
- "description": "Offset from parent layer, X coordinate.",
- "type": "number"
- },
- {
- "name": "offsetY",
- "description": "Offset from parent layer, Y coordinate.",
- "type": "number"
- },
- {
- "name": "width",
- "description": "Layer width.",
- "type": "number"
- },
- {
- "name": "height",
- "description": "Layer height.",
- "type": "number"
- },
- {
- "name": "transform",
- "description": "Transformation matrix for layer, default is identity matrix",
- "optional": true,
- "type": "array",
- "items": {
- "type": "number"
- }
- },
- {
- "name": "anchorX",
- "description": "Transform anchor point X, absent if no transform specified",
- "optional": true,
- "type": "number"
- },
- {
- "name": "anchorY",
- "description": "Transform anchor point Y, absent if no transform specified",
- "optional": true,
- "type": "number"
- },
- {
- "name": "anchorZ",
- "description": "Transform anchor point Z, absent if no transform specified",
- "optional": true,
- "type": "number"
- },
- {
- "name": "paintCount",
- "description": "Indicates how many time this layer has painted.",
- "type": "integer"
- },
- {
- "name": "drawsContent",
- "description": "Indicates whether this layer hosts any content, rather than being used for\ntransform/scrolling purposes only.",
- "type": "boolean"
- },
- {
- "name": "invisible",
- "description": "Set if layer is not visible.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "scrollRects",
- "description": "Rectangles scrolling on main thread only.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "ScrollRect"
- }
- },
- {
- "name": "stickyPositionConstraint",
- "description": "Sticky position constraint information",
- "optional": true,
- "$ref": "StickyPositionConstraint"
- }
- ]
- },
- {
- "id": "PaintProfile",
- "description": "Array of timings, one per paint step.",
- "type": "array",
- "items": {
- "type": "number"
- }
- }
- ],
- "commands": [
- {
- "name": "compositingReasons",
- "description": "Provides the reasons why the given layer was composited.",
- "parameters": [
- {
- "name": "layerId",
- "description": "The id of the layer for which we want to get the reasons it was composited.",
- "$ref": "LayerId"
- }
- ],
- "returns": [
- {
- "name": "compositingReasons",
- "description": "A list of strings specifying reasons for the given layer to become composited.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "compositingReasonIds",
- "description": "A list of strings specifying reason IDs for the given layer to become composited.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables compositing tree inspection."
- },
- {
- "name": "enable",
- "description": "Enables compositing tree inspection."
- },
- {
- "name": "loadSnapshot",
- "description": "Returns the snapshot identifier.",
- "parameters": [
- {
- "name": "tiles",
- "description": "An array of tiles composing the snapshot.",
- "type": "array",
- "items": {
- "$ref": "PictureTile"
- }
- }
- ],
- "returns": [
- {
- "name": "snapshotId",
- "description": "The id of the snapshot.",
- "$ref": "SnapshotId"
- }
- ]
- },
- {
- "name": "makeSnapshot",
- "description": "Returns the layer snapshot identifier.",
- "parameters": [
- {
- "name": "layerId",
- "description": "The id of the layer.",
- "$ref": "LayerId"
- }
- ],
- "returns": [
- {
- "name": "snapshotId",
- "description": "The id of the layer snapshot.",
- "$ref": "SnapshotId"
- }
- ]
- },
- {
- "name": "profileSnapshot",
- "parameters": [
- {
- "name": "snapshotId",
- "description": "The id of the layer snapshot.",
- "$ref": "SnapshotId"
- },
- {
- "name": "minRepeatCount",
- "description": "The maximum number of times to replay the snapshot (1, if not specified).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "minDuration",
- "description": "The minimum duration (in seconds) to replay the snapshot.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "clipRect",
- "description": "The clip rectangle to apply when replaying the snapshot.",
- "optional": true,
- "$ref": "DOM.Rect"
- }
- ],
- "returns": [
- {
- "name": "timings",
- "description": "The array of paint profiles, one per run.",
- "type": "array",
- "items": {
- "$ref": "PaintProfile"
- }
- }
- ]
- },
- {
- "name": "releaseSnapshot",
- "description": "Releases layer snapshot captured by the back-end.",
- "parameters": [
- {
- "name": "snapshotId",
- "description": "The id of the layer snapshot.",
- "$ref": "SnapshotId"
- }
- ]
- },
- {
- "name": "replaySnapshot",
- "description": "Replays the layer snapshot and returns the resulting bitmap.",
- "parameters": [
- {
- "name": "snapshotId",
- "description": "The id of the layer snapshot.",
- "$ref": "SnapshotId"
- },
- {
- "name": "fromStep",
- "description": "The first step to replay from (replay from the very start if not specified).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "toStep",
- "description": "The last step to replay to (replay till the end if not specified).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "scale",
- "description": "The scale to apply while replaying (defaults to 1).",
- "optional": true,
- "type": "number"
- }
- ],
- "returns": [
- {
- "name": "dataURL",
- "description": "A data: URL for resulting image.",
- "type": "string"
- }
- ]
- },
- {
- "name": "snapshotCommandLog",
- "description": "Replays the layer snapshot and returns canvas log.",
- "parameters": [
- {
- "name": "snapshotId",
- "description": "The id of the layer snapshot.",
- "$ref": "SnapshotId"
- }
- ],
- "returns": [
- {
- "name": "commandLog",
- "description": "The array of canvas function calls.",
- "type": "array",
- "items": {
- "type": "object"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "layerPainted",
- "parameters": [
- {
- "name": "layerId",
- "description": "The id of the painted layer.",
- "$ref": "LayerId"
- },
- {
- "name": "clip",
- "description": "Clip rectangle.",
- "$ref": "DOM.Rect"
- }
- ]
- },
- {
- "name": "layerTreeDidChange",
- "parameters": [
- {
- "name": "layers",
- "description": "Layer tree, absent if not in the comspositing mode.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Layer"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Log",
- "description": "Provides access to log entries.",
- "dependencies": [
- "Runtime",
- "Network"
- ],
- "types": [
- {
- "id": "LogEntry",
- "description": "Log entry.",
- "type": "object",
- "properties": [
- {
- "name": "source",
- "description": "Log entry source.",
- "type": "string",
- "enum": [
- "xml",
- "javascript",
- "network",
- "storage",
- "appcache",
- "rendering",
- "security",
- "deprecation",
- "worker",
- "violation",
- "intervention",
- "recommendation",
- "other"
- ]
- },
- {
- "name": "level",
- "description": "Log entry severity.",
- "type": "string",
- "enum": [
- "verbose",
- "info",
- "warning",
- "error"
- ]
- },
- {
- "name": "text",
- "description": "Logged text.",
- "type": "string"
- },
- {
- "name": "category",
- "optional": true,
- "type": "string",
- "enum": [
- "cors"
- ]
- },
- {
- "name": "timestamp",
- "description": "Timestamp when this entry was added.",
- "$ref": "Runtime.Timestamp"
- },
- {
- "name": "url",
- "description": "URL of the resource if known.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "lineNumber",
- "description": "Line number in the resource.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "stackTrace",
- "description": "JavaScript stack trace.",
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "networkRequestId",
- "description": "Identifier of the network request associated with this entry.",
- "optional": true,
- "$ref": "Network.RequestId"
- },
- {
- "name": "workerId",
- "description": "Identifier of the worker associated with this entry.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "args",
- "description": "Call arguments.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Runtime.RemoteObject"
- }
- }
- ]
- },
- {
- "id": "ViolationSetting",
- "description": "Violation configuration setting.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Violation type.",
- "type": "string",
- "enum": [
- "longTask",
- "longLayout",
- "blockedEvent",
- "blockedParser",
- "discouragedAPIUse",
- "handler",
- "recurringHandler"
- ]
- },
- {
- "name": "threshold",
- "description": "Time threshold to trigger upon.",
- "type": "number"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "clear",
- "description": "Clears the log."
- },
- {
- "name": "disable",
- "description": "Disables log domain, prevents further log entries from being reported to the client."
- },
- {
- "name": "enable",
- "description": "Enables log domain, sends the entries collected so far to the client by means of the\n`entryAdded` notification."
- },
- {
- "name": "startViolationsReport",
- "description": "start violation reporting.",
- "parameters": [
- {
- "name": "config",
- "description": "Configuration for violations.",
- "type": "array",
- "items": {
- "$ref": "ViolationSetting"
- }
- }
- ]
- },
- {
- "name": "stopViolationsReport",
- "description": "Stop violation reporting."
- }
- ],
- "events": [
- {
- "name": "entryAdded",
- "description": "Issued when new message was logged.",
- "parameters": [
- {
- "name": "entry",
- "description": "The entry.",
- "$ref": "LogEntry"
- }
- ]
- }
- ]
- },
- {
- "domain": "Memory",
- "experimental": true,
- "types": [
- {
- "id": "PressureLevel",
- "description": "Memory pressure level.",
- "type": "string",
- "enum": [
- "moderate",
- "critical"
- ]
- },
- {
- "id": "SamplingProfileNode",
- "description": "Heap profile sample.",
- "type": "object",
- "properties": [
- {
- "name": "size",
- "description": "Size of the sampled allocation.",
- "type": "number"
- },
- {
- "name": "total",
- "description": "Total bytes attributed to this sample.",
- "type": "number"
- },
- {
- "name": "stack",
- "description": "Execution stack at the point of allocation.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "SamplingProfile",
- "description": "Array of heap profile samples.",
- "type": "object",
- "properties": [
- {
- "name": "samples",
- "type": "array",
- "items": {
- "$ref": "SamplingProfileNode"
- }
- },
- {
- "name": "modules",
- "type": "array",
- "items": {
- "$ref": "Module"
- }
- }
- ]
- },
- {
- "id": "Module",
- "description": "Executable module information",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Name of the module.",
- "type": "string"
- },
- {
- "name": "uuid",
- "description": "UUID of the module.",
- "type": "string"
- },
- {
- "name": "baseAddress",
- "description": "Base address where the module is loaded into memory. Encoded as a decimal\nor hexadecimal (0x prefixed) string.",
- "type": "string"
- },
- {
- "name": "size",
- "description": "Size of the module in bytes.",
- "type": "number"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getDOMCounters",
- "returns": [
- {
- "name": "documents",
- "type": "integer"
- },
- {
- "name": "nodes",
- "type": "integer"
- },
- {
- "name": "jsEventListeners",
- "type": "integer"
- }
- ]
- },
- {
- "name": "prepareForLeakDetection"
- },
- {
- "name": "forciblyPurgeJavaScriptMemory",
- "description": "Simulate OomIntervention by purging V8 memory."
- },
- {
- "name": "setPressureNotificationsSuppressed",
- "description": "Enable/disable suppressing memory pressure notifications in all processes.",
- "parameters": [
- {
- "name": "suppressed",
- "description": "If true, memory pressure notifications will be suppressed.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "simulatePressureNotification",
- "description": "Simulate a memory pressure notification in all processes.",
- "parameters": [
- {
- "name": "level",
- "description": "Memory pressure level of the notification.",
- "$ref": "PressureLevel"
- }
- ]
- },
- {
- "name": "startSampling",
- "description": "Start collecting native memory profile.",
- "parameters": [
- {
- "name": "samplingInterval",
- "description": "Average number of bytes between samples.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "suppressRandomness",
- "description": "Do not randomize intervals between samples.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "stopSampling",
- "description": "Stop collecting native memory profile."
- },
- {
- "name": "getAllTimeSamplingProfile",
- "description": "Retrieve native memory allocations profile\ncollected since renderer process startup.",
- "returns": [
- {
- "name": "profile",
- "$ref": "SamplingProfile"
- }
- ]
- },
- {
- "name": "getBrowserSamplingProfile",
- "description": "Retrieve native memory allocations profile\ncollected since browser process startup.",
- "returns": [
- {
- "name": "profile",
- "$ref": "SamplingProfile"
- }
- ]
- },
- {
- "name": "getSamplingProfile",
- "description": "Retrieve native memory allocations profile collected since last\n`startSampling` call.",
- "returns": [
- {
- "name": "profile",
- "$ref": "SamplingProfile"
- }
- ]
- }
- ]
- },
- {
- "domain": "Network",
- "description": "Network domain allows tracking network activities of the page. It exposes information about http,\nfile, data and other requests and responses, their headers, bodies, timing, etc.",
- "dependencies": [
- "Debugger",
- "Runtime",
- "Security"
- ],
- "types": [
- {
- "id": "ResourceType",
- "description": "Resource type as it was perceived by the rendering engine.",
- "type": "string",
- "enum": [
- "Document",
- "Stylesheet",
- "Image",
- "Media",
- "Font",
- "Script",
- "TextTrack",
- "XHR",
- "Fetch",
- "Prefetch",
- "EventSource",
- "WebSocket",
- "Manifest",
- "SignedExchange",
- "Ping",
- "CSPViolationReport",
- "Preflight",
- "Other"
- ]
- },
- {
- "id": "LoaderId",
- "description": "Unique loader identifier.",
- "type": "string"
- },
- {
- "id": "RequestId",
- "description": "Unique request identifier.",
- "type": "string"
- },
- {
- "id": "InterceptionId",
- "description": "Unique intercepted request identifier.",
- "type": "string"
- },
- {
- "id": "ErrorReason",
- "description": "Network level fetch failure reason.",
- "type": "string",
- "enum": [
- "Failed",
- "Aborted",
- "TimedOut",
- "AccessDenied",
- "ConnectionClosed",
- "ConnectionReset",
- "ConnectionRefused",
- "ConnectionAborted",
- "ConnectionFailed",
- "NameNotResolved",
- "InternetDisconnected",
- "AddressUnreachable",
- "BlockedByClient",
- "BlockedByResponse"
- ]
- },
- {
- "id": "TimeSinceEpoch",
- "description": "UTC time in seconds, counted from January 1, 1970.",
- "type": "number"
- },
- {
- "id": "MonotonicTime",
- "description": "Monotonically increasing time in seconds since an arbitrary point in the past.",
- "type": "number"
- },
- {
- "id": "Headers",
- "description": "Request / response headers as keys / values of JSON object.",
- "type": "object"
- },
- {
- "id": "ConnectionType",
- "description": "The underlying connection technology that the browser is supposedly using.",
- "type": "string",
- "enum": [
- "none",
- "cellular2g",
- "cellular3g",
- "cellular4g",
- "bluetooth",
- "ethernet",
- "wifi",
- "wimax",
- "other"
- ]
- },
- {
- "id": "CookieSameSite",
- "description": "Represents the cookie's 'SameSite' status:\nhttps://tools.ietf.org/html/draft-west-first-party-cookies",
- "type": "string",
- "enum": [
- "Strict",
- "Lax",
- "None"
- ]
- },
- {
- "id": "CookiePriority",
- "description": "Represents the cookie's 'Priority' status:\nhttps://tools.ietf.org/html/draft-west-cookie-priority-00",
- "experimental": true,
- "type": "string",
- "enum": [
- "Low",
- "Medium",
- "High"
- ]
- },
- {
- "id": "CookieSourceScheme",
- "description": "Represents the source scheme of the origin that originally set the cookie.\nA value of \"Unset\" allows protocol clients to emulate legacy cookie scope for the scheme.\nThis is a temporary ability and it will be removed in the future.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Unset",
- "NonSecure",
- "Secure"
- ]
- },
- {
- "id": "ResourceTiming",
- "description": "Timing information for the request.",
- "type": "object",
- "properties": [
- {
- "name": "requestTime",
- "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in\nmilliseconds relatively to this requestTime.",
- "type": "number"
- },
- {
- "name": "proxyStart",
- "description": "Started resolving proxy.",
- "type": "number"
- },
- {
- "name": "proxyEnd",
- "description": "Finished resolving proxy.",
- "type": "number"
- },
- {
- "name": "dnsStart",
- "description": "Started DNS address resolve.",
- "type": "number"
- },
- {
- "name": "dnsEnd",
- "description": "Finished DNS address resolve.",
- "type": "number"
- },
- {
- "name": "connectStart",
- "description": "Started connecting to the remote host.",
- "type": "number"
- },
- {
- "name": "connectEnd",
- "description": "Connected to the remote host.",
- "type": "number"
- },
- {
- "name": "sslStart",
- "description": "Started SSL handshake.",
- "type": "number"
- },
- {
- "name": "sslEnd",
- "description": "Finished SSL handshake.",
- "type": "number"
- },
- {
- "name": "workerStart",
- "description": "Started running ServiceWorker.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "workerReady",
- "description": "Finished Starting ServiceWorker.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "workerFetchStart",
- "description": "Started fetch event.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "workerRespondWithSettled",
- "description": "Settled fetch event respondWith promise.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "sendStart",
- "description": "Started sending request.",
- "type": "number"
- },
- {
- "name": "sendEnd",
- "description": "Finished sending request.",
- "type": "number"
- },
- {
- "name": "pushStart",
- "description": "Time the server started pushing request.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "pushEnd",
- "description": "Time the server finished pushing request.",
- "experimental": true,
- "type": "number"
- },
- {
- "name": "receiveHeadersEnd",
- "description": "Finished receiving response headers.",
- "type": "number"
- }
- ]
- },
- {
- "id": "ResourcePriority",
- "description": "Loading priority of a resource request.",
- "type": "string",
- "enum": [
- "VeryLow",
- "Low",
- "Medium",
- "High",
- "VeryHigh"
- ]
- },
- {
- "id": "PostDataEntry",
- "description": "Post data entry for HTTP request",
- "type": "object",
- "properties": [
- {
- "name": "bytes",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "Request",
- "description": "HTTP request data.",
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "Request URL (without fragment).",
- "type": "string"
- },
- {
- "name": "urlFragment",
- "description": "Fragment of the requested URL starting with hash, if present.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "method",
- "description": "HTTP request method.",
- "type": "string"
- },
- {
- "name": "headers",
- "description": "HTTP request headers.",
- "$ref": "Headers"
- },
- {
- "name": "postData",
- "description": "HTTP POST request data.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "hasPostData",
- "description": "True when the request has POST data. Note that postData might still be omitted when this flag is true when the data is too long.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "postDataEntries",
- "description": "Request body elements. This will be converted from base64 to binary",
- "experimental": true,
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "PostDataEntry"
- }
- },
- {
- "name": "mixedContentType",
- "description": "The mixed content type of the request.",
- "optional": true,
- "$ref": "Security.MixedContentType"
- },
- {
- "name": "initialPriority",
- "description": "Priority of the resource request at the time request is sent.",
- "$ref": "ResourcePriority"
- },
- {
- "name": "referrerPolicy",
- "description": "The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/",
- "type": "string",
- "enum": [
- "unsafe-url",
- "no-referrer-when-downgrade",
- "no-referrer",
- "origin",
- "origin-when-cross-origin",
- "same-origin",
- "strict-origin",
- "strict-origin-when-cross-origin"
- ]
- },
- {
- "name": "isLinkPreload",
- "description": "Whether is loaded via link preload.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "trustTokenParams",
- "description": "Set for requests when the TrustToken API is used. Contains the parameters\npassed by the developer (e.g. via \"fetch\") as understood by the backend.",
- "experimental": true,
- "optional": true,
- "$ref": "TrustTokenParams"
- },
- {
- "name": "isSameSite",
- "description": "True if this resource request is considered to be the 'same site' as the\nrequest correspondinfg to the main frame.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "SignedCertificateTimestamp",
- "description": "Details of a signed certificate timestamp (SCT).",
- "type": "object",
- "properties": [
- {
- "name": "status",
- "description": "Validation status.",
- "type": "string"
- },
- {
- "name": "origin",
- "description": "Origin.",
- "type": "string"
- },
- {
- "name": "logDescription",
- "description": "Log name / description.",
- "type": "string"
- },
- {
- "name": "logId",
- "description": "Log ID.",
- "type": "string"
- },
- {
- "name": "timestamp",
- "description": "Issuance date. Unlike TimeSinceEpoch, this contains the number of\nmilliseconds since January 1, 1970, UTC, not the number of seconds.",
- "type": "number"
- },
- {
- "name": "hashAlgorithm",
- "description": "Hash algorithm.",
- "type": "string"
- },
- {
- "name": "signatureAlgorithm",
- "description": "Signature algorithm.",
- "type": "string"
- },
- {
- "name": "signatureData",
- "description": "Signature data.",
- "type": "string"
- }
- ]
- },
- {
- "id": "SecurityDetails",
- "description": "Security details about a request.",
- "type": "object",
- "properties": [
- {
- "name": "protocol",
- "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\").",
- "type": "string"
- },
- {
- "name": "keyExchange",
- "description": "Key Exchange used by the connection, or the empty string if not applicable.",
- "type": "string"
- },
- {
- "name": "keyExchangeGroup",
- "description": "(EC)DH group used by the connection, if applicable.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cipher",
- "description": "Cipher name.",
- "type": "string"
- },
- {
- "name": "mac",
- "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "certificateId",
- "description": "Certificate ID value.",
- "$ref": "Security.CertificateId"
- },
- {
- "name": "subjectName",
- "description": "Certificate subject name.",
- "type": "string"
- },
- {
- "name": "sanList",
- "description": "Subject Alternative Name (SAN) DNS names and IP addresses.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "issuer",
- "description": "Name of the issuing CA.",
- "type": "string"
- },
- {
- "name": "validFrom",
- "description": "Certificate valid from date.",
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "validTo",
- "description": "Certificate valid to (expiration) date",
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "signedCertificateTimestampList",
- "description": "List of signed certificate timestamps (SCTs).",
- "type": "array",
- "items": {
- "$ref": "SignedCertificateTimestamp"
- }
- },
- {
- "name": "certificateTransparencyCompliance",
- "description": "Whether the request complied with Certificate Transparency policy",
- "$ref": "CertificateTransparencyCompliance"
- },
- {
- "name": "serverSignatureAlgorithm",
- "description": "The signature algorithm used by the server in the TLS server signature,\nrepresented as a TLS SignatureScheme code point. Omitted if not\napplicable or not known.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "encryptedClientHello",
- "description": "Whether the connection used Encrypted ClientHello",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "CertificateTransparencyCompliance",
- "description": "Whether the request complied with Certificate Transparency policy.",
- "type": "string",
- "enum": [
- "unknown",
- "not-compliant",
- "compliant"
- ]
- },
- {
- "id": "BlockedReason",
- "description": "The reason why request was blocked.",
- "type": "string",
- "enum": [
- "other",
- "csp",
- "mixed-content",
- "origin",
- "inspector",
- "subresource-filter",
- "content-type",
- "coep-frame-resource-needs-coep-header",
- "coop-sandboxed-iframe-cannot-navigate-to-coop-page",
- "corp-not-same-origin",
- "corp-not-same-origin-after-defaulted-to-same-origin-by-coep",
- "corp-not-same-site"
- ]
- },
- {
- "id": "CorsError",
- "description": "The reason why request was blocked.",
- "type": "string",
- "enum": [
- "DisallowedByMode",
- "InvalidResponse",
- "WildcardOriginNotAllowed",
- "MissingAllowOriginHeader",
- "MultipleAllowOriginValues",
- "InvalidAllowOriginValue",
- "AllowOriginMismatch",
- "InvalidAllowCredentials",
- "CorsDisabledScheme",
- "PreflightInvalidStatus",
- "PreflightDisallowedRedirect",
- "PreflightWildcardOriginNotAllowed",
- "PreflightMissingAllowOriginHeader",
- "PreflightMultipleAllowOriginValues",
- "PreflightInvalidAllowOriginValue",
- "PreflightAllowOriginMismatch",
- "PreflightInvalidAllowCredentials",
- "PreflightMissingAllowExternal",
- "PreflightInvalidAllowExternal",
- "PreflightMissingAllowPrivateNetwork",
- "PreflightInvalidAllowPrivateNetwork",
- "InvalidAllowMethodsPreflightResponse",
- "InvalidAllowHeadersPreflightResponse",
- "MethodDisallowedByPreflightResponse",
- "HeaderDisallowedByPreflightResponse",
- "RedirectContainsCredentials",
- "InsecurePrivateNetwork",
- "InvalidPrivateNetworkAccess",
- "UnexpectedPrivateNetworkAccess",
- "NoCorsRedirectModeNotFollow"
- ]
- },
- {
- "id": "CorsErrorStatus",
- "type": "object",
- "properties": [
- {
- "name": "corsError",
- "$ref": "CorsError"
- },
- {
- "name": "failedParameter",
- "type": "string"
- }
- ]
- },
- {
- "id": "ServiceWorkerResponseSource",
- "description": "Source of serviceworker response.",
- "type": "string",
- "enum": [
- "cache-storage",
- "http-cache",
- "fallback-code",
- "network"
- ]
- },
- {
- "id": "TrustTokenParams",
- "description": "Determines what type of Trust Token operation is executed and\ndepending on the type, some additional parameters. The values\nare specified in third_party/blink/renderer/core/fetch/trust_token.idl.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "operation",
- "$ref": "TrustTokenOperationType"
- },
- {
- "name": "refreshPolicy",
- "description": "Only set for \"token-redemption\" operation and determine whether\nto request a fresh SRR or use a still valid cached SRR.",
- "type": "string",
- "enum": [
- "UseCached",
- "Refresh"
- ]
- },
- {
- "name": "issuers",
- "description": "Origins of issuers from whom to request tokens or redemption\nrecords.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "TrustTokenOperationType",
- "experimental": true,
- "type": "string",
- "enum": [
- "Issuance",
- "Redemption",
- "Signing"
- ]
- },
- {
- "id": "AlternateProtocolUsage",
- "description": "The reason why Chrome uses a specific transport protocol for HTTP semantics.",
- "experimental": true,
- "type": "string",
- "enum": [
- "alternativeJobWonWithoutRace",
- "alternativeJobWonRace",
- "mainJobWonRace",
- "mappingMissing",
- "broken",
- "dnsAlpnH3JobWonWithoutRace",
- "dnsAlpnH3JobWonRace",
- "unspecifiedReason"
- ]
- },
- {
- "id": "Response",
- "description": "HTTP response data.",
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "Response URL. This URL can be different from CachedResource.url in case of redirect.",
- "type": "string"
- },
- {
- "name": "status",
- "description": "HTTP response status code.",
- "type": "integer"
- },
- {
- "name": "statusText",
- "description": "HTTP response status text.",
- "type": "string"
- },
- {
- "name": "headers",
- "description": "HTTP response headers.",
- "$ref": "Headers"
- },
- {
- "name": "headersText",
- "description": "HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.",
- "deprecated": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "mimeType",
- "description": "Resource mimeType as determined by the browser.",
- "type": "string"
- },
- {
- "name": "requestHeaders",
- "description": "Refined HTTP request headers that were actually transmitted over the network.",
- "optional": true,
- "$ref": "Headers"
- },
- {
- "name": "requestHeadersText",
- "description": "HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.",
- "deprecated": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "connectionReused",
- "description": "Specifies whether physical connection was actually reused for this request.",
- "type": "boolean"
- },
- {
- "name": "connectionId",
- "description": "Physical connection id that was actually used for this request.",
- "type": "number"
- },
- {
- "name": "remoteIPAddress",
- "description": "Remote IP address.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "remotePort",
- "description": "Remote port.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "fromDiskCache",
- "description": "Specifies that the request was served from the disk cache.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "fromServiceWorker",
- "description": "Specifies that the request was served from the ServiceWorker.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "fromPrefetchCache",
- "description": "Specifies that the request was served from the prefetch cache.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "encodedDataLength",
- "description": "Total number of bytes received for this request so far.",
- "type": "number"
- },
- {
- "name": "timing",
- "description": "Timing information for the given request.",
- "optional": true,
- "$ref": "ResourceTiming"
- },
- {
- "name": "serviceWorkerResponseSource",
- "description": "Response source of response from ServiceWorker.",
- "optional": true,
- "$ref": "ServiceWorkerResponseSource"
- },
- {
- "name": "responseTime",
- "description": "The time at which the returned response was generated.",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "cacheStorageCacheName",
- "description": "Cache Storage Cache Name.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "protocol",
- "description": "Protocol used to fetch this request.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "alternateProtocolUsage",
- "description": "The reason why Chrome uses a specific transport protocol for HTTP semantics.",
- "experimental": true,
- "optional": true,
- "$ref": "AlternateProtocolUsage"
- },
- {
- "name": "securityState",
- "description": "Security state of the request resource.",
- "$ref": "Security.SecurityState"
- },
- {
- "name": "securityDetails",
- "description": "Security details for the request.",
- "optional": true,
- "$ref": "SecurityDetails"
- }
- ]
- },
- {
- "id": "WebSocketRequest",
- "description": "WebSocket request data.",
- "type": "object",
- "properties": [
- {
- "name": "headers",
- "description": "HTTP request headers.",
- "$ref": "Headers"
- }
- ]
- },
- {
- "id": "WebSocketResponse",
- "description": "WebSocket response data.",
- "type": "object",
- "properties": [
- {
- "name": "status",
- "description": "HTTP response status code.",
- "type": "integer"
- },
- {
- "name": "statusText",
- "description": "HTTP response status text.",
- "type": "string"
- },
- {
- "name": "headers",
- "description": "HTTP response headers.",
- "$ref": "Headers"
- },
- {
- "name": "headersText",
- "description": "HTTP response headers text.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "requestHeaders",
- "description": "HTTP request headers.",
- "optional": true,
- "$ref": "Headers"
- },
- {
- "name": "requestHeadersText",
- "description": "HTTP request headers text.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "WebSocketFrame",
- "description": "WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.",
- "type": "object",
- "properties": [
- {
- "name": "opcode",
- "description": "WebSocket message opcode.",
- "type": "number"
- },
- {
- "name": "mask",
- "description": "WebSocket message mask.",
- "type": "boolean"
- },
- {
- "name": "payloadData",
- "description": "WebSocket message payload data.\nIf the opcode is 1, this is a text message and payloadData is a UTF-8 string.\nIf the opcode isn't 1, then payloadData is a base64 encoded string representing binary data.",
- "type": "string"
- }
- ]
- },
- {
- "id": "CachedResource",
- "description": "Information about the cached resource.",
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "Resource URL. This is the url of the original network request.",
- "type": "string"
- },
- {
- "name": "type",
- "description": "Type of this resource.",
- "$ref": "ResourceType"
- },
- {
- "name": "response",
- "description": "Cached response data.",
- "optional": true,
- "$ref": "Response"
- },
- {
- "name": "bodySize",
- "description": "Cached response body size.",
- "type": "number"
- }
- ]
- },
- {
- "id": "Initiator",
- "description": "Information about the request initiator.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Type of this initiator.",
- "type": "string",
- "enum": [
- "parser",
- "script",
- "preload",
- "SignedExchange",
- "preflight",
- "other"
- ]
- },
- {
- "name": "stack",
- "description": "Initiator JavaScript stack trace, set for Script only.",
- "optional": true,
- "$ref": "Runtime.StackTrace"
- },
- {
- "name": "url",
- "description": "Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "lineNumber",
- "description": "Initiator line number, set for Parser type or for Script type (when script is importing\nmodule) (0-based).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "columnNumber",
- "description": "Initiator column number, set for Parser type or for Script type (when script is importing\nmodule) (0-based).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "requestId",
- "description": "Set if another request triggered this request (e.g. preflight).",
- "optional": true,
- "$ref": "RequestId"
- }
- ]
- },
- {
- "id": "Cookie",
- "description": "Cookie object",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Cookie name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Cookie value.",
- "type": "string"
- },
- {
- "name": "domain",
- "description": "Cookie domain.",
- "type": "string"
- },
- {
- "name": "path",
- "description": "Cookie path.",
- "type": "string"
- },
- {
- "name": "expires",
- "description": "Cookie expiration date as the number of seconds since the UNIX epoch.",
- "type": "number"
- },
- {
- "name": "size",
- "description": "Cookie size.",
- "type": "integer"
- },
- {
- "name": "httpOnly",
- "description": "True if cookie is http-only.",
- "type": "boolean"
- },
- {
- "name": "secure",
- "description": "True if cookie is secure.",
- "type": "boolean"
- },
- {
- "name": "session",
- "description": "True in case of session cookie.",
- "type": "boolean"
- },
- {
- "name": "sameSite",
- "description": "Cookie SameSite type.",
- "optional": true,
- "$ref": "CookieSameSite"
- },
- {
- "name": "priority",
- "description": "Cookie Priority",
- "experimental": true,
- "$ref": "CookiePriority"
- },
- {
- "name": "sameParty",
- "description": "True if cookie is SameParty.",
- "experimental": true,
- "type": "boolean"
- },
- {
- "name": "sourceScheme",
- "description": "Cookie source scheme type.",
- "experimental": true,
- "$ref": "CookieSourceScheme"
- },
- {
- "name": "sourcePort",
- "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
- "experimental": true,
- "type": "integer"
- },
- {
- "name": "partitionKey",
- "description": "Cookie partition key. The site of the top-level URL the browser was visiting at the start\nof the request to the endpoint that set the cookie.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "partitionKeyOpaque",
- "description": "True if cookie partition key is opaque.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "SetCookieBlockedReason",
- "description": "Types of reasons why a cookie may not be stored from a response.",
- "experimental": true,
- "type": "string",
- "enum": [
- "SecureOnly",
- "SameSiteStrict",
- "SameSiteLax",
- "SameSiteUnspecifiedTreatedAsLax",
- "SameSiteNoneInsecure",
- "UserPreferences",
- "ThirdPartyBlockedInFirstPartySet",
- "SyntaxError",
- "SchemeNotSupported",
- "OverwriteSecure",
- "InvalidDomain",
- "InvalidPrefix",
- "UnknownError",
- "SchemefulSameSiteStrict",
- "SchemefulSameSiteLax",
- "SchemefulSameSiteUnspecifiedTreatedAsLax",
- "SamePartyFromCrossPartyContext",
- "SamePartyConflictsWithOtherAttributes",
- "NameValuePairExceedsMaxSize"
- ]
- },
- {
- "id": "CookieBlockedReason",
- "description": "Types of reasons why a cookie may not be sent with a request.",
- "experimental": true,
- "type": "string",
- "enum": [
- "SecureOnly",
- "NotOnPath",
- "DomainMismatch",
- "SameSiteStrict",
- "SameSiteLax",
- "SameSiteUnspecifiedTreatedAsLax",
- "SameSiteNoneInsecure",
- "UserPreferences",
- "ThirdPartyBlockedInFirstPartySet",
- "UnknownError",
- "SchemefulSameSiteStrict",
- "SchemefulSameSiteLax",
- "SchemefulSameSiteUnspecifiedTreatedAsLax",
- "SamePartyFromCrossPartyContext",
- "NameValuePairExceedsMaxSize"
- ]
- },
- {
- "id": "BlockedSetCookieWithReason",
- "description": "A cookie which was not stored from a response with the corresponding reason.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "blockedReasons",
- "description": "The reason(s) this cookie was blocked.",
- "type": "array",
- "items": {
- "$ref": "SetCookieBlockedReason"
- }
- },
- {
- "name": "cookieLine",
- "description": "The string representing this individual cookie as it would appear in the header.\nThis is not the entire \"cookie\" or \"set-cookie\" header which could have multiple cookies.",
- "type": "string"
- },
- {
- "name": "cookie",
- "description": "The cookie object which represents the cookie which was not stored. It is optional because\nsometimes complete cookie information is not available, such as in the case of parsing\nerrors.",
- "optional": true,
- "$ref": "Cookie"
- }
- ]
- },
- {
- "id": "BlockedCookieWithReason",
- "description": "A cookie with was not sent with a request with the corresponding reason.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "blockedReasons",
- "description": "The reason(s) the cookie was blocked.",
- "type": "array",
- "items": {
- "$ref": "CookieBlockedReason"
- }
- },
- {
- "name": "cookie",
- "description": "The cookie object representing the cookie which was not sent.",
- "$ref": "Cookie"
- }
- ]
- },
- {
- "id": "CookieParam",
- "description": "Cookie parameter object",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Cookie name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Cookie value.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain, path, source port, and source scheme values of the created cookie.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "domain",
- "description": "Cookie domain.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "path",
- "description": "Cookie path.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "secure",
- "description": "True if cookie is secure.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "httpOnly",
- "description": "True if cookie is http-only.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "sameSite",
- "description": "Cookie SameSite type.",
- "optional": true,
- "$ref": "CookieSameSite"
- },
- {
- "name": "expires",
- "description": "Cookie expiration date, session cookie if not set",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "priority",
- "description": "Cookie Priority.",
- "experimental": true,
- "optional": true,
- "$ref": "CookiePriority"
- },
- {
- "name": "sameParty",
- "description": "True if cookie is SameParty.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "sourceScheme",
- "description": "Cookie source scheme type.",
- "experimental": true,
- "optional": true,
- "$ref": "CookieSourceScheme"
- },
- {
- "name": "sourcePort",
- "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "partitionKey",
- "description": "Cookie partition key. The site of the top-level URL the browser was visiting at the start\nof the request to the endpoint that set the cookie.\nIf not set, the cookie will be set as not partitioned.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "AuthChallenge",
- "description": "Authorization challenge for HTTP status code 401 or 407.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "source",
- "description": "Source of the authentication challenge.",
- "optional": true,
- "type": "string",
- "enum": [
- "Server",
- "Proxy"
- ]
- },
- {
- "name": "origin",
- "description": "Origin of the challenger.",
- "type": "string"
- },
- {
- "name": "scheme",
- "description": "The authentication scheme used, such as basic or digest",
- "type": "string"
- },
- {
- "name": "realm",
- "description": "The realm of the challenge. May be empty.",
- "type": "string"
- }
- ]
- },
- {
- "id": "AuthChallengeResponse",
- "description": "Response to an AuthChallenge.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "response",
- "description": "The decision on what to do in response to the authorization challenge. Default means\ndeferring to the default behavior of the net stack, which will likely either the Cancel\nauthentication or display a popup dialog box.",
- "type": "string",
- "enum": [
- "Default",
- "CancelAuth",
- "ProvideCredentials"
- ]
- },
- {
- "name": "username",
- "description": "The username to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "password",
- "description": "The password to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "InterceptionStage",
- "description": "Stages of the interception to begin intercepting. Request will intercept before the request is\nsent. Response will intercept after the response is received.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Request",
- "HeadersReceived"
- ]
- },
- {
- "id": "RequestPattern",
- "description": "Request pattern for interception.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "urlPattern",
- "description": "Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is\nbackslash. Omitting is equivalent to `\"*\"`.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "resourceType",
- "description": "If set, only requests for matching resource types will be intercepted.",
- "optional": true,
- "$ref": "ResourceType"
- },
- {
- "name": "interceptionStage",
- "description": "Stage at which to begin intercepting requests. Default is Request.",
- "optional": true,
- "$ref": "InterceptionStage"
- }
- ]
- },
- {
- "id": "SignedExchangeSignature",
- "description": "Information about a signed exchange signature.\nhttps://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "label",
- "description": "Signed exchange signature label.",
- "type": "string"
- },
- {
- "name": "signature",
- "description": "The hex string of signed exchange signature.",
- "type": "string"
- },
- {
- "name": "integrity",
- "description": "Signed exchange signature integrity.",
- "type": "string"
- },
- {
- "name": "certUrl",
- "description": "Signed exchange signature cert Url.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "certSha256",
- "description": "The hex string of signed exchange signature cert sha256.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "validityUrl",
- "description": "Signed exchange signature validity Url.",
- "type": "string"
- },
- {
- "name": "date",
- "description": "Signed exchange signature date.",
- "type": "integer"
- },
- {
- "name": "expires",
- "description": "Signed exchange signature expires.",
- "type": "integer"
- },
- {
- "name": "certificates",
- "description": "The encoded certificates.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "SignedExchangeHeader",
- "description": "Information about a signed exchange header.\nhttps://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "requestUrl",
- "description": "Signed exchange request URL.",
- "type": "string"
- },
- {
- "name": "responseCode",
- "description": "Signed exchange response code.",
- "type": "integer"
- },
- {
- "name": "responseHeaders",
- "description": "Signed exchange response headers.",
- "$ref": "Headers"
- },
- {
- "name": "signatures",
- "description": "Signed exchange response signature.",
- "type": "array",
- "items": {
- "$ref": "SignedExchangeSignature"
- }
- },
- {
- "name": "headerIntegrity",
- "description": "Signed exchange header integrity hash in the form of \"sha256-<base64-hash-value>\".",
- "type": "string"
- }
- ]
- },
- {
- "id": "SignedExchangeErrorField",
- "description": "Field type for a signed exchange related error.",
- "experimental": true,
- "type": "string",
- "enum": [
- "signatureSig",
- "signatureIntegrity",
- "signatureCertUrl",
- "signatureCertSha256",
- "signatureValidityUrl",
- "signatureTimestamps"
- ]
- },
- {
- "id": "SignedExchangeError",
- "description": "Information about a signed exchange response.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "message",
- "description": "Error message.",
- "type": "string"
- },
- {
- "name": "signatureIndex",
- "description": "The index of the signature which caused the error.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "errorField",
- "description": "The field which caused the error.",
- "optional": true,
- "$ref": "SignedExchangeErrorField"
- }
- ]
- },
- {
- "id": "SignedExchangeInfo",
- "description": "Information about a signed exchange response.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "outerResponse",
- "description": "The outer response of signed HTTP exchange which was received from network.",
- "$ref": "Response"
- },
- {
- "name": "header",
- "description": "Information about the signed exchange header.",
- "optional": true,
- "$ref": "SignedExchangeHeader"
- },
- {
- "name": "securityDetails",
- "description": "Security details for the signed exchange header.",
- "optional": true,
- "$ref": "SecurityDetails"
- },
- {
- "name": "errors",
- "description": "Errors occurred while handling the signed exchagne.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "SignedExchangeError"
- }
- }
- ]
- },
- {
- "id": "ContentEncoding",
- "description": "List of content encodings supported by the backend.",
- "experimental": true,
- "type": "string",
- "enum": [
- "deflate",
- "gzip",
- "br"
- ]
- },
- {
- "id": "PrivateNetworkRequestPolicy",
- "experimental": true,
- "type": "string",
- "enum": [
- "Allow",
- "BlockFromInsecureToMorePrivate",
- "WarnFromInsecureToMorePrivate",
- "PreflightBlock",
- "PreflightWarn"
- ]
- },
- {
- "id": "IPAddressSpace",
- "experimental": true,
- "type": "string",
- "enum": [
- "Local",
- "Private",
- "Public",
- "Unknown"
- ]
- },
- {
- "id": "ConnectTiming",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "requestTime",
- "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in\nmilliseconds relatively to this requestTime. Matches ResourceTiming's requestTime for\nthe same request (but not for redirected requests).",
- "type": "number"
- }
- ]
- },
- {
- "id": "ClientSecurityState",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "initiatorIsSecureContext",
- "type": "boolean"
- },
- {
- "name": "initiatorIPAddressSpace",
- "$ref": "IPAddressSpace"
- },
- {
- "name": "privateNetworkRequestPolicy",
- "$ref": "PrivateNetworkRequestPolicy"
- }
- ]
- },
- {
- "id": "CrossOriginOpenerPolicyValue",
- "experimental": true,
- "type": "string",
- "enum": [
- "SameOrigin",
- "SameOriginAllowPopups",
- "RestrictProperties",
- "UnsafeNone",
- "SameOriginPlusCoep",
- "RestrictPropertiesPlusCoep"
- ]
- },
- {
- "id": "CrossOriginOpenerPolicyStatus",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "value",
- "$ref": "CrossOriginOpenerPolicyValue"
- },
- {
- "name": "reportOnlyValue",
- "$ref": "CrossOriginOpenerPolicyValue"
- },
- {
- "name": "reportingEndpoint",
- "optional": true,
- "type": "string"
- },
- {
- "name": "reportOnlyReportingEndpoint",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "CrossOriginEmbedderPolicyValue",
- "experimental": true,
- "type": "string",
- "enum": [
- "None",
- "Credentialless",
- "RequireCorp"
- ]
- },
- {
- "id": "CrossOriginEmbedderPolicyStatus",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "value",
- "$ref": "CrossOriginEmbedderPolicyValue"
- },
- {
- "name": "reportOnlyValue",
- "$ref": "CrossOriginEmbedderPolicyValue"
- },
- {
- "name": "reportingEndpoint",
- "optional": true,
- "type": "string"
- },
- {
- "name": "reportOnlyReportingEndpoint",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "SecurityIsolationStatus",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "coop",
- "optional": true,
- "$ref": "CrossOriginOpenerPolicyStatus"
- },
- {
- "name": "coep",
- "optional": true,
- "$ref": "CrossOriginEmbedderPolicyStatus"
- }
- ]
- },
- {
- "id": "ReportStatus",
- "description": "The status of a Reporting API report.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Queued",
- "Pending",
- "MarkedForRemoval",
- "Success"
- ]
- },
- {
- "id": "ReportId",
- "experimental": true,
- "type": "string"
- },
- {
- "id": "ReportingApiReport",
- "description": "An object representing a report generated by the Reporting API.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "id",
- "$ref": "ReportId"
- },
- {
- "name": "initiatorUrl",
- "description": "The URL of the document that triggered the report.",
- "type": "string"
- },
- {
- "name": "destination",
- "description": "The name of the endpoint group that should be used to deliver the report.",
- "type": "string"
- },
- {
- "name": "type",
- "description": "The type of the report (specifies the set of data that is contained in the report body).",
- "type": "string"
- },
- {
- "name": "timestamp",
- "description": "When the report was generated.",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "depth",
- "description": "How many uploads deep the related request was.",
- "type": "integer"
- },
- {
- "name": "completedAttempts",
- "description": "The number of delivery attempts made so far, not including an active attempt.",
- "type": "integer"
- },
- {
- "name": "body",
- "type": "object"
- },
- {
- "name": "status",
- "$ref": "ReportStatus"
- }
- ]
- },
- {
- "id": "ReportingApiEndpoint",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "The URL of the endpoint to which reports may be delivered.",
- "type": "string"
- },
- {
- "name": "groupName",
- "description": "Name of the endpoint group.",
- "type": "string"
- }
- ]
- },
- {
- "id": "LoadNetworkResourcePageResult",
- "description": "An object providing the result of a network resource load.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "success",
- "type": "boolean"
- },
- {
- "name": "netError",
- "description": "Optional values used for error reporting.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "netErrorName",
- "optional": true,
- "type": "string"
- },
- {
- "name": "httpStatusCode",
- "optional": true,
- "type": "number"
- },
- {
- "name": "stream",
- "description": "If successful, one of the following two fields holds the result.",
- "optional": true,
- "$ref": "IO.StreamHandle"
- },
- {
- "name": "headers",
- "description": "Response headers.",
- "optional": true,
- "$ref": "Network.Headers"
- }
- ]
- },
- {
- "id": "LoadNetworkResourceOptions",
- "description": "An options object that may be extended later to better support CORS,\nCORB and streaming.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "disableCache",
- "type": "boolean"
- },
- {
- "name": "includeCredentials",
- "type": "boolean"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "setAcceptedEncodings",
- "description": "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.",
- "experimental": true,
- "parameters": [
- {
- "name": "encodings",
- "description": "List of accepted content encodings.",
- "type": "array",
- "items": {
- "$ref": "ContentEncoding"
- }
- }
- ]
- },
- {
- "name": "clearAcceptedEncodingsOverride",
- "description": "Clears accepted encodings set by setAcceptedEncodings",
- "experimental": true
- },
- {
- "name": "canClearBrowserCache",
- "description": "Tells whether clearing browser cache is supported.",
- "deprecated": true,
- "returns": [
- {
- "name": "result",
- "description": "True if browser cache can be cleared.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "canClearBrowserCookies",
- "description": "Tells whether clearing browser cookies is supported.",
- "deprecated": true,
- "returns": [
- {
- "name": "result",
- "description": "True if browser cookies can be cleared.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "canEmulateNetworkConditions",
- "description": "Tells whether emulation of network conditions is supported.",
- "deprecated": true,
- "returns": [
- {
- "name": "result",
- "description": "True if emulation of network conditions is supported.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "clearBrowserCache",
- "description": "Clears browser cache."
- },
- {
- "name": "clearBrowserCookies",
- "description": "Clears browser cookies."
- },
- {
- "name": "continueInterceptedRequest",
- "description": "Response to Network.requestIntercepted which either modifies the request to continue with any\nmodifications, or blocks it, or completes it with the provided response bytes. If a network\nfetch occurs as a result which encounters a redirect an additional Network.requestIntercepted\nevent will be sent with the same InterceptionId.\nDeprecated, use Fetch.continueRequest, Fetch.fulfillRequest and Fetch.failRequest instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "interceptionId",
- "$ref": "InterceptionId"
- },
- {
- "name": "errorReason",
- "description": "If set this causes the request to fail with the given reason. Passing `Aborted` for requests\nmarked with `isNavigationRequest` also cancels the navigation. Must not be set in response\nto an authChallenge.",
- "optional": true,
- "$ref": "ErrorReason"
- },
- {
- "name": "rawResponse",
- "description": "If set the requests completes using with the provided base64 encoded raw response, including\nHTTP status line and headers etc... Must not be set in response to an authChallenge. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "url",
- "description": "If set the request url will be modified in a way that's not observable by page. Must not be\nset in response to an authChallenge.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "method",
- "description": "If set this allows the request method to be overridden. Must not be set in response to an\nauthChallenge.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "postData",
- "description": "If set this allows postData to be set. Must not be set in response to an authChallenge.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "headers",
- "description": "If set this allows the request headers to be changed. Must not be set in response to an\nauthChallenge.",
- "optional": true,
- "$ref": "Headers"
- },
- {
- "name": "authChallengeResponse",
- "description": "Response to a requestIntercepted with an authChallenge. Must not be set otherwise.",
- "optional": true,
- "$ref": "AuthChallengeResponse"
- }
- ]
- },
- {
- "name": "deleteCookies",
- "description": "Deletes browser cookies with matching name and url or domain/path pair.",
- "parameters": [
- {
- "name": "name",
- "description": "Name of the cookies to remove.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "If specified, deletes all the cookies with the given name where domain and path match\nprovided URL.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "domain",
- "description": "If specified, deletes only cookies with the exact domain.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "path",
- "description": "If specified, deletes only cookies with the exact path.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables network tracking, prevents network events from being sent to the client."
- },
- {
- "name": "emulateNetworkConditions",
- "description": "Activates emulation of network conditions.",
- "parameters": [
- {
- "name": "offline",
- "description": "True to emulate internet disconnection.",
- "type": "boolean"
- },
- {
- "name": "latency",
- "description": "Minimum latency from request sent to response headers received (ms).",
- "type": "number"
- },
- {
- "name": "downloadThroughput",
- "description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.",
- "type": "number"
- },
- {
- "name": "uploadThroughput",
- "description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.",
- "type": "number"
- },
- {
- "name": "connectionType",
- "description": "Connection type if known.",
- "optional": true,
- "$ref": "ConnectionType"
- }
- ]
- },
- {
- "name": "enable",
- "description": "Enables network tracking, network events will now be delivered to the client.",
- "parameters": [
- {
- "name": "maxTotalBufferSize",
- "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "maxResourceBufferSize",
- "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "maxPostDataSize",
- "description": "Longest post body size (in bytes) that would be included in requestWillBeSent notification",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "getAllCookies",
- "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie\ninformation in the `cookies` field.\nDeprecated. Use Storage.getCookies instead.",
- "deprecated": true,
- "returns": [
- {
- "name": "cookies",
- "description": "Array of cookie objects.",
- "type": "array",
- "items": {
- "$ref": "Cookie"
- }
- }
- ]
- },
- {
- "name": "getCertificate",
- "description": "Returns the DER-encoded certificate.",
- "experimental": true,
- "parameters": [
- {
- "name": "origin",
- "description": "Origin to get certificate for.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "tableNames",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "getCookies",
- "description": "Returns all browser cookies for the current URL. Depending on the backend support, will return\ndetailed cookie information in the `cookies` field.",
- "parameters": [
- {
- "name": "urls",
- "description": "The list of URLs for which applicable cookies will be fetched.\nIf not specified, it's assumed to be set to the list containing\nthe URLs of the page and all of its subframes.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ],
- "returns": [
- {
- "name": "cookies",
- "description": "Array of cookie objects.",
- "type": "array",
- "items": {
- "$ref": "Cookie"
- }
- }
- ]
- },
- {
- "name": "getResponseBody",
- "description": "Returns content served for the given request.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier of the network request to get content for.",
- "$ref": "RequestId"
- }
- ],
- "returns": [
- {
- "name": "body",
- "description": "Response body.",
- "type": "string"
- },
- {
- "name": "base64Encoded",
- "description": "True, if content was sent as base64.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getRequestPostData",
- "description": "Returns post data sent with the request. Returns an error when no data was sent with the request.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier of the network request to get content for.",
- "$ref": "RequestId"
- }
- ],
- "returns": [
- {
- "name": "postData",
- "description": "Request body string, omitting files from multipart requests",
- "type": "string"
- }
- ]
- },
- {
- "name": "getResponseBodyForInterception",
- "description": "Returns content served for the given currently intercepted request.",
- "experimental": true,
- "parameters": [
- {
- "name": "interceptionId",
- "description": "Identifier for the intercepted request to get body for.",
- "$ref": "InterceptionId"
- }
- ],
- "returns": [
- {
- "name": "body",
- "description": "Response body.",
- "type": "string"
- },
- {
- "name": "base64Encoded",
- "description": "True, if content was sent as base64.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "takeResponseBodyForInterceptionAsStream",
- "description": "Returns a handle to the stream representing the response body. Note that after this command,\nthe intercepted request can't be continued as is -- you either need to cancel it or to provide\nthe response body. The stream only supports sequential read, IO.read will fail if the position\nis specified.",
- "experimental": true,
- "parameters": [
- {
- "name": "interceptionId",
- "$ref": "InterceptionId"
- }
- ],
- "returns": [
- {
- "name": "stream",
- "$ref": "IO.StreamHandle"
- }
- ]
- },
- {
- "name": "replayXHR",
- "description": "This method sends a new XMLHttpRequest which is identical to the original one. The following\nparameters should be identical: method, url, async, request body, extra headers, withCredentials\nattribute, user, password.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier of XHR to replay.",
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "searchInResponseBody",
- "description": "Searches for given string in response content.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier of the network response to search.",
- "$ref": "RequestId"
- },
- {
- "name": "query",
- "description": "String to search for.",
- "type": "string"
- },
- {
- "name": "caseSensitive",
- "description": "If true, search is case sensitive.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isRegex",
- "description": "If true, treats string parameter as regex.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "List of search matches.",
- "type": "array",
- "items": {
- "$ref": "Debugger.SearchMatch"
- }
- }
- ]
- },
- {
- "name": "setBlockedURLs",
- "description": "Blocks URLs from loading.",
- "experimental": true,
- "parameters": [
- {
- "name": "urls",
- "description": "URL patterns to block. Wildcards ('*') are allowed.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "setBypassServiceWorker",
- "description": "Toggles ignoring of service worker for each request.",
- "experimental": true,
- "parameters": [
- {
- "name": "bypass",
- "description": "Bypass service worker and load from network.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setCacheDisabled",
- "description": "Toggles ignoring cache for each request. If `true`, cache will not be used.",
- "parameters": [
- {
- "name": "cacheDisabled",
- "description": "Cache disabled state.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setCookie",
- "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.",
- "parameters": [
- {
- "name": "name",
- "description": "Cookie name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Cookie value.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "The request-URI to associate with the setting of the cookie. This value can affect the\ndefault domain, path, source port, and source scheme values of the created cookie.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "domain",
- "description": "Cookie domain.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "path",
- "description": "Cookie path.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "secure",
- "description": "True if cookie is secure.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "httpOnly",
- "description": "True if cookie is http-only.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "sameSite",
- "description": "Cookie SameSite type.",
- "optional": true,
- "$ref": "CookieSameSite"
- },
- {
- "name": "expires",
- "description": "Cookie expiration date, session cookie if not set",
- "optional": true,
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "priority",
- "description": "Cookie Priority type.",
- "experimental": true,
- "optional": true,
- "$ref": "CookiePriority"
- },
- {
- "name": "sameParty",
- "description": "True if cookie is SameParty.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "sourceScheme",
- "description": "Cookie source scheme type.",
- "experimental": true,
- "optional": true,
- "$ref": "CookieSourceScheme"
- },
- {
- "name": "sourcePort",
- "description": "Cookie source port. Valid values are {-1, [1, 65535]}, -1 indicates an unspecified port.\nAn unspecified port value allows protocol clients to emulate legacy cookie scope for the port.\nThis is a temporary ability and it will be removed in the future.",
- "experimental": true,
- "optional": true,
- "type": "integer"
- },
- {
- "name": "partitionKey",
- "description": "Cookie partition key. The site of the top-level URL the browser was visiting at the start\nof the request to the endpoint that set the cookie.\nIf not set, the cookie will be set as not partitioned.",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "success",
- "description": "Always set to true. If an error occurs, the response indicates protocol error.",
- "deprecated": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setCookies",
- "description": "Sets given cookies.",
- "parameters": [
- {
- "name": "cookies",
- "description": "Cookies to be set.",
- "type": "array",
- "items": {
- "$ref": "CookieParam"
- }
- }
- ]
- },
- {
- "name": "setExtraHTTPHeaders",
- "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
- "parameters": [
- {
- "name": "headers",
- "description": "Map with extra HTTP headers.",
- "$ref": "Headers"
- }
- ]
- },
- {
- "name": "setAttachDebugStack",
- "description": "Specifies whether to attach a page script stack id in requests",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether to attach a page script stack for debugging purpose.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setRequestInterception",
- "description": "Sets the requests to intercept that match the provided patterns and optionally resource types.\nDeprecated, please use Fetch.enable instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "patterns",
- "description": "Requests matching any of these patterns will be forwarded and wait for the corresponding\ncontinueInterceptedRequest call.",
- "type": "array",
- "items": {
- "$ref": "RequestPattern"
- }
- }
- ]
- },
- {
- "name": "setUserAgentOverride",
- "description": "Allows overriding user agent with the given string.",
- "redirect": "Emulation",
- "parameters": [
- {
- "name": "userAgent",
- "description": "User agent to use.",
- "type": "string"
- },
- {
- "name": "acceptLanguage",
- "description": "Browser langugage to emulate.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "platform",
- "description": "The platform navigator.platform should return.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "userAgentMetadata",
- "description": "To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData",
- "experimental": true,
- "optional": true,
- "$ref": "Emulation.UserAgentMetadata"
- }
- ]
- },
- {
- "name": "getSecurityIsolationStatus",
- "description": "Returns information about the COEP/COOP isolation status.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "If no frameId is provided, the status of the target is provided.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "status",
- "$ref": "SecurityIsolationStatus"
- }
- ]
- },
- {
- "name": "enableReportingApi",
- "description": "Enables tracking for the Reporting API, events generated by the Reporting API will now be delivered to the client.\nEnabling triggers 'reportingApiReportAdded' for all existing reports.",
- "experimental": true,
- "parameters": [
- {
- "name": "enable",
- "description": "Whether to enable or disable events for the Reporting API",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "loadNetworkResource",
- "description": "Fetches the resource and returns the content.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Frame id to get the resource for. Mandatory for frame targets, and\nshould be omitted for worker targets.",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "url",
- "description": "URL of the resource to get content for.",
- "type": "string"
- },
- {
- "name": "options",
- "description": "Options for the request.",
- "$ref": "LoadNetworkResourceOptions"
- }
- ],
- "returns": [
- {
- "name": "resource",
- "$ref": "LoadNetworkResourcePageResult"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "dataReceived",
- "description": "Fired when data chunk was received over the network.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "dataLength",
- "description": "Data chunk length.",
- "type": "integer"
- },
- {
- "name": "encodedDataLength",
- "description": "Actual bytes received (might be less than dataLength for compressed encodings).",
- "type": "integer"
- }
- ]
- },
- {
- "name": "eventSourceMessageReceived",
- "description": "Fired when EventSource message is received.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "eventName",
- "description": "Message type.",
- "type": "string"
- },
- {
- "name": "eventId",
- "description": "Message identifier.",
- "type": "string"
- },
- {
- "name": "data",
- "description": "Message content.",
- "type": "string"
- }
- ]
- },
- {
- "name": "loadingFailed",
- "description": "Fired when HTTP request has failed to load.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "type",
- "description": "Resource type.",
- "$ref": "ResourceType"
- },
- {
- "name": "errorText",
- "description": "User friendly error message.",
- "type": "string"
- },
- {
- "name": "canceled",
- "description": "True if loading was canceled.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "blockedReason",
- "description": "The reason why loading was blocked, if any.",
- "optional": true,
- "$ref": "BlockedReason"
- },
- {
- "name": "corsErrorStatus",
- "description": "The reason why loading was blocked by CORS, if any.",
- "optional": true,
- "$ref": "CorsErrorStatus"
- }
- ]
- },
- {
- "name": "loadingFinished",
- "description": "Fired when HTTP request has finished loading.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "encodedDataLength",
- "description": "Total number of bytes received for this request.",
- "type": "number"
- },
- {
- "name": "shouldReportCorbBlocking",
- "description": "Set when 1) response was blocked by Cross-Origin Read Blocking and also\n2) this needs to be reported to the DevTools console.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "requestIntercepted",
- "description": "Details of an intercepted HTTP request, which must be either allowed, blocked, modified or\nmocked.\nDeprecated, use Fetch.requestPaused instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "interceptionId",
- "description": "Each request the page makes will have a unique id, however if any redirects are encountered\nwhile processing that fetch, they will be reported with the same id as the original fetch.\nLikewise if HTTP authentication is needed then the same fetch id will be used.",
- "$ref": "InterceptionId"
- },
- {
- "name": "request",
- "$ref": "Request"
- },
- {
- "name": "frameId",
- "description": "The id of the frame that initiated the request.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "resourceType",
- "description": "How the requested resource will be used.",
- "$ref": "ResourceType"
- },
- {
- "name": "isNavigationRequest",
- "description": "Whether this is a navigation request, which can abort the navigation completely.",
- "type": "boolean"
- },
- {
- "name": "isDownload",
- "description": "Set if the request is a navigation that will result in a download.\nOnly present after response is received from the server (i.e. HeadersReceived stage).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "redirectUrl",
- "description": "Redirect location, only sent if a redirect was intercepted.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "authChallenge",
- "description": "Details of the Authorization Challenge encountered. If this is set then\ncontinueInterceptedRequest must contain an authChallengeResponse.",
- "optional": true,
- "$ref": "AuthChallenge"
- },
- {
- "name": "responseErrorReason",
- "description": "Response error if intercepted at response stage or if redirect occurred while intercepting\nrequest.",
- "optional": true,
- "$ref": "ErrorReason"
- },
- {
- "name": "responseStatusCode",
- "description": "Response code if intercepted at response stage or if redirect occurred while intercepting\nrequest or auth retry occurred.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "responseHeaders",
- "description": "Response headers if intercepted at the response stage or if redirect occurred while\nintercepting request or auth retry occurred.",
- "optional": true,
- "$ref": "Headers"
- },
- {
- "name": "requestId",
- "description": "If the intercepted request had a corresponding requestWillBeSent event fired for it, then\nthis requestId will be the same as the requestId present in the requestWillBeSent event.",
- "optional": true,
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "requestServedFromCache",
- "description": "Fired if request ended up loading from cache.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "requestWillBeSent",
- "description": "Fired when page is about to send HTTP request.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "loaderId",
- "description": "Loader identifier. Empty string if the request is fetched from worker.",
- "$ref": "LoaderId"
- },
- {
- "name": "documentURL",
- "description": "URL of the document this request is loaded for.",
- "type": "string"
- },
- {
- "name": "request",
- "description": "Request data.",
- "$ref": "Request"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "wallTime",
- "description": "Timestamp.",
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "initiator",
- "description": "Request initiator.",
- "$ref": "Initiator"
- },
- {
- "name": "redirectHasExtraInfo",
- "description": "In the case that redirectResponse is populated, this flag indicates whether\nrequestWillBeSentExtraInfo and responseReceivedExtraInfo events will be or were emitted\nfor the request which was just redirected.",
- "experimental": true,
- "type": "boolean"
- },
- {
- "name": "redirectResponse",
- "description": "Redirect response data.",
- "optional": true,
- "$ref": "Response"
- },
- {
- "name": "type",
- "description": "Type of this resource.",
- "optional": true,
- "$ref": "ResourceType"
- },
- {
- "name": "frameId",
- "description": "Frame identifier.",
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "hasUserGesture",
- "description": "Whether the request is initiated by a user gesture. Defaults to false.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "resourceChangedPriority",
- "description": "Fired when resource loading priority is changed",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "newPriority",
- "description": "New priority",
- "$ref": "ResourcePriority"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- }
- ]
- },
- {
- "name": "signedExchangeReceived",
- "description": "Fired when a signed exchange was received over the network",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "info",
- "description": "Information about the signed exchange response.",
- "$ref": "SignedExchangeInfo"
- }
- ]
- },
- {
- "name": "responseReceived",
- "description": "Fired when HTTP response is available.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "loaderId",
- "description": "Loader identifier. Empty string if the request is fetched from worker.",
- "$ref": "LoaderId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "type",
- "description": "Resource type.",
- "$ref": "ResourceType"
- },
- {
- "name": "response",
- "description": "Response data.",
- "$ref": "Response"
- },
- {
- "name": "hasExtraInfo",
- "description": "Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be\nor were emitted for this request.",
- "experimental": true,
- "type": "boolean"
- },
- {
- "name": "frameId",
- "description": "Frame identifier.",
- "optional": true,
- "$ref": "Page.FrameId"
- }
- ]
- },
- {
- "name": "webSocketClosed",
- "description": "Fired when WebSocket is closed.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- }
- ]
- },
- {
- "name": "webSocketCreated",
- "description": "Fired upon WebSocket creation.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "url",
- "description": "WebSocket request URL.",
- "type": "string"
- },
- {
- "name": "initiator",
- "description": "Request initiator.",
- "optional": true,
- "$ref": "Initiator"
- }
- ]
- },
- {
- "name": "webSocketFrameError",
- "description": "Fired when WebSocket message error occurs.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "errorMessage",
- "description": "WebSocket error message.",
- "type": "string"
- }
- ]
- },
- {
- "name": "webSocketFrameReceived",
- "description": "Fired when WebSocket message is received.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "response",
- "description": "WebSocket response data.",
- "$ref": "WebSocketFrame"
- }
- ]
- },
- {
- "name": "webSocketFrameSent",
- "description": "Fired when WebSocket message is sent.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "response",
- "description": "WebSocket response data.",
- "$ref": "WebSocketFrame"
- }
- ]
- },
- {
- "name": "webSocketHandshakeResponseReceived",
- "description": "Fired when WebSocket handshake response becomes available.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "response",
- "description": "WebSocket response data.",
- "$ref": "WebSocketResponse"
- }
- ]
- },
- {
- "name": "webSocketWillSendHandshakeRequest",
- "description": "Fired when WebSocket is about to initiate handshake.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "wallTime",
- "description": "UTC Timestamp.",
- "$ref": "TimeSinceEpoch"
- },
- {
- "name": "request",
- "description": "WebSocket request data.",
- "$ref": "WebSocketRequest"
- }
- ]
- },
- {
- "name": "webTransportCreated",
- "description": "Fired upon WebTransport creation.",
- "parameters": [
- {
- "name": "transportId",
- "description": "WebTransport identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "url",
- "description": "WebTransport request URL.",
- "type": "string"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- },
- {
- "name": "initiator",
- "description": "Request initiator.",
- "optional": true,
- "$ref": "Initiator"
- }
- ]
- },
- {
- "name": "webTransportConnectionEstablished",
- "description": "Fired when WebTransport handshake is finished.",
- "parameters": [
- {
- "name": "transportId",
- "description": "WebTransport identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- }
- ]
- },
- {
- "name": "webTransportClosed",
- "description": "Fired when WebTransport is disposed.",
- "parameters": [
- {
- "name": "transportId",
- "description": "WebTransport identifier.",
- "$ref": "RequestId"
- },
- {
- "name": "timestamp",
- "description": "Timestamp.",
- "$ref": "MonotonicTime"
- }
- ]
- },
- {
- "name": "requestWillBeSentExtraInfo",
- "description": "Fired when additional information about a requestWillBeSent event is available from the\nnetwork stack. Not every requestWillBeSent event will have an additional\nrequestWillBeSentExtraInfo fired for it, and there is no guarantee whether requestWillBeSent\nor requestWillBeSentExtraInfo will be fired first for the same request.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier. Used to match this information to an existing requestWillBeSent event.",
- "$ref": "RequestId"
- },
- {
- "name": "associatedCookies",
- "description": "A list of cookies potentially associated to the requested URL. This includes both cookies sent with\nthe request and the ones not sent; the latter are distinguished by having blockedReason field set.",
- "type": "array",
- "items": {
- "$ref": "BlockedCookieWithReason"
- }
- },
- {
- "name": "headers",
- "description": "Raw request headers as they will be sent over the wire.",
- "$ref": "Headers"
- },
- {
- "name": "connectTiming",
- "description": "Connection timing information for the request.",
- "experimental": true,
- "$ref": "ConnectTiming"
- },
- {
- "name": "clientSecurityState",
- "description": "The client security state set for the request.",
- "optional": true,
- "$ref": "ClientSecurityState"
- },
- {
- "name": "siteHasCookieInOtherPartition",
- "description": "Whether the site has partitioned cookies stored in a partition different than the current one.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "responseReceivedExtraInfo",
- "description": "Fired when additional information about a responseReceived event is available from the network\nstack. Not every responseReceived event will have an additional responseReceivedExtraInfo for\nit, and responseReceivedExtraInfo may be fired before or after responseReceived.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier. Used to match this information to another responseReceived event.",
- "$ref": "RequestId"
- },
- {
- "name": "blockedCookies",
- "description": "A list of cookies which were not stored from the response along with the corresponding\nreasons for blocking. The cookies here may not be valid due to syntax errors, which\nare represented by the invalid cookie line string instead of a proper cookie.",
- "type": "array",
- "items": {
- "$ref": "BlockedSetCookieWithReason"
- }
- },
- {
- "name": "headers",
- "description": "Raw response headers as they were received over the wire.",
- "$ref": "Headers"
- },
- {
- "name": "resourceIPAddressSpace",
- "description": "The IP address space of the resource. The address space can only be determined once the transport\nestablished the connection, so we can't send it in `requestWillBeSentExtraInfo`.",
- "$ref": "IPAddressSpace"
- },
- {
- "name": "statusCode",
- "description": "The status code of the response. This is useful in cases the request failed and no responseReceived\nevent is triggered, which is the case for, e.g., CORS errors. This is also the correct status code\nfor cached requests, where the status in responseReceived is a 200 and this will be 304.",
- "type": "integer"
- },
- {
- "name": "headersText",
- "description": "Raw response header text as it was received over the wire. The raw text may not always be\navailable, such as in the case of HTTP/2 or QUIC.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cookiePartitionKey",
- "description": "The cookie partition key that will be used to store partitioned cookies set in this response.\nOnly sent when partitioned cookies are enabled.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cookiePartitionKeyOpaque",
- "description": "True if partitioned cookies are enabled, but the partition key is not serializeable to string.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "trustTokenOperationDone",
- "description": "Fired exactly once for each Trust Token operation. Depending on\nthe type of the operation and whether the operation succeeded or\nfailed, the event is fired before the corresponding request was sent\nor after the response was received.",
- "experimental": true,
- "parameters": [
- {
- "name": "status",
- "description": "Detailed success or error status of the operation.\n'AlreadyExists' also signifies a successful operation, as the result\nof the operation already exists und thus, the operation was abort\npreemptively (e.g. a cache hit).",
- "type": "string",
- "enum": [
- "Ok",
- "InvalidArgument",
- "FailedPrecondition",
- "ResourceExhausted",
- "AlreadyExists",
- "Unavailable",
- "Unauthorized",
- "BadResponse",
- "InternalError",
- "UnknownError",
- "FulfilledLocally"
- ]
- },
- {
- "name": "type",
- "$ref": "TrustTokenOperationType"
- },
- {
- "name": "requestId",
- "$ref": "RequestId"
- },
- {
- "name": "topLevelOrigin",
- "description": "Top level origin. The context in which the operation was attempted.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "issuerOrigin",
- "description": "Origin of the issuer in case of a \"Issuance\" or \"Redemption\" operation.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "issuedTokenCount",
- "description": "The number of obtained Trust Tokens on a successful \"Issuance\" operation.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "subresourceWebBundleMetadataReceived",
- "description": "Fired once when parsing the .wbn file has succeeded.\nThe event contains the information about the web bundle contents.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier. Used to match this information to another event.",
- "$ref": "RequestId"
- },
- {
- "name": "urls",
- "description": "A list of URLs of resources in the subresource Web Bundle.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "subresourceWebBundleMetadataError",
- "description": "Fired once when parsing the .wbn file has failed.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "Request identifier. Used to match this information to another event.",
- "$ref": "RequestId"
- },
- {
- "name": "errorMessage",
- "description": "Error message",
- "type": "string"
- }
- ]
- },
- {
- "name": "subresourceWebBundleInnerResponseParsed",
- "description": "Fired when handling requests for resources within a .wbn file.\nNote: this will only be fired for resources that are requested by the webpage.",
- "experimental": true,
- "parameters": [
- {
- "name": "innerRequestId",
- "description": "Request identifier of the subresource request",
- "$ref": "RequestId"
- },
- {
- "name": "innerRequestURL",
- "description": "URL of the subresource resource.",
- "type": "string"
- },
- {
- "name": "bundleRequestId",
- "description": "Bundle request identifier. Used to match this information to another event.\nThis made be absent in case when the instrumentation was enabled only\nafter webbundle was parsed.",
- "optional": true,
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "subresourceWebBundleInnerResponseError",
- "description": "Fired when request for resources within a .wbn file failed.",
- "experimental": true,
- "parameters": [
- {
- "name": "innerRequestId",
- "description": "Request identifier of the subresource request",
- "$ref": "RequestId"
- },
- {
- "name": "innerRequestURL",
- "description": "URL of the subresource resource.",
- "type": "string"
- },
- {
- "name": "errorMessage",
- "description": "Error message",
- "type": "string"
- },
- {
- "name": "bundleRequestId",
- "description": "Bundle request identifier. Used to match this information to another event.\nThis made be absent in case when the instrumentation was enabled only\nafter webbundle was parsed.",
- "optional": true,
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "reportingApiReportAdded",
- "description": "Is sent whenever a new report is added.\nAnd after 'enableReportingApi' for all existing reports.",
- "experimental": true,
- "parameters": [
- {
- "name": "report",
- "$ref": "ReportingApiReport"
- }
- ]
- },
- {
- "name": "reportingApiReportUpdated",
- "experimental": true,
- "parameters": [
- {
- "name": "report",
- "$ref": "ReportingApiReport"
- }
- ]
- },
- {
- "name": "reportingApiEndpointsChangedForOrigin",
- "experimental": true,
- "parameters": [
- {
- "name": "origin",
- "description": "Origin of the document(s) which configured the endpoints.",
- "type": "string"
- },
- {
- "name": "endpoints",
- "type": "array",
- "items": {
- "$ref": "ReportingApiEndpoint"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Overlay",
- "description": "This domain provides various functionality related to drawing atop the inspected page.",
- "experimental": true,
- "dependencies": [
- "DOM",
- "Page",
- "Runtime"
- ],
- "types": [
- {
- "id": "SourceOrderConfig",
- "description": "Configuration data for drawing the source order of an elements children.",
- "type": "object",
- "properties": [
- {
- "name": "parentOutlineColor",
- "description": "the color to outline the givent element in.",
- "$ref": "DOM.RGBA"
- },
- {
- "name": "childOutlineColor",
- "description": "the color to outline the child elements in.",
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "GridHighlightConfig",
- "description": "Configuration data for the highlighting of Grid elements.",
- "type": "object",
- "properties": [
- {
- "name": "showGridExtensionLines",
- "description": "Whether the extension lines from grid cells to the rulers should be shown (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showPositiveLineNumbers",
- "description": "Show Positive line number labels (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showNegativeLineNumbers",
- "description": "Show Negative line number labels (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showAreaNames",
- "description": "Show area name labels (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showLineNames",
- "description": "Show line name labels (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showTrackSizes",
- "description": "Show track size labels (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "gridBorderColor",
- "description": "The grid container border highlight color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "cellBorderColor",
- "description": "The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.",
- "deprecated": true,
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "rowLineColor",
- "description": "The row line color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "columnLineColor",
- "description": "The column line color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "gridBorderDash",
- "description": "Whether the grid border is dashed (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "cellBorderDash",
- "description": "Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.",
- "deprecated": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "rowLineDash",
- "description": "Whether row lines are dashed (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "columnLineDash",
- "description": "Whether column lines are dashed (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "rowGapColor",
- "description": "The row gap highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "rowHatchColor",
- "description": "The row gap hatching fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "columnGapColor",
- "description": "The column gap highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "columnHatchColor",
- "description": "The column gap hatching fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "areaBorderColor",
- "description": "The named grid areas border color (Default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "gridBackgroundColor",
- "description": "The grid container background color (Default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "FlexContainerHighlightConfig",
- "description": "Configuration data for the highlighting of Flex container elements.",
- "type": "object",
- "properties": [
- {
- "name": "containerBorder",
- "description": "The style of the container border",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "lineSeparator",
- "description": "The style of the separator between lines",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "itemSeparator",
- "description": "The style of the separator between items",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "mainDistributedSpace",
- "description": "Style of content-distribution space on the main axis (justify-content).",
- "optional": true,
- "$ref": "BoxStyle"
- },
- {
- "name": "crossDistributedSpace",
- "description": "Style of content-distribution space on the cross axis (align-content).",
- "optional": true,
- "$ref": "BoxStyle"
- },
- {
- "name": "rowGapSpace",
- "description": "Style of empty space caused by row gaps (gap/row-gap).",
- "optional": true,
- "$ref": "BoxStyle"
- },
- {
- "name": "columnGapSpace",
- "description": "Style of empty space caused by columns gaps (gap/column-gap).",
- "optional": true,
- "$ref": "BoxStyle"
- },
- {
- "name": "crossAlignment",
- "description": "Style of the self-alignment line (align-items).",
- "optional": true,
- "$ref": "LineStyle"
- }
- ]
- },
- {
- "id": "FlexItemHighlightConfig",
- "description": "Configuration data for the highlighting of Flex item elements.",
- "type": "object",
- "properties": [
- {
- "name": "baseSizeBox",
- "description": "Style of the box representing the item's base size",
- "optional": true,
- "$ref": "BoxStyle"
- },
- {
- "name": "baseSizeBorder",
- "description": "Style of the border around the box representing the item's base size",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "flexibilityArrow",
- "description": "Style of the arrow representing if the item grew or shrank",
- "optional": true,
- "$ref": "LineStyle"
- }
- ]
- },
- {
- "id": "LineStyle",
- "description": "Style information for drawing a line.",
- "type": "object",
- "properties": [
- {
- "name": "color",
- "description": "The color of the line (default: transparent)",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "pattern",
- "description": "The line pattern (default: solid)",
- "optional": true,
- "type": "string",
- "enum": [
- "dashed",
- "dotted"
- ]
- }
- ]
- },
- {
- "id": "BoxStyle",
- "description": "Style information for drawing a box.",
- "type": "object",
- "properties": [
- {
- "name": "fillColor",
- "description": "The background color for the box (default: transparent)",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "hatchColor",
- "description": "The hatching color for the box (default: transparent)",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "ContrastAlgorithm",
- "type": "string",
- "enum": [
- "aa",
- "aaa",
- "apca"
- ]
- },
- {
- "id": "HighlightConfig",
- "description": "Configuration data for the highlighting of page elements.",
- "type": "object",
- "properties": [
- {
- "name": "showInfo",
- "description": "Whether the node info tooltip should be shown (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showStyles",
- "description": "Whether the node styles in the tooltip (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showRulers",
- "description": "Whether the rulers should be shown (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showAccessibilityInfo",
- "description": "Whether the a11y info should be shown (default: true).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "showExtensionLines",
- "description": "Whether the extension lines from node to the rulers should be shown (default: false).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "contentColor",
- "description": "The content box highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "paddingColor",
- "description": "The padding highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "borderColor",
- "description": "The border highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "marginColor",
- "description": "The margin highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "eventTargetColor",
- "description": "The event target element highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "shapeColor",
- "description": "The shape outside fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "shapeMarginColor",
- "description": "The shape margin fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "cssGridColor",
- "description": "The grid layout color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "colorFormat",
- "description": "The color format used to format color styles (default: hex).",
- "optional": true,
- "$ref": "ColorFormat"
- },
- {
- "name": "gridHighlightConfig",
- "description": "The grid layout highlight configuration (default: all transparent).",
- "optional": true,
- "$ref": "GridHighlightConfig"
- },
- {
- "name": "flexContainerHighlightConfig",
- "description": "The flex container highlight configuration (default: all transparent).",
- "optional": true,
- "$ref": "FlexContainerHighlightConfig"
- },
- {
- "name": "flexItemHighlightConfig",
- "description": "The flex item highlight configuration (default: all transparent).",
- "optional": true,
- "$ref": "FlexItemHighlightConfig"
- },
- {
- "name": "contrastAlgorithm",
- "description": "The contrast algorithm to use for the contrast ratio (default: aa).",
- "optional": true,
- "$ref": "ContrastAlgorithm"
- },
- {
- "name": "containerQueryContainerHighlightConfig",
- "description": "The container query container highlight configuration (default: all transparent).",
- "optional": true,
- "$ref": "ContainerQueryContainerHighlightConfig"
- }
- ]
- },
- {
- "id": "ColorFormat",
- "type": "string",
- "enum": [
- "rgb",
- "hsl",
- "hwb",
- "hex"
- ]
- },
- {
- "id": "GridNodeHighlightConfig",
- "description": "Configurations for Persistent Grid Highlight",
- "type": "object",
- "properties": [
- {
- "name": "gridHighlightConfig",
- "description": "A descriptor for the highlight appearance.",
- "$ref": "GridHighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node to highlight.",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "id": "FlexNodeHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "flexContainerHighlightConfig",
- "description": "A descriptor for the highlight appearance of flex containers.",
- "$ref": "FlexContainerHighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node to highlight.",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "id": "ScrollSnapContainerHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "snapportBorder",
- "description": "The style of the snapport border (default: transparent)",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "snapAreaBorder",
- "description": "The style of the snap area border (default: transparent)",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "scrollMarginColor",
- "description": "The margin highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "scrollPaddingColor",
- "description": "The padding highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "ScrollSnapHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "scrollSnapContainerHighlightConfig",
- "description": "A descriptor for the highlight appearance of scroll snap containers.",
- "$ref": "ScrollSnapContainerHighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node to highlight.",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "id": "HingeConfig",
- "description": "Configuration for dual screen hinge",
- "type": "object",
- "properties": [
- {
- "name": "rect",
- "description": "A rectangle represent hinge",
- "$ref": "DOM.Rect"
- },
- {
- "name": "contentColor",
- "description": "The content box highlight fill color (default: a dark color).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "outlineColor",
- "description": "The content box highlight outline color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "ContainerQueryHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "containerQueryContainerHighlightConfig",
- "description": "A descriptor for the highlight appearance of container query containers.",
- "$ref": "ContainerQueryContainerHighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the container node to highlight.",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "id": "ContainerQueryContainerHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "containerBorder",
- "description": "The style of the container border.",
- "optional": true,
- "$ref": "LineStyle"
- },
- {
- "name": "descendantBorder",
- "description": "The style of the descendants' borders.",
- "optional": true,
- "$ref": "LineStyle"
- }
- ]
- },
- {
- "id": "IsolatedElementHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "isolationModeHighlightConfig",
- "description": "A descriptor for the highlight appearance of an element in isolation mode.",
- "$ref": "IsolationModeHighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the isolated element to highlight.",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "id": "IsolationModeHighlightConfig",
- "type": "object",
- "properties": [
- {
- "name": "resizerColor",
- "description": "The fill color of the resizers (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "resizerHandleColor",
- "description": "The fill color for resizer handles (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "maskColor",
- "description": "The fill color for the mask covering non-isolated elements (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "id": "InspectMode",
- "type": "string",
- "enum": [
- "searchForNode",
- "searchForUAShadowDOM",
- "captureAreaScreenshot",
- "showDistances",
- "none"
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables domain notifications."
- },
- {
- "name": "enable",
- "description": "Enables domain notifications."
- },
- {
- "name": "getHighlightObjectForTest",
- "description": "For testing.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to get highlight object for.",
- "$ref": "DOM.NodeId"
- },
- {
- "name": "includeDistance",
- "description": "Whether to include distance info.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includeStyle",
- "description": "Whether to include style info.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "colorFormat",
- "description": "The color format to get config with (default: hex).",
- "optional": true,
- "$ref": "ColorFormat"
- },
- {
- "name": "showAccessibilityInfo",
- "description": "Whether to show accessibility info (default: true).",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "highlight",
- "description": "Highlight data for the node.",
- "type": "object"
- }
- ]
- },
- {
- "name": "getGridHighlightObjectsForTest",
- "description": "For Persistent Grid testing.",
- "parameters": [
- {
- "name": "nodeIds",
- "description": "Ids of the node to get highlight object for.",
- "type": "array",
- "items": {
- "$ref": "DOM.NodeId"
- }
- }
- ],
- "returns": [
- {
- "name": "highlights",
- "description": "Grid Highlight data for the node ids provided.",
- "type": "object"
- }
- ]
- },
- {
- "name": "getSourceOrderHighlightObjectForTest",
- "description": "For Source Order Viewer testing.",
- "parameters": [
- {
- "name": "nodeId",
- "description": "Id of the node to highlight.",
- "$ref": "DOM.NodeId"
- }
- ],
- "returns": [
- {
- "name": "highlight",
- "description": "Source order highlight data for the node id provided.",
- "type": "object"
- }
- ]
- },
- {
- "name": "hideHighlight",
- "description": "Hides any highlight."
- },
- {
- "name": "highlightFrame",
- "description": "Highlights owner element of the frame with given id.\nDeprecated: Doesn't work reliablity and cannot be fixed due to process\nseparatation (the owner node might be in a different process). Determine\nthe owner node in the client and use highlightNode.",
- "deprecated": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Identifier of the frame to highlight.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "contentColor",
- "description": "The content box highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "contentOutlineColor",
- "description": "The content box highlight outline color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "name": "highlightNode",
- "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\nobjectId must be specified.",
- "parameters": [
- {
- "name": "highlightConfig",
- "description": "A descriptor for the highlight appearance.",
- "$ref": "HighlightConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node to highlight.",
- "optional": true,
- "$ref": "DOM.NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node to highlight.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node to be highlighted.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- },
- {
- "name": "selector",
- "description": "Selectors to highlight relevant nodes.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "highlightQuad",
- "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
- "parameters": [
- {
- "name": "quad",
- "description": "Quad to highlight",
- "$ref": "DOM.Quad"
- },
- {
- "name": "color",
- "description": "The highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "outlineColor",
- "description": "The highlight outline color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "name": "highlightRect",
- "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.",
- "parameters": [
- {
- "name": "x",
- "description": "X coordinate",
- "type": "integer"
- },
- {
- "name": "y",
- "description": "Y coordinate",
- "type": "integer"
- },
- {
- "name": "width",
- "description": "Rectangle width",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Rectangle height",
- "type": "integer"
- },
- {
- "name": "color",
- "description": "The highlight fill color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- },
- {
- "name": "outlineColor",
- "description": "The highlight outline color (default: transparent).",
- "optional": true,
- "$ref": "DOM.RGBA"
- }
- ]
- },
- {
- "name": "highlightSourceOrder",
- "description": "Highlights the source order of the children of the DOM node with given id or with the given\nJavaScript object wrapper. Either nodeId or objectId must be specified.",
- "parameters": [
- {
- "name": "sourceOrderConfig",
- "description": "A descriptor for the appearance of the overlay drawing.",
- "$ref": "SourceOrderConfig"
- },
- {
- "name": "nodeId",
- "description": "Identifier of the node to highlight.",
- "optional": true,
- "$ref": "DOM.NodeId"
- },
- {
- "name": "backendNodeId",
- "description": "Identifier of the backend node to highlight.",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "objectId",
- "description": "JavaScript object id of the node to be highlighted.",
- "optional": true,
- "$ref": "Runtime.RemoteObjectId"
- }
- ]
- },
- {
- "name": "setInspectMode",
- "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\nBackend then generates 'inspectNodeRequested' event upon element selection.",
- "parameters": [
- {
- "name": "mode",
- "description": "Set an inspection mode.",
- "$ref": "InspectMode"
- },
- {
- "name": "highlightConfig",
- "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled\n== false`.",
- "optional": true,
- "$ref": "HighlightConfig"
- }
- ]
- },
- {
- "name": "setShowAdHighlights",
- "description": "Highlights owner element of all frames detected to be ads.",
- "parameters": [
- {
- "name": "show",
- "description": "True for showing ad highlights",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setPausedInDebuggerMessage",
- "parameters": [
- {
- "name": "message",
- "description": "The message to display, also triggers resume and step over controls.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setShowDebugBorders",
- "description": "Requests that backend shows debug borders on layers",
- "parameters": [
- {
- "name": "show",
- "description": "True for showing debug borders",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowFPSCounter",
- "description": "Requests that backend shows the FPS counter",
- "parameters": [
- {
- "name": "show",
- "description": "True for showing the FPS counter",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowGridOverlays",
- "description": "Highlight multiple elements with the CSS Grid overlay.",
- "parameters": [
- {
- "name": "gridNodeHighlightConfigs",
- "description": "An array of node identifiers and descriptors for the highlight appearance.",
- "type": "array",
- "items": {
- "$ref": "GridNodeHighlightConfig"
- }
- }
- ]
- },
- {
- "name": "setShowFlexOverlays",
- "parameters": [
- {
- "name": "flexNodeHighlightConfigs",
- "description": "An array of node identifiers and descriptors for the highlight appearance.",
- "type": "array",
- "items": {
- "$ref": "FlexNodeHighlightConfig"
- }
- }
- ]
- },
- {
- "name": "setShowScrollSnapOverlays",
- "parameters": [
- {
- "name": "scrollSnapHighlightConfigs",
- "description": "An array of node identifiers and descriptors for the highlight appearance.",
- "type": "array",
- "items": {
- "$ref": "ScrollSnapHighlightConfig"
- }
- }
- ]
- },
- {
- "name": "setShowContainerQueryOverlays",
- "parameters": [
- {
- "name": "containerQueryHighlightConfigs",
- "description": "An array of node identifiers and descriptors for the highlight appearance.",
- "type": "array",
- "items": {
- "$ref": "ContainerQueryHighlightConfig"
- }
- }
- ]
- },
- {
- "name": "setShowPaintRects",
- "description": "Requests that backend shows paint rectangles",
- "parameters": [
- {
- "name": "result",
- "description": "True for showing paint rectangles",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowLayoutShiftRegions",
- "description": "Requests that backend shows layout shift regions",
- "parameters": [
- {
- "name": "result",
- "description": "True for showing layout shift regions",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowScrollBottleneckRects",
- "description": "Requests that backend shows scroll bottleneck rects",
- "parameters": [
- {
- "name": "show",
- "description": "True for showing scroll bottleneck rects",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowHitTestBorders",
- "description": "Deprecated, no longer has any effect.",
- "deprecated": true,
- "parameters": [
- {
- "name": "show",
- "description": "True for showing hit-test borders",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowWebVitals",
- "description": "Request that backend shows an overlay with web vital metrics.",
- "parameters": [
- {
- "name": "show",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowViewportSizeOnResize",
- "description": "Paints viewport size upon main frame resize.",
- "parameters": [
- {
- "name": "show",
- "description": "Whether to paint size or not.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setShowHinge",
- "description": "Add a dual screen device hinge",
- "parameters": [
- {
- "name": "hingeConfig",
- "description": "hinge data, null means hideHinge",
- "optional": true,
- "$ref": "HingeConfig"
- }
- ]
- },
- {
- "name": "setShowIsolatedElements",
- "description": "Show elements in isolation mode with overlays.",
- "parameters": [
- {
- "name": "isolatedElementHighlightConfigs",
- "description": "An array of node identifiers and descriptors for the highlight appearance.",
- "type": "array",
- "items": {
- "$ref": "IsolatedElementHighlightConfig"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "inspectNodeRequested",
- "description": "Fired when the node should be inspected. This happens after call to `setInspectMode` or when\nuser manually inspects an element.",
- "parameters": [
- {
- "name": "backendNodeId",
- "description": "Id of the node to inspect.",
- "$ref": "DOM.BackendNodeId"
- }
- ]
- },
- {
- "name": "nodeHighlightRequested",
- "description": "Fired when the node should be highlighted. This happens after call to `setInspectMode`.",
- "parameters": [
- {
- "name": "nodeId",
- "$ref": "DOM.NodeId"
- }
- ]
- },
- {
- "name": "screenshotRequested",
- "description": "Fired when user asks to capture screenshot of some area on the page.",
- "parameters": [
- {
- "name": "viewport",
- "description": "Viewport to capture, in device independent pixels (dip).",
- "$ref": "Page.Viewport"
- }
- ]
- },
- {
- "name": "inspectModeCanceled",
- "description": "Fired when user cancels the inspect mode."
- }
- ]
- },
- {
- "domain": "Page",
- "description": "Actions and events related to the inspected page belong to the page domain.",
- "dependencies": [
- "Debugger",
- "DOM",
- "IO",
- "Network",
- "Runtime"
- ],
- "types": [
- {
- "id": "FrameId",
- "description": "Unique frame identifier.",
- "type": "string"
- },
- {
- "id": "AdFrameType",
- "description": "Indicates whether a frame has been identified as an ad.",
- "experimental": true,
- "type": "string",
- "enum": [
- "none",
- "child",
- "root"
- ]
- },
- {
- "id": "AdFrameExplanation",
- "experimental": true,
- "type": "string",
- "enum": [
- "ParentIsAd",
- "CreatedByAdScript",
- "MatchedBlockingRule"
- ]
- },
- {
- "id": "AdFrameStatus",
- "description": "Indicates whether a frame has been identified as an ad and why.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "adFrameType",
- "$ref": "AdFrameType"
- },
- {
- "name": "explanations",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "AdFrameExplanation"
- }
- }
- ]
- },
- {
- "id": "AdScriptId",
- "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "scriptId",
- "description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
- "$ref": "Runtime.ScriptId"
- },
- {
- "name": "debuggerId",
- "description": "Id of adScriptId's debugger.",
- "$ref": "Runtime.UniqueDebuggerId"
- }
- ]
- },
- {
- "id": "SecureContextType",
- "description": "Indicates whether the frame is a secure context and why it is the case.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Secure",
- "SecureLocalhost",
- "InsecureScheme",
- "InsecureAncestor"
- ]
- },
- {
- "id": "CrossOriginIsolatedContextType",
- "description": "Indicates whether the frame is cross-origin isolated and why it is the case.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Isolated",
- "NotIsolated",
- "NotIsolatedFeatureDisabled"
- ]
- },
- {
- "id": "GatedAPIFeatures",
- "experimental": true,
- "type": "string",
- "enum": [
- "SharedArrayBuffers",
- "SharedArrayBuffersTransferAllowed",
- "PerformanceMeasureMemory",
- "PerformanceProfile"
- ]
- },
- {
- "id": "PermissionsPolicyFeature",
- "description": "All Permissions Policy features. This enum should match the one defined\nin third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.",
- "experimental": true,
- "type": "string",
- "enum": [
- "accelerometer",
- "ambient-light-sensor",
- "attribution-reporting",
- "autoplay",
- "bluetooth",
- "browsing-topics",
- "camera",
- "ch-dpr",
- "ch-device-memory",
- "ch-downlink",
- "ch-ect",
- "ch-prefers-color-scheme",
- "ch-prefers-reduced-motion",
- "ch-rtt",
- "ch-save-data",
- "ch-ua",
- "ch-ua-arch",
- "ch-ua-bitness",
- "ch-ua-platform",
- "ch-ua-model",
- "ch-ua-mobile",
- "ch-ua-full",
- "ch-ua-full-version",
- "ch-ua-full-version-list",
- "ch-ua-platform-version",
- "ch-ua-reduced",
- "ch-ua-wow64",
- "ch-viewport-height",
- "ch-viewport-width",
- "ch-width",
- "clipboard-read",
- "clipboard-write",
- "compute-pressure",
- "cross-origin-isolated",
- "direct-sockets",
- "display-capture",
- "document-domain",
- "encrypted-media",
- "execution-while-out-of-viewport",
- "execution-while-not-rendered",
- "focus-without-user-activation",
- "fullscreen",
- "frobulate",
- "gamepad",
- "geolocation",
- "gyroscope",
- "hid",
- "identity-credentials-get",
- "idle-detection",
- "interest-cohort",
- "join-ad-interest-group",
- "keyboard-map",
- "local-fonts",
- "magnetometer",
- "microphone",
- "midi",
- "otp-credentials",
- "payment",
- "picture-in-picture",
- "private-aggregation",
- "private-state-token-issuance",
- "private-state-token-redemption",
- "publickey-credentials-get",
- "run-ad-auction",
- "screen-wake-lock",
- "serial",
- "shared-autofill",
- "shared-storage",
- "shared-storage-select-url",
- "smart-card",
- "storage-access",
- "sync-xhr",
- "unload",
- "usb",
- "vertical-scroll",
- "web-share",
- "window-management",
- "window-placement",
- "xr-spatial-tracking"
- ]
- },
- {
- "id": "PermissionsPolicyBlockReason",
- "description": "Reason for a permissions policy feature to be disabled.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Header",
- "IframeAttribute",
- "InFencedFrameTree",
- "InIsolatedApp"
- ]
- },
- {
- "id": "PermissionsPolicyBlockLocator",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "frameId",
- "$ref": "FrameId"
- },
- {
- "name": "blockReason",
- "$ref": "PermissionsPolicyBlockReason"
- }
- ]
- },
- {
- "id": "PermissionsPolicyFeatureState",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "feature",
- "$ref": "PermissionsPolicyFeature"
- },
- {
- "name": "allowed",
- "type": "boolean"
- },
- {
- "name": "locator",
- "optional": true,
- "$ref": "PermissionsPolicyBlockLocator"
- }
- ]
- },
- {
- "id": "OriginTrialTokenStatus",
- "description": "Origin Trial(https://www.chromium.org/blink/origin-trials) support.\nStatus for an Origin Trial token.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Success",
- "NotSupported",
- "Insecure",
- "Expired",
- "WrongOrigin",
- "InvalidSignature",
- "Malformed",
- "WrongVersion",
- "FeatureDisabled",
- "TokenDisabled",
- "FeatureDisabledForUser",
- "UnknownTrial"
- ]
- },
- {
- "id": "OriginTrialStatus",
- "description": "Status for an Origin Trial.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Enabled",
- "ValidTokenNotProvided",
- "OSNotSupported",
- "TrialNotAllowed"
- ]
- },
- {
- "id": "OriginTrialUsageRestriction",
- "experimental": true,
- "type": "string",
- "enum": [
- "None",
- "Subset"
- ]
- },
- {
- "id": "OriginTrialToken",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "origin",
- "type": "string"
- },
- {
- "name": "matchSubDomains",
- "type": "boolean"
- },
- {
- "name": "trialName",
- "type": "string"
- },
- {
- "name": "expiryTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "isThirdParty",
- "type": "boolean"
- },
- {
- "name": "usageRestriction",
- "$ref": "OriginTrialUsageRestriction"
- }
- ]
- },
- {
- "id": "OriginTrialTokenWithStatus",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "rawTokenText",
- "type": "string"
- },
- {
- "name": "parsedToken",
- "description": "`parsedToken` is present only when the token is extractable and\nparsable.",
- "optional": true,
- "$ref": "OriginTrialToken"
- },
- {
- "name": "status",
- "$ref": "OriginTrialTokenStatus"
- }
- ]
- },
- {
- "id": "OriginTrial",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "trialName",
- "type": "string"
- },
- {
- "name": "status",
- "$ref": "OriginTrialStatus"
- },
- {
- "name": "tokensWithStatus",
- "type": "array",
- "items": {
- "$ref": "OriginTrialTokenWithStatus"
- }
- }
- ]
- },
- {
- "id": "Frame",
- "description": "Information about the Frame on the page.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "Frame unique identifier.",
- "$ref": "FrameId"
- },
- {
- "name": "parentId",
- "description": "Parent frame identifier.",
- "optional": true,
- "$ref": "FrameId"
- },
- {
- "name": "loaderId",
- "description": "Identifier of the loader associated with this frame.",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "name",
- "description": "Frame's name as specified in the tag.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "url",
- "description": "Frame document's URL without fragment.",
- "type": "string"
- },
- {
- "name": "urlFragment",
- "description": "Frame document's URL fragment including the '#'.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "domainAndRegistry",
- "description": "Frame document's registered domain, taking the public suffixes list into account.\nExtracted from the Frame's url.\nExample URLs: http://www.google.com/file.html -> \"google.com\"\n http://a.b.co.uk/file.html -> \"b.co.uk\"",
- "experimental": true,
- "type": "string"
- },
- {
- "name": "securityOrigin",
- "description": "Frame document's security origin.",
- "type": "string"
- },
- {
- "name": "mimeType",
- "description": "Frame document's mimeType as determined by the browser.",
- "type": "string"
- },
- {
- "name": "unreachableUrl",
- "description": "If the frame failed to load, this contains the URL that could not be loaded. Note that unlike url above, this URL may contain a fragment.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "adFrameStatus",
- "description": "Indicates whether this frame was tagged as an ad and why.",
- "experimental": true,
- "optional": true,
- "$ref": "AdFrameStatus"
- },
- {
- "name": "secureContextType",
- "description": "Indicates whether the main document is a secure context and explains why that is the case.",
- "experimental": true,
- "$ref": "SecureContextType"
- },
- {
- "name": "crossOriginIsolatedContextType",
- "description": "Indicates whether this is a cross origin isolated context.",
- "experimental": true,
- "$ref": "CrossOriginIsolatedContextType"
- },
- {
- "name": "gatedAPIFeatures",
- "description": "Indicated which gated APIs / features are available.",
- "experimental": true,
- "type": "array",
- "items": {
- "$ref": "GatedAPIFeatures"
- }
- }
- ]
- },
- {
- "id": "FrameResource",
- "description": "Information about the Resource on the page.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "Resource URL.",
- "type": "string"
- },
- {
- "name": "type",
- "description": "Type of this resource.",
- "$ref": "Network.ResourceType"
- },
- {
- "name": "mimeType",
- "description": "Resource mimeType as determined by the browser.",
- "type": "string"
- },
- {
- "name": "lastModified",
- "description": "last-modified timestamp as reported by server.",
- "optional": true,
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "contentSize",
- "description": "Resource content size.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "failed",
- "description": "True if the resource failed to load.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "canceled",
- "description": "True if the resource was canceled during loading.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "FrameResourceTree",
- "description": "Information about the Frame hierarchy along with their cached resources.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "frame",
- "description": "Frame information for this tree item.",
- "$ref": "Frame"
- },
- {
- "name": "childFrames",
- "description": "Child frames.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "FrameResourceTree"
- }
- },
- {
- "name": "resources",
- "description": "Information about frame resources.",
- "type": "array",
- "items": {
- "$ref": "FrameResource"
- }
- }
- ]
- },
- {
- "id": "FrameTree",
- "description": "Information about the Frame hierarchy.",
- "type": "object",
- "properties": [
- {
- "name": "frame",
- "description": "Frame information for this tree item.",
- "$ref": "Frame"
- },
- {
- "name": "childFrames",
- "description": "Child frames.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "FrameTree"
- }
- }
- ]
- },
- {
- "id": "ScriptIdentifier",
- "description": "Unique script identifier.",
- "type": "string"
- },
- {
- "id": "TransitionType",
- "description": "Transition type.",
- "type": "string",
- "enum": [
- "link",
- "typed",
- "address_bar",
- "auto_bookmark",
- "auto_subframe",
- "manual_subframe",
- "generated",
- "auto_toplevel",
- "form_submit",
- "reload",
- "keyword",
- "keyword_generated",
- "other"
- ]
- },
- {
- "id": "NavigationEntry",
- "description": "Navigation history entry.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "description": "Unique id of the navigation history entry.",
- "type": "integer"
- },
- {
- "name": "url",
- "description": "URL of the navigation history entry.",
- "type": "string"
- },
- {
- "name": "userTypedURL",
- "description": "URL that the user typed in the url bar.",
- "type": "string"
- },
- {
- "name": "title",
- "description": "Title of the navigation history entry.",
- "type": "string"
- },
- {
- "name": "transitionType",
- "description": "Transition type.",
- "$ref": "TransitionType"
- }
- ]
- },
- {
- "id": "ScreencastFrameMetadata",
- "description": "Screencast frame metadata.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "offsetTop",
- "description": "Top offset in DIP.",
- "type": "number"
- },
- {
- "name": "pageScaleFactor",
- "description": "Page scale factor.",
- "type": "number"
- },
- {
- "name": "deviceWidth",
- "description": "Device screen width in DIP.",
- "type": "number"
- },
- {
- "name": "deviceHeight",
- "description": "Device screen height in DIP.",
- "type": "number"
- },
- {
- "name": "scrollOffsetX",
- "description": "Position of horizontal scroll in CSS pixels.",
- "type": "number"
- },
- {
- "name": "scrollOffsetY",
- "description": "Position of vertical scroll in CSS pixels.",
- "type": "number"
- },
- {
- "name": "timestamp",
- "description": "Frame swap timestamp.",
- "optional": true,
- "$ref": "Network.TimeSinceEpoch"
- }
- ]
- },
- {
- "id": "DialogType",
- "description": "Javascript dialog type.",
- "type": "string",
- "enum": [
- "alert",
- "confirm",
- "prompt",
- "beforeunload"
- ]
- },
- {
- "id": "AppManifestError",
- "description": "Error while paring app manifest.",
- "type": "object",
- "properties": [
- {
- "name": "message",
- "description": "Error message.",
- "type": "string"
- },
- {
- "name": "critical",
- "description": "If criticial, this is a non-recoverable parse error.",
- "type": "integer"
- },
- {
- "name": "line",
- "description": "Error line.",
- "type": "integer"
- },
- {
- "name": "column",
- "description": "Error column.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "AppManifestParsedProperties",
- "description": "Parsed app manifest properties.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "scope",
- "description": "Computed scope value",
- "type": "string"
- }
- ]
- },
- {
- "id": "LayoutViewport",
- "description": "Layout viewport position and dimensions.",
- "type": "object",
- "properties": [
- {
- "name": "pageX",
- "description": "Horizontal offset relative to the document (CSS pixels).",
- "type": "integer"
- },
- {
- "name": "pageY",
- "description": "Vertical offset relative to the document (CSS pixels).",
- "type": "integer"
- },
- {
- "name": "clientWidth",
- "description": "Width (CSS pixels), excludes scrollbar if present.",
- "type": "integer"
- },
- {
- "name": "clientHeight",
- "description": "Height (CSS pixels), excludes scrollbar if present.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "VisualViewport",
- "description": "Visual viewport position, dimensions, and scale.",
- "type": "object",
- "properties": [
- {
- "name": "offsetX",
- "description": "Horizontal offset relative to the layout viewport (CSS pixels).",
- "type": "number"
- },
- {
- "name": "offsetY",
- "description": "Vertical offset relative to the layout viewport (CSS pixels).",
- "type": "number"
- },
- {
- "name": "pageX",
- "description": "Horizontal offset relative to the document (CSS pixels).",
- "type": "number"
- },
- {
- "name": "pageY",
- "description": "Vertical offset relative to the document (CSS pixels).",
- "type": "number"
- },
- {
- "name": "clientWidth",
- "description": "Width (CSS pixels), excludes scrollbar if present.",
- "type": "number"
- },
- {
- "name": "clientHeight",
- "description": "Height (CSS pixels), excludes scrollbar if present.",
- "type": "number"
- },
- {
- "name": "scale",
- "description": "Scale relative to the ideal viewport (size at width=device-width).",
- "type": "number"
- },
- {
- "name": "zoom",
- "description": "Page zoom factor (CSS to device independent pixels ratio).",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "id": "Viewport",
- "description": "Viewport for capturing screenshot.",
- "type": "object",
- "properties": [
- {
- "name": "x",
- "description": "X offset in device independent pixels (dip).",
- "type": "number"
- },
- {
- "name": "y",
- "description": "Y offset in device independent pixels (dip).",
- "type": "number"
- },
- {
- "name": "width",
- "description": "Rectangle width in device independent pixels (dip).",
- "type": "number"
- },
- {
- "name": "height",
- "description": "Rectangle height in device independent pixels (dip).",
- "type": "number"
- },
- {
- "name": "scale",
- "description": "Page scale factor.",
- "type": "number"
- }
- ]
- },
- {
- "id": "FontFamilies",
- "description": "Generic font families collection.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "standard",
- "description": "The standard font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "fixed",
- "description": "The fixed font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "serif",
- "description": "The serif font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "sansSerif",
- "description": "The sansSerif font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cursive",
- "description": "The cursive font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "fantasy",
- "description": "The fantasy font-family.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "math",
- "description": "The math font-family.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "ScriptFontFamilies",
- "description": "Font families collection for a script.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "script",
- "description": "Name of the script which these font families are defined for.",
- "type": "string"
- },
- {
- "name": "fontFamilies",
- "description": "Generic font families collection for the script.",
- "$ref": "FontFamilies"
- }
- ]
- },
- {
- "id": "FontSizes",
- "description": "Default font sizes.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "standard",
- "description": "Default standard font size.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "fixed",
- "description": "Default fixed font size.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "id": "ClientNavigationReason",
- "experimental": true,
- "type": "string",
- "enum": [
- "formSubmissionGet",
- "formSubmissionPost",
- "httpHeaderRefresh",
- "scriptInitiated",
- "metaTagRefresh",
- "pageBlockInterstitial",
- "reload",
- "anchorClick"
- ]
- },
- {
- "id": "ClientNavigationDisposition",
- "experimental": true,
- "type": "string",
- "enum": [
- "currentTab",
- "newTab",
- "newWindow",
- "download"
- ]
- },
- {
- "id": "InstallabilityErrorArgument",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Argument name (e.g. name:'minimum-icon-size-in-pixels').",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Argument value (e.g. value:'64').",
- "type": "string"
- }
- ]
- },
- {
- "id": "InstallabilityError",
- "description": "The installability error",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "errorId",
- "description": "The error id (e.g. 'manifest-missing-suitable-icon').",
- "type": "string"
- },
- {
- "name": "errorArguments",
- "description": "The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).",
- "type": "array",
- "items": {
- "$ref": "InstallabilityErrorArgument"
- }
- }
- ]
- },
- {
- "id": "ReferrerPolicy",
- "description": "The referring-policy used for the navigation.",
- "experimental": true,
- "type": "string",
- "enum": [
- "noReferrer",
- "noReferrerWhenDowngrade",
- "origin",
- "originWhenCrossOrigin",
- "sameOrigin",
- "strictOrigin",
- "strictOriginWhenCrossOrigin",
- "unsafeUrl"
- ]
- },
- {
- "id": "CompilationCacheParams",
- "description": "Per-script compilation cache parameters for `Page.produceCompilationCache`",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "The URL of the script to produce a compilation cache entry for.",
- "type": "string"
- },
- {
- "name": "eager",
- "description": "A hint to the backend whether eager compilation is recommended.\n(the actual compilation mode used is upon backend discretion).",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "AutoResponseMode",
- "description": "Enum of possible auto-reponse for permisison / prompt dialogs.",
- "experimental": true,
- "type": "string",
- "enum": [
- "none",
- "autoAccept",
- "autoReject",
- "autoOptOut"
- ]
- },
- {
- "id": "NavigationType",
- "description": "The type of a frameNavigated event.",
- "experimental": true,
- "type": "string",
- "enum": [
- "Navigation",
- "BackForwardCacheRestore"
- ]
- },
- {
- "id": "BackForwardCacheNotRestoredReason",
- "description": "List of not restored reasons for back-forward cache.",
- "experimental": true,
- "type": "string",
- "enum": [
- "NotPrimaryMainFrame",
- "BackForwardCacheDisabled",
- "RelatedActiveContentsExist",
- "HTTPStatusNotOK",
- "SchemeNotHTTPOrHTTPS",
- "Loading",
- "WasGrantedMediaAccess",
- "DisableForRenderFrameHostCalled",
- "DomainNotAllowed",
- "HTTPMethodNotGET",
- "SubframeIsNavigating",
- "Timeout",
- "CacheLimit",
- "JavaScriptExecution",
- "RendererProcessKilled",
- "RendererProcessCrashed",
- "SchedulerTrackedFeatureUsed",
- "ConflictingBrowsingInstance",
- "CacheFlushed",
- "ServiceWorkerVersionActivation",
- "SessionRestored",
- "ServiceWorkerPostMessage",
- "EnteredBackForwardCacheBeforeServiceWorkerHostAdded",
- "RenderFrameHostReused_SameSite",
- "RenderFrameHostReused_CrossSite",
- "ServiceWorkerClaim",
- "IgnoreEventAndEvict",
- "HaveInnerContents",
- "TimeoutPuttingInCache",
- "BackForwardCacheDisabledByLowMemory",
- "BackForwardCacheDisabledByCommandLine",
- "NetworkRequestDatapipeDrainedAsBytesConsumer",
- "NetworkRequestRedirected",
- "NetworkRequestTimeout",
- "NetworkExceedsBufferLimit",
- "NavigationCancelledWhileRestoring",
- "NotMostRecentNavigationEntry",
- "BackForwardCacheDisabledForPrerender",
- "UserAgentOverrideDiffers",
- "ForegroundCacheLimit",
- "BrowsingInstanceNotSwapped",
- "BackForwardCacheDisabledForDelegate",
- "UnloadHandlerExistsInMainFrame",
- "UnloadHandlerExistsInSubFrame",
- "ServiceWorkerUnregistration",
- "CacheControlNoStore",
- "CacheControlNoStoreCookieModified",
- "CacheControlNoStoreHTTPOnlyCookieModified",
- "NoResponseHead",
- "Unknown",
- "ActivationNavigationsDisallowedForBug1234857",
- "ErrorDocument",
- "FencedFramesEmbedder",
- "WebSocket",
- "WebTransport",
- "WebRTC",
- "MainResourceHasCacheControlNoStore",
- "MainResourceHasCacheControlNoCache",
- "SubresourceHasCacheControlNoStore",
- "SubresourceHasCacheControlNoCache",
- "ContainsPlugins",
- "DocumentLoaded",
- "DedicatedWorkerOrWorklet",
- "OutstandingNetworkRequestOthers",
- "OutstandingIndexedDBTransaction",
- "RequestedMIDIPermission",
- "RequestedAudioCapturePermission",
- "RequestedVideoCapturePermission",
- "RequestedBackForwardCacheBlockedSensors",
- "RequestedBackgroundWorkPermission",
- "BroadcastChannel",
- "IndexedDBConnection",
- "WebXR",
- "SharedWorker",
- "WebLocks",
- "WebHID",
- "WebShare",
- "RequestedStorageAccessGrant",
- "WebNfc",
- "OutstandingNetworkRequestFetch",
- "OutstandingNetworkRequestXHR",
- "AppBanner",
- "Printing",
- "WebDatabase",
- "PictureInPicture",
- "Portal",
- "SpeechRecognizer",
- "IdleManager",
- "PaymentManager",
- "SpeechSynthesis",
- "KeyboardLock",
- "WebOTPService",
- "OutstandingNetworkRequestDirectSocket",
- "InjectedJavascript",
- "InjectedStyleSheet",
- "KeepaliveRequest",
- "IndexedDBEvent",
- "Dummy",
- "AuthorizationHeader",
- "ContentSecurityHandler",
- "ContentWebAuthenticationAPI",
- "ContentFileChooser",
- "ContentSerial",
- "ContentFileSystemAccess",
- "ContentMediaDevicesDispatcherHost",
- "ContentWebBluetooth",
- "ContentWebUSB",
- "ContentMediaSessionService",
- "ContentScreenReader",
- "EmbedderPopupBlockerTabHelper",
- "EmbedderSafeBrowsingTriggeredPopupBlocker",
- "EmbedderSafeBrowsingThreatDetails",
- "EmbedderAppBannerManager",
- "EmbedderDomDistillerViewerSource",
- "EmbedderDomDistillerSelfDeletingRequestDelegate",
- "EmbedderOomInterventionTabHelper",
- "EmbedderOfflinePage",
- "EmbedderChromePasswordManagerClientBindCredentialManager",
- "EmbedderPermissionRequestManager",
- "EmbedderModalDialog",
- "EmbedderExtensions",
- "EmbedderExtensionMessaging",
- "EmbedderExtensionMessagingForOpenPort",
- "EmbedderExtensionSentMessageToCachedFrame"
- ]
- },
- {
- "id": "BackForwardCacheNotRestoredReasonType",
- "description": "Types of not restored reasons for back-forward cache.",
- "experimental": true,
- "type": "string",
- "enum": [
- "SupportPending",
- "PageSupportNeeded",
- "Circumstantial"
- ]
- },
- {
- "id": "BackForwardCacheNotRestoredExplanation",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Type of the reason",
- "$ref": "BackForwardCacheNotRestoredReasonType"
- },
- {
- "name": "reason",
- "description": "Not restored reason",
- "$ref": "BackForwardCacheNotRestoredReason"
- },
- {
- "name": "context",
- "description": "Context associated with the reason. The meaning of this context is\ndependent on the reason:\n- EmbedderExtensionSentMessageToCachedFrame: the extension ID.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "BackForwardCacheNotRestoredExplanationTree",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "URL of each frame",
- "type": "string"
- },
- {
- "name": "explanations",
- "description": "Not restored reasons of each frame",
- "type": "array",
- "items": {
- "$ref": "BackForwardCacheNotRestoredExplanation"
- }
- },
- {
- "name": "children",
- "description": "Array of children frame",
- "type": "array",
- "items": {
- "$ref": "BackForwardCacheNotRestoredExplanationTree"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "addScriptToEvaluateOnLoad",
- "description": "Deprecated, please use addScriptToEvaluateOnNewDocument instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "scriptSource",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "identifier",
- "description": "Identifier of the added script.",
- "$ref": "ScriptIdentifier"
- }
- ]
- },
- {
- "name": "addScriptToEvaluateOnNewDocument",
- "description": "Evaluates given script in every frame upon creation (before loading frame's scripts).",
- "parameters": [
- {
- "name": "source",
- "type": "string"
- },
- {
- "name": "worldName",
- "description": "If specified, creates an isolated world with the given name and evaluates given script in it.\nThis world name will be used as the ExecutionContextDescription::name when the corresponding\nevent is emitted.",
- "experimental": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "includeCommandLineAPI",
- "description": "Specifies whether command line API should be available to the script, defaults\nto false.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "identifier",
- "description": "Identifier of the added script.",
- "$ref": "ScriptIdentifier"
- }
- ]
- },
- {
- "name": "bringToFront",
- "description": "Brings page to front (activates tab)."
- },
- {
- "name": "captureScreenshot",
- "description": "Capture page screenshot.",
- "parameters": [
- {
- "name": "format",
- "description": "Image compression format (defaults to png).",
- "optional": true,
- "type": "string",
- "enum": [
- "jpeg",
- "png",
- "webp"
- ]
- },
- {
- "name": "quality",
- "description": "Compression quality from range [0..100] (jpeg only).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "clip",
- "description": "Capture the screenshot of a given region only.",
- "optional": true,
- "$ref": "Viewport"
- },
- {
- "name": "fromSurface",
- "description": "Capture the screenshot from the surface, rather than the view. Defaults to true.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "captureBeyondViewport",
- "description": "Capture the screenshot beyond the viewport. Defaults to false.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "optimizeForSpeed",
- "description": "Optimize image encoding for speed, not for resulting size (defaults to false)",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "data",
- "description": "Base64-encoded image data. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- },
- {
- "name": "captureSnapshot",
- "description": "Returns a snapshot of the page as a string. For MHTML format, the serialization includes\niframes, shadow DOM, external resources, and element-inline styles.",
- "experimental": true,
- "parameters": [
- {
- "name": "format",
- "description": "Format (defaults to mhtml).",
- "optional": true,
- "type": "string",
- "enum": [
- "mhtml"
- ]
- }
- ],
- "returns": [
- {
- "name": "data",
- "description": "Serialized page data.",
- "type": "string"
- }
- ]
- },
- {
- "name": "clearDeviceMetricsOverride",
- "description": "Clears the overridden device metrics.",
- "experimental": true,
- "deprecated": true,
- "redirect": "Emulation"
- },
- {
- "name": "clearDeviceOrientationOverride",
- "description": "Clears the overridden Device Orientation.",
- "experimental": true,
- "deprecated": true,
- "redirect": "DeviceOrientation"
- },
- {
- "name": "clearGeolocationOverride",
- "description": "Clears the overridden Geolocation Position and Error.",
- "deprecated": true,
- "redirect": "Emulation"
- },
- {
- "name": "createIsolatedWorld",
- "description": "Creates an isolated world for the given frame.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame in which the isolated world should be created.",
- "$ref": "FrameId"
- },
- {
- "name": "worldName",
- "description": "An optional name which is reported in the Execution Context.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "grantUniveralAccess",
- "description": "Whether or not universal access should be granted to the isolated world. This is a powerful\noption, use with caution.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "executionContextId",
- "description": "Execution context of the isolated world.",
- "$ref": "Runtime.ExecutionContextId"
- }
- ]
- },
- {
- "name": "deleteCookie",
- "description": "Deletes browser cookie with given name, domain and path.",
- "experimental": true,
- "deprecated": true,
- "redirect": "Network",
- "parameters": [
- {
- "name": "cookieName",
- "description": "Name of the cookie to remove.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "URL to match cooke domain and path.",
- "type": "string"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disables page domain notifications."
- },
- {
- "name": "enable",
- "description": "Enables page domain notifications."
- },
- {
- "name": "getAppManifest",
- "returns": [
- {
- "name": "url",
- "description": "Manifest location.",
- "type": "string"
- },
- {
- "name": "errors",
- "type": "array",
- "items": {
- "$ref": "AppManifestError"
- }
- },
- {
- "name": "data",
- "description": "Manifest content.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "parsed",
- "description": "Parsed manifest properties",
- "experimental": true,
- "optional": true,
- "$ref": "AppManifestParsedProperties"
- }
- ]
- },
- {
- "name": "getInstallabilityErrors",
- "experimental": true,
- "returns": [
- {
- "name": "installabilityErrors",
- "type": "array",
- "items": {
- "$ref": "InstallabilityError"
- }
- }
- ]
- },
- {
- "name": "getManifestIcons",
- "description": "Deprecated because it's not guaranteed that the returned icon is in fact the one used for PWA installation.",
- "experimental": true,
- "deprecated": true,
- "returns": [
- {
- "name": "primaryIcon",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "getAppId",
- "description": "Returns the unique (PWA) app id.\nOnly returns values if the feature flag 'WebAppEnableManifestId' is enabled",
- "experimental": true,
- "returns": [
- {
- "name": "appId",
- "description": "App id, either from manifest's id attribute or computed from start_url",
- "optional": true,
- "type": "string"
- },
- {
- "name": "recommendedId",
- "description": "Recommendation for manifest's id attribute to match current id computed from start_url",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "getAdScriptId",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "$ref": "FrameId"
- }
- ],
- "returns": [
- {
- "name": "adScriptId",
- "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad. Only sent if frame is labelled as an ad and id is available.",
- "optional": true,
- "$ref": "AdScriptId"
- }
- ]
- },
- {
- "name": "getCookies",
- "description": "Returns all browser cookies for the page and all of its subframes. Depending\non the backend support, will return detailed cookie information in the\n`cookies` field.",
- "experimental": true,
- "deprecated": true,
- "redirect": "Network",
- "returns": [
- {
- "name": "cookies",
- "description": "Array of cookie objects.",
- "type": "array",
- "items": {
- "$ref": "Network.Cookie"
- }
- }
- ]
- },
- {
- "name": "getFrameTree",
- "description": "Returns present frame tree structure.",
- "returns": [
- {
- "name": "frameTree",
- "description": "Present frame tree structure.",
- "$ref": "FrameTree"
- }
- ]
- },
- {
- "name": "getLayoutMetrics",
- "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.",
- "returns": [
- {
- "name": "layoutViewport",
- "description": "Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead.",
- "deprecated": true,
- "$ref": "LayoutViewport"
- },
- {
- "name": "visualViewport",
- "description": "Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead.",
- "deprecated": true,
- "$ref": "VisualViewport"
- },
- {
- "name": "contentSize",
- "description": "Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead.",
- "deprecated": true,
- "$ref": "DOM.Rect"
- },
- {
- "name": "cssLayoutViewport",
- "description": "Metrics relating to the layout viewport in CSS pixels.",
- "$ref": "LayoutViewport"
- },
- {
- "name": "cssVisualViewport",
- "description": "Metrics relating to the visual viewport in CSS pixels.",
- "$ref": "VisualViewport"
- },
- {
- "name": "cssContentSize",
- "description": "Size of scrollable area in CSS pixels.",
- "$ref": "DOM.Rect"
- }
- ]
- },
- {
- "name": "getNavigationHistory",
- "description": "Returns navigation history for the current page.",
- "returns": [
- {
- "name": "currentIndex",
- "description": "Index of the current navigation history entry.",
- "type": "integer"
- },
- {
- "name": "entries",
- "description": "Array of navigation history entries.",
- "type": "array",
- "items": {
- "$ref": "NavigationEntry"
- }
- }
- ]
- },
- {
- "name": "resetNavigationHistory",
- "description": "Resets navigation history for the current page."
- },
- {
- "name": "getResourceContent",
- "description": "Returns content of the given resource.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Frame id to get resource for.",
- "$ref": "FrameId"
- },
- {
- "name": "url",
- "description": "URL of the resource to get content for.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "content",
- "description": "Resource content.",
- "type": "string"
- },
- {
- "name": "base64Encoded",
- "description": "True, if content was served as base64.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getResourceTree",
- "description": "Returns present frame / resource tree structure.",
- "experimental": true,
- "returns": [
- {
- "name": "frameTree",
- "description": "Present frame / resource tree structure.",
- "$ref": "FrameResourceTree"
- }
- ]
- },
- {
- "name": "handleJavaScriptDialog",
- "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
- "parameters": [
- {
- "name": "accept",
- "description": "Whether to accept or dismiss the dialog.",
- "type": "boolean"
- },
- {
- "name": "promptText",
- "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt\ndialog.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "navigate",
- "description": "Navigates current page to the given URL.",
- "parameters": [
- {
- "name": "url",
- "description": "URL to navigate the page to.",
- "type": "string"
- },
- {
- "name": "referrer",
- "description": "Referrer URL.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "transitionType",
- "description": "Intended transition type.",
- "optional": true,
- "$ref": "TransitionType"
- },
- {
- "name": "frameId",
- "description": "Frame id to navigate, if not specified navigates the top frame.",
- "optional": true,
- "$ref": "FrameId"
- },
- {
- "name": "referrerPolicy",
- "description": "Referrer-policy used for the navigation.",
- "experimental": true,
- "optional": true,
- "$ref": "ReferrerPolicy"
- }
- ],
- "returns": [
- {
- "name": "frameId",
- "description": "Frame id that has navigated (or failed to navigate)",
- "$ref": "FrameId"
- },
- {
- "name": "loaderId",
- "description": "Loader identifier. This is omitted in case of same-document navigation,\nas the previously committed loaderId would not change.",
- "optional": true,
- "$ref": "Network.LoaderId"
- },
- {
- "name": "errorText",
- "description": "User friendly error message, present if and only if navigation has failed.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "navigateToHistoryEntry",
- "description": "Navigates current page to the given history entry.",
- "parameters": [
- {
- "name": "entryId",
- "description": "Unique id of the entry to navigate to.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "printToPDF",
- "description": "Print page as PDF.",
- "parameters": [
- {
- "name": "landscape",
- "description": "Paper orientation. Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "displayHeaderFooter",
- "description": "Display header and footer. Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "printBackground",
- "description": "Print background graphics. Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "scale",
- "description": "Scale of the webpage rendering. Defaults to 1.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "paperWidth",
- "description": "Paper width in inches. Defaults to 8.5 inches.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "paperHeight",
- "description": "Paper height in inches. Defaults to 11 inches.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "marginTop",
- "description": "Top margin in inches. Defaults to 1cm (~0.4 inches).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "marginBottom",
- "description": "Bottom margin in inches. Defaults to 1cm (~0.4 inches).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "marginLeft",
- "description": "Left margin in inches. Defaults to 1cm (~0.4 inches).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "marginRight",
- "description": "Right margin in inches. Defaults to 1cm (~0.4 inches).",
- "optional": true,
- "type": "number"
- },
- {
- "name": "pageRanges",
- "description": "Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are\nprinted in the document order, not in the order specified, and no\nmore than once.\nDefaults to empty string, which implies the entire document is printed.\nThe page numbers are quietly capped to actual page count of the\ndocument, and ranges beyond the end of the document are ignored.\nIf this results in no pages to print, an error is reported.\nIt is an error to specify a range with start greater than end.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "headerTemplate",
- "description": "HTML template for the print header. Should be valid HTML markup with following\nclasses used to inject printing values into them:\n- `date`: formatted print date\n- `title`: document title\n- `url`: document location\n- `pageNumber`: current page number\n- `totalPages`: total pages in the document\n\nFor example, `<span class=title></span>` would generate span containing the title.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "footerTemplate",
- "description": "HTML template for the print footer. Should use the same format as the `headerTemplate`.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "preferCSSPageSize",
- "description": "Whether or not to prefer page size as defined by css. Defaults to false,\nin which case the content will be scaled to fit the paper size.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "transferMode",
- "description": "return as stream",
- "experimental": true,
- "optional": true,
- "type": "string",
- "enum": [
- "ReturnAsBase64",
- "ReturnAsStream"
- ]
- }
- ],
- "returns": [
- {
- "name": "data",
- "description": "Base64-encoded pdf data. Empty if |returnAsStream| is specified. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- },
- {
- "name": "stream",
- "description": "A handle of the stream that holds resulting PDF data.",
- "experimental": true,
- "optional": true,
- "$ref": "IO.StreamHandle"
- }
- ]
- },
- {
- "name": "reload",
- "description": "Reloads given page optionally ignoring the cache.",
- "parameters": [
- {
- "name": "ignoreCache",
- "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "scriptToEvaluateOnLoad",
- "description": "If set, the script will be injected into all frames of the inspected page after reload.\nArgument will be ignored if reloading dataURL origin.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "removeScriptToEvaluateOnLoad",
- "description": "Deprecated, please use removeScriptToEvaluateOnNewDocument instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "identifier",
- "$ref": "ScriptIdentifier"
- }
- ]
- },
- {
- "name": "removeScriptToEvaluateOnNewDocument",
- "description": "Removes given script from the list.",
- "parameters": [
- {
- "name": "identifier",
- "$ref": "ScriptIdentifier"
- }
- ]
- },
- {
- "name": "screencastFrameAck",
- "description": "Acknowledges that a screencast frame has been received by the frontend.",
- "experimental": true,
- "parameters": [
- {
- "name": "sessionId",
- "description": "Frame number.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "searchInResource",
- "description": "Searches for given string in resource content.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Frame id for resource to search in.",
- "$ref": "FrameId"
- },
- {
- "name": "url",
- "description": "URL of the resource to search in.",
- "type": "string"
- },
- {
- "name": "query",
- "description": "String to search for.",
- "type": "string"
- },
- {
- "name": "caseSensitive",
- "description": "If true, search is case sensitive.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isRegex",
- "description": "If true, treats string parameter as regex.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "result",
- "description": "List of search matches.",
- "type": "array",
- "items": {
- "$ref": "Debugger.SearchMatch"
- }
- }
- ]
- },
- {
- "name": "setAdBlockingEnabled",
- "description": "Enable Chrome's experimental ad filter on all sites.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether to block ads.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setBypassCSP",
- "description": "Enable page Content Security Policy by-passing.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether to bypass page CSP.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getPermissionsPolicyState",
- "description": "Get Permissions Policy state on given frame.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "$ref": "FrameId"
- }
- ],
- "returns": [
- {
- "name": "states",
- "type": "array",
- "items": {
- "$ref": "PermissionsPolicyFeatureState"
- }
- }
- ]
- },
- {
- "name": "getOriginTrials",
- "description": "Get Origin Trials on given frame.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "$ref": "FrameId"
- }
- ],
- "returns": [
- {
- "name": "originTrials",
- "type": "array",
- "items": {
- "$ref": "OriginTrial"
- }
- }
- ]
- },
- {
- "name": "setDeviceMetricsOverride",
- "description": "Overrides the values of device screen dimensions (window.screen.width, window.screen.height,\nwindow.innerWidth, window.innerHeight, and \"device-width\"/\"device-height\"-related CSS media\nquery results).",
- "experimental": true,
- "deprecated": true,
- "redirect": "Emulation",
- "parameters": [
- {
- "name": "width",
- "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
- "type": "integer"
- },
- {
- "name": "deviceScaleFactor",
- "description": "Overriding device scale factor value. 0 disables the override.",
- "type": "number"
- },
- {
- "name": "mobile",
- "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text\nautosizing and more.",
- "type": "boolean"
- },
- {
- "name": "scale",
- "description": "Scale to apply to resulting view image.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "screenWidth",
- "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "screenHeight",
- "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "positionX",
- "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "positionY",
- "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "dontSetVisibleSize",
- "description": "Do not set visible view size, rely upon explicit setVisibleSize call.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "screenOrientation",
- "description": "Screen orientation override.",
- "optional": true,
- "$ref": "Emulation.ScreenOrientation"
- },
- {
- "name": "viewport",
- "description": "The viewport dimensions and scale. If not set, the override is cleared.",
- "optional": true,
- "$ref": "Viewport"
- }
- ]
- },
- {
- "name": "setDeviceOrientationOverride",
- "description": "Overrides the Device Orientation.",
- "experimental": true,
- "deprecated": true,
- "redirect": "DeviceOrientation",
- "parameters": [
- {
- "name": "alpha",
- "description": "Mock alpha",
- "type": "number"
- },
- {
- "name": "beta",
- "description": "Mock beta",
- "type": "number"
- },
- {
- "name": "gamma",
- "description": "Mock gamma",
- "type": "number"
- }
- ]
- },
- {
- "name": "setFontFamilies",
- "description": "Set generic font families.",
- "experimental": true,
- "parameters": [
- {
- "name": "fontFamilies",
- "description": "Specifies font families to set. If a font family is not specified, it won't be changed.",
- "$ref": "FontFamilies"
- },
- {
- "name": "forScripts",
- "description": "Specifies font families to set for individual scripts.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "ScriptFontFamilies"
- }
- }
- ]
- },
- {
- "name": "setFontSizes",
- "description": "Set default font sizes.",
- "experimental": true,
- "parameters": [
- {
- "name": "fontSizes",
- "description": "Specifies font sizes to set. If a font size is not specified, it won't be changed.",
- "$ref": "FontSizes"
- }
- ]
- },
- {
- "name": "setDocumentContent",
- "description": "Sets given markup as the document's HTML.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Frame id to set HTML for.",
- "$ref": "FrameId"
- },
- {
- "name": "html",
- "description": "HTML content to set.",
- "type": "string"
- }
- ]
- },
- {
- "name": "setDownloadBehavior",
- "description": "Set the behavior when downloading a file.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "behavior",
- "description": "Whether to allow all or deny all download requests, or use default Chrome behavior if\navailable (otherwise deny).",
- "type": "string",
- "enum": [
- "deny",
- "allow",
- "default"
- ]
- },
- {
- "name": "downloadPath",
- "description": "The default path to save downloaded files to. This is required if behavior is set to 'allow'",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "setGeolocationOverride",
- "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position\nunavailable.",
- "deprecated": true,
- "redirect": "Emulation",
- "parameters": [
- {
- "name": "latitude",
- "description": "Mock latitude",
- "optional": true,
- "type": "number"
- },
- {
- "name": "longitude",
- "description": "Mock longitude",
- "optional": true,
- "type": "number"
- },
- {
- "name": "accuracy",
- "description": "Mock accuracy",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "setLifecycleEventsEnabled",
- "description": "Controls whether page will emit lifecycle events.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "description": "If true, starts emitting lifecycle events.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setTouchEmulationEnabled",
- "description": "Toggles mouse event-based touch event emulation.",
- "experimental": true,
- "deprecated": true,
- "redirect": "Emulation",
- "parameters": [
- {
- "name": "enabled",
- "description": "Whether the touch event emulation should be enabled.",
- "type": "boolean"
- },
- {
- "name": "configuration",
- "description": "Touch/gesture events configuration. Default: current platform.",
- "optional": true,
- "type": "string",
- "enum": [
- "mobile",
- "desktop"
- ]
- }
- ]
- },
- {
- "name": "startScreencast",
- "description": "Starts sending each frame using the `screencastFrame` event.",
- "experimental": true,
- "parameters": [
- {
- "name": "format",
- "description": "Image compression format.",
- "optional": true,
- "type": "string",
- "enum": [
- "jpeg",
- "png"
- ]
- },
- {
- "name": "quality",
- "description": "Compression quality from range [0..100].",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "maxWidth",
- "description": "Maximum screenshot width.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "maxHeight",
- "description": "Maximum screenshot height.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "everyNthFrame",
- "description": "Send every n-th frame.",
- "optional": true,
- "type": "integer"
- }
- ]
- },
- {
- "name": "stopLoading",
- "description": "Force the page stop all navigations and pending resource fetches."
- },
- {
- "name": "crash",
- "description": "Crashes renderer on the IO thread, generates minidumps.",
- "experimental": true
- },
- {
- "name": "close",
- "description": "Tries to close page, running its beforeunload hooks, if any.",
- "experimental": true
- },
- {
- "name": "setWebLifecycleState",
- "description": "Tries to update the web lifecycle state of the page.\nIt will transition the page to the given state according to:\nhttps://github.com/WICG/web-lifecycle/",
- "experimental": true,
- "parameters": [
- {
- "name": "state",
- "description": "Target lifecycle state",
- "type": "string",
- "enum": [
- "frozen",
- "active"
- ]
- }
- ]
- },
- {
- "name": "stopScreencast",
- "description": "Stops sending each frame in the `screencastFrame`.",
- "experimental": true
- },
- {
- "name": "produceCompilationCache",
- "description": "Requests backend to produce compilation cache for the specified scripts.\n`scripts` are appeneded to the list of scripts for which the cache\nwould be produced. The list may be reset during page navigation.\nWhen script with a matching URL is encountered, the cache is optionally\nproduced upon backend discretion, based on internal heuristics.\nSee also: `Page.compilationCacheProduced`.",
- "experimental": true,
- "parameters": [
- {
- "name": "scripts",
- "type": "array",
- "items": {
- "$ref": "CompilationCacheParams"
- }
- }
- ]
- },
- {
- "name": "addCompilationCache",
- "description": "Seeds compilation cache for given url. Compilation cache does not survive\ncross-process navigation.",
- "experimental": true,
- "parameters": [
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "data",
- "description": "Base64-encoded data (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- },
- {
- "name": "clearCompilationCache",
- "description": "Clears seeded compilation cache.",
- "experimental": true
- },
- {
- "name": "setSPCTransactionMode",
- "description": "Sets the Secure Payment Confirmation transaction mode.\nhttps://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode",
- "experimental": true,
- "parameters": [
- {
- "name": "mode",
- "$ref": "AutoResponseMode"
- }
- ]
- },
- {
- "name": "setRPHRegistrationMode",
- "description": "Extensions for Custom Handlers API:\nhttps://html.spec.whatwg.org/multipage/system-state.html#rph-automation",
- "experimental": true,
- "parameters": [
- {
- "name": "mode",
- "$ref": "AutoResponseMode"
- }
- ]
- },
- {
- "name": "generateTestReport",
- "description": "Generates a report for testing.",
- "experimental": true,
- "parameters": [
- {
- "name": "message",
- "description": "Message to be displayed in the report.",
- "type": "string"
- },
- {
- "name": "group",
- "description": "Specifies the endpoint group to deliver the report to.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "waitForDebugger",
- "description": "Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.",
- "experimental": true
- },
- {
- "name": "setInterceptFileChooserDialog",
- "description": "Intercept file chooser requests and transfer control to protocol clients.\nWhen file chooser interception is enabled, native file chooser dialog is not shown.\nInstead, a protocol event `Page.fileChooserOpened` is emitted.",
- "experimental": true,
- "parameters": [
- {
- "name": "enabled",
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "domContentEventFired",
- "parameters": [
- {
- "name": "timestamp",
- "$ref": "Network.MonotonicTime"
- }
- ]
- },
- {
- "name": "fileChooserOpened",
- "description": "Emitted only when `page.interceptFileChooser` is enabled.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame containing input node.",
- "experimental": true,
- "$ref": "FrameId"
- },
- {
- "name": "mode",
- "description": "Input mode.",
- "type": "string",
- "enum": [
- "selectSingle",
- "selectMultiple"
- ]
- },
- {
- "name": "backendNodeId",
- "description": "Input node id. Only present for file choosers opened via an <input type=\"file\"> element.",
- "experimental": true,
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- }
- ]
- },
- {
- "name": "frameAttached",
- "description": "Fired when frame has been attached to its parent.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has been attached.",
- "$ref": "FrameId"
- },
- {
- "name": "parentFrameId",
- "description": "Parent frame identifier.",
- "$ref": "FrameId"
- },
- {
- "name": "stack",
- "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
- "optional": true,
- "$ref": "Runtime.StackTrace"
- }
- ]
- },
- {
- "name": "frameClearedScheduledNavigation",
- "description": "Fired when frame no longer has a scheduled navigation.",
- "deprecated": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has cleared its scheduled navigation.",
- "$ref": "FrameId"
- }
- ]
- },
- {
- "name": "frameDetached",
- "description": "Fired when frame has been detached from its parent.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has been detached.",
- "$ref": "FrameId"
- },
- {
- "name": "reason",
- "experimental": true,
- "type": "string",
- "enum": [
- "remove",
- "swap"
- ]
- }
- ]
- },
- {
- "name": "frameNavigated",
- "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
- "parameters": [
- {
- "name": "frame",
- "description": "Frame object.",
- "$ref": "Frame"
- },
- {
- "name": "type",
- "experimental": true,
- "$ref": "NavigationType"
- }
- ]
- },
- {
- "name": "documentOpened",
- "description": "Fired when opening document to write to.",
- "experimental": true,
- "parameters": [
- {
- "name": "frame",
- "description": "Frame object.",
- "$ref": "Frame"
- }
- ]
- },
- {
- "name": "frameResized",
- "experimental": true
- },
- {
- "name": "frameRequestedNavigation",
- "description": "Fired when a renderer-initiated navigation is requested.\nNavigation may still be cancelled after the event is issued.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that is being navigated.",
- "$ref": "FrameId"
- },
- {
- "name": "reason",
- "description": "The reason for the navigation.",
- "$ref": "ClientNavigationReason"
- },
- {
- "name": "url",
- "description": "The destination URL for the requested navigation.",
- "type": "string"
- },
- {
- "name": "disposition",
- "description": "The disposition for the navigation.",
- "$ref": "ClientNavigationDisposition"
- }
- ]
- },
- {
- "name": "frameScheduledNavigation",
- "description": "Fired when frame schedules a potential navigation.",
- "deprecated": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has scheduled a navigation.",
- "$ref": "FrameId"
- },
- {
- "name": "delay",
- "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not\nguaranteed to start.",
- "type": "number"
- },
- {
- "name": "reason",
- "description": "The reason for the navigation.",
- "$ref": "ClientNavigationReason"
- },
- {
- "name": "url",
- "description": "The destination URL for the scheduled navigation.",
- "type": "string"
- }
- ]
- },
- {
- "name": "frameStartedLoading",
- "description": "Fired when frame has started loading.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has started loading.",
- "$ref": "FrameId"
- }
- ]
- },
- {
- "name": "frameStoppedLoading",
- "description": "Fired when frame has stopped loading.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that has stopped loading.",
- "$ref": "FrameId"
- }
- ]
- },
- {
- "name": "downloadWillBegin",
- "description": "Fired when page is about to start a download.\nDeprecated. Use Browser.downloadWillBegin instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame that caused download to begin.",
- "$ref": "FrameId"
- },
- {
- "name": "guid",
- "description": "Global unique identifier of the download.",
- "type": "string"
- },
- {
- "name": "url",
- "description": "URL of the resource being downloaded.",
- "type": "string"
- },
- {
- "name": "suggestedFilename",
- "description": "Suggested file name of the resource (the actual name of the file saved on disk may differ).",
- "type": "string"
- }
- ]
- },
- {
- "name": "downloadProgress",
- "description": "Fired when download makes progress. Last call has |done| == true.\nDeprecated. Use Browser.downloadProgress instead.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "guid",
- "description": "Global unique identifier of the download.",
- "type": "string"
- },
- {
- "name": "totalBytes",
- "description": "Total expected bytes to download.",
- "type": "number"
- },
- {
- "name": "receivedBytes",
- "description": "Total bytes received.",
- "type": "number"
- },
- {
- "name": "state",
- "description": "Download status.",
- "type": "string",
- "enum": [
- "inProgress",
- "completed",
- "canceled"
- ]
- }
- ]
- },
- {
- "name": "interstitialHidden",
- "description": "Fired when interstitial page was hidden"
- },
- {
- "name": "interstitialShown",
- "description": "Fired when interstitial page was shown"
- },
- {
- "name": "javascriptDialogClosed",
- "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been\nclosed.",
- "parameters": [
- {
- "name": "result",
- "description": "Whether dialog was confirmed.",
- "type": "boolean"
- },
- {
- "name": "userInput",
- "description": "User input in case of prompt.",
- "type": "string"
- }
- ]
- },
- {
- "name": "javascriptDialogOpening",
- "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to\nopen.",
- "parameters": [
- {
- "name": "url",
- "description": "Frame url.",
- "type": "string"
- },
- {
- "name": "message",
- "description": "Message that will be displayed by the dialog.",
- "type": "string"
- },
- {
- "name": "type",
- "description": "Dialog type.",
- "$ref": "DialogType"
- },
- {
- "name": "hasBrowserHandler",
- "description": "True iff browser is capable showing or acting on the given dialog. When browser has no\ndialog handler for given target, calling alert while Page domain is engaged will stall\nthe page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.",
- "type": "boolean"
- },
- {
- "name": "defaultPrompt",
- "description": "Default dialog prompt.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "lifecycleEvent",
- "description": "Fired for top level page lifecycle events such as navigation, load, paint, etc.",
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame.",
- "$ref": "FrameId"
- },
- {
- "name": "loaderId",
- "description": "Loader identifier. Empty string if the request is fetched from worker.",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "timestamp",
- "$ref": "Network.MonotonicTime"
- }
- ]
- },
- {
- "name": "backForwardCacheNotUsed",
- "description": "Fired for failed bfcache history navigations if BackForwardCache feature is enabled. Do\nnot assume any ordering with the Page.frameNavigated event. This event is fired only for\nmain-frame history navigation where the document changes (non-same-document navigations),\nwhen bfcache navigation fails.",
- "experimental": true,
- "parameters": [
- {
- "name": "loaderId",
- "description": "The loader id for the associated navgation.",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "frameId",
- "description": "The frame id of the associated frame.",
- "$ref": "FrameId"
- },
- {
- "name": "notRestoredExplanations",
- "description": "Array of reasons why the page could not be cached. This must not be empty.",
- "type": "array",
- "items": {
- "$ref": "BackForwardCacheNotRestoredExplanation"
- }
- },
- {
- "name": "notRestoredExplanationsTree",
- "description": "Tree structure of reasons why the page could not be cached for each frame.",
- "optional": true,
- "$ref": "BackForwardCacheNotRestoredExplanationTree"
- }
- ]
- },
- {
- "name": "loadEventFired",
- "parameters": [
- {
- "name": "timestamp",
- "$ref": "Network.MonotonicTime"
- }
- ]
- },
- {
- "name": "navigatedWithinDocument",
- "description": "Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.",
- "experimental": true,
- "parameters": [
- {
- "name": "frameId",
- "description": "Id of the frame.",
- "$ref": "FrameId"
- },
- {
- "name": "url",
- "description": "Frame's new url.",
- "type": "string"
- }
- ]
- },
- {
- "name": "screencastFrame",
- "description": "Compressed image data requested by the `startScreencast`.",
- "experimental": true,
- "parameters": [
- {
- "name": "data",
- "description": "Base64-encoded compressed image. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- },
- {
- "name": "metadata",
- "description": "Screencast frame metadata.",
- "$ref": "ScreencastFrameMetadata"
- },
- {
- "name": "sessionId",
- "description": "Frame number.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "screencastVisibilityChanged",
- "description": "Fired when the page with currently enabled screencast was shown or hidden `.",
- "experimental": true,
- "parameters": [
- {
- "name": "visible",
- "description": "True if the page is visible.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "windowOpen",
- "description": "Fired when a new window is going to be opened, via window.open(), link click, form submission,\netc.",
- "parameters": [
- {
- "name": "url",
- "description": "The URL for the new window.",
- "type": "string"
- },
- {
- "name": "windowName",
- "description": "Window name.",
- "type": "string"
- },
- {
- "name": "windowFeatures",
- "description": "An array of enabled window features.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "userGesture",
- "description": "Whether or not it was triggered by user gesture.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "compilationCacheProduced",
- "description": "Issued for every compilation cache generated. Is only available\nif Page.setGenerateCompilationCache is enabled.",
- "experimental": true,
- "parameters": [
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "data",
- "description": "Base64-encoded data (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "Performance",
- "types": [
- {
- "id": "Metric",
- "description": "Run-time execution metric.",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "description": "Metric name.",
- "type": "string"
- },
- {
- "name": "value",
- "description": "Metric value.",
- "type": "number"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disable collecting and reporting metrics."
- },
- {
- "name": "enable",
- "description": "Enable collecting and reporting metrics.",
- "parameters": [
- {
- "name": "timeDomain",
- "description": "Time domain to use for collecting and reporting duration metrics.",
- "optional": true,
- "type": "string",
- "enum": [
- "timeTicks",
- "threadTicks"
- ]
- }
- ]
- },
- {
- "name": "setTimeDomain",
- "description": "Sets time domain to use for collecting and reporting duration metrics.\nNote that this must be called before enabling metrics collection. Calling\nthis method while metrics collection is enabled returns an error.",
- "experimental": true,
- "deprecated": true,
- "parameters": [
- {
- "name": "timeDomain",
- "description": "Time domain",
- "type": "string",
- "enum": [
- "timeTicks",
- "threadTicks"
- ]
- }
- ]
- },
- {
- "name": "getMetrics",
- "description": "Retrieve current values of run-time metrics.",
- "returns": [
- {
- "name": "metrics",
- "description": "Current values for run-time metrics.",
- "type": "array",
- "items": {
- "$ref": "Metric"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "metrics",
- "description": "Current values of the metrics.",
- "parameters": [
- {
- "name": "metrics",
- "description": "Current values of the metrics.",
- "type": "array",
- "items": {
- "$ref": "Metric"
- }
- },
- {
- "name": "title",
- "description": "Timestamp title.",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "PerformanceTimeline",
- "description": "Reporting of performance timeline events, as specified in\nhttps://w3c.github.io/performance-timeline/#dom-performanceobserver.",
- "experimental": true,
- "dependencies": [
- "DOM",
- "Network"
- ],
- "types": [
- {
- "id": "LargestContentfulPaint",
- "description": "See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl",
- "type": "object",
- "properties": [
- {
- "name": "renderTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "loadTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "size",
- "description": "The number of pixels being painted.",
- "type": "number"
- },
- {
- "name": "elementId",
- "description": "The id attribute of the element, if available.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "url",
- "description": "The URL of the image (may be trimmed).",
- "optional": true,
- "type": "string"
- },
- {
- "name": "nodeId",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- }
- ]
- },
- {
- "id": "LayoutShiftAttribution",
- "type": "object",
- "properties": [
- {
- "name": "previousRect",
- "$ref": "DOM.Rect"
- },
- {
- "name": "currentRect",
- "$ref": "DOM.Rect"
- },
- {
- "name": "nodeId",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- }
- ]
- },
- {
- "id": "LayoutShift",
- "description": "See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl",
- "type": "object",
- "properties": [
- {
- "name": "value",
- "description": "Score increment produced by this event.",
- "type": "number"
- },
- {
- "name": "hadRecentInput",
- "type": "boolean"
- },
- {
- "name": "lastInputTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "sources",
- "type": "array",
- "items": {
- "$ref": "LayoutShiftAttribution"
- }
- }
- ]
- },
- {
- "id": "TimelineEvent",
- "type": "object",
- "properties": [
- {
- "name": "frameId",
- "description": "Identifies the frame that this event is related to. Empty for non-frame targets.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "type",
- "description": "The event type, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype\nThis determines which of the optional \"details\" fiedls is present.",
- "type": "string"
- },
- {
- "name": "name",
- "description": "Name may be empty depending on the type.",
- "type": "string"
- },
- {
- "name": "time",
- "description": "Time in seconds since Epoch, monotonically increasing within document lifetime.",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "duration",
- "description": "Event duration, if applicable.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "lcpDetails",
- "optional": true,
- "$ref": "LargestContentfulPaint"
- },
- {
- "name": "layoutShiftDetails",
- "optional": true,
- "$ref": "LayoutShift"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Previously buffered events would be reported before method returns.\nSee also: timelineEventAdded",
- "parameters": [
- {
- "name": "eventTypes",
- "description": "The types of event to report, as specified in\nhttps://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype\nThe specified filter overrides any previous filters, passing empty\nfilter disables recording.\nNote that not all types exposed to the web platform are currently supported.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "timelineEventAdded",
- "description": "Sent when a performance timeline event is added. See reportPerformanceTimeline method.",
- "parameters": [
- {
- "name": "event",
- "$ref": "TimelineEvent"
- }
- ]
- }
- ]
- },
- {
- "domain": "Security",
- "description": "Security",
- "types": [
- {
- "id": "CertificateId",
- "description": "An internal certificate ID value.",
- "type": "integer"
- },
- {
- "id": "MixedContentType",
- "description": "A description of mixed content (HTTP resources on HTTPS pages), as defined by\nhttps://www.w3.org/TR/mixed-content/#categories",
- "type": "string",
- "enum": [
- "blockable",
- "optionally-blockable",
- "none"
- ]
- },
- {
- "id": "SecurityState",
- "description": "The security level of a page or resource.",
- "type": "string",
- "enum": [
- "unknown",
- "neutral",
- "insecure",
- "secure",
- "info",
- "insecure-broken"
- ]
- },
- {
- "id": "CertificateSecurityState",
- "description": "Details about the security state of the page certificate.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "protocol",
- "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\").",
- "type": "string"
- },
- {
- "name": "keyExchange",
- "description": "Key Exchange used by the connection, or the empty string if not applicable.",
- "type": "string"
- },
- {
- "name": "keyExchangeGroup",
- "description": "(EC)DH group used by the connection, if applicable.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "cipher",
- "description": "Cipher name.",
- "type": "string"
- },
- {
- "name": "mac",
- "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "certificate",
- "description": "Page certificate.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "subjectName",
- "description": "Certificate subject name.",
- "type": "string"
- },
- {
- "name": "issuer",
- "description": "Name of the issuing CA.",
- "type": "string"
- },
- {
- "name": "validFrom",
- "description": "Certificate valid from date.",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "validTo",
- "description": "Certificate valid to (expiration) date",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "certificateNetworkError",
- "description": "The highest priority network error code, if the certificate has an error.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "certificateHasWeakSignature",
- "description": "True if the certificate uses a weak signature aglorithm.",
- "type": "boolean"
- },
- {
- "name": "certificateHasSha1Signature",
- "description": "True if the certificate has a SHA1 signature in the chain.",
- "type": "boolean"
- },
- {
- "name": "modernSSL",
- "description": "True if modern SSL",
- "type": "boolean"
- },
- {
- "name": "obsoleteSslProtocol",
- "description": "True if the connection is using an obsolete SSL protocol.",
- "type": "boolean"
- },
- {
- "name": "obsoleteSslKeyExchange",
- "description": "True if the connection is using an obsolete SSL key exchange.",
- "type": "boolean"
- },
- {
- "name": "obsoleteSslCipher",
- "description": "True if the connection is using an obsolete SSL cipher.",
- "type": "boolean"
- },
- {
- "name": "obsoleteSslSignature",
- "description": "True if the connection is using an obsolete SSL signature.",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "SafetyTipStatus",
- "experimental": true,
- "type": "string",
- "enum": [
- "badReputation",
- "lookalike"
- ]
- },
- {
- "id": "SafetyTipInfo",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "safetyTipStatus",
- "description": "Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.",
- "$ref": "SafetyTipStatus"
- },
- {
- "name": "safeUrl",
- "description": "The URL the safety tip suggested (\"Did you mean?\"). Only filled in for lookalike matches.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "VisibleSecurityState",
- "description": "Security state information about the page.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "securityState",
- "description": "The security level of the page.",
- "$ref": "SecurityState"
- },
- {
- "name": "certificateSecurityState",
- "description": "Security state details about the page certificate.",
- "optional": true,
- "$ref": "CertificateSecurityState"
- },
- {
- "name": "safetyTipInfo",
- "description": "The type of Safety Tip triggered on the page. Note that this field will be set even if the Safety Tip UI was not actually shown.",
- "optional": true,
- "$ref": "SafetyTipInfo"
- },
- {
- "name": "securityStateIssueIds",
- "description": "Array of security state issues ids.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "SecurityStateExplanation",
- "description": "An explanation of an factor contributing to the security state.",
- "type": "object",
- "properties": [
- {
- "name": "securityState",
- "description": "Security state representing the severity of the factor being explained.",
- "$ref": "SecurityState"
- },
- {
- "name": "title",
- "description": "Title describing the type of factor.",
- "type": "string"
- },
- {
- "name": "summary",
- "description": "Short phrase describing the type of factor.",
- "type": "string"
- },
- {
- "name": "description",
- "description": "Full text explanation of the factor.",
- "type": "string"
- },
- {
- "name": "mixedContentType",
- "description": "The type of mixed content described by the explanation.",
- "$ref": "MixedContentType"
- },
- {
- "name": "certificate",
- "description": "Page certificate.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "recommendations",
- "description": "Recommendations to fix any issues.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "id": "InsecureContentStatus",
- "description": "Information about insecure content on the page.",
- "deprecated": true,
- "type": "object",
- "properties": [
- {
- "name": "ranMixedContent",
- "description": "Always false.",
- "type": "boolean"
- },
- {
- "name": "displayedMixedContent",
- "description": "Always false.",
- "type": "boolean"
- },
- {
- "name": "containedMixedForm",
- "description": "Always false.",
- "type": "boolean"
- },
- {
- "name": "ranContentWithCertErrors",
- "description": "Always false.",
- "type": "boolean"
- },
- {
- "name": "displayedContentWithCertErrors",
- "description": "Always false.",
- "type": "boolean"
- },
- {
- "name": "ranInsecureContentStyle",
- "description": "Always set to unknown.",
- "$ref": "SecurityState"
- },
- {
- "name": "displayedInsecureContentStyle",
- "description": "Always set to unknown.",
- "$ref": "SecurityState"
- }
- ]
- },
- {
- "id": "CertificateErrorAction",
- "description": "The action to take when a certificate error occurs. continue will continue processing the\nrequest and cancel will cancel the request.",
- "type": "string",
- "enum": [
- "continue",
- "cancel"
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables tracking security state changes."
- },
- {
- "name": "enable",
- "description": "Enables tracking security state changes."
- },
- {
- "name": "setIgnoreCertificateErrors",
- "description": "Enable/disable whether all certificate errors should be ignored.",
- "experimental": true,
- "parameters": [
- {
- "name": "ignore",
- "description": "If true, all certificate errors will be ignored.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "handleCertificateError",
- "description": "Handles a certificate error that fired a certificateError event.",
- "deprecated": true,
- "parameters": [
- {
- "name": "eventId",
- "description": "The ID of the event.",
- "type": "integer"
- },
- {
- "name": "action",
- "description": "The action to take on the certificate error.",
- "$ref": "CertificateErrorAction"
- }
- ]
- },
- {
- "name": "setOverrideCertificateErrors",
- "description": "Enable/disable overriding certificate errors. If enabled, all certificate error events need to\nbe handled by the DevTools client and should be answered with `handleCertificateError` commands.",
- "deprecated": true,
- "parameters": [
- {
- "name": "override",
- "description": "If true, certificate errors will be overridden.",
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "certificateError",
- "description": "There is a certificate error. If overriding certificate errors is enabled, then it should be\nhandled with the `handleCertificateError` command. Note: this event does not fire if the\ncertificate error has been allowed internally. Only one client per target should override\ncertificate errors at the same time.",
- "deprecated": true,
- "parameters": [
- {
- "name": "eventId",
- "description": "The ID of the event.",
- "type": "integer"
- },
- {
- "name": "errorType",
- "description": "The type of the error.",
- "type": "string"
- },
- {
- "name": "requestURL",
- "description": "The url that was requested.",
- "type": "string"
- }
- ]
- },
- {
- "name": "visibleSecurityStateChanged",
- "description": "The security state of the page changed.",
- "experimental": true,
- "parameters": [
- {
- "name": "visibleSecurityState",
- "description": "Security state information about the page.",
- "$ref": "VisibleSecurityState"
- }
- ]
- },
- {
- "name": "securityStateChanged",
- "description": "The security state of the page changed. No longer being sent.",
- "deprecated": true,
- "parameters": [
- {
- "name": "securityState",
- "description": "Security state.",
- "$ref": "SecurityState"
- },
- {
- "name": "schemeIsCryptographic",
- "description": "True if the page was loaded over cryptographic transport such as HTTPS.",
- "deprecated": true,
- "type": "boolean"
- },
- {
- "name": "explanations",
- "description": "Previously a list of explanations for the security state. Now always\nempty.",
- "deprecated": true,
- "type": "array",
- "items": {
- "$ref": "SecurityStateExplanation"
- }
- },
- {
- "name": "insecureContentStatus",
- "description": "Information about insecure content on the page.",
- "deprecated": true,
- "$ref": "InsecureContentStatus"
- },
- {
- "name": "summary",
- "description": "Overrides user-visible description of the state. Always omitted.",
- "deprecated": true,
- "optional": true,
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "ServiceWorker",
- "experimental": true,
- "dependencies": [
- "Target"
- ],
- "types": [
- {
- "id": "RegistrationID",
- "type": "string"
- },
- {
- "id": "ServiceWorkerRegistration",
- "description": "ServiceWorker registration.",
- "type": "object",
- "properties": [
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "scopeURL",
- "type": "string"
- },
- {
- "name": "isDeleted",
- "type": "boolean"
- }
- ]
- },
- {
- "id": "ServiceWorkerVersionRunningStatus",
- "type": "string",
- "enum": [
- "stopped",
- "starting",
- "running",
- "stopping"
- ]
- },
- {
- "id": "ServiceWorkerVersionStatus",
- "type": "string",
- "enum": [
- "new",
- "installing",
- "installed",
- "activating",
- "activated",
- "redundant"
- ]
- },
- {
- "id": "ServiceWorkerVersion",
- "description": "ServiceWorker version.",
- "type": "object",
- "properties": [
- {
- "name": "versionId",
- "type": "string"
- },
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "scriptURL",
- "type": "string"
- },
- {
- "name": "runningStatus",
- "$ref": "ServiceWorkerVersionRunningStatus"
- },
- {
- "name": "status",
- "$ref": "ServiceWorkerVersionStatus"
- },
- {
- "name": "scriptLastModified",
- "description": "The Last-Modified header value of the main script.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "scriptResponseTime",
- "description": "The time at which the response headers of the main script were received from the server.\nFor cached script it is the last time the cache entry was validated.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "controlledClients",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "Target.TargetID"
- }
- },
- {
- "name": "targetId",
- "optional": true,
- "$ref": "Target.TargetID"
- }
- ]
- },
- {
- "id": "ServiceWorkerErrorMessage",
- "description": "ServiceWorker error message.",
- "type": "object",
- "properties": [
- {
- "name": "errorMessage",
- "type": "string"
- },
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "versionId",
- "type": "string"
- },
- {
- "name": "sourceURL",
- "type": "string"
- },
- {
- "name": "lineNumber",
- "type": "integer"
- },
- {
- "name": "columnNumber",
- "type": "integer"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "deliverPushMessage",
- "parameters": [
- {
- "name": "origin",
- "type": "string"
- },
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "data",
- "type": "string"
- }
- ]
- },
- {
- "name": "disable"
- },
- {
- "name": "dispatchSyncEvent",
- "parameters": [
- {
- "name": "origin",
- "type": "string"
- },
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "tag",
- "type": "string"
- },
- {
- "name": "lastChance",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "dispatchPeriodicSyncEvent",
- "parameters": [
- {
- "name": "origin",
- "type": "string"
- },
- {
- "name": "registrationId",
- "$ref": "RegistrationID"
- },
- {
- "name": "tag",
- "type": "string"
- }
- ]
- },
- {
- "name": "enable"
- },
- {
- "name": "inspectWorker",
- "parameters": [
- {
- "name": "versionId",
- "type": "string"
- }
- ]
- },
- {
- "name": "setForceUpdateOnPageLoad",
- "parameters": [
- {
- "name": "forceUpdateOnPageLoad",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "skipWaiting",
- "parameters": [
- {
- "name": "scopeURL",
- "type": "string"
- }
- ]
- },
- {
- "name": "startWorker",
- "parameters": [
- {
- "name": "scopeURL",
- "type": "string"
- }
- ]
- },
- {
- "name": "stopAllWorkers"
- },
- {
- "name": "stopWorker",
- "parameters": [
- {
- "name": "versionId",
- "type": "string"
- }
- ]
- },
- {
- "name": "unregister",
- "parameters": [
- {
- "name": "scopeURL",
- "type": "string"
- }
- ]
- },
- {
- "name": "updateRegistration",
- "parameters": [
- {
- "name": "scopeURL",
- "type": "string"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "workerErrorReported",
- "parameters": [
- {
- "name": "errorMessage",
- "$ref": "ServiceWorkerErrorMessage"
- }
- ]
- },
- {
- "name": "workerRegistrationUpdated",
- "parameters": [
- {
- "name": "registrations",
- "type": "array",
- "items": {
- "$ref": "ServiceWorkerRegistration"
- }
- }
- ]
- },
- {
- "name": "workerVersionUpdated",
- "parameters": [
- {
- "name": "versions",
- "type": "array",
- "items": {
- "$ref": "ServiceWorkerVersion"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Storage",
- "experimental": true,
- "dependencies": [
- "Browser",
- "Network"
- ],
- "types": [
- {
- "id": "SerializedStorageKey",
- "type": "string"
- },
- {
- "id": "StorageType",
- "description": "Enum of possible storage types.",
- "type": "string",
- "enum": [
- "appcache",
- "cookies",
- "file_systems",
- "indexeddb",
- "local_storage",
- "shader_cache",
- "websql",
- "service_workers",
- "cache_storage",
- "interest_groups",
- "shared_storage",
- "storage_buckets",
- "all",
- "other"
- ]
- },
- {
- "id": "UsageForType",
- "description": "Usage for a storage type.",
- "type": "object",
- "properties": [
- {
- "name": "storageType",
- "description": "Name of storage type.",
- "$ref": "StorageType"
- },
- {
- "name": "usage",
- "description": "Storage usage (bytes).",
- "type": "number"
- }
- ]
- },
- {
- "id": "TrustTokens",
- "description": "Pair of issuer origin and number of available (signed, but not used) Trust\nTokens from that issuer.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "issuerOrigin",
- "type": "string"
- },
- {
- "name": "count",
- "type": "number"
- }
- ]
- },
- {
- "id": "InterestGroupAccessType",
- "description": "Enum of interest group access types.",
- "type": "string",
- "enum": [
- "join",
- "leave",
- "update",
- "loaded",
- "bid",
- "win"
- ]
- },
- {
- "id": "InterestGroupAd",
- "description": "Ad advertising element inside an interest group.",
- "type": "object",
- "properties": [
- {
- "name": "renderUrl",
- "type": "string"
- },
- {
- "name": "metadata",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "InterestGroupDetails",
- "description": "The full details of an interest group.",
- "type": "object",
- "properties": [
- {
- "name": "ownerOrigin",
- "type": "string"
- },
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "expirationTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "joiningOrigin",
- "type": "string"
- },
- {
- "name": "biddingUrl",
- "optional": true,
- "type": "string"
- },
- {
- "name": "biddingWasmHelperUrl",
- "optional": true,
- "type": "string"
- },
- {
- "name": "updateUrl",
- "optional": true,
- "type": "string"
- },
- {
- "name": "trustedBiddingSignalsUrl",
- "optional": true,
- "type": "string"
- },
- {
- "name": "trustedBiddingSignalsKeys",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "userBiddingSignals",
- "optional": true,
- "type": "string"
- },
- {
- "name": "ads",
- "type": "array",
- "items": {
- "$ref": "InterestGroupAd"
- }
- },
- {
- "name": "adComponents",
- "type": "array",
- "items": {
- "$ref": "InterestGroupAd"
- }
- }
- ]
- },
- {
- "id": "SharedStorageAccessType",
- "description": "Enum of shared storage access types.",
- "type": "string",
- "enum": [
- "documentAddModule",
- "documentSelectURL",
- "documentRun",
- "documentSet",
- "documentAppend",
- "documentDelete",
- "documentClear",
- "workletSet",
- "workletAppend",
- "workletDelete",
- "workletClear",
- "workletGet",
- "workletKeys",
- "workletEntries",
- "workletLength",
- "workletRemainingBudget"
- ]
- },
- {
- "id": "SharedStorageEntry",
- "description": "Struct for a single key-value pair in an origin's shared storage.",
- "type": "object",
- "properties": [
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "SharedStorageMetadata",
- "description": "Details for an origin's shared storage.",
- "type": "object",
- "properties": [
- {
- "name": "creationTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "length",
- "type": "integer"
- },
- {
- "name": "remainingBudget",
- "type": "number"
- }
- ]
- },
- {
- "id": "SharedStorageReportingMetadata",
- "description": "Pair of reporting metadata details for a candidate URL for `selectURL()`.",
- "type": "object",
- "properties": [
- {
- "name": "eventType",
- "type": "string"
- },
- {
- "name": "reportingUrl",
- "type": "string"
- }
- ]
- },
- {
- "id": "SharedStorageUrlWithMetadata",
- "description": "Bundles a candidate URL with its reporting metadata.",
- "type": "object",
- "properties": [
- {
- "name": "url",
- "description": "Spec of candidate URL.",
- "type": "string"
- },
- {
- "name": "reportingMetadata",
- "description": "Any associated reporting metadata.",
- "type": "array",
- "items": {
- "$ref": "SharedStorageReportingMetadata"
- }
- }
- ]
- },
- {
- "id": "SharedStorageAccessParams",
- "description": "Bundles the parameters for shared storage access events whose\npresence/absence can vary according to SharedStorageAccessType.",
- "type": "object",
- "properties": [
- {
- "name": "scriptSourceUrl",
- "description": "Spec of the module script URL.\nPresent only for SharedStorageAccessType.documentAddModule.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "operationName",
- "description": "Name of the registered operation to be run.\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "serializedData",
- "description": "The operation's serialized data in bytes (converted to a string).\nPresent only for SharedStorageAccessType.documentRun and\nSharedStorageAccessType.documentSelectURL.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "urlsWithMetadata",
- "description": "Array of candidate URLs' specs, along with any associated metadata.\nPresent only for SharedStorageAccessType.documentSelectURL.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "SharedStorageUrlWithMetadata"
- }
- },
- {
- "name": "key",
- "description": "Key for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.documentDelete,\nSharedStorageAccessType.workletSet,\nSharedStorageAccessType.workletAppend,\nSharedStorageAccessType.workletDelete, and\nSharedStorageAccessType.workletGet.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "value",
- "description": "Value for a specific entry in an origin's shared storage.\nPresent only for SharedStorageAccessType.documentSet,\nSharedStorageAccessType.documentAppend,\nSharedStorageAccessType.workletSet, and\nSharedStorageAccessType.workletAppend.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "ignoreIfPresent",
- "description": "Whether or not to set an entry for a key if that key is already present.\nPresent only for SharedStorageAccessType.documentSet and\nSharedStorageAccessType.workletSet.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "StorageBucketsDurability",
- "type": "string",
- "enum": [
- "relaxed",
- "strict"
- ]
- },
- {
- "id": "StorageBucket",
- "type": "object",
- "properties": [
- {
- "name": "storageKey",
- "$ref": "SerializedStorageKey"
- },
- {
- "name": "name",
- "description": "If not specified, it is the default bucket of the storageKey.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "StorageBucketInfo",
- "type": "object",
- "properties": [
- {
- "name": "bucket",
- "$ref": "StorageBucket"
- },
- {
- "name": "id",
- "type": "string"
- },
- {
- "name": "expiration",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "quota",
- "description": "Storage quota (bytes).",
- "type": "number"
- },
- {
- "name": "persistent",
- "type": "boolean"
- },
- {
- "name": "durability",
- "$ref": "StorageBucketsDurability"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getStorageKeyForFrame",
- "description": "Returns a storage key given a frame id.",
- "parameters": [
- {
- "name": "frameId",
- "$ref": "Page.FrameId"
- }
- ],
- "returns": [
- {
- "name": "storageKey",
- "$ref": "SerializedStorageKey"
- }
- ]
- },
- {
- "name": "clearDataForOrigin",
- "description": "Clears storage for origin.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- },
- {
- "name": "storageTypes",
- "description": "Comma separated list of StorageType to clear.",
- "type": "string"
- }
- ]
- },
- {
- "name": "clearDataForStorageKey",
- "description": "Clears storage for storage key.",
- "parameters": [
- {
- "name": "storageKey",
- "description": "Storage key.",
- "type": "string"
- },
- {
- "name": "storageTypes",
- "description": "Comma separated list of StorageType to clear.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getCookies",
- "description": "Returns all browser cookies.",
- "parameters": [
- {
- "name": "browserContextId",
- "description": "Browser context to use when called on the browser endpoint.",
- "optional": true,
- "$ref": "Browser.BrowserContextID"
- }
- ],
- "returns": [
- {
- "name": "cookies",
- "description": "Array of cookie objects.",
- "type": "array",
- "items": {
- "$ref": "Network.Cookie"
- }
- }
- ]
- },
- {
- "name": "setCookies",
- "description": "Sets given cookies.",
- "parameters": [
- {
- "name": "cookies",
- "description": "Cookies to be set.",
- "type": "array",
- "items": {
- "$ref": "Network.CookieParam"
- }
- },
- {
- "name": "browserContextId",
- "description": "Browser context to use when called on the browser endpoint.",
- "optional": true,
- "$ref": "Browser.BrowserContextID"
- }
- ]
- },
- {
- "name": "clearCookies",
- "description": "Clears cookies.",
- "parameters": [
- {
- "name": "browserContextId",
- "description": "Browser context to use when called on the browser endpoint.",
- "optional": true,
- "$ref": "Browser.BrowserContextID"
- }
- ]
- },
- {
- "name": "getUsageAndQuota",
- "description": "Returns usage and quota in bytes.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "usage",
- "description": "Storage usage (bytes).",
- "type": "number"
- },
- {
- "name": "quota",
- "description": "Storage quota (bytes).",
- "type": "number"
- },
- {
- "name": "overrideActive",
- "description": "Whether or not the origin has an active storage quota override",
- "type": "boolean"
- },
- {
- "name": "usageBreakdown",
- "description": "Storage usage per type (bytes).",
- "type": "array",
- "items": {
- "$ref": "UsageForType"
- }
- }
- ]
- },
- {
- "name": "overrideQuotaForOrigin",
- "description": "Override quota for the specified origin",
- "experimental": true,
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- },
- {
- "name": "quotaSize",
- "description": "The quota size (in bytes) to override the original quota with.\nIf this is called multiple times, the overridden quota will be equal to\nthe quotaSize provided in the final call. If this is called without\nspecifying a quotaSize, the quota will be reset to the default value for\nthe specified origin. If this is called multiple times with different\norigins, the override will be maintained for each origin until it is\ndisabled (called without a quotaSize).",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "trackCacheStorageForOrigin",
- "description": "Registers origin to be notified when an update occurs to its cache storage list.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- }
- ]
- },
- {
- "name": "trackCacheStorageForStorageKey",
- "description": "Registers storage key to be notified when an update occurs to its cache storage list.",
- "parameters": [
- {
- "name": "storageKey",
- "description": "Storage key.",
- "type": "string"
- }
- ]
- },
- {
- "name": "trackIndexedDBForOrigin",
- "description": "Registers origin to be notified when an update occurs to its IndexedDB.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- }
- ]
- },
- {
- "name": "trackIndexedDBForStorageKey",
- "description": "Registers storage key to be notified when an update occurs to its IndexedDB.",
- "parameters": [
- {
- "name": "storageKey",
- "description": "Storage key.",
- "type": "string"
- }
- ]
- },
- {
- "name": "untrackCacheStorageForOrigin",
- "description": "Unregisters origin from receiving notifications for cache storage.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- }
- ]
- },
- {
- "name": "untrackCacheStorageForStorageKey",
- "description": "Unregisters storage key from receiving notifications for cache storage.",
- "parameters": [
- {
- "name": "storageKey",
- "description": "Storage key.",
- "type": "string"
- }
- ]
- },
- {
- "name": "untrackIndexedDBForOrigin",
- "description": "Unregisters origin from receiving notifications for IndexedDB.",
- "parameters": [
- {
- "name": "origin",
- "description": "Security origin.",
- "type": "string"
- }
- ]
- },
- {
- "name": "untrackIndexedDBForStorageKey",
- "description": "Unregisters storage key from receiving notifications for IndexedDB.",
- "parameters": [
- {
- "name": "storageKey",
- "description": "Storage key.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getTrustTokens",
- "description": "Returns the number of stored Trust Tokens per issuer for the\ncurrent browsing context.",
- "experimental": true,
- "returns": [
- {
- "name": "tokens",
- "type": "array",
- "items": {
- "$ref": "TrustTokens"
- }
- }
- ]
- },
- {
- "name": "clearTrustTokens",
- "description": "Removes all Trust Tokens issued by the provided issuerOrigin.\nLeaves other stored data, including the issuer's Redemption Records, intact.",
- "experimental": true,
- "parameters": [
- {
- "name": "issuerOrigin",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "didDeleteTokens",
- "description": "True if any tokens were deleted, false otherwise.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getInterestGroupDetails",
- "description": "Gets details for a named interest group.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- },
- {
- "name": "name",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "details",
- "$ref": "InterestGroupDetails"
- }
- ]
- },
- {
- "name": "setInterestGroupTracking",
- "description": "Enables/Disables issuing of interestGroupAccessed events.",
- "experimental": true,
- "parameters": [
- {
- "name": "enable",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getSharedStorageMetadata",
- "description": "Gets metadata for an origin's shared storage.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "metadata",
- "$ref": "SharedStorageMetadata"
- }
- ]
- },
- {
- "name": "getSharedStorageEntries",
- "description": "Gets the entries in an given origin's shared storage.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "entries",
- "type": "array",
- "items": {
- "$ref": "SharedStorageEntry"
- }
- }
- ]
- },
- {
- "name": "setSharedStorageEntry",
- "description": "Sets entry with `key` and `value` for a given origin's shared storage.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- },
- {
- "name": "key",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- },
- {
- "name": "ignoreIfPresent",
- "description": "If `ignoreIfPresent` is included and true, then only sets the entry if\n`key` doesn't already exist.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "deleteSharedStorageEntry",
- "description": "Deletes entry for `key` (if it exists) for a given origin's shared storage.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- },
- {
- "name": "key",
- "type": "string"
- }
- ]
- },
- {
- "name": "clearSharedStorageEntries",
- "description": "Clears all entries for a given origin's shared storage.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- }
- ]
- },
- {
- "name": "resetSharedStorageBudget",
- "description": "Resets the budget for `ownerOrigin` by clearing all budget withdrawals.",
- "experimental": true,
- "parameters": [
- {
- "name": "ownerOrigin",
- "type": "string"
- }
- ]
- },
- {
- "name": "setSharedStorageTracking",
- "description": "Enables/disables issuing of sharedStorageAccessed events.",
- "experimental": true,
- "parameters": [
- {
- "name": "enable",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setStorageBucketTracking",
- "description": "Set tracking for a storage key's buckets.",
- "experimental": true,
- "parameters": [
- {
- "name": "storageKey",
- "type": "string"
- },
- {
- "name": "enable",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "deleteStorageBucket",
- "description": "Deletes the Storage Bucket with the given storage key and bucket name.",
- "experimental": true,
- "parameters": [
- {
- "name": "bucket",
- "$ref": "StorageBucket"
- }
- ]
- },
- {
- "name": "runBounceTrackingMitigations",
- "description": "Deletes state for sites identified as potential bounce trackers, immediately.",
- "experimental": true,
- "returns": [
- {
- "name": "deletedSites",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "cacheStorageContentUpdated",
- "description": "A cache's contents have been modified.",
- "parameters": [
- {
- "name": "origin",
- "description": "Origin to update.",
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key to update.",
- "type": "string"
- },
- {
- "name": "bucketId",
- "description": "Storage bucket to update.",
- "type": "string"
- },
- {
- "name": "cacheName",
- "description": "Name of cache in origin.",
- "type": "string"
- }
- ]
- },
- {
- "name": "cacheStorageListUpdated",
- "description": "A cache has been added/deleted.",
- "parameters": [
- {
- "name": "origin",
- "description": "Origin to update.",
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key to update.",
- "type": "string"
- },
- {
- "name": "bucketId",
- "description": "Storage bucket to update.",
- "type": "string"
- }
- ]
- },
- {
- "name": "indexedDBContentUpdated",
- "description": "The origin's IndexedDB object store has been modified.",
- "parameters": [
- {
- "name": "origin",
- "description": "Origin to update.",
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key to update.",
- "type": "string"
- },
- {
- "name": "bucketId",
- "description": "Storage bucket to update.",
- "type": "string"
- },
- {
- "name": "databaseName",
- "description": "Database to update.",
- "type": "string"
- },
- {
- "name": "objectStoreName",
- "description": "ObjectStore to update.",
- "type": "string"
- }
- ]
- },
- {
- "name": "indexedDBListUpdated",
- "description": "The origin's IndexedDB database list has been modified.",
- "parameters": [
- {
- "name": "origin",
- "description": "Origin to update.",
- "type": "string"
- },
- {
- "name": "storageKey",
- "description": "Storage key to update.",
- "type": "string"
- },
- {
- "name": "bucketId",
- "description": "Storage bucket to update.",
- "type": "string"
- }
- ]
- },
- {
- "name": "interestGroupAccessed",
- "description": "One of the interest groups was accessed by the associated page.",
- "parameters": [
- {
- "name": "accessTime",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "type",
- "$ref": "InterestGroupAccessType"
- },
- {
- "name": "ownerOrigin",
- "type": "string"
- },
- {
- "name": "name",
- "type": "string"
- }
- ]
- },
- {
- "name": "sharedStorageAccessed",
- "description": "Shared storage was accessed by the associated page.\nThe following parameters are included in all events.",
- "parameters": [
- {
- "name": "accessTime",
- "description": "Time of the access.",
- "$ref": "Network.TimeSinceEpoch"
- },
- {
- "name": "type",
- "description": "Enum value indicating the Shared Storage API method invoked.",
- "$ref": "SharedStorageAccessType"
- },
- {
- "name": "mainFrameId",
- "description": "DevTools Frame Token for the primary frame tree's root.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "ownerOrigin",
- "description": "Serialized origin for the context that invoked the Shared Storage API.",
- "type": "string"
- },
- {
- "name": "params",
- "description": "The sub-parameters warapped by `params` are all optional and their\npresence/absence depends on `type`.",
- "$ref": "SharedStorageAccessParams"
- }
- ]
- },
- {
- "name": "storageBucketCreatedOrUpdated",
- "parameters": [
- {
- "name": "bucketInfo",
- "$ref": "StorageBucketInfo"
- }
- ]
- },
- {
- "name": "storageBucketDeleted",
- "parameters": [
- {
- "name": "bucketId",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "SystemInfo",
- "description": "The SystemInfo domain defines methods and events for querying low-level system information.",
- "experimental": true,
- "types": [
- {
- "id": "GPUDevice",
- "description": "Describes a single graphics processor (GPU).",
- "type": "object",
- "properties": [
- {
- "name": "vendorId",
- "description": "PCI ID of the GPU vendor, if available; 0 otherwise.",
- "type": "number"
- },
- {
- "name": "deviceId",
- "description": "PCI ID of the GPU device, if available; 0 otherwise.",
- "type": "number"
- },
- {
- "name": "subSysId",
- "description": "Sub sys ID of the GPU, only available on Windows.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "revision",
- "description": "Revision of the GPU, only available on Windows.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "vendorString",
- "description": "String description of the GPU vendor, if the PCI ID is not available.",
- "type": "string"
- },
- {
- "name": "deviceString",
- "description": "String description of the GPU device, if the PCI ID is not available.",
- "type": "string"
- },
- {
- "name": "driverVendor",
- "description": "String description of the GPU driver vendor.",
- "type": "string"
- },
- {
- "name": "driverVersion",
- "description": "String description of the GPU driver version.",
- "type": "string"
- }
- ]
- },
- {
- "id": "Size",
- "description": "Describes the width and height dimensions of an entity.",
- "type": "object",
- "properties": [
- {
- "name": "width",
- "description": "Width in pixels.",
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Height in pixels.",
- "type": "integer"
- }
- ]
- },
- {
- "id": "VideoDecodeAcceleratorCapability",
- "description": "Describes a supported video decoding profile with its associated minimum and\nmaximum resolutions.",
- "type": "object",
- "properties": [
- {
- "name": "profile",
- "description": "Video codec profile that is supported, e.g. VP9 Profile 2.",
- "type": "string"
- },
- {
- "name": "maxResolution",
- "description": "Maximum video dimensions in pixels supported for this |profile|.",
- "$ref": "Size"
- },
- {
- "name": "minResolution",
- "description": "Minimum video dimensions in pixels supported for this |profile|.",
- "$ref": "Size"
- }
- ]
- },
- {
- "id": "VideoEncodeAcceleratorCapability",
- "description": "Describes a supported video encoding profile with its associated maximum\nresolution and maximum framerate.",
- "type": "object",
- "properties": [
- {
- "name": "profile",
- "description": "Video codec profile that is supported, e.g H264 Main.",
- "type": "string"
- },
- {
- "name": "maxResolution",
- "description": "Maximum video dimensions in pixels supported for this |profile|.",
- "$ref": "Size"
- },
- {
- "name": "maxFramerateNumerator",
- "description": "Maximum encoding framerate in frames per second supported for this\n|profile|, as fraction's numerator and denominator, e.g. 24/1 fps,\n24000/1001 fps, etc.",
- "type": "integer"
- },
- {
- "name": "maxFramerateDenominator",
- "type": "integer"
- }
- ]
- },
- {
- "id": "SubsamplingFormat",
- "description": "YUV subsampling type of the pixels of a given image.",
- "type": "string",
- "enum": [
- "yuv420",
- "yuv422",
- "yuv444"
- ]
- },
- {
- "id": "ImageType",
- "description": "Image format of a given image.",
- "type": "string",
- "enum": [
- "jpeg",
- "webp",
- "unknown"
- ]
- },
- {
- "id": "ImageDecodeAcceleratorCapability",
- "description": "Describes a supported image decoding profile with its associated minimum and\nmaximum resolutions and subsampling.",
- "type": "object",
- "properties": [
- {
- "name": "imageType",
- "description": "Image coded, e.g. Jpeg.",
- "$ref": "ImageType"
- },
- {
- "name": "maxDimensions",
- "description": "Maximum supported dimensions of the image in pixels.",
- "$ref": "Size"
- },
- {
- "name": "minDimensions",
- "description": "Minimum supported dimensions of the image in pixels.",
- "$ref": "Size"
- },
- {
- "name": "subsamplings",
- "description": "Optional array of supported subsampling formats, e.g. 4:2:0, if known.",
- "type": "array",
- "items": {
- "$ref": "SubsamplingFormat"
- }
- }
- ]
- },
- {
- "id": "GPUInfo",
- "description": "Provides information about the GPU(s) on the system.",
- "type": "object",
- "properties": [
- {
- "name": "devices",
- "description": "The graphics devices on the system. Element 0 is the primary GPU.",
- "type": "array",
- "items": {
- "$ref": "GPUDevice"
- }
- },
- {
- "name": "auxAttributes",
- "description": "An optional dictionary of additional GPU related attributes.",
- "optional": true,
- "type": "object"
- },
- {
- "name": "featureStatus",
- "description": "An optional dictionary of graphics features and their status.",
- "optional": true,
- "type": "object"
- },
- {
- "name": "driverBugWorkarounds",
- "description": "An optional array of GPU driver bug workarounds.",
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "videoDecoding",
- "description": "Supported accelerated video decoding capabilities.",
- "type": "array",
- "items": {
- "$ref": "VideoDecodeAcceleratorCapability"
- }
- },
- {
- "name": "videoEncoding",
- "description": "Supported accelerated video encoding capabilities.",
- "type": "array",
- "items": {
- "$ref": "VideoEncodeAcceleratorCapability"
- }
- },
- {
- "name": "imageDecoding",
- "description": "Supported accelerated image decoding capabilities.",
- "type": "array",
- "items": {
- "$ref": "ImageDecodeAcceleratorCapability"
- }
- }
- ]
- },
- {
- "id": "ProcessInfo",
- "description": "Represents process info.",
- "type": "object",
- "properties": [
- {
- "name": "type",
- "description": "Specifies process type.",
- "type": "string"
- },
- {
- "name": "id",
- "description": "Specifies process id.",
- "type": "integer"
- },
- {
- "name": "cpuTime",
- "description": "Specifies cumulative CPU usage in seconds across all threads of the\nprocess since the process start.",
- "type": "number"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "getInfo",
- "description": "Returns information about the system.",
- "returns": [
- {
- "name": "gpu",
- "description": "Information about the GPUs on the system.",
- "$ref": "GPUInfo"
- },
- {
- "name": "modelName",
- "description": "A platform-dependent description of the model of the machine. On Mac OS, this is, for\nexample, 'MacBookPro'. Will be the empty string if not supported.",
- "type": "string"
- },
- {
- "name": "modelVersion",
- "description": "A platform-dependent description of the version of the machine. On Mac OS, this is, for\nexample, '10.1'. Will be the empty string if not supported.",
- "type": "string"
- },
- {
- "name": "commandLine",
- "description": "The command line string used to launch the browser. Will be the empty string if not\nsupported.",
- "type": "string"
- }
- ]
- },
- {
- "name": "getFeatureState",
- "description": "Returns information about the feature state.",
- "parameters": [
- {
- "name": "featureState",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "featureEnabled",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "getProcessInfo",
- "description": "Returns information about all running processes.",
- "returns": [
- {
- "name": "processInfo",
- "description": "An array of process info blocks.",
- "type": "array",
- "items": {
- "$ref": "ProcessInfo"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Target",
- "description": "Supports additional targets discovery and allows to attach to them.",
- "types": [
- {
- "id": "TargetID",
- "type": "string"
- },
- {
- "id": "SessionID",
- "description": "Unique identifier of attached debugging session.",
- "type": "string"
- },
- {
- "id": "TargetInfo",
- "type": "object",
- "properties": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- },
- {
- "name": "type",
- "type": "string"
- },
- {
- "name": "title",
- "type": "string"
- },
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "attached",
- "description": "Whether the target has an attached client.",
- "type": "boolean"
- },
- {
- "name": "openerId",
- "description": "Opener target Id",
- "optional": true,
- "$ref": "TargetID"
- },
- {
- "name": "canAccessOpener",
- "description": "Whether the target has access to the originating window.",
- "experimental": true,
- "type": "boolean"
- },
- {
- "name": "openerFrameId",
- "description": "Frame id of originating window (is only set if target has an opener).",
- "experimental": true,
- "optional": true,
- "$ref": "Page.FrameId"
- },
- {
- "name": "browserContextId",
- "experimental": true,
- "optional": true,
- "$ref": "Browser.BrowserContextID"
- },
- {
- "name": "subtype",
- "description": "Provides additional details for specific target types. For example, for\nthe type of \"page\", this may be set to \"portal\" or \"prerender\".",
- "experimental": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "FilterEntry",
- "description": "A filter used by target query/discovery/auto-attach operations.",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "exclude",
- "description": "If set, causes exclusion of mathcing targets from the list.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "type",
- "description": "If not present, matches any type.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "TargetFilter",
- "description": "The entries in TargetFilter are matched sequentially against targets and\nthe first entry that matches determines if the target is included or not,\ndepending on the value of `exclude` field in the entry.\nIf filter is not specified, the one assumed is\n[{type: \"browser\", exclude: true}, {type: \"tab\", exclude: true}, {}]\n(i.e. include everything but `browser` and `tab`).",
- "experimental": true,
- "type": "array",
- "items": {
- "$ref": "FilterEntry"
- }
- },
- {
- "id": "RemoteLocation",
- "experimental": true,
- "type": "object",
- "properties": [
- {
- "name": "host",
- "type": "string"
- },
- {
- "name": "port",
- "type": "integer"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "activateTarget",
- "description": "Activates (focuses) the target.",
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "attachToTarget",
- "description": "Attaches to the target with given id.",
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- },
- {
- "name": "flatten",
- "description": "Enables \"flat\" access to the session via specifying sessionId attribute in the commands.\nWe plan to make this the default, deprecate non-flattened mode,\nand eventually retire it. See crbug.com/991325.",
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "sessionId",
- "description": "Id assigned to the session.",
- "$ref": "SessionID"
- }
- ]
- },
- {
- "name": "attachToBrowserTarget",
- "description": "Attaches to the browser target, only uses flat sessionId mode.",
- "experimental": true,
- "returns": [
- {
- "name": "sessionId",
- "description": "Id assigned to the session.",
- "$ref": "SessionID"
- }
- ]
- },
- {
- "name": "closeTarget",
- "description": "Closes the target. If the target is a page that gets closed too.",
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- }
- ],
- "returns": [
- {
- "name": "success",
- "description": "Always set to true. If an error occurs, the response indicates protocol error.",
- "deprecated": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "exposeDevToolsProtocol",
- "description": "Inject object to the target's main frame that provides a communication\nchannel with browser target.\n\nInjected object will be available as `window[bindingName]`.\n\nThe object has the follwing API:\n- `binding.send(json)` - a method to send messages over the remote debugging protocol\n- `binding.onmessage = json => handleMessage(json)` - a callback that will be called for the protocol notifications and command responses.",
- "experimental": true,
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- },
- {
- "name": "bindingName",
- "description": "Binding name, 'cdp' if not specified.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "createBrowserContext",
- "description": "Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than\none.",
- "experimental": true,
- "parameters": [
- {
- "name": "disposeOnDetach",
- "description": "If specified, disposes this context when debugging session disconnects.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "proxyServer",
- "description": "Proxy server, similar to the one passed to --proxy-server",
- "optional": true,
- "type": "string"
- },
- {
- "name": "proxyBypassList",
- "description": "Proxy bypass list, similar to the one passed to --proxy-bypass-list",
- "optional": true,
- "type": "string"
- },
- {
- "name": "originsWithUniversalNetworkAccess",
- "description": "An optional list of origins to grant unlimited cross-origin access to.\nParts of the URL other than those constituting origin are ignored.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ],
- "returns": [
- {
- "name": "browserContextId",
- "description": "The id of the context created.",
- "$ref": "Browser.BrowserContextID"
- }
- ]
- },
- {
- "name": "getBrowserContexts",
- "description": "Returns all browser contexts created with `Target.createBrowserContext` method.",
- "experimental": true,
- "returns": [
- {
- "name": "browserContextIds",
- "description": "An array of browser context ids.",
- "type": "array",
- "items": {
- "$ref": "Browser.BrowserContextID"
- }
- }
- ]
- },
- {
- "name": "createTarget",
- "description": "Creates a new page.",
- "parameters": [
- {
- "name": "url",
- "description": "The initial URL the page will be navigated to. An empty string indicates about:blank.",
- "type": "string"
- },
- {
- "name": "width",
- "description": "Frame width in DIP (headless chrome only).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "height",
- "description": "Frame height in DIP (headless chrome only).",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "browserContextId",
- "description": "The browser context to create the page in.",
- "experimental": true,
- "optional": true,
- "$ref": "Browser.BrowserContextID"
- },
- {
- "name": "enableBeginFrameControl",
- "description": "Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,\nnot supported on MacOS yet, false by default).",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "newWindow",
- "description": "Whether to create a new Window or Tab (chrome-only, false by default).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "background",
- "description": "Whether to create the target in background or foreground (chrome-only,\nfalse by default).",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "forTab",
- "description": "Whether to create the target of type \"tab\".",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ],
- "returns": [
- {
- "name": "targetId",
- "description": "The id of the page opened.",
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "detachFromTarget",
- "description": "Detaches session with given id.",
- "parameters": [
- {
- "name": "sessionId",
- "description": "Session to detach.",
- "optional": true,
- "$ref": "SessionID"
- },
- {
- "name": "targetId",
- "description": "Deprecated.",
- "deprecated": true,
- "optional": true,
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "disposeBrowserContext",
- "description": "Deletes a BrowserContext. All the belonging pages will be closed without calling their\nbeforeunload hooks.",
- "experimental": true,
- "parameters": [
- {
- "name": "browserContextId",
- "$ref": "Browser.BrowserContextID"
- }
- ]
- },
- {
- "name": "getTargetInfo",
- "description": "Returns information about a target.",
- "experimental": true,
- "parameters": [
- {
- "name": "targetId",
- "optional": true,
- "$ref": "TargetID"
- }
- ],
- "returns": [
- {
- "name": "targetInfo",
- "$ref": "TargetInfo"
- }
- ]
- },
- {
- "name": "getTargets",
- "description": "Retrieves a list of available targets.",
- "parameters": [
- {
- "name": "filter",
- "description": "Only targets matching filter will be reported. If filter is not specified\nand target discovery is currently enabled, a filter used for target discovery\nis used for consistency.",
- "experimental": true,
- "optional": true,
- "$ref": "TargetFilter"
- }
- ],
- "returns": [
- {
- "name": "targetInfos",
- "description": "The list of targets.",
- "type": "array",
- "items": {
- "$ref": "TargetInfo"
- }
- }
- ]
- },
- {
- "name": "sendMessageToTarget",
- "description": "Sends protocol message over session with given id.\nConsider using flat mode instead; see commands attachToTarget, setAutoAttach,\nand crbug.com/991325.",
- "deprecated": true,
- "parameters": [
- {
- "name": "message",
- "type": "string"
- },
- {
- "name": "sessionId",
- "description": "Identifier of the session.",
- "optional": true,
- "$ref": "SessionID"
- },
- {
- "name": "targetId",
- "description": "Deprecated.",
- "deprecated": true,
- "optional": true,
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "setAutoAttach",
- "description": "Controls whether to automatically attach to new targets which are considered to be related to\nthis one. When turned on, attaches to all existing related targets as well. When turned off,\nautomatically detaches from all currently attached targets.\nThis also clears all targets added by `autoAttachRelated` from the list of targets to watch\nfor creation of related targets.",
- "experimental": true,
- "parameters": [
- {
- "name": "autoAttach",
- "description": "Whether to auto-attach to related targets.",
- "type": "boolean"
- },
- {
- "name": "waitForDebuggerOnStart",
- "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
- "type": "boolean"
- },
- {
- "name": "flatten",
- "description": "Enables \"flat\" access to the session via specifying sessionId attribute in the commands.\nWe plan to make this the default, deprecate non-flattened mode,\nand eventually retire it. See crbug.com/991325.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "filter",
- "description": "Only targets matching filter will be attached.",
- "experimental": true,
- "optional": true,
- "$ref": "TargetFilter"
- }
- ]
- },
- {
- "name": "autoAttachRelated",
- "description": "Adds the specified target to the list of targets that will be monitored for any related target\ncreation (such as child frames, child workers and new versions of service worker) and reported\nthrough `attachedToTarget`. The specified target is also auto-attached.\nThis cancels the effect of any previous `setAutoAttach` and is also cancelled by subsequent\n`setAutoAttach`. Only available at the Browser target.",
- "experimental": true,
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- },
- {
- "name": "waitForDebuggerOnStart",
- "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
- "type": "boolean"
- },
- {
- "name": "filter",
- "description": "Only targets matching filter will be attached.",
- "experimental": true,
- "optional": true,
- "$ref": "TargetFilter"
- }
- ]
- },
- {
- "name": "setDiscoverTargets",
- "description": "Controls whether to discover available targets and notify via\n`targetCreated/targetInfoChanged/targetDestroyed` events.",
- "parameters": [
- {
- "name": "discover",
- "description": "Whether to discover available targets.",
- "type": "boolean"
- },
- {
- "name": "filter",
- "description": "Only targets matching filter will be attached. If `discover` is false,\n`filter` must be omitted or empty.",
- "experimental": true,
- "optional": true,
- "$ref": "TargetFilter"
- }
- ]
- },
- {
- "name": "setRemoteLocations",
- "description": "Enables target discovery for the specified locations, when `setDiscoverTargets` was set to\n`true`.",
- "experimental": true,
- "parameters": [
- {
- "name": "locations",
- "description": "List of remote locations.",
- "type": "array",
- "items": {
- "$ref": "RemoteLocation"
- }
- }
- ]
- }
- ],
- "events": [
- {
- "name": "attachedToTarget",
- "description": "Issued when attached to target because of auto-attach or `attachToTarget` command.",
- "experimental": true,
- "parameters": [
- {
- "name": "sessionId",
- "description": "Identifier assigned to the session used to send/receive messages.",
- "$ref": "SessionID"
- },
- {
- "name": "targetInfo",
- "$ref": "TargetInfo"
- },
- {
- "name": "waitingForDebugger",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "detachedFromTarget",
- "description": "Issued when detached from target for any reason (including `detachFromTarget` command). Can be\nissued multiple times per target if multiple sessions have been attached to it.",
- "experimental": true,
- "parameters": [
- {
- "name": "sessionId",
- "description": "Detached session identifier.",
- "$ref": "SessionID"
- },
- {
- "name": "targetId",
- "description": "Deprecated.",
- "deprecated": true,
- "optional": true,
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "receivedMessageFromTarget",
- "description": "Notifies about a new protocol message received from the session (as reported in\n`attachedToTarget` event).",
- "parameters": [
- {
- "name": "sessionId",
- "description": "Identifier of a session which sends a message.",
- "$ref": "SessionID"
- },
- {
- "name": "message",
- "type": "string"
- },
- {
- "name": "targetId",
- "description": "Deprecated.",
- "deprecated": true,
- "optional": true,
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "targetCreated",
- "description": "Issued when a possible inspection target is created.",
- "parameters": [
- {
- "name": "targetInfo",
- "$ref": "TargetInfo"
- }
- ]
- },
- {
- "name": "targetDestroyed",
- "description": "Issued when a target is destroyed.",
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- }
- ]
- },
- {
- "name": "targetCrashed",
- "description": "Issued when a target has crashed.",
- "parameters": [
- {
- "name": "targetId",
- "$ref": "TargetID"
- },
- {
- "name": "status",
- "description": "Termination status type.",
- "type": "string"
- },
- {
- "name": "errorCode",
- "description": "Termination error code.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "targetInfoChanged",
- "description": "Issued when some information about a target has changed. This only happens between\n`targetCreated` and `targetDestroyed`.",
- "parameters": [
- {
- "name": "targetInfo",
- "$ref": "TargetInfo"
- }
- ]
- }
- ]
- },
- {
- "domain": "Tethering",
- "description": "The Tethering domain defines methods and events for browser port binding.",
- "experimental": true,
- "commands": [
- {
- "name": "bind",
- "description": "Request browser port binding.",
- "parameters": [
- {
- "name": "port",
- "description": "Port number to bind.",
- "type": "integer"
- }
- ]
- },
- {
- "name": "unbind",
- "description": "Request browser port unbinding.",
- "parameters": [
- {
- "name": "port",
- "description": "Port number to unbind.",
- "type": "integer"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "accepted",
- "description": "Informs that port was successfully bound and got a specified connection id.",
- "parameters": [
- {
- "name": "port",
- "description": "Port number that was successfully bound.",
- "type": "integer"
- },
- {
- "name": "connectionId",
- "description": "Connection id to be used.",
- "type": "string"
- }
- ]
- }
- ]
- },
- {
- "domain": "Tracing",
- "experimental": true,
- "dependencies": [
- "IO"
- ],
- "types": [
- {
- "id": "MemoryDumpConfig",
- "description": "Configuration for memory dump. Used only when \"memory-infra\" category is enabled.",
- "type": "object"
- },
- {
- "id": "TraceConfig",
- "type": "object",
- "properties": [
- {
- "name": "recordMode",
- "description": "Controls how the trace buffer stores data.",
- "optional": true,
- "type": "string",
- "enum": [
- "recordUntilFull",
- "recordContinuously",
- "recordAsMuchAsPossible",
- "echoToConsole"
- ]
- },
- {
- "name": "traceBufferSizeInKb",
- "description": "Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value\nof 200 MB would be used.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "enableSampling",
- "description": "Turns on JavaScript stack sampling.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "enableSystrace",
- "description": "Turns on system tracing.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "enableArgumentFilter",
- "description": "Turns on argument filter.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "includedCategories",
- "description": "Included category filters.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "excludedCategories",
- "description": "Excluded category filters.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "syntheticDelays",
- "description": "Configuration to synthesize the delays in tracing.",
- "optional": true,
- "type": "array",
- "items": {
- "type": "string"
- }
- },
- {
- "name": "memoryDumpConfig",
- "description": "Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled.",
- "optional": true,
- "$ref": "MemoryDumpConfig"
- }
- ]
- },
- {
- "id": "StreamFormat",
- "description": "Data format of a trace. Can be either the legacy JSON format or the\nprotocol buffer format. Note that the JSON format will be deprecated soon.",
- "type": "string",
- "enum": [
- "json",
- "proto"
- ]
- },
- {
- "id": "StreamCompression",
- "description": "Compression type to use for traces returned via streams.",
- "type": "string",
- "enum": [
- "none",
- "gzip"
- ]
- },
- {
- "id": "MemoryDumpLevelOfDetail",
- "description": "Details exposed when memory request explicitly declared.\nKeep consistent with memory_dump_request_args.h and\nmemory_instrumentation.mojom",
- "type": "string",
- "enum": [
- "background",
- "light",
- "detailed"
- ]
- },
- {
- "id": "TracingBackend",
- "description": "Backend type to use for tracing. `chrome` uses the Chrome-integrated\ntracing service and is supported on all platforms. `system` is only\nsupported on Chrome OS and uses the Perfetto system tracing service.\n`auto` chooses `system` when the perfettoConfig provided to Tracing.start\nspecifies at least one non-Chrome data source; otherwise uses `chrome`.",
- "type": "string",
- "enum": [
- "auto",
- "chrome",
- "system"
- ]
- }
- ],
- "commands": [
- {
- "name": "end",
- "description": "Stop trace events collection."
- },
- {
- "name": "getCategories",
- "description": "Gets supported tracing categories.",
- "returns": [
- {
- "name": "categories",
- "description": "A list of supported tracing categories.",
- "type": "array",
- "items": {
- "type": "string"
- }
- }
- ]
- },
- {
- "name": "recordClockSyncMarker",
- "description": "Record a clock sync marker in the trace.",
- "parameters": [
- {
- "name": "syncId",
- "description": "The ID of this clock sync marker",
- "type": "string"
- }
- ]
- },
- {
- "name": "requestMemoryDump",
- "description": "Request a global memory dump.",
- "parameters": [
- {
- "name": "deterministic",
- "description": "Enables more deterministic results by forcing garbage collection",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "levelOfDetail",
- "description": "Specifies level of details in memory dump. Defaults to \"detailed\".",
- "optional": true,
- "$ref": "MemoryDumpLevelOfDetail"
- }
- ],
- "returns": [
- {
- "name": "dumpGuid",
- "description": "GUID of the resulting global memory dump.",
- "type": "string"
- },
- {
- "name": "success",
- "description": "True iff the global memory dump succeeded.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "start",
- "description": "Start trace events collection.",
- "parameters": [
- {
- "name": "categories",
- "description": "Category/tag filter",
- "deprecated": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "options",
- "description": "Tracing options",
- "deprecated": true,
- "optional": true,
- "type": "string"
- },
- {
- "name": "bufferUsageReportingInterval",
- "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds",
- "optional": true,
- "type": "number"
- },
- {
- "name": "transferMode",
- "description": "Whether to report trace events as series of dataCollected events or to save trace to a\nstream (defaults to `ReportEvents`).",
- "optional": true,
- "type": "string",
- "enum": [
- "ReportEvents",
- "ReturnAsStream"
- ]
- },
- {
- "name": "streamFormat",
- "description": "Trace data format to use. This only applies when using `ReturnAsStream`\ntransfer mode (defaults to `json`).",
- "optional": true,
- "$ref": "StreamFormat"
- },
- {
- "name": "streamCompression",
- "description": "Compression format to use. This only applies when using `ReturnAsStream`\ntransfer mode (defaults to `none`)",
- "optional": true,
- "$ref": "StreamCompression"
- },
- {
- "name": "traceConfig",
- "optional": true,
- "$ref": "TraceConfig"
- },
- {
- "name": "perfettoConfig",
- "description": "Base64-encoded serialized perfetto.protos.TraceConfig protobuf message\nWhen specified, the parameters `categories`, `options`, `traceConfig`\nare ignored. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "tracingBackend",
- "description": "Backend type (defaults to `auto`)",
- "optional": true,
- "$ref": "TracingBackend"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "bufferUsage",
- "parameters": [
- {
- "name": "percentFull",
- "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its\ntotal size.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "eventCount",
- "description": "An approximate number of events in the trace log.",
- "optional": true,
- "type": "number"
- },
- {
- "name": "value",
- "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its\ntotal size.",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "dataCollected",
- "description": "Contains a bucket of collected trace events. When tracing is stopped collected events will be\nsent as a sequence of dataCollected events followed by tracingComplete event.",
- "parameters": [
- {
- "name": "value",
- "type": "array",
- "items": {
- "type": "object"
- }
- }
- ]
- },
- {
- "name": "tracingComplete",
- "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were\ndelivered via dataCollected events.",
- "parameters": [
- {
- "name": "dataLossOccurred",
- "description": "Indicates whether some trace data is known to have been lost, e.g. because the trace ring\nbuffer wrapped around.",
- "type": "boolean"
- },
- {
- "name": "stream",
- "description": "A handle of the stream that holds resulting trace data.",
- "optional": true,
- "$ref": "IO.StreamHandle"
- },
- {
- "name": "traceFormat",
- "description": "Trace data format of returned stream.",
- "optional": true,
- "$ref": "StreamFormat"
- },
- {
- "name": "streamCompression",
- "description": "Compression format of returned stream.",
- "optional": true,
- "$ref": "StreamCompression"
- }
- ]
- }
- ]
- },
- {
- "domain": "Fetch",
- "description": "A domain for letting clients substitute browser's network layer with client code.",
- "dependencies": [
- "Network",
- "IO",
- "Page"
- ],
- "types": [
- {
- "id": "RequestId",
- "description": "Unique request identifier.",
- "type": "string"
- },
- {
- "id": "RequestStage",
- "description": "Stages of the request to handle. Request will intercept before the request is\nsent. Response will intercept after the response is received (but before response\nbody is received).",
- "type": "string",
- "enum": [
- "Request",
- "Response"
- ]
- },
- {
- "id": "RequestPattern",
- "type": "object",
- "properties": [
- {
- "name": "urlPattern",
- "description": "Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is\nbackslash. Omitting is equivalent to `\"*\"`.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "resourceType",
- "description": "If set, only requests for matching resource types will be intercepted.",
- "optional": true,
- "$ref": "Network.ResourceType"
- },
- {
- "name": "requestStage",
- "description": "Stage at which to begin intercepting requests. Default is Request.",
- "optional": true,
- "$ref": "RequestStage"
- }
- ]
- },
- {
- "id": "HeaderEntry",
- "description": "Response HTTP header entry",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "AuthChallenge",
- "description": "Authorization challenge for HTTP status code 401 or 407.",
- "type": "object",
- "properties": [
- {
- "name": "source",
- "description": "Source of the authentication challenge.",
- "optional": true,
- "type": "string",
- "enum": [
- "Server",
- "Proxy"
- ]
- },
- {
- "name": "origin",
- "description": "Origin of the challenger.",
- "type": "string"
- },
- {
- "name": "scheme",
- "description": "The authentication scheme used, such as basic or digest",
- "type": "string"
- },
- {
- "name": "realm",
- "description": "The realm of the challenge. May be empty.",
- "type": "string"
- }
- ]
- },
- {
- "id": "AuthChallengeResponse",
- "description": "Response to an AuthChallenge.",
- "type": "object",
- "properties": [
- {
- "name": "response",
- "description": "The decision on what to do in response to the authorization challenge. Default means\ndeferring to the default behavior of the net stack, which will likely either the Cancel\nauthentication or display a popup dialog box.",
- "type": "string",
- "enum": [
- "Default",
- "CancelAuth",
- "ProvideCredentials"
- ]
- },
- {
- "name": "username",
- "description": "The username to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "password",
- "description": "The password to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "disable",
- "description": "Disables the fetch domain."
- },
- {
- "name": "enable",
- "description": "Enables issuing of requestPaused events. A request will be paused until client\ncalls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.",
- "parameters": [
- {
- "name": "patterns",
- "description": "If specified, only requests matching any of these patterns will produce\nfetchRequested event and will be paused until clients response. If not set,\nall requests will be affected.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "RequestPattern"
- }
- },
- {
- "name": "handleAuthRequests",
- "description": "If true, authRequired events will be issued and requests will be paused\nexpecting a call to continueWithAuth.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "failRequest",
- "description": "Causes the request to fail with specified reason.",
- "parameters": [
- {
- "name": "requestId",
- "description": "An id the client received in requestPaused event.",
- "$ref": "RequestId"
- },
- {
- "name": "errorReason",
- "description": "Causes the request to fail with the given reason.",
- "$ref": "Network.ErrorReason"
- }
- ]
- },
- {
- "name": "fulfillRequest",
- "description": "Provides response to the request.",
- "parameters": [
- {
- "name": "requestId",
- "description": "An id the client received in requestPaused event.",
- "$ref": "RequestId"
- },
- {
- "name": "responseCode",
- "description": "An HTTP response code.",
- "type": "integer"
- },
- {
- "name": "responseHeaders",
- "description": "Response headers.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "HeaderEntry"
- }
- },
- {
- "name": "binaryResponseHeaders",
- "description": "Alternative way of specifying response headers as a \\0-separated\nseries of name: value pairs. Prefer the above method unless you\nneed to represent some non-UTF8 values that can't be transmitted\nover the protocol as text. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "body",
- "description": "A response body. If absent, original response body will be used if\nthe request is intercepted at the response stage and empty body\nwill be used if the request is intercepted at the request stage. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "responsePhrase",
- "description": "A textual representation of responseCode.\nIf absent, a standard phrase matching responseCode is used.",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "continueRequest",
- "description": "Continues the request, optionally modifying some of its parameters.",
- "parameters": [
- {
- "name": "requestId",
- "description": "An id the client received in requestPaused event.",
- "$ref": "RequestId"
- },
- {
- "name": "url",
- "description": "If set, the request url will be modified in a way that's not observable by page.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "method",
- "description": "If set, the request method is overridden.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "postData",
- "description": "If set, overrides the post data in the request. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "headers",
- "description": "If set, overrides the request headers. Note that the overrides do not\nextend to subsequent redirect hops, if a redirect happens. Another override\nmay be applied to a different request produced by a redirect.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "HeaderEntry"
- }
- },
- {
- "name": "interceptResponse",
- "description": "If set, overrides response interception behavior for this request.",
- "experimental": true,
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "continueWithAuth",
- "description": "Continues a request supplying authChallengeResponse following authRequired event.",
- "parameters": [
- {
- "name": "requestId",
- "description": "An id the client received in authRequired event.",
- "$ref": "RequestId"
- },
- {
- "name": "authChallengeResponse",
- "description": "Response to with an authChallenge.",
- "$ref": "AuthChallengeResponse"
- }
- ]
- },
- {
- "name": "continueResponse",
- "description": "Continues loading of the paused response, optionally modifying the\nresponse headers. If either responseCode or headers are modified, all of them\nmust be present.",
- "experimental": true,
- "parameters": [
- {
- "name": "requestId",
- "description": "An id the client received in requestPaused event.",
- "$ref": "RequestId"
- },
- {
- "name": "responseCode",
- "description": "An HTTP response code. If absent, original response code will be used.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "responsePhrase",
- "description": "A textual representation of responseCode.\nIf absent, a standard phrase matching responseCode is used.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "responseHeaders",
- "description": "Response headers. If absent, original response headers will be used.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "HeaderEntry"
- }
- },
- {
- "name": "binaryResponseHeaders",
- "description": "Alternative way of specifying response headers as a \\0-separated\nseries of name: value pairs. Prefer the above method unless you\nneed to represent some non-UTF8 values that can't be transmitted\nover the protocol as text. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "getResponseBody",
- "description": "Causes the body of the response to be received from the server and\nreturned as a single string. May only be issued for a request that\nis paused in the Response stage and is mutually exclusive with\ntakeResponseBodyForInterceptionAsStream. Calling other methods that\naffect the request or disabling fetch domain before body is received\nresults in an undefined behavior.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Identifier for the intercepted request to get body for.",
- "$ref": "RequestId"
- }
- ],
- "returns": [
- {
- "name": "body",
- "description": "Response body.",
- "type": "string"
- },
- {
- "name": "base64Encoded",
- "description": "True, if content was sent as base64.",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "takeResponseBodyAsStream",
- "description": "Returns a handle to the stream representing the response body.\nThe request must be paused in the HeadersReceived stage.\nNote that after this command the request can't be continued\nas is -- client either needs to cancel it or to provide the\nresponse body.\nThe stream only supports sequential read, IO.read will fail if the position\nis specified.\nThis method is mutually exclusive with getResponseBody.\nCalling other methods that affect the request or disabling fetch\ndomain before body is received results in an undefined behavior.",
- "parameters": [
- {
- "name": "requestId",
- "$ref": "RequestId"
- }
- ],
- "returns": [
- {
- "name": "stream",
- "$ref": "IO.StreamHandle"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "requestPaused",
- "description": "Issued when the domain is enabled and the request URL matches the\nspecified filter. The request is paused until the client responds\nwith one of continueRequest, failRequest or fulfillRequest.\nThe stage of the request can be determined by presence of responseErrorReason\nand responseStatusCode -- the request is at the response stage if either\nof these fields is present and in the request stage otherwise.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Each request the page makes will have a unique id.",
- "$ref": "RequestId"
- },
- {
- "name": "request",
- "description": "The details of the request.",
- "$ref": "Network.Request"
- },
- {
- "name": "frameId",
- "description": "The id of the frame that initiated the request.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "resourceType",
- "description": "How the requested resource will be used.",
- "$ref": "Network.ResourceType"
- },
- {
- "name": "responseErrorReason",
- "description": "Response error if intercepted at response stage.",
- "optional": true,
- "$ref": "Network.ErrorReason"
- },
- {
- "name": "responseStatusCode",
- "description": "Response code if intercepted at response stage.",
- "optional": true,
- "type": "integer"
- },
- {
- "name": "responseStatusText",
- "description": "Response status text if intercepted at response stage.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "responseHeaders",
- "description": "Response headers if intercepted at the response stage.",
- "optional": true,
- "type": "array",
- "items": {
- "$ref": "HeaderEntry"
- }
- },
- {
- "name": "networkId",
- "description": "If the intercepted request had a corresponding Network.requestWillBeSent event fired for it,\nthen this networkId will be the same as the requestId present in the requestWillBeSent event.",
- "optional": true,
- "$ref": "Network.RequestId"
- },
- {
- "name": "redirectedRequestId",
- "description": "If the request is due to a redirect response from the server, the id of the request that\nhas caused the redirect.",
- "experimental": true,
- "optional": true,
- "$ref": "RequestId"
- }
- ]
- },
- {
- "name": "authRequired",
- "description": "Issued when the domain is enabled with handleAuthRequests set to true.\nThe request is paused until client responds with continueWithAuth.",
- "parameters": [
- {
- "name": "requestId",
- "description": "Each request the page makes will have a unique id.",
- "$ref": "RequestId"
- },
- {
- "name": "request",
- "description": "The details of the request.",
- "$ref": "Network.Request"
- },
- {
- "name": "frameId",
- "description": "The id of the frame that initiated the request.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "resourceType",
- "description": "How the requested resource will be used.",
- "$ref": "Network.ResourceType"
- },
- {
- "name": "authChallenge",
- "description": "Details of the Authorization Challenge encountered.\nIf this is set, client should respond with continueRequest that\ncontains AuthChallengeResponse.",
- "$ref": "AuthChallenge"
- }
- ]
- }
- ]
- },
- {
- "domain": "WebAudio",
- "description": "This domain allows inspection of Web Audio API.\nhttps://webaudio.github.io/web-audio-api/",
- "experimental": true,
- "types": [
- {
- "id": "GraphObjectId",
- "description": "An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API",
- "type": "string"
- },
- {
- "id": "ContextType",
- "description": "Enum of BaseAudioContext types",
- "type": "string",
- "enum": [
- "realtime",
- "offline"
- ]
- },
- {
- "id": "ContextState",
- "description": "Enum of AudioContextState from the spec",
- "type": "string",
- "enum": [
- "suspended",
- "running",
- "closed"
- ]
- },
- {
- "id": "NodeType",
- "description": "Enum of AudioNode types",
- "type": "string"
- },
- {
- "id": "ChannelCountMode",
- "description": "Enum of AudioNode::ChannelCountMode from the spec",
- "type": "string",
- "enum": [
- "clamped-max",
- "explicit",
- "max"
- ]
- },
- {
- "id": "ChannelInterpretation",
- "description": "Enum of AudioNode::ChannelInterpretation from the spec",
- "type": "string",
- "enum": [
- "discrete",
- "speakers"
- ]
- },
- {
- "id": "ParamType",
- "description": "Enum of AudioParam types",
- "type": "string"
- },
- {
- "id": "AutomationRate",
- "description": "Enum of AudioParam::AutomationRate from the spec",
- "type": "string",
- "enum": [
- "a-rate",
- "k-rate"
- ]
- },
- {
- "id": "ContextRealtimeData",
- "description": "Fields in AudioContext that change in real-time.",
- "type": "object",
- "properties": [
- {
- "name": "currentTime",
- "description": "The current context time in second in BaseAudioContext.",
- "type": "number"
- },
- {
- "name": "renderCapacity",
- "description": "The time spent on rendering graph divided by render quantum duration,\nand multiplied by 100. 100 means the audio renderer reached the full\ncapacity and glitch may occur.",
- "type": "number"
- },
- {
- "name": "callbackIntervalMean",
- "description": "A running mean of callback interval.",
- "type": "number"
- },
- {
- "name": "callbackIntervalVariance",
- "description": "A running variance of callback interval.",
- "type": "number"
- }
- ]
- },
- {
- "id": "BaseAudioContext",
- "description": "Protocol object for BaseAudioContext",
- "type": "object",
- "properties": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "contextType",
- "$ref": "ContextType"
- },
- {
- "name": "contextState",
- "$ref": "ContextState"
- },
- {
- "name": "realtimeData",
- "optional": true,
- "$ref": "ContextRealtimeData"
- },
- {
- "name": "callbackBufferSize",
- "description": "Platform-dependent callback buffer size.",
- "type": "number"
- },
- {
- "name": "maxOutputChannelCount",
- "description": "Number of output channels supported by audio hardware in use.",
- "type": "number"
- },
- {
- "name": "sampleRate",
- "description": "Context sample rate.",
- "type": "number"
- }
- ]
- },
- {
- "id": "AudioListener",
- "description": "Protocol object for AudioListener",
- "type": "object",
- "properties": [
- {
- "name": "listenerId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- }
- ]
- },
- {
- "id": "AudioNode",
- "description": "Protocol object for AudioNode",
- "type": "object",
- "properties": [
- {
- "name": "nodeId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "nodeType",
- "$ref": "NodeType"
- },
- {
- "name": "numberOfInputs",
- "type": "number"
- },
- {
- "name": "numberOfOutputs",
- "type": "number"
- },
- {
- "name": "channelCount",
- "type": "number"
- },
- {
- "name": "channelCountMode",
- "$ref": "ChannelCountMode"
- },
- {
- "name": "channelInterpretation",
- "$ref": "ChannelInterpretation"
- }
- ]
- },
- {
- "id": "AudioParam",
- "description": "Protocol object for AudioParam",
- "type": "object",
- "properties": [
- {
- "name": "paramId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "nodeId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "paramType",
- "$ref": "ParamType"
- },
- {
- "name": "rate",
- "$ref": "AutomationRate"
- },
- {
- "name": "defaultValue",
- "type": "number"
- },
- {
- "name": "minValue",
- "type": "number"
- },
- {
- "name": "maxValue",
- "type": "number"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enables the WebAudio domain and starts sending context lifetime events."
- },
- {
- "name": "disable",
- "description": "Disables the WebAudio domain."
- },
- {
- "name": "getRealtimeData",
- "description": "Fetch the realtime data from the registered contexts.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- }
- ],
- "returns": [
- {
- "name": "realtimeData",
- "$ref": "ContextRealtimeData"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "contextCreated",
- "description": "Notifies that a new BaseAudioContext has been created.",
- "parameters": [
- {
- "name": "context",
- "$ref": "BaseAudioContext"
- }
- ]
- },
- {
- "name": "contextWillBeDestroyed",
- "description": "Notifies that an existing BaseAudioContext will be destroyed.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- }
- ]
- },
- {
- "name": "contextChanged",
- "description": "Notifies that existing BaseAudioContext has changed some properties (id stays the same)..",
- "parameters": [
- {
- "name": "context",
- "$ref": "BaseAudioContext"
- }
- ]
- },
- {
- "name": "audioListenerCreated",
- "description": "Notifies that the construction of an AudioListener has finished.",
- "parameters": [
- {
- "name": "listener",
- "$ref": "AudioListener"
- }
- ]
- },
- {
- "name": "audioListenerWillBeDestroyed",
- "description": "Notifies that a new AudioListener has been created.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "listenerId",
- "$ref": "GraphObjectId"
- }
- ]
- },
- {
- "name": "audioNodeCreated",
- "description": "Notifies that a new AudioNode has been created.",
- "parameters": [
- {
- "name": "node",
- "$ref": "AudioNode"
- }
- ]
- },
- {
- "name": "audioNodeWillBeDestroyed",
- "description": "Notifies that an existing AudioNode has been destroyed.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "nodeId",
- "$ref": "GraphObjectId"
- }
- ]
- },
- {
- "name": "audioParamCreated",
- "description": "Notifies that a new AudioParam has been created.",
- "parameters": [
- {
- "name": "param",
- "$ref": "AudioParam"
- }
- ]
- },
- {
- "name": "audioParamWillBeDestroyed",
- "description": "Notifies that an existing AudioParam has been destroyed.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "nodeId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "paramId",
- "$ref": "GraphObjectId"
- }
- ]
- },
- {
- "name": "nodesConnected",
- "description": "Notifies that two AudioNodes are connected.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "destinationId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceOutputIndex",
- "optional": true,
- "type": "number"
- },
- {
- "name": "destinationInputIndex",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "nodesDisconnected",
- "description": "Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "destinationId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceOutputIndex",
- "optional": true,
- "type": "number"
- },
- {
- "name": "destinationInputIndex",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "nodeParamConnected",
- "description": "Notifies that an AudioNode is connected to an AudioParam.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "destinationId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceOutputIndex",
- "optional": true,
- "type": "number"
- }
- ]
- },
- {
- "name": "nodeParamDisconnected",
- "description": "Notifies that an AudioNode is disconnected to an AudioParam.",
- "parameters": [
- {
- "name": "contextId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "destinationId",
- "$ref": "GraphObjectId"
- },
- {
- "name": "sourceOutputIndex",
- "optional": true,
- "type": "number"
- }
- ]
- }
- ]
- },
- {
- "domain": "WebAuthn",
- "description": "This domain allows configuring virtual authenticators to test the WebAuthn\nAPI.",
- "experimental": true,
- "types": [
- {
- "id": "AuthenticatorId",
- "type": "string"
- },
- {
- "id": "AuthenticatorProtocol",
- "type": "string",
- "enum": [
- "u2f",
- "ctap2"
- ]
- },
- {
- "id": "Ctap2Version",
- "type": "string",
- "enum": [
- "ctap2_0",
- "ctap2_1"
- ]
- },
- {
- "id": "AuthenticatorTransport",
- "type": "string",
- "enum": [
- "usb",
- "nfc",
- "ble",
- "cable",
- "internal"
- ]
- },
- {
- "id": "VirtualAuthenticatorOptions",
- "type": "object",
- "properties": [
- {
- "name": "protocol",
- "$ref": "AuthenticatorProtocol"
- },
- {
- "name": "ctap2Version",
- "description": "Defaults to ctap2_0. Ignored if |protocol| == u2f.",
- "optional": true,
- "$ref": "Ctap2Version"
- },
- {
- "name": "transport",
- "$ref": "AuthenticatorTransport"
- },
- {
- "name": "hasResidentKey",
- "description": "Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "hasUserVerification",
- "description": "Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "hasLargeBlob",
- "description": "If set to true, the authenticator will support the largeBlob extension.\nhttps://w3c.github.io/webauthn#largeBlob\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "hasCredBlob",
- "description": "If set to true, the authenticator will support the credBlob extension.\nhttps://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "hasMinPinLength",
- "description": "If set to true, the authenticator will support the minPinLength extension.\nhttps://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "hasPrf",
- "description": "If set to true, the authenticator will support the prf extension.\nhttps://w3c.github.io/webauthn/#prf-extension\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "automaticPresenceSimulation",
- "description": "If set to true, tests of user presence will succeed immediately.\nOtherwise, they will not be resolved. Defaults to true.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isUserVerified",
- "description": "Sets whether User Verification succeeds or fails for an authenticator.\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "id": "Credential",
- "type": "object",
- "properties": [
- {
- "name": "credentialId",
- "type": "string"
- },
- {
- "name": "isResidentCredential",
- "type": "boolean"
- },
- {
- "name": "rpId",
- "description": "Relying Party ID the credential is scoped to. Must be set when adding a\ncredential.",
- "optional": true,
- "type": "string"
- },
- {
- "name": "privateKey",
- "description": "The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)",
- "type": "string"
- },
- {
- "name": "userHandle",
- "description": "An opaque byte sequence with a maximum size of 64 bytes mapping the\ncredential to a specific user. (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- },
- {
- "name": "signCount",
- "description": "Signature counter. This is incremented by one for each successful\nassertion.\nSee https://w3c.github.io/webauthn/#signature-counter",
- "type": "integer"
- },
- {
- "name": "largeBlob",
- "description": "The large blob associated with the credential.\nSee https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enable the WebAuthn domain and start intercepting credential storage and\nretrieval with a virtual authenticator.",
- "parameters": [
- {
- "name": "enableUI",
- "description": "Whether to enable the WebAuthn user interface. Enabling the UI is\nrecommended for debugging and demo purposes, as it is closer to the real\nexperience. Disabling the UI is recommended for automated testing.\nSupported at the embedder's discretion if UI is available.\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "disable",
- "description": "Disable the WebAuthn domain."
- },
- {
- "name": "addVirtualAuthenticator",
- "description": "Creates and adds a virtual authenticator.",
- "parameters": [
- {
- "name": "options",
- "$ref": "VirtualAuthenticatorOptions"
- }
- ],
- "returns": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- }
- ]
- },
- {
- "name": "setResponseOverrideBits",
- "description": "Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "isBogusSignature",
- "description": "If isBogusSignature is set, overrides the signature in the authenticator response to be zero.\nDefaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isBadUV",
- "description": "If isBadUV is set, overrides the UV bit in the flags in the authenticator response to\nbe zero. Defaults to false.",
- "optional": true,
- "type": "boolean"
- },
- {
- "name": "isBadUP",
- "description": "If isBadUP is set, overrides the UP bit in the flags in the authenticator response to\nbe zero. Defaults to false.",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "removeVirtualAuthenticator",
- "description": "Removes the given authenticator.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- }
- ]
- },
- {
- "name": "addCredential",
- "description": "Adds the credential to the specified authenticator.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "credential",
- "$ref": "Credential"
- }
- ]
- },
- {
- "name": "getCredential",
- "description": "Returns a single credential stored in the given virtual authenticator that\nmatches the credential ID.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "credentialId",
- "type": "string"
- }
- ],
- "returns": [
- {
- "name": "credential",
- "$ref": "Credential"
- }
- ]
- },
- {
- "name": "getCredentials",
- "description": "Returns all the credentials stored in the given virtual authenticator.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- }
- ],
- "returns": [
- {
- "name": "credentials",
- "type": "array",
- "items": {
- "$ref": "Credential"
- }
- }
- ]
- },
- {
- "name": "removeCredential",
- "description": "Removes a credential from the authenticator.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "credentialId",
- "type": "string"
- }
- ]
- },
- {
- "name": "clearCredentials",
- "description": "Clears all the credentials from the specified device.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- }
- ]
- },
- {
- "name": "setUserVerified",
- "description": "Sets whether User Verification succeeds or fails for an authenticator.\nThe default is true.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "isUserVerified",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "setAutomaticPresenceSimulation",
- "description": "Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator.\nThe default is true.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "enabled",
- "type": "boolean"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "credentialAdded",
- "description": "Triggered when a credential is added to an authenticator.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "credential",
- "$ref": "Credential"
- }
- ]
- },
- {
- "name": "credentialAsserted",
- "description": "Triggered when a credential is used in a webauthn assertion.",
- "parameters": [
- {
- "name": "authenticatorId",
- "$ref": "AuthenticatorId"
- },
- {
- "name": "credential",
- "$ref": "Credential"
- }
- ]
- }
- ]
- },
- {
- "domain": "Media",
- "description": "This domain allows detailed inspection of media elements",
- "experimental": true,
- "types": [
- {
- "id": "PlayerId",
- "description": "Players will get an ID that is unique within the agent context.",
- "type": "string"
- },
- {
- "id": "Timestamp",
- "type": "number"
- },
- {
- "id": "PlayerMessage",
- "description": "Have one type per entry in MediaLogRecord::Type\nCorresponds to kMessage",
- "type": "object",
- "properties": [
- {
- "name": "level",
- "description": "Keep in sync with MediaLogMessageLevel\nWe are currently keeping the message level 'error' separate from the\nPlayerError type because right now they represent different things,\nthis one being a DVLOG(ERROR) style log message that gets printed\nbased on what log level is selected in the UI, and the other is a\nrepresentation of a media::PipelineStatus object. Soon however we're\ngoing to be moving away from using PipelineStatus for errors and\nintroducing a new error type which should hopefully let us integrate\nthe error log level into the PlayerError type.",
- "type": "string",
- "enum": [
- "error",
- "warning",
- "info",
- "debug"
- ]
- },
- {
- "name": "message",
- "type": "string"
- }
- ]
- },
- {
- "id": "PlayerProperty",
- "description": "Corresponds to kMediaPropertyChange",
- "type": "object",
- "properties": [
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "PlayerEvent",
- "description": "Corresponds to kMediaEventTriggered",
- "type": "object",
- "properties": [
- {
- "name": "timestamp",
- "$ref": "Timestamp"
- },
- {
- "name": "value",
- "type": "string"
- }
- ]
- },
- {
- "id": "PlayerErrorSourceLocation",
- "description": "Represents logged source line numbers reported in an error.\nNOTE: file and line are from chromium c++ implementation code, not js.",
- "type": "object",
- "properties": [
- {
- "name": "file",
- "type": "string"
- },
- {
- "name": "line",
- "type": "integer"
- }
- ]
- },
- {
- "id": "PlayerError",
- "description": "Corresponds to kMediaError",
- "type": "object",
- "properties": [
- {
- "name": "errorType",
- "type": "string"
- },
- {
- "name": "code",
- "description": "Code is the numeric enum entry for a specific set of error codes, such\nas PipelineStatusCodes in media/base/pipeline_status.h",
- "type": "integer"
- },
- {
- "name": "stack",
- "description": "A trace of where this error was caused / where it passed through.",
- "type": "array",
- "items": {
- "$ref": "PlayerErrorSourceLocation"
- }
- },
- {
- "name": "cause",
- "description": "Errors potentially have a root cause error, ie, a DecoderError might be\ncaused by an WindowsError",
- "type": "array",
- "items": {
- "$ref": "PlayerError"
- }
- },
- {
- "name": "data",
- "description": "Extra data attached to an error, such as an HRESULT, Video Codec, etc.",
- "type": "object"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "playerPropertiesChanged",
- "description": "This can be called multiple times, and can be used to set / override /\nremove player properties. A null propValue indicates removal.",
- "parameters": [
- {
- "name": "playerId",
- "$ref": "PlayerId"
- },
- {
- "name": "properties",
- "type": "array",
- "items": {
- "$ref": "PlayerProperty"
- }
- }
- ]
- },
- {
- "name": "playerEventsAdded",
- "description": "Send events as a list, allowing them to be batched on the browser for less\ncongestion. If batched, events must ALWAYS be in chronological order.",
- "parameters": [
- {
- "name": "playerId",
- "$ref": "PlayerId"
- },
- {
- "name": "events",
- "type": "array",
- "items": {
- "$ref": "PlayerEvent"
- }
- }
- ]
- },
- {
- "name": "playerMessagesLogged",
- "description": "Send a list of any messages that need to be delivered.",
- "parameters": [
- {
- "name": "playerId",
- "$ref": "PlayerId"
- },
- {
- "name": "messages",
- "type": "array",
- "items": {
- "$ref": "PlayerMessage"
- }
- }
- ]
- },
- {
- "name": "playerErrorsRaised",
- "description": "Send a list of any errors that need to be delivered.",
- "parameters": [
- {
- "name": "playerId",
- "$ref": "PlayerId"
- },
- {
- "name": "errors",
- "type": "array",
- "items": {
- "$ref": "PlayerError"
- }
- }
- ]
- },
- {
- "name": "playersCreated",
- "description": "Called whenever a player is created, or when a new agent joins and receives\na list of active players. If an agent is restored, it will receive the full\nlist of player ids and all events again.",
- "parameters": [
- {
- "name": "players",
- "type": "array",
- "items": {
- "$ref": "PlayerId"
- }
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enables the Media domain"
- },
- {
- "name": "disable",
- "description": "Disables the Media domain."
- }
- ]
- },
- {
- "domain": "DeviceAccess",
- "experimental": true,
- "types": [
- {
- "id": "RequestId",
- "description": "Device request id.",
- "type": "string"
- },
- {
- "id": "DeviceId",
- "description": "A device id.",
- "type": "string"
- },
- {
- "id": "PromptDevice",
- "description": "Device information displayed in a user prompt to select a device.",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "$ref": "DeviceId"
- },
- {
- "name": "name",
- "description": "Display name as it appears in a device request user prompt.",
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "description": "Enable events in this domain."
- },
- {
- "name": "disable",
- "description": "Disable events in this domain."
- },
- {
- "name": "selectPrompt",
- "description": "Select a device in response to a DeviceAccess.deviceRequestPrompted event.",
- "parameters": [
- {
- "name": "id",
- "$ref": "RequestId"
- },
- {
- "name": "deviceId",
- "$ref": "DeviceId"
- }
- ]
- },
- {
- "name": "cancelPrompt",
- "description": "Cancel a prompt in response to a DeviceAccess.deviceRequestPrompted event.",
- "parameters": [
- {
- "name": "id",
- "$ref": "RequestId"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "deviceRequestPrompted",
- "description": "A device request opened a user prompt to select a device. Respond with the\nselectPrompt or cancelPrompt command.",
- "parameters": [
- {
- "name": "id",
- "$ref": "RequestId"
- },
- {
- "name": "devices",
- "type": "array",
- "items": {
- "$ref": "PromptDevice"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "Preload",
- "experimental": true,
- "types": [
- {
- "id": "RuleSetId",
- "description": "Unique id",
- "type": "string"
- },
- {
- "id": "RuleSet",
- "description": "Corresponds to SpeculationRuleSet",
- "type": "object",
- "properties": [
- {
- "name": "id",
- "$ref": "RuleSetId"
- },
- {
- "name": "loaderId",
- "description": "Identifies a document which the rule set is associated with.",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "sourceText",
- "description": "Source text of JSON representing the rule set. If it comes from\n<script> tag, it is the textContent of the node. Note that it is\na JSON for valid case.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html\n- https://github.com/WICG/nav-speculation/blob/main/triggers.md",
- "type": "string"
- },
- {
- "name": "backendNodeId",
- "description": "A speculation rule set is either added through an inline\n<script> tag or through an external resource via the\n'Speculation-Rules' HTTP header. For the first case, we include\nthe BackendNodeId of the relevant <script> tag. For the second\ncase, we include the external URL where the rule set was loaded\nfrom, and also RequestId if Network domain is enabled.\n\nSee also:\n- https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-script\n- https://wicg.github.io/nav-speculation/speculation-rules.html#speculation-rules-header",
- "optional": true,
- "$ref": "DOM.BackendNodeId"
- },
- {
- "name": "url",
- "optional": true,
- "type": "string"
- },
- {
- "name": "requestId",
- "optional": true,
- "$ref": "Network.RequestId"
- },
- {
- "name": "errorType",
- "description": "Error information\n`errorMessage` is null iff `errorType` is null.",
- "optional": true,
- "$ref": "RuleSetErrorType"
- },
- {
- "name": "errorMessage",
- "description": "TODO(https://crbug.com/1425354): Replace this property with structured error.",
- "deprecated": true,
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "id": "RuleSetErrorType",
- "type": "string",
- "enum": [
- "SourceIsNotJsonObject",
- "InvalidRulesSkipped"
- ]
- },
- {
- "id": "SpeculationAction",
- "description": "The type of preloading attempted. It corresponds to\nmojom::SpeculationAction (although PrefetchWithSubresources is omitted as it\nisn't being used by clients).",
- "type": "string",
- "enum": [
- "Prefetch",
- "Prerender"
- ]
- },
- {
- "id": "SpeculationTargetHint",
- "description": "Corresponds to mojom::SpeculationTargetHint.\nSee https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints",
- "type": "string",
- "enum": [
- "Blank",
- "Self"
- ]
- },
- {
- "id": "PreloadingAttemptKey",
- "description": "A key that identifies a preloading attempt.\n\nThe url used is the url specified by the trigger (i.e. the initial URL), and\nnot the final url that is navigated to. For example, prerendering allows\nsame-origin main frame navigations during the attempt, but the attempt is\nstill keyed with the initial URL.",
- "type": "object",
- "properties": [
- {
- "name": "loaderId",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "action",
- "$ref": "SpeculationAction"
- },
- {
- "name": "url",
- "type": "string"
- },
- {
- "name": "targetHint",
- "optional": true,
- "$ref": "SpeculationTargetHint"
- }
- ]
- },
- {
- "id": "PreloadingAttemptSource",
- "description": "Lists sources for a preloading attempt, specifically the ids of rule sets\nthat had a speculation rule that triggered the attempt, and the\nBackendNodeIds of <a href> or <area href> elements that triggered the\nattempt (in the case of attempts triggered by a document rule). It is\npossible for mulitple rule sets and links to trigger a single attempt.",
- "type": "object",
- "properties": [
- {
- "name": "key",
- "$ref": "PreloadingAttemptKey"
- },
- {
- "name": "ruleSetIds",
- "type": "array",
- "items": {
- "$ref": "RuleSetId"
- }
- },
- {
- "name": "nodeIds",
- "type": "array",
- "items": {
- "$ref": "DOM.BackendNodeId"
- }
- }
- ]
- },
- {
- "id": "PrerenderFinalStatus",
- "description": "List of FinalStatus reasons for Prerender2.",
- "type": "string",
- "enum": [
- "Activated",
- "Destroyed",
- "LowEndDevice",
- "InvalidSchemeRedirect",
- "InvalidSchemeNavigation",
- "InProgressNavigation",
- "NavigationRequestBlockedByCsp",
- "MainFrameNavigation",
- "MojoBinderPolicy",
- "RendererProcessCrashed",
- "RendererProcessKilled",
- "Download",
- "TriggerDestroyed",
- "NavigationNotCommitted",
- "NavigationBadHttpStatus",
- "ClientCertRequested",
- "NavigationRequestNetworkError",
- "MaxNumOfRunningPrerendersExceeded",
- "CancelAllHostsForTesting",
- "DidFailLoad",
- "Stop",
- "SslCertificateError",
- "LoginAuthRequested",
- "UaChangeRequiresReload",
- "BlockedByClient",
- "AudioOutputDeviceRequested",
- "MixedContent",
- "TriggerBackgrounded",
- "EmbedderTriggeredAndCrossOriginRedirected",
- "MemoryLimitExceeded",
- "FailToGetMemoryUsage",
- "DataSaverEnabled",
- "HasEffectiveUrl",
- "ActivatedBeforeStarted",
- "InactivePageRestriction",
- "StartFailed",
- "TimeoutBackgrounded",
- "CrossSiteRedirectInInitialNavigation",
- "CrossSiteNavigationInInitialNavigation",
- "SameSiteCrossOriginRedirectNotOptInInInitialNavigation",
- "SameSiteCrossOriginNavigationNotOptInInInitialNavigation",
- "ActivationNavigationParameterMismatch",
- "ActivatedInBackground",
- "EmbedderHostDisallowed",
- "ActivationNavigationDestroyedBeforeSuccess",
- "TabClosedByUserGesture",
- "TabClosedWithoutUserGesture",
- "PrimaryMainFrameRendererProcessCrashed",
- "PrimaryMainFrameRendererProcessKilled",
- "ActivationFramePolicyNotCompatible",
- "PreloadingDisabled",
- "BatterySaverEnabled",
- "ActivatedDuringMainFrameNavigation",
- "PreloadingUnsupportedByWebContents",
- "CrossSiteRedirectInMainFrameNavigation",
- "CrossSiteNavigationInMainFrameNavigation",
- "SameSiteCrossOriginRedirectNotOptInInMainFrameNavigation",
- "SameSiteCrossOriginNavigationNotOptInInMainFrameNavigation",
- "MemoryPressureOnTrigger",
- "MemoryPressureAfterTriggered"
- ]
- },
- {
- "id": "PreloadingStatus",
- "description": "Preloading status values, see also PreloadingTriggeringOutcome. This\nstatus is shared by prefetchStatusUpdated and prerenderStatusUpdated.",
- "type": "string",
- "enum": [
- "Pending",
- "Running",
- "Ready",
- "Success",
- "Failure",
- "NotSupported"
- ]
- },
- {
- "id": "PrefetchStatus",
- "description": "TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and\nfilter out the ones that aren't necessary to the developers.",
- "type": "string",
- "enum": [
- "PrefetchAllowed",
- "PrefetchFailedIneligibleRedirect",
- "PrefetchFailedInvalidRedirect",
- "PrefetchFailedMIMENotSupported",
- "PrefetchFailedNetError",
- "PrefetchFailedNon2XX",
- "PrefetchFailedPerPageLimitExceeded",
- "PrefetchEvicted",
- "PrefetchHeldback",
- "PrefetchIneligibleRetryAfter",
- "PrefetchIsPrivacyDecoy",
- "PrefetchIsStale",
- "PrefetchNotEligibleBrowserContextOffTheRecord",
- "PrefetchNotEligibleDataSaverEnabled",
- "PrefetchNotEligibleExistingProxy",
- "PrefetchNotEligibleHostIsNonUnique",
- "PrefetchNotEligibleNonDefaultStoragePartition",
- "PrefetchNotEligibleSameSiteCrossOriginPrefetchRequiredProxy",
- "PrefetchNotEligibleSchemeIsNotHttps",
- "PrefetchNotEligibleUserHasCookies",
- "PrefetchNotEligibleUserHasServiceWorker",
- "PrefetchNotEligibleBatterySaverEnabled",
- "PrefetchNotEligiblePreloadingDisabled",
- "PrefetchNotFinishedInTime",
- "PrefetchNotStarted",
- "PrefetchNotUsedCookiesChanged",
- "PrefetchProxyNotAvailable",
- "PrefetchResponseUsed",
- "PrefetchSuccessfulButNotUsed",
- "PrefetchNotUsedProbeFailed"
- ]
- }
- ],
- "commands": [
- {
- "name": "enable"
- },
- {
- "name": "disable"
- }
- ],
- "events": [
- {
- "name": "ruleSetUpdated",
- "description": "Upsert. Currently, it is only emitted when a rule set added.",
- "parameters": [
- {
- "name": "ruleSet",
- "$ref": "RuleSet"
- }
- ]
- },
- {
- "name": "ruleSetRemoved",
- "parameters": [
- {
- "name": "id",
- "$ref": "RuleSetId"
- }
- ]
- },
- {
- "name": "prerenderAttemptCompleted",
- "description": "Fired when a prerender attempt is completed.",
- "parameters": [
- {
- "name": "key",
- "$ref": "PreloadingAttemptKey"
- },
- {
- "name": "initiatingFrameId",
- "description": "The frame id of the frame initiating prerendering.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "prerenderingUrl",
- "type": "string"
- },
- {
- "name": "finalStatus",
- "$ref": "PrerenderFinalStatus"
- },
- {
- "name": "disallowedApiMethod",
- "description": "This is used to give users more information about the name of the API call\nthat is incompatible with prerender and has caused the cancellation of the attempt",
- "optional": true,
- "type": "string"
- }
- ]
- },
- {
- "name": "preloadEnabledStateUpdated",
- "description": "Fired when a preload enabled state is updated.",
- "parameters": [
- {
- "name": "disabledByPreference",
- "type": "boolean"
- },
- {
- "name": "disabledByDataSaver",
- "type": "boolean"
- },
- {
- "name": "disabledByBatterySaver",
- "type": "boolean"
- }
- ]
- },
- {
- "name": "prefetchStatusUpdated",
- "description": "Fired when a prefetch attempt is updated.",
- "parameters": [
- {
- "name": "key",
- "$ref": "PreloadingAttemptKey"
- },
- {
- "name": "initiatingFrameId",
- "description": "The frame id of the frame initiating prefetch.",
- "$ref": "Page.FrameId"
- },
- {
- "name": "prefetchUrl",
- "type": "string"
- },
- {
- "name": "status",
- "$ref": "PreloadingStatus"
- },
- {
- "name": "prefetchStatus",
- "$ref": "PrefetchStatus"
- }
- ]
- },
- {
- "name": "prerenderStatusUpdated",
- "description": "Fired when a prerender attempt is updated.",
- "parameters": [
- {
- "name": "key",
- "$ref": "PreloadingAttemptKey"
- },
- {
- "name": "status",
- "$ref": "PreloadingStatus"
- },
- {
- "name": "prerenderStatus",
- "optional": true,
- "$ref": "PrerenderFinalStatus"
- }
- ]
- },
- {
- "name": "preloadingAttemptSourcesUpdated",
- "description": "Send a list of sources for all preloading attempts in a document.",
- "parameters": [
- {
- "name": "loaderId",
- "$ref": "Network.LoaderId"
- },
- {
- "name": "preloadingAttemptSources",
- "type": "array",
- "items": {
- "$ref": "PreloadingAttemptSource"
- }
- }
- ]
- }
- ]
- },
- {
- "domain": "FedCm",
- "description": "This domain allows interacting with the FedCM dialog.",
- "experimental": true,
- "types": [
- {
- "id": "LoginState",
- "description": "Whether this is a sign-up or sign-in action for this account, i.e.\nwhether this account has ever been used to sign in to this RP before.",
- "type": "string",
- "enum": [
- "SignIn",
- "SignUp"
- ]
- },
- {
- "id": "DialogType",
- "description": "Whether the dialog shown is an account chooser or an auto re-authentication dialog.",
- "type": "string",
- "enum": [
- "AccountChooser",
- "AutoReauthn"
- ]
- },
- {
- "id": "Account",
- "description": "Corresponds to IdentityRequestAccount",
- "type": "object",
- "properties": [
- {
- "name": "accountId",
- "type": "string"
- },
- {
- "name": "email",
- "type": "string"
- },
- {
- "name": "name",
- "type": "string"
- },
- {
- "name": "givenName",
- "type": "string"
- },
- {
- "name": "pictureUrl",
- "type": "string"
- },
- {
- "name": "idpConfigUrl",
- "type": "string"
- },
- {
- "name": "idpSigninUrl",
- "type": "string"
- },
- {
- "name": "loginState",
- "$ref": "LoginState"
- },
- {
- "name": "termsOfServiceUrl",
- "description": "These two are only set if the loginState is signUp",
- "optional": true,
- "type": "string"
- },
- {
- "name": "privacyPolicyUrl",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "events": [
- {
- "name": "dialogShown",
- "parameters": [
- {
- "name": "dialogId",
- "type": "string"
- },
- {
- "name": "dialogType",
- "$ref": "DialogType"
- },
- {
- "name": "accounts",
- "type": "array",
- "items": {
- "$ref": "Account"
- }
- },
- {
- "name": "title",
- "description": "These exist primarily so that the caller can verify the\nRP context was used appropriately.",
- "type": "string"
- },
- {
- "name": "subtitle",
- "optional": true,
- "type": "string"
- }
- ]
- }
- ],
- "commands": [
- {
- "name": "enable",
- "parameters": [
- {
- "name": "disableRejectionDelay",
- "description": "Allows callers to disable the promise rejection delay that would\nnormally happen, if this is unimportant to what's being tested.\n(step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in)",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "disable"
- },
- {
- "name": "selectAccount",
- "parameters": [
- {
- "name": "dialogId",
- "type": "string"
- },
- {
- "name": "accountIndex",
- "type": "integer"
- }
- ]
- },
- {
- "name": "dismissDialog",
- "parameters": [
- {
- "name": "dialogId",
- "type": "string"
- },
- {
- "name": "triggerCooldown",
- "optional": true,
- "type": "boolean"
- }
- ]
- },
- {
- "name": "resetCooldown",
- "description": "Resets the cooldown time, if any, to allow the next FedCM call to show\na dialog even if one was recently dismissed by the user."
- }
- ]
- }
- ]
- }
|