browser_protocol.json 975 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221
  1. {
  2. "version": {
  3. "major": "1",
  4. "minor": "3"
  5. },
  6. "domains": [
  7. {
  8. "domain": "Accessibility",
  9. "experimental": true,
  10. "dependencies": [
  11. "DOM"
  12. ],
  13. "types": [
  14. {
  15. "id": "AXNodeId",
  16. "description": "Unique accessibility node identifier.",
  17. "type": "string"
  18. },
  19. {
  20. "id": "AXValueType",
  21. "description": "Enum of possible property types.",
  22. "type": "string",
  23. "enum": [
  24. "boolean",
  25. "tristate",
  26. "booleanOrUndefined",
  27. "idref",
  28. "idrefList",
  29. "integer",
  30. "node",
  31. "nodeList",
  32. "number",
  33. "string",
  34. "computedString",
  35. "token",
  36. "tokenList",
  37. "domRelation",
  38. "role",
  39. "internalRole",
  40. "valueUndefined"
  41. ]
  42. },
  43. {
  44. "id": "AXValueSourceType",
  45. "description": "Enum of possible property sources.",
  46. "type": "string",
  47. "enum": [
  48. "attribute",
  49. "implicit",
  50. "style",
  51. "contents",
  52. "placeholder",
  53. "relatedElement"
  54. ]
  55. },
  56. {
  57. "id": "AXValueNativeSourceType",
  58. "description": "Enum of possible native property sources (as a subtype of a particular AXValueSourceType).",
  59. "type": "string",
  60. "enum": [
  61. "description",
  62. "figcaption",
  63. "label",
  64. "labelfor",
  65. "labelwrapped",
  66. "legend",
  67. "rubyannotation",
  68. "tablecaption",
  69. "title",
  70. "other"
  71. ]
  72. },
  73. {
  74. "id": "AXValueSource",
  75. "description": "A single source for a computed AX property.",
  76. "type": "object",
  77. "properties": [
  78. {
  79. "name": "type",
  80. "description": "What type of source this is.",
  81. "$ref": "AXValueSourceType"
  82. },
  83. {
  84. "name": "value",
  85. "description": "The value of this property source.",
  86. "optional": true,
  87. "$ref": "AXValue"
  88. },
  89. {
  90. "name": "attribute",
  91. "description": "The name of the relevant attribute, if any.",
  92. "optional": true,
  93. "type": "string"
  94. },
  95. {
  96. "name": "attributeValue",
  97. "description": "The value of the relevant attribute, if any.",
  98. "optional": true,
  99. "$ref": "AXValue"
  100. },
  101. {
  102. "name": "superseded",
  103. "description": "Whether this source is superseded by a higher priority source.",
  104. "optional": true,
  105. "type": "boolean"
  106. },
  107. {
  108. "name": "nativeSource",
  109. "description": "The native markup source for this value, e.g. a <label> element.",
  110. "optional": true,
  111. "$ref": "AXValueNativeSourceType"
  112. },
  113. {
  114. "name": "nativeSourceValue",
  115. "description": "The value, such as a node or node list, of the native source.",
  116. "optional": true,
  117. "$ref": "AXValue"
  118. },
  119. {
  120. "name": "invalid",
  121. "description": "Whether the value for this property is invalid.",
  122. "optional": true,
  123. "type": "boolean"
  124. },
  125. {
  126. "name": "invalidReason",
  127. "description": "Reason for the value being invalid, if it is.",
  128. "optional": true,
  129. "type": "string"
  130. }
  131. ]
  132. },
  133. {
  134. "id": "AXRelatedNode",
  135. "type": "object",
  136. "properties": [
  137. {
  138. "name": "backendDOMNodeId",
  139. "description": "The BackendNodeId of the related DOM node.",
  140. "$ref": "DOM.BackendNodeId"
  141. },
  142. {
  143. "name": "idref",
  144. "description": "The IDRef value provided, if any.",
  145. "optional": true,
  146. "type": "string"
  147. },
  148. {
  149. "name": "text",
  150. "description": "The text alternative of this node in the current context.",
  151. "optional": true,
  152. "type": "string"
  153. }
  154. ]
  155. },
  156. {
  157. "id": "AXProperty",
  158. "type": "object",
  159. "properties": [
  160. {
  161. "name": "name",
  162. "description": "The name of this property.",
  163. "$ref": "AXPropertyName"
  164. },
  165. {
  166. "name": "value",
  167. "description": "The value of this property.",
  168. "$ref": "AXValue"
  169. }
  170. ]
  171. },
  172. {
  173. "id": "AXValue",
  174. "description": "A single computed AX property.",
  175. "type": "object",
  176. "properties": [
  177. {
  178. "name": "type",
  179. "description": "The type of this value.",
  180. "$ref": "AXValueType"
  181. },
  182. {
  183. "name": "value",
  184. "description": "The computed value of this property.",
  185. "optional": true,
  186. "type": "any"
  187. },
  188. {
  189. "name": "relatedNodes",
  190. "description": "One or more related nodes, if applicable.",
  191. "optional": true,
  192. "type": "array",
  193. "items": {
  194. "$ref": "AXRelatedNode"
  195. }
  196. },
  197. {
  198. "name": "sources",
  199. "description": "The sources which contributed to the computation of this property.",
  200. "optional": true,
  201. "type": "array",
  202. "items": {
  203. "$ref": "AXValueSource"
  204. }
  205. }
  206. ]
  207. },
  208. {
  209. "id": "AXPropertyName",
  210. "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.",
  211. "type": "string",
  212. "enum": [
  213. "busy",
  214. "disabled",
  215. "editable",
  216. "focusable",
  217. "focused",
  218. "hidden",
  219. "hiddenRoot",
  220. "invalid",
  221. "keyshortcuts",
  222. "settable",
  223. "roledescription",
  224. "live",
  225. "atomic",
  226. "relevant",
  227. "root",
  228. "autocomplete",
  229. "hasPopup",
  230. "level",
  231. "multiselectable",
  232. "orientation",
  233. "multiline",
  234. "readonly",
  235. "required",
  236. "valuemin",
  237. "valuemax",
  238. "valuetext",
  239. "checked",
  240. "expanded",
  241. "modal",
  242. "pressed",
  243. "selected",
  244. "activedescendant",
  245. "controls",
  246. "describedby",
  247. "details",
  248. "errormessage",
  249. "flowto",
  250. "labelledby",
  251. "owns"
  252. ]
  253. },
  254. {
  255. "id": "AXNode",
  256. "description": "A node in the accessibility tree.",
  257. "type": "object",
  258. "properties": [
  259. {
  260. "name": "nodeId",
  261. "description": "Unique identifier for this node.",
  262. "$ref": "AXNodeId"
  263. },
  264. {
  265. "name": "ignored",
  266. "description": "Whether this node is ignored for accessibility",
  267. "type": "boolean"
  268. },
  269. {
  270. "name": "ignoredReasons",
  271. "description": "Collection of reasons why this node is hidden.",
  272. "optional": true,
  273. "type": "array",
  274. "items": {
  275. "$ref": "AXProperty"
  276. }
  277. },
  278. {
  279. "name": "role",
  280. "description": "This `Node`'s role, whether explicit or implicit.",
  281. "optional": true,
  282. "$ref": "AXValue"
  283. },
  284. {
  285. "name": "chromeRole",
  286. "description": "This `Node`'s Chrome raw role.",
  287. "optional": true,
  288. "$ref": "AXValue"
  289. },
  290. {
  291. "name": "name",
  292. "description": "The accessible name for this `Node`.",
  293. "optional": true,
  294. "$ref": "AXValue"
  295. },
  296. {
  297. "name": "description",
  298. "description": "The accessible description for this `Node`.",
  299. "optional": true,
  300. "$ref": "AXValue"
  301. },
  302. {
  303. "name": "value",
  304. "description": "The value for this `Node`.",
  305. "optional": true,
  306. "$ref": "AXValue"
  307. },
  308. {
  309. "name": "properties",
  310. "description": "All other properties",
  311. "optional": true,
  312. "type": "array",
  313. "items": {
  314. "$ref": "AXProperty"
  315. }
  316. },
  317. {
  318. "name": "parentId",
  319. "description": "ID for this node's parent.",
  320. "optional": true,
  321. "$ref": "AXNodeId"
  322. },
  323. {
  324. "name": "childIds",
  325. "description": "IDs for each of this node's child nodes.",
  326. "optional": true,
  327. "type": "array",
  328. "items": {
  329. "$ref": "AXNodeId"
  330. }
  331. },
  332. {
  333. "name": "backendDOMNodeId",
  334. "description": "The backend ID for the associated DOM node, if any.",
  335. "optional": true,
  336. "$ref": "DOM.BackendNodeId"
  337. },
  338. {
  339. "name": "frameId",
  340. "description": "The frame ID for the frame associated with this nodes document.",
  341. "optional": true,
  342. "$ref": "Page.FrameId"
  343. }
  344. ]
  345. }
  346. ],
  347. "commands": [
  348. {
  349. "name": "disable",
  350. "description": "Disables the accessibility domain."
  351. },
  352. {
  353. "name": "enable",
  354. "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."
  355. },
  356. {
  357. "name": "getPartialAXTree",
  358. "description": "Fetches the accessibility node and partial accessibility tree for this DOM node, if it exists.",
  359. "experimental": true,
  360. "parameters": [
  361. {
  362. "name": "nodeId",
  363. "description": "Identifier of the node to get the partial accessibility tree for.",
  364. "optional": true,
  365. "$ref": "DOM.NodeId"
  366. },
  367. {
  368. "name": "backendNodeId",
  369. "description": "Identifier of the backend node to get the partial accessibility tree for.",
  370. "optional": true,
  371. "$ref": "DOM.BackendNodeId"
  372. },
  373. {
  374. "name": "objectId",
  375. "description": "JavaScript object id of the node wrapper to get the partial accessibility tree for.",
  376. "optional": true,
  377. "$ref": "Runtime.RemoteObjectId"
  378. },
  379. {
  380. "name": "fetchRelatives",
  381. "description": "Whether to fetch this nodes ancestors, siblings and children. Defaults to true.",
  382. "optional": true,
  383. "type": "boolean"
  384. }
  385. ],
  386. "returns": [
  387. {
  388. "name": "nodes",
  389. "description": "The `Accessibility.AXNode` for this DOM node, if it exists, plus its ancestors, siblings and\nchildren, if requested.",
  390. "type": "array",
  391. "items": {
  392. "$ref": "AXNode"
  393. }
  394. }
  395. ]
  396. },
  397. {
  398. "name": "getFullAXTree",
  399. "description": "Fetches the entire accessibility tree for the root Document",
  400. "experimental": true,
  401. "parameters": [
  402. {
  403. "name": "depth",
  404. "description": "The maximum depth at which descendants of the root node should be retrieved.\nIf omitted, the full tree is returned.",
  405. "optional": true,
  406. "type": "integer"
  407. },
  408. {
  409. "name": "frameId",
  410. "description": "The frame for whose document the AX tree should be retrieved.\nIf omited, the root frame is used.",
  411. "optional": true,
  412. "$ref": "Page.FrameId"
  413. }
  414. ],
  415. "returns": [
  416. {
  417. "name": "nodes",
  418. "type": "array",
  419. "items": {
  420. "$ref": "AXNode"
  421. }
  422. }
  423. ]
  424. },
  425. {
  426. "name": "getRootAXNode",
  427. "description": "Fetches the root node.\nRequires `enable()` to have been called previously.",
  428. "experimental": true,
  429. "parameters": [
  430. {
  431. "name": "frameId",
  432. "description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
  433. "optional": true,
  434. "$ref": "Page.FrameId"
  435. }
  436. ],
  437. "returns": [
  438. {
  439. "name": "node",
  440. "$ref": "AXNode"
  441. }
  442. ]
  443. },
  444. {
  445. "name": "getAXNodeAndAncestors",
  446. "description": "Fetches a node and all ancestors up to and including the root.\nRequires `enable()` to have been called previously.",
  447. "experimental": true,
  448. "parameters": [
  449. {
  450. "name": "nodeId",
  451. "description": "Identifier of the node to get.",
  452. "optional": true,
  453. "$ref": "DOM.NodeId"
  454. },
  455. {
  456. "name": "backendNodeId",
  457. "description": "Identifier of the backend node to get.",
  458. "optional": true,
  459. "$ref": "DOM.BackendNodeId"
  460. },
  461. {
  462. "name": "objectId",
  463. "description": "JavaScript object id of the node wrapper to get.",
  464. "optional": true,
  465. "$ref": "Runtime.RemoteObjectId"
  466. }
  467. ],
  468. "returns": [
  469. {
  470. "name": "nodes",
  471. "type": "array",
  472. "items": {
  473. "$ref": "AXNode"
  474. }
  475. }
  476. ]
  477. },
  478. {
  479. "name": "getChildAXNodes",
  480. "description": "Fetches a particular accessibility node by AXNodeId.\nRequires `enable()` to have been called previously.",
  481. "experimental": true,
  482. "parameters": [
  483. {
  484. "name": "id",
  485. "$ref": "AXNodeId"
  486. },
  487. {
  488. "name": "frameId",
  489. "description": "The frame in whose document the node resides.\nIf omitted, the root frame is used.",
  490. "optional": true,
  491. "$ref": "Page.FrameId"
  492. }
  493. ],
  494. "returns": [
  495. {
  496. "name": "nodes",
  497. "type": "array",
  498. "items": {
  499. "$ref": "AXNode"
  500. }
  501. }
  502. ]
  503. },
  504. {
  505. "name": "queryAXTree",
  506. "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.",
  507. "experimental": true,
  508. "parameters": [
  509. {
  510. "name": "nodeId",
  511. "description": "Identifier of the node for the root to query.",
  512. "optional": true,
  513. "$ref": "DOM.NodeId"
  514. },
  515. {
  516. "name": "backendNodeId",
  517. "description": "Identifier of the backend node for the root to query.",
  518. "optional": true,
  519. "$ref": "DOM.BackendNodeId"
  520. },
  521. {
  522. "name": "objectId",
  523. "description": "JavaScript object id of the node wrapper for the root to query.",
  524. "optional": true,
  525. "$ref": "Runtime.RemoteObjectId"
  526. },
  527. {
  528. "name": "accessibleName",
  529. "description": "Find nodes with this computed name.",
  530. "optional": true,
  531. "type": "string"
  532. },
  533. {
  534. "name": "role",
  535. "description": "Find nodes with this computed role.",
  536. "optional": true,
  537. "type": "string"
  538. }
  539. ],
  540. "returns": [
  541. {
  542. "name": "nodes",
  543. "description": "A list of `Accessibility.AXNode` matching the specified attributes,\nincluding nodes that are ignored for accessibility.",
  544. "type": "array",
  545. "items": {
  546. "$ref": "AXNode"
  547. }
  548. }
  549. ]
  550. }
  551. ],
  552. "events": [
  553. {
  554. "name": "loadComplete",
  555. "description": "The loadComplete event mirrors the load complete event sent by the browser to assistive\ntechnology when the web page has finished loading.",
  556. "experimental": true,
  557. "parameters": [
  558. {
  559. "name": "root",
  560. "description": "New document root node.",
  561. "$ref": "AXNode"
  562. }
  563. ]
  564. },
  565. {
  566. "name": "nodesUpdated",
  567. "description": "The nodesUpdated event is sent every time a previously requested node has changed the in tree.",
  568. "experimental": true,
  569. "parameters": [
  570. {
  571. "name": "nodes",
  572. "description": "Updated node data.",
  573. "type": "array",
  574. "items": {
  575. "$ref": "AXNode"
  576. }
  577. }
  578. ]
  579. }
  580. ]
  581. },
  582. {
  583. "domain": "Animation",
  584. "experimental": true,
  585. "dependencies": [
  586. "Runtime",
  587. "DOM"
  588. ],
  589. "types": [
  590. {
  591. "id": "Animation",
  592. "description": "Animation instance.",
  593. "type": "object",
  594. "properties": [
  595. {
  596. "name": "id",
  597. "description": "`Animation`'s id.",
  598. "type": "string"
  599. },
  600. {
  601. "name": "name",
  602. "description": "`Animation`'s name.",
  603. "type": "string"
  604. },
  605. {
  606. "name": "pausedState",
  607. "description": "`Animation`'s internal paused state.",
  608. "type": "boolean"
  609. },
  610. {
  611. "name": "playState",
  612. "description": "`Animation`'s play state.",
  613. "type": "string"
  614. },
  615. {
  616. "name": "playbackRate",
  617. "description": "`Animation`'s playback rate.",
  618. "type": "number"
  619. },
  620. {
  621. "name": "startTime",
  622. "description": "`Animation`'s start time.",
  623. "type": "number"
  624. },
  625. {
  626. "name": "currentTime",
  627. "description": "`Animation`'s current time.",
  628. "type": "number"
  629. },
  630. {
  631. "name": "type",
  632. "description": "Animation type of `Animation`.",
  633. "type": "string",
  634. "enum": [
  635. "CSSTransition",
  636. "CSSAnimation",
  637. "WebAnimation"
  638. ]
  639. },
  640. {
  641. "name": "source",
  642. "description": "`Animation`'s source animation node.",
  643. "optional": true,
  644. "$ref": "AnimationEffect"
  645. },
  646. {
  647. "name": "cssId",
  648. "description": "A unique ID for `Animation` representing the sources that triggered this CSS\nanimation/transition.",
  649. "optional": true,
  650. "type": "string"
  651. }
  652. ]
  653. },
  654. {
  655. "id": "AnimationEffect",
  656. "description": "AnimationEffect instance",
  657. "type": "object",
  658. "properties": [
  659. {
  660. "name": "delay",
  661. "description": "`AnimationEffect`'s delay.",
  662. "type": "number"
  663. },
  664. {
  665. "name": "endDelay",
  666. "description": "`AnimationEffect`'s end delay.",
  667. "type": "number"
  668. },
  669. {
  670. "name": "iterationStart",
  671. "description": "`AnimationEffect`'s iteration start.",
  672. "type": "number"
  673. },
  674. {
  675. "name": "iterations",
  676. "description": "`AnimationEffect`'s iterations.",
  677. "type": "number"
  678. },
  679. {
  680. "name": "duration",
  681. "description": "`AnimationEffect`'s iteration duration.",
  682. "type": "number"
  683. },
  684. {
  685. "name": "direction",
  686. "description": "`AnimationEffect`'s playback direction.",
  687. "type": "string"
  688. },
  689. {
  690. "name": "fill",
  691. "description": "`AnimationEffect`'s fill mode.",
  692. "type": "string"
  693. },
  694. {
  695. "name": "backendNodeId",
  696. "description": "`AnimationEffect`'s target node.",
  697. "optional": true,
  698. "$ref": "DOM.BackendNodeId"
  699. },
  700. {
  701. "name": "keyframesRule",
  702. "description": "`AnimationEffect`'s keyframes.",
  703. "optional": true,
  704. "$ref": "KeyframesRule"
  705. },
  706. {
  707. "name": "easing",
  708. "description": "`AnimationEffect`'s timing function.",
  709. "type": "string"
  710. }
  711. ]
  712. },
  713. {
  714. "id": "KeyframesRule",
  715. "description": "Keyframes Rule",
  716. "type": "object",
  717. "properties": [
  718. {
  719. "name": "name",
  720. "description": "CSS keyframed animation's name.",
  721. "optional": true,
  722. "type": "string"
  723. },
  724. {
  725. "name": "keyframes",
  726. "description": "List of animation keyframes.",
  727. "type": "array",
  728. "items": {
  729. "$ref": "KeyframeStyle"
  730. }
  731. }
  732. ]
  733. },
  734. {
  735. "id": "KeyframeStyle",
  736. "description": "Keyframe Style",
  737. "type": "object",
  738. "properties": [
  739. {
  740. "name": "offset",
  741. "description": "Keyframe's time offset.",
  742. "type": "string"
  743. },
  744. {
  745. "name": "easing",
  746. "description": "`AnimationEffect`'s timing function.",
  747. "type": "string"
  748. }
  749. ]
  750. }
  751. ],
  752. "commands": [
  753. {
  754. "name": "disable",
  755. "description": "Disables animation domain notifications."
  756. },
  757. {
  758. "name": "enable",
  759. "description": "Enables animation domain notifications."
  760. },
  761. {
  762. "name": "getCurrentTime",
  763. "description": "Returns the current time of the an animation.",
  764. "parameters": [
  765. {
  766. "name": "id",
  767. "description": "Id of animation.",
  768. "type": "string"
  769. }
  770. ],
  771. "returns": [
  772. {
  773. "name": "currentTime",
  774. "description": "Current time of the page.",
  775. "type": "number"
  776. }
  777. ]
  778. },
  779. {
  780. "name": "getPlaybackRate",
  781. "description": "Gets the playback rate of the document timeline.",
  782. "returns": [
  783. {
  784. "name": "playbackRate",
  785. "description": "Playback rate for animations on page.",
  786. "type": "number"
  787. }
  788. ]
  789. },
  790. {
  791. "name": "releaseAnimations",
  792. "description": "Releases a set of animations to no longer be manipulated.",
  793. "parameters": [
  794. {
  795. "name": "animations",
  796. "description": "List of animation ids to seek.",
  797. "type": "array",
  798. "items": {
  799. "type": "string"
  800. }
  801. }
  802. ]
  803. },
  804. {
  805. "name": "resolveAnimation",
  806. "description": "Gets the remote object of the Animation.",
  807. "parameters": [
  808. {
  809. "name": "animationId",
  810. "description": "Animation id.",
  811. "type": "string"
  812. }
  813. ],
  814. "returns": [
  815. {
  816. "name": "remoteObject",
  817. "description": "Corresponding remote object.",
  818. "$ref": "Runtime.RemoteObject"
  819. }
  820. ]
  821. },
  822. {
  823. "name": "seekAnimations",
  824. "description": "Seek a set of animations to a particular time within each animation.",
  825. "parameters": [
  826. {
  827. "name": "animations",
  828. "description": "List of animation ids to seek.",
  829. "type": "array",
  830. "items": {
  831. "type": "string"
  832. }
  833. },
  834. {
  835. "name": "currentTime",
  836. "description": "Set the current time of each animation.",
  837. "type": "number"
  838. }
  839. ]
  840. },
  841. {
  842. "name": "setPaused",
  843. "description": "Sets the paused state of a set of animations.",
  844. "parameters": [
  845. {
  846. "name": "animations",
  847. "description": "Animations to set the pause state of.",
  848. "type": "array",
  849. "items": {
  850. "type": "string"
  851. }
  852. },
  853. {
  854. "name": "paused",
  855. "description": "Paused state to set to.",
  856. "type": "boolean"
  857. }
  858. ]
  859. },
  860. {
  861. "name": "setPlaybackRate",
  862. "description": "Sets the playback rate of the document timeline.",
  863. "parameters": [
  864. {
  865. "name": "playbackRate",
  866. "description": "Playback rate for animations on page",
  867. "type": "number"
  868. }
  869. ]
  870. },
  871. {
  872. "name": "setTiming",
  873. "description": "Sets the timing of an animation node.",
  874. "parameters": [
  875. {
  876. "name": "animationId",
  877. "description": "Animation id.",
  878. "type": "string"
  879. },
  880. {
  881. "name": "duration",
  882. "description": "Duration of the animation.",
  883. "type": "number"
  884. },
  885. {
  886. "name": "delay",
  887. "description": "Delay of the animation.",
  888. "type": "number"
  889. }
  890. ]
  891. }
  892. ],
  893. "events": [
  894. {
  895. "name": "animationCanceled",
  896. "description": "Event for when an animation has been cancelled.",
  897. "parameters": [
  898. {
  899. "name": "id",
  900. "description": "Id of the animation that was cancelled.",
  901. "type": "string"
  902. }
  903. ]
  904. },
  905. {
  906. "name": "animationCreated",
  907. "description": "Event for each animation that has been created.",
  908. "parameters": [
  909. {
  910. "name": "id",
  911. "description": "Id of the animation that was created.",
  912. "type": "string"
  913. }
  914. ]
  915. },
  916. {
  917. "name": "animationStarted",
  918. "description": "Event for animation that has been started.",
  919. "parameters": [
  920. {
  921. "name": "animation",
  922. "description": "Animation that was started.",
  923. "$ref": "Animation"
  924. }
  925. ]
  926. }
  927. ]
  928. },
  929. {
  930. "domain": "Audits",
  931. "description": "Audits domain allows investigation of page violations and possible improvements.",
  932. "experimental": true,
  933. "dependencies": [
  934. "Network"
  935. ],
  936. "types": [
  937. {
  938. "id": "AffectedCookie",
  939. "description": "Information about a cookie that is affected by an inspector issue.",
  940. "type": "object",
  941. "properties": [
  942. {
  943. "name": "name",
  944. "description": "The following three properties uniquely identify a cookie",
  945. "type": "string"
  946. },
  947. {
  948. "name": "path",
  949. "type": "string"
  950. },
  951. {
  952. "name": "domain",
  953. "type": "string"
  954. }
  955. ]
  956. },
  957. {
  958. "id": "AffectedRequest",
  959. "description": "Information about a request that is affected by an inspector issue.",
  960. "type": "object",
  961. "properties": [
  962. {
  963. "name": "requestId",
  964. "description": "The unique request id.",
  965. "$ref": "Network.RequestId"
  966. },
  967. {
  968. "name": "url",
  969. "optional": true,
  970. "type": "string"
  971. }
  972. ]
  973. },
  974. {
  975. "id": "AffectedFrame",
  976. "description": "Information about the frame affected by an inspector issue.",
  977. "type": "object",
  978. "properties": [
  979. {
  980. "name": "frameId",
  981. "$ref": "Page.FrameId"
  982. }
  983. ]
  984. },
  985. {
  986. "id": "CookieExclusionReason",
  987. "type": "string",
  988. "enum": [
  989. "ExcludeSameSiteUnspecifiedTreatedAsLax",
  990. "ExcludeSameSiteNoneInsecure",
  991. "ExcludeSameSiteLax",
  992. "ExcludeSameSiteStrict",
  993. "ExcludeInvalidSameParty",
  994. "ExcludeSamePartyCrossPartyContext",
  995. "ExcludeDomainNonASCII"
  996. ]
  997. },
  998. {
  999. "id": "CookieWarningReason",
  1000. "type": "string",
  1001. "enum": [
  1002. "WarnSameSiteUnspecifiedCrossSiteContext",
  1003. "WarnSameSiteNoneInsecure",
  1004. "WarnSameSiteUnspecifiedLaxAllowUnsafe",
  1005. "WarnSameSiteStrictLaxDowngradeStrict",
  1006. "WarnSameSiteStrictCrossDowngradeStrict",
  1007. "WarnSameSiteStrictCrossDowngradeLax",
  1008. "WarnSameSiteLaxCrossDowngradeStrict",
  1009. "WarnSameSiteLaxCrossDowngradeLax",
  1010. "WarnAttributeValueExceedsMaxSize",
  1011. "WarnDomainNonASCII"
  1012. ]
  1013. },
  1014. {
  1015. "id": "CookieOperation",
  1016. "type": "string",
  1017. "enum": [
  1018. "SetCookie",
  1019. "ReadCookie"
  1020. ]
  1021. },
  1022. {
  1023. "id": "CookieIssueDetails",
  1024. "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.",
  1025. "type": "object",
  1026. "properties": [
  1027. {
  1028. "name": "cookie",
  1029. "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.",
  1030. "optional": true,
  1031. "$ref": "AffectedCookie"
  1032. },
  1033. {
  1034. "name": "rawCookieLine",
  1035. "optional": true,
  1036. "type": "string"
  1037. },
  1038. {
  1039. "name": "cookieWarningReasons",
  1040. "type": "array",
  1041. "items": {
  1042. "$ref": "CookieWarningReason"
  1043. }
  1044. },
  1045. {
  1046. "name": "cookieExclusionReasons",
  1047. "type": "array",
  1048. "items": {
  1049. "$ref": "CookieExclusionReason"
  1050. }
  1051. },
  1052. {
  1053. "name": "operation",
  1054. "description": "Optionally identifies the site-for-cookies and the cookie url, which\nmay be used by the front-end as additional context.",
  1055. "$ref": "CookieOperation"
  1056. },
  1057. {
  1058. "name": "siteForCookies",
  1059. "optional": true,
  1060. "type": "string"
  1061. },
  1062. {
  1063. "name": "cookieUrl",
  1064. "optional": true,
  1065. "type": "string"
  1066. },
  1067. {
  1068. "name": "request",
  1069. "optional": true,
  1070. "$ref": "AffectedRequest"
  1071. }
  1072. ]
  1073. },
  1074. {
  1075. "id": "MixedContentResolutionStatus",
  1076. "type": "string",
  1077. "enum": [
  1078. "MixedContentBlocked",
  1079. "MixedContentAutomaticallyUpgraded",
  1080. "MixedContentWarning"
  1081. ]
  1082. },
  1083. {
  1084. "id": "MixedContentResourceType",
  1085. "type": "string",
  1086. "enum": [
  1087. "AttributionSrc",
  1088. "Audio",
  1089. "Beacon",
  1090. "CSPReport",
  1091. "Download",
  1092. "EventSource",
  1093. "Favicon",
  1094. "Font",
  1095. "Form",
  1096. "Frame",
  1097. "Image",
  1098. "Import",
  1099. "Manifest",
  1100. "Ping",
  1101. "PluginData",
  1102. "PluginResource",
  1103. "Prefetch",
  1104. "Resource",
  1105. "Script",
  1106. "ServiceWorker",
  1107. "SharedWorker",
  1108. "Stylesheet",
  1109. "Track",
  1110. "Video",
  1111. "Worker",
  1112. "XMLHttpRequest",
  1113. "XSLT"
  1114. ]
  1115. },
  1116. {
  1117. "id": "MixedContentIssueDetails",
  1118. "type": "object",
  1119. "properties": [
  1120. {
  1121. "name": "resourceType",
  1122. "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",
  1123. "optional": true,
  1124. "$ref": "MixedContentResourceType"
  1125. },
  1126. {
  1127. "name": "resolutionStatus",
  1128. "description": "The way the mixed content issue is being resolved.",
  1129. "$ref": "MixedContentResolutionStatus"
  1130. },
  1131. {
  1132. "name": "insecureURL",
  1133. "description": "The unsafe http url causing the mixed content issue.",
  1134. "type": "string"
  1135. },
  1136. {
  1137. "name": "mainResourceURL",
  1138. "description": "The url responsible for the call to an unsafe url.",
  1139. "type": "string"
  1140. },
  1141. {
  1142. "name": "request",
  1143. "description": "The mixed content request.\nDoes not always exist (e.g. for unsafe form submission urls).",
  1144. "optional": true,
  1145. "$ref": "AffectedRequest"
  1146. },
  1147. {
  1148. "name": "frame",
  1149. "description": "Optional because not every mixed content issue is necessarily linked to a frame.",
  1150. "optional": true,
  1151. "$ref": "AffectedFrame"
  1152. }
  1153. ]
  1154. },
  1155. {
  1156. "id": "BlockedByResponseReason",
  1157. "description": "Enum indicating the reason a response has been blocked. These reasons are\nrefinements of the net error BLOCKED_BY_RESPONSE.",
  1158. "type": "string",
  1159. "enum": [
  1160. "CoepFrameResourceNeedsCoepHeader",
  1161. "CoopSandboxedIFrameCannotNavigateToCoopPage",
  1162. "CorpNotSameOrigin",
  1163. "CorpNotSameOriginAfterDefaultedToSameOriginByCoep",
  1164. "CorpNotSameSite"
  1165. ]
  1166. },
  1167. {
  1168. "id": "BlockedByResponseIssueDetails",
  1169. "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.",
  1170. "type": "object",
  1171. "properties": [
  1172. {
  1173. "name": "request",
  1174. "$ref": "AffectedRequest"
  1175. },
  1176. {
  1177. "name": "parentFrame",
  1178. "optional": true,
  1179. "$ref": "AffectedFrame"
  1180. },
  1181. {
  1182. "name": "blockedFrame",
  1183. "optional": true,
  1184. "$ref": "AffectedFrame"
  1185. },
  1186. {
  1187. "name": "reason",
  1188. "$ref": "BlockedByResponseReason"
  1189. }
  1190. ]
  1191. },
  1192. {
  1193. "id": "HeavyAdResolutionStatus",
  1194. "type": "string",
  1195. "enum": [
  1196. "HeavyAdBlocked",
  1197. "HeavyAdWarning"
  1198. ]
  1199. },
  1200. {
  1201. "id": "HeavyAdReason",
  1202. "type": "string",
  1203. "enum": [
  1204. "NetworkTotalLimit",
  1205. "CpuTotalLimit",
  1206. "CpuPeakLimit"
  1207. ]
  1208. },
  1209. {
  1210. "id": "HeavyAdIssueDetails",
  1211. "type": "object",
  1212. "properties": [
  1213. {
  1214. "name": "resolution",
  1215. "description": "The resolution status, either blocking the content or warning.",
  1216. "$ref": "HeavyAdResolutionStatus"
  1217. },
  1218. {
  1219. "name": "reason",
  1220. "description": "The reason the ad was blocked, total network or cpu or peak cpu.",
  1221. "$ref": "HeavyAdReason"
  1222. },
  1223. {
  1224. "name": "frame",
  1225. "description": "The frame that was blocked.",
  1226. "$ref": "AffectedFrame"
  1227. }
  1228. ]
  1229. },
  1230. {
  1231. "id": "ContentSecurityPolicyViolationType",
  1232. "type": "string",
  1233. "enum": [
  1234. "kInlineViolation",
  1235. "kEvalViolation",
  1236. "kURLViolation",
  1237. "kTrustedTypesSinkViolation",
  1238. "kTrustedTypesPolicyViolation",
  1239. "kWasmEvalViolation"
  1240. ]
  1241. },
  1242. {
  1243. "id": "SourceCodeLocation",
  1244. "type": "object",
  1245. "properties": [
  1246. {
  1247. "name": "scriptId",
  1248. "optional": true,
  1249. "$ref": "Runtime.ScriptId"
  1250. },
  1251. {
  1252. "name": "url",
  1253. "type": "string"
  1254. },
  1255. {
  1256. "name": "lineNumber",
  1257. "type": "integer"
  1258. },
  1259. {
  1260. "name": "columnNumber",
  1261. "type": "integer"
  1262. }
  1263. ]
  1264. },
  1265. {
  1266. "id": "ContentSecurityPolicyIssueDetails",
  1267. "type": "object",
  1268. "properties": [
  1269. {
  1270. "name": "blockedURL",
  1271. "description": "The url not included in allowed sources.",
  1272. "optional": true,
  1273. "type": "string"
  1274. },
  1275. {
  1276. "name": "violatedDirective",
  1277. "description": "Specific directive that is violated, causing the CSP issue.",
  1278. "type": "string"
  1279. },
  1280. {
  1281. "name": "isReportOnly",
  1282. "type": "boolean"
  1283. },
  1284. {
  1285. "name": "contentSecurityPolicyViolationType",
  1286. "$ref": "ContentSecurityPolicyViolationType"
  1287. },
  1288. {
  1289. "name": "frameAncestor",
  1290. "optional": true,
  1291. "$ref": "AffectedFrame"
  1292. },
  1293. {
  1294. "name": "sourceCodeLocation",
  1295. "optional": true,
  1296. "$ref": "SourceCodeLocation"
  1297. },
  1298. {
  1299. "name": "violatingNodeId",
  1300. "optional": true,
  1301. "$ref": "DOM.BackendNodeId"
  1302. }
  1303. ]
  1304. },
  1305. {
  1306. "id": "SharedArrayBufferIssueType",
  1307. "type": "string",
  1308. "enum": [
  1309. "TransferIssue",
  1310. "CreationIssue"
  1311. ]
  1312. },
  1313. {
  1314. "id": "SharedArrayBufferIssueDetails",
  1315. "description": "Details for a issue arising from an SAB being instantiated in, or\ntransferred to a context that is not cross-origin isolated.",
  1316. "type": "object",
  1317. "properties": [
  1318. {
  1319. "name": "sourceCodeLocation",
  1320. "$ref": "SourceCodeLocation"
  1321. },
  1322. {
  1323. "name": "isWarning",
  1324. "type": "boolean"
  1325. },
  1326. {
  1327. "name": "type",
  1328. "$ref": "SharedArrayBufferIssueType"
  1329. }
  1330. ]
  1331. },
  1332. {
  1333. "id": "TwaQualityEnforcementViolationType",
  1334. "type": "string",
  1335. "enum": [
  1336. "kHttpError",
  1337. "kUnavailableOffline",
  1338. "kDigitalAssetLinks"
  1339. ]
  1340. },
  1341. {
  1342. "id": "TrustedWebActivityIssueDetails",
  1343. "type": "object",
  1344. "properties": [
  1345. {
  1346. "name": "url",
  1347. "description": "The url that triggers the violation.",
  1348. "type": "string"
  1349. },
  1350. {
  1351. "name": "violationType",
  1352. "$ref": "TwaQualityEnforcementViolationType"
  1353. },
  1354. {
  1355. "name": "httpStatusCode",
  1356. "optional": true,
  1357. "type": "integer"
  1358. },
  1359. {
  1360. "name": "packageName",
  1361. "description": "The package name of the Trusted Web Activity client app. This field is\nonly used when violation type is kDigitalAssetLinks.",
  1362. "optional": true,
  1363. "type": "string"
  1364. },
  1365. {
  1366. "name": "signature",
  1367. "description": "The signature of the Trusted Web Activity client app. This field is only\nused when violation type is kDigitalAssetLinks.",
  1368. "optional": true,
  1369. "type": "string"
  1370. }
  1371. ]
  1372. },
  1373. {
  1374. "id": "LowTextContrastIssueDetails",
  1375. "type": "object",
  1376. "properties": [
  1377. {
  1378. "name": "violatingNodeId",
  1379. "$ref": "DOM.BackendNodeId"
  1380. },
  1381. {
  1382. "name": "violatingNodeSelector",
  1383. "type": "string"
  1384. },
  1385. {
  1386. "name": "contrastRatio",
  1387. "type": "number"
  1388. },
  1389. {
  1390. "name": "thresholdAA",
  1391. "type": "number"
  1392. },
  1393. {
  1394. "name": "thresholdAAA",
  1395. "type": "number"
  1396. },
  1397. {
  1398. "name": "fontSize",
  1399. "type": "string"
  1400. },
  1401. {
  1402. "name": "fontWeight",
  1403. "type": "string"
  1404. }
  1405. ]
  1406. },
  1407. {
  1408. "id": "CorsIssueDetails",
  1409. "description": "Details for a CORS related issue, e.g. a warning or error related to\nCORS RFC1918 enforcement.",
  1410. "type": "object",
  1411. "properties": [
  1412. {
  1413. "name": "corsErrorStatus",
  1414. "$ref": "Network.CorsErrorStatus"
  1415. },
  1416. {
  1417. "name": "isWarning",
  1418. "type": "boolean"
  1419. },
  1420. {
  1421. "name": "request",
  1422. "$ref": "AffectedRequest"
  1423. },
  1424. {
  1425. "name": "location",
  1426. "optional": true,
  1427. "$ref": "SourceCodeLocation"
  1428. },
  1429. {
  1430. "name": "initiatorOrigin",
  1431. "optional": true,
  1432. "type": "string"
  1433. },
  1434. {
  1435. "name": "resourceIPAddressSpace",
  1436. "optional": true,
  1437. "$ref": "Network.IPAddressSpace"
  1438. },
  1439. {
  1440. "name": "clientSecurityState",
  1441. "optional": true,
  1442. "$ref": "Network.ClientSecurityState"
  1443. }
  1444. ]
  1445. },
  1446. {
  1447. "id": "AttributionReportingIssueType",
  1448. "type": "string",
  1449. "enum": [
  1450. "PermissionPolicyDisabled",
  1451. "PermissionPolicyNotDelegated",
  1452. "UntrustworthyReportingOrigin",
  1453. "InsecureContext",
  1454. "InvalidHeader",
  1455. "InvalidRegisterTriggerHeader",
  1456. "InvalidEligibleHeader",
  1457. "TooManyConcurrentRequests",
  1458. "SourceAndTriggerHeaders",
  1459. "SourceIgnored",
  1460. "TriggerIgnored"
  1461. ]
  1462. },
  1463. {
  1464. "id": "AttributionReportingIssueDetails",
  1465. "description": "Details for issues around \"Attribution Reporting API\" usage.\nExplainer: https://github.com/WICG/attribution-reporting-api",
  1466. "type": "object",
  1467. "properties": [
  1468. {
  1469. "name": "violationType",
  1470. "$ref": "AttributionReportingIssueType"
  1471. },
  1472. {
  1473. "name": "request",
  1474. "optional": true,
  1475. "$ref": "AffectedRequest"
  1476. },
  1477. {
  1478. "name": "violatingNodeId",
  1479. "optional": true,
  1480. "$ref": "DOM.BackendNodeId"
  1481. },
  1482. {
  1483. "name": "invalidParameter",
  1484. "optional": true,
  1485. "type": "string"
  1486. }
  1487. ]
  1488. },
  1489. {
  1490. "id": "QuirksModeIssueDetails",
  1491. "description": "Details for issues about documents in Quirks Mode\nor Limited Quirks Mode that affects page layouting.",
  1492. "type": "object",
  1493. "properties": [
  1494. {
  1495. "name": "isLimitedQuirksMode",
  1496. "description": "If false, it means the document's mode is \"quirks\"\ninstead of \"limited-quirks\".",
  1497. "type": "boolean"
  1498. },
  1499. {
  1500. "name": "documentNodeId",
  1501. "$ref": "DOM.BackendNodeId"
  1502. },
  1503. {
  1504. "name": "url",
  1505. "type": "string"
  1506. },
  1507. {
  1508. "name": "frameId",
  1509. "$ref": "Page.FrameId"
  1510. },
  1511. {
  1512. "name": "loaderId",
  1513. "$ref": "Network.LoaderId"
  1514. }
  1515. ]
  1516. },
  1517. {
  1518. "id": "NavigatorUserAgentIssueDetails",
  1519. "type": "object",
  1520. "properties": [
  1521. {
  1522. "name": "url",
  1523. "type": "string"
  1524. },
  1525. {
  1526. "name": "location",
  1527. "optional": true,
  1528. "$ref": "SourceCodeLocation"
  1529. }
  1530. ]
  1531. },
  1532. {
  1533. "id": "GenericIssueErrorType",
  1534. "type": "string",
  1535. "enum": [
  1536. "CrossOriginPortalPostMessageError"
  1537. ]
  1538. },
  1539. {
  1540. "id": "GenericIssueDetails",
  1541. "description": "Depending on the concrete errorType, different properties are set.",
  1542. "type": "object",
  1543. "properties": [
  1544. {
  1545. "name": "errorType",
  1546. "description": "Issues with the same errorType are aggregated in the frontend.",
  1547. "$ref": "GenericIssueErrorType"
  1548. },
  1549. {
  1550. "name": "frameId",
  1551. "optional": true,
  1552. "$ref": "Page.FrameId"
  1553. }
  1554. ]
  1555. },
  1556. {
  1557. "id": "DeprecationIssueType",
  1558. "type": "string",
  1559. "enum": [
  1560. "AuthorizationCoveredByWildcard",
  1561. "CanRequestURLHTTPContainingNewline",
  1562. "ChromeLoadTimesConnectionInfo",
  1563. "ChromeLoadTimesFirstPaintAfterLoadTime",
  1564. "ChromeLoadTimesWasAlternateProtocolAvailable",
  1565. "CookieWithTruncatingChar",
  1566. "CrossOriginAccessBasedOnDocumentDomain",
  1567. "CrossOriginWindowAlert",
  1568. "CrossOriginWindowConfirm",
  1569. "CSSSelectorInternalMediaControlsOverlayCastButton",
  1570. "DeprecationExample",
  1571. "DocumentDomainSettingWithoutOriginAgentClusterHeader",
  1572. "EventPath",
  1573. "ExpectCTHeader",
  1574. "GeolocationInsecureOrigin",
  1575. "GeolocationInsecureOriginDeprecatedNotRemoved",
  1576. "GetUserMediaInsecureOrigin",
  1577. "HostCandidateAttributeGetter",
  1578. "IdentityInCanMakePaymentEvent",
  1579. "InsecurePrivateNetworkSubresourceRequest",
  1580. "LegacyConstraintGoogIPv6",
  1581. "LocalCSSFileExtensionRejected",
  1582. "MediaSourceAbortRemove",
  1583. "MediaSourceDurationTruncatingBuffered",
  1584. "NavigateEventRestoreScroll",
  1585. "NavigateEventTransitionWhile",
  1586. "NoSysexWebMIDIWithoutPermission",
  1587. "NotificationInsecureOrigin",
  1588. "NotificationPermissionRequestedIframe",
  1589. "ObsoleteWebRtcCipherSuite",
  1590. "OpenWebDatabaseInsecureContext",
  1591. "OverflowVisibleOnReplacedElement",
  1592. "PersistentQuotaType",
  1593. "PictureSourceSrc",
  1594. "PrefixedCancelAnimationFrame",
  1595. "PrefixedRequestAnimationFrame",
  1596. "PrefixedStorageInfo",
  1597. "PrefixedVideoDisplayingFullscreen",
  1598. "PrefixedVideoEnterFullscreen",
  1599. "PrefixedVideoEnterFullScreen",
  1600. "PrefixedVideoExitFullscreen",
  1601. "PrefixedVideoExitFullScreen",
  1602. "PrefixedVideoSupportsFullscreen",
  1603. "RangeExpand",
  1604. "RequestedSubresourceWithEmbeddedCredentials",
  1605. "RTCConstraintEnableDtlsSrtpFalse",
  1606. "RTCConstraintEnableDtlsSrtpTrue",
  1607. "RTCPeerConnectionComplexPlanBSdpUsingDefaultSdpSemantics",
  1608. "RTCPeerConnectionSdpSemanticsPlanB",
  1609. "RtcpMuxPolicyNegotiate",
  1610. "SharedArrayBufferConstructedWithoutIsolation",
  1611. "TextToSpeech_DisallowedByAutoplay",
  1612. "V8SharedArrayBufferConstructedInExtensionWithoutIsolation",
  1613. "XHRJSONEncodingDetection",
  1614. "XMLHttpRequestSynchronousInNonWorkerOutsideBeforeUnload",
  1615. "XRSupportsSession"
  1616. ]
  1617. },
  1618. {
  1619. "id": "DeprecationIssueDetails",
  1620. "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",
  1621. "type": "object",
  1622. "properties": [
  1623. {
  1624. "name": "affectedFrame",
  1625. "optional": true,
  1626. "$ref": "AffectedFrame"
  1627. },
  1628. {
  1629. "name": "sourceCodeLocation",
  1630. "$ref": "SourceCodeLocation"
  1631. },
  1632. {
  1633. "name": "type",
  1634. "$ref": "DeprecationIssueType"
  1635. }
  1636. ]
  1637. },
  1638. {
  1639. "id": "ClientHintIssueReason",
  1640. "type": "string",
  1641. "enum": [
  1642. "MetaTagAllowListInvalidOrigin",
  1643. "MetaTagModifiedHTML"
  1644. ]
  1645. },
  1646. {
  1647. "id": "FederatedAuthRequestIssueDetails",
  1648. "type": "object",
  1649. "properties": [
  1650. {
  1651. "name": "federatedAuthRequestIssueReason",
  1652. "$ref": "FederatedAuthRequestIssueReason"
  1653. }
  1654. ]
  1655. },
  1656. {
  1657. "id": "FederatedAuthRequestIssueReason",
  1658. "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.",
  1659. "type": "string",
  1660. "enum": [
  1661. "ShouldEmbargo",
  1662. "TooManyRequests",
  1663. "ManifestListHttpNotFound",
  1664. "ManifestListNoResponse",
  1665. "ManifestListInvalidResponse",
  1666. "ManifestNotInManifestList",
  1667. "ManifestListTooBig",
  1668. "ManifestHttpNotFound",
  1669. "ManifestNoResponse",
  1670. "ManifestInvalidResponse",
  1671. "ClientMetadataHttpNotFound",
  1672. "ClientMetadataNoResponse",
  1673. "ClientMetadataInvalidResponse",
  1674. "DisabledInSettings",
  1675. "ErrorFetchingSignin",
  1676. "InvalidSigninResponse",
  1677. "AccountsHttpNotFound",
  1678. "AccountsNoResponse",
  1679. "AccountsInvalidResponse",
  1680. "IdTokenHttpNotFound",
  1681. "IdTokenNoResponse",
  1682. "IdTokenInvalidResponse",
  1683. "IdTokenInvalidRequest",
  1684. "ErrorIdToken",
  1685. "Canceled",
  1686. "RpPageNotVisible"
  1687. ]
  1688. },
  1689. {
  1690. "id": "ClientHintIssueDetails",
  1691. "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.",
  1692. "type": "object",
  1693. "properties": [
  1694. {
  1695. "name": "sourceCodeLocation",
  1696. "$ref": "SourceCodeLocation"
  1697. },
  1698. {
  1699. "name": "clientHintIssueReason",
  1700. "$ref": "ClientHintIssueReason"
  1701. }
  1702. ]
  1703. },
  1704. {
  1705. "id": "InspectorIssueCode",
  1706. "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.",
  1707. "type": "string",
  1708. "enum": [
  1709. "CookieIssue",
  1710. "MixedContentIssue",
  1711. "BlockedByResponseIssue",
  1712. "HeavyAdIssue",
  1713. "ContentSecurityPolicyIssue",
  1714. "SharedArrayBufferIssue",
  1715. "TrustedWebActivityIssue",
  1716. "LowTextContrastIssue",
  1717. "CorsIssue",
  1718. "AttributionReportingIssue",
  1719. "QuirksModeIssue",
  1720. "NavigatorUserAgentIssue",
  1721. "GenericIssue",
  1722. "DeprecationIssue",
  1723. "ClientHintIssue",
  1724. "FederatedAuthRequestIssue"
  1725. ]
  1726. },
  1727. {
  1728. "id": "InspectorIssueDetails",
  1729. "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.",
  1730. "type": "object",
  1731. "properties": [
  1732. {
  1733. "name": "cookieIssueDetails",
  1734. "optional": true,
  1735. "$ref": "CookieIssueDetails"
  1736. },
  1737. {
  1738. "name": "mixedContentIssueDetails",
  1739. "optional": true,
  1740. "$ref": "MixedContentIssueDetails"
  1741. },
  1742. {
  1743. "name": "blockedByResponseIssueDetails",
  1744. "optional": true,
  1745. "$ref": "BlockedByResponseIssueDetails"
  1746. },
  1747. {
  1748. "name": "heavyAdIssueDetails",
  1749. "optional": true,
  1750. "$ref": "HeavyAdIssueDetails"
  1751. },
  1752. {
  1753. "name": "contentSecurityPolicyIssueDetails",
  1754. "optional": true,
  1755. "$ref": "ContentSecurityPolicyIssueDetails"
  1756. },
  1757. {
  1758. "name": "sharedArrayBufferIssueDetails",
  1759. "optional": true,
  1760. "$ref": "SharedArrayBufferIssueDetails"
  1761. },
  1762. {
  1763. "name": "twaQualityEnforcementDetails",
  1764. "optional": true,
  1765. "$ref": "TrustedWebActivityIssueDetails"
  1766. },
  1767. {
  1768. "name": "lowTextContrastIssueDetails",
  1769. "optional": true,
  1770. "$ref": "LowTextContrastIssueDetails"
  1771. },
  1772. {
  1773. "name": "corsIssueDetails",
  1774. "optional": true,
  1775. "$ref": "CorsIssueDetails"
  1776. },
  1777. {
  1778. "name": "attributionReportingIssueDetails",
  1779. "optional": true,
  1780. "$ref": "AttributionReportingIssueDetails"
  1781. },
  1782. {
  1783. "name": "quirksModeIssueDetails",
  1784. "optional": true,
  1785. "$ref": "QuirksModeIssueDetails"
  1786. },
  1787. {
  1788. "name": "navigatorUserAgentIssueDetails",
  1789. "optional": true,
  1790. "$ref": "NavigatorUserAgentIssueDetails"
  1791. },
  1792. {
  1793. "name": "genericIssueDetails",
  1794. "optional": true,
  1795. "$ref": "GenericIssueDetails"
  1796. },
  1797. {
  1798. "name": "deprecationIssueDetails",
  1799. "optional": true,
  1800. "$ref": "DeprecationIssueDetails"
  1801. },
  1802. {
  1803. "name": "clientHintIssueDetails",
  1804. "optional": true,
  1805. "$ref": "ClientHintIssueDetails"
  1806. },
  1807. {
  1808. "name": "federatedAuthRequestIssueDetails",
  1809. "optional": true,
  1810. "$ref": "FederatedAuthRequestIssueDetails"
  1811. }
  1812. ]
  1813. },
  1814. {
  1815. "id": "IssueId",
  1816. "description": "A unique id for a DevTools inspector issue. Allows other entities (e.g.\nexceptions, CDP message, console messages, etc.) to reference an issue.",
  1817. "type": "string"
  1818. },
  1819. {
  1820. "id": "InspectorIssue",
  1821. "description": "An inspector issue reported from the back-end.",
  1822. "type": "object",
  1823. "properties": [
  1824. {
  1825. "name": "code",
  1826. "$ref": "InspectorIssueCode"
  1827. },
  1828. {
  1829. "name": "details",
  1830. "$ref": "InspectorIssueDetails"
  1831. },
  1832. {
  1833. "name": "issueId",
  1834. "description": "A unique id for this issue. May be omitted if no other entity (e.g.\nexception, CDP message, etc.) is referencing this issue.",
  1835. "optional": true,
  1836. "$ref": "IssueId"
  1837. }
  1838. ]
  1839. }
  1840. ],
  1841. "commands": [
  1842. {
  1843. "name": "getEncodedResponse",
  1844. "description": "Returns the response body and size if it were re-encoded with the specified settings. Only\napplies to images.",
  1845. "parameters": [
  1846. {
  1847. "name": "requestId",
  1848. "description": "Identifier of the network request to get content for.",
  1849. "$ref": "Network.RequestId"
  1850. },
  1851. {
  1852. "name": "encoding",
  1853. "description": "The encoding to use.",
  1854. "type": "string",
  1855. "enum": [
  1856. "webp",
  1857. "jpeg",
  1858. "png"
  1859. ]
  1860. },
  1861. {
  1862. "name": "quality",
  1863. "description": "The quality of the encoding (0-1). (defaults to 1)",
  1864. "optional": true,
  1865. "type": "number"
  1866. },
  1867. {
  1868. "name": "sizeOnly",
  1869. "description": "Whether to only return the size information (defaults to false).",
  1870. "optional": true,
  1871. "type": "boolean"
  1872. }
  1873. ],
  1874. "returns": [
  1875. {
  1876. "name": "body",
  1877. "description": "The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)",
  1878. "optional": true,
  1879. "type": "string"
  1880. },
  1881. {
  1882. "name": "originalSize",
  1883. "description": "Size before re-encoding.",
  1884. "type": "integer"
  1885. },
  1886. {
  1887. "name": "encodedSize",
  1888. "description": "Size after re-encoding.",
  1889. "type": "integer"
  1890. }
  1891. ]
  1892. },
  1893. {
  1894. "name": "disable",
  1895. "description": "Disables issues domain, prevents further issues from being reported to the client."
  1896. },
  1897. {
  1898. "name": "enable",
  1899. "description": "Enables issues domain, sends the issues collected so far to the client by means of the\n`issueAdded` event."
  1900. },
  1901. {
  1902. "name": "checkContrast",
  1903. "description": "Runs the contrast check for the target page. Found issues are reported\nusing Audits.issueAdded event.",
  1904. "parameters": [
  1905. {
  1906. "name": "reportAAA",
  1907. "description": "Whether to report WCAG AAA level issues. Default is false.",
  1908. "optional": true,
  1909. "type": "boolean"
  1910. }
  1911. ]
  1912. }
  1913. ],
  1914. "events": [
  1915. {
  1916. "name": "issueAdded",
  1917. "parameters": [
  1918. {
  1919. "name": "issue",
  1920. "$ref": "InspectorIssue"
  1921. }
  1922. ]
  1923. }
  1924. ]
  1925. },
  1926. {
  1927. "domain": "BackgroundService",
  1928. "description": "Defines events for background web platform features.",
  1929. "experimental": true,
  1930. "types": [
  1931. {
  1932. "id": "ServiceName",
  1933. "description": "The Background Service that will be associated with the commands/events.\nEvery Background Service operates independently, but they share the same\nAPI.",
  1934. "type": "string",
  1935. "enum": [
  1936. "backgroundFetch",
  1937. "backgroundSync",
  1938. "pushMessaging",
  1939. "notifications",
  1940. "paymentHandler",
  1941. "periodicBackgroundSync"
  1942. ]
  1943. },
  1944. {
  1945. "id": "EventMetadata",
  1946. "description": "A key-value pair for additional event information to pass along.",
  1947. "type": "object",
  1948. "properties": [
  1949. {
  1950. "name": "key",
  1951. "type": "string"
  1952. },
  1953. {
  1954. "name": "value",
  1955. "type": "string"
  1956. }
  1957. ]
  1958. },
  1959. {
  1960. "id": "BackgroundServiceEvent",
  1961. "type": "object",
  1962. "properties": [
  1963. {
  1964. "name": "timestamp",
  1965. "description": "Timestamp of the event (in seconds).",
  1966. "$ref": "Network.TimeSinceEpoch"
  1967. },
  1968. {
  1969. "name": "origin",
  1970. "description": "The origin this event belongs to.",
  1971. "type": "string"
  1972. },
  1973. {
  1974. "name": "serviceWorkerRegistrationId",
  1975. "description": "The Service Worker ID that initiated the event.",
  1976. "$ref": "ServiceWorker.RegistrationID"
  1977. },
  1978. {
  1979. "name": "service",
  1980. "description": "The Background Service this event belongs to.",
  1981. "$ref": "ServiceName"
  1982. },
  1983. {
  1984. "name": "eventName",
  1985. "description": "A description of the event.",
  1986. "type": "string"
  1987. },
  1988. {
  1989. "name": "instanceId",
  1990. "description": "An identifier that groups related events together.",
  1991. "type": "string"
  1992. },
  1993. {
  1994. "name": "eventMetadata",
  1995. "description": "A list of event-specific information.",
  1996. "type": "array",
  1997. "items": {
  1998. "$ref": "EventMetadata"
  1999. }
  2000. }
  2001. ]
  2002. }
  2003. ],
  2004. "commands": [
  2005. {
  2006. "name": "startObserving",
  2007. "description": "Enables event updates for the service.",
  2008. "parameters": [
  2009. {
  2010. "name": "service",
  2011. "$ref": "ServiceName"
  2012. }
  2013. ]
  2014. },
  2015. {
  2016. "name": "stopObserving",
  2017. "description": "Disables event updates for the service.",
  2018. "parameters": [
  2019. {
  2020. "name": "service",
  2021. "$ref": "ServiceName"
  2022. }
  2023. ]
  2024. },
  2025. {
  2026. "name": "setRecording",
  2027. "description": "Set the recording state for the service.",
  2028. "parameters": [
  2029. {
  2030. "name": "shouldRecord",
  2031. "type": "boolean"
  2032. },
  2033. {
  2034. "name": "service",
  2035. "$ref": "ServiceName"
  2036. }
  2037. ]
  2038. },
  2039. {
  2040. "name": "clearEvents",
  2041. "description": "Clears all stored data for the service.",
  2042. "parameters": [
  2043. {
  2044. "name": "service",
  2045. "$ref": "ServiceName"
  2046. }
  2047. ]
  2048. }
  2049. ],
  2050. "events": [
  2051. {
  2052. "name": "recordingStateChanged",
  2053. "description": "Called when the recording state for the service has been updated.",
  2054. "parameters": [
  2055. {
  2056. "name": "isRecording",
  2057. "type": "boolean"
  2058. },
  2059. {
  2060. "name": "service",
  2061. "$ref": "ServiceName"
  2062. }
  2063. ]
  2064. },
  2065. {
  2066. "name": "backgroundServiceEventReceived",
  2067. "description": "Called with all existing backgroundServiceEvents when enabled, and all new\nevents afterwards if enabled and recording.",
  2068. "parameters": [
  2069. {
  2070. "name": "backgroundServiceEvent",
  2071. "$ref": "BackgroundServiceEvent"
  2072. }
  2073. ]
  2074. }
  2075. ]
  2076. },
  2077. {
  2078. "domain": "Browser",
  2079. "description": "The Browser domain defines methods and events for browser managing.",
  2080. "types": [
  2081. {
  2082. "id": "BrowserContextID",
  2083. "experimental": true,
  2084. "type": "string"
  2085. },
  2086. {
  2087. "id": "WindowID",
  2088. "experimental": true,
  2089. "type": "integer"
  2090. },
  2091. {
  2092. "id": "WindowState",
  2093. "description": "The state of the browser window.",
  2094. "experimental": true,
  2095. "type": "string",
  2096. "enum": [
  2097. "normal",
  2098. "minimized",
  2099. "maximized",
  2100. "fullscreen"
  2101. ]
  2102. },
  2103. {
  2104. "id": "Bounds",
  2105. "description": "Browser window bounds information",
  2106. "experimental": true,
  2107. "type": "object",
  2108. "properties": [
  2109. {
  2110. "name": "left",
  2111. "description": "The offset from the left edge of the screen to the window in pixels.",
  2112. "optional": true,
  2113. "type": "integer"
  2114. },
  2115. {
  2116. "name": "top",
  2117. "description": "The offset from the top edge of the screen to the window in pixels.",
  2118. "optional": true,
  2119. "type": "integer"
  2120. },
  2121. {
  2122. "name": "width",
  2123. "description": "The window width in pixels.",
  2124. "optional": true,
  2125. "type": "integer"
  2126. },
  2127. {
  2128. "name": "height",
  2129. "description": "The window height in pixels.",
  2130. "optional": true,
  2131. "type": "integer"
  2132. },
  2133. {
  2134. "name": "windowState",
  2135. "description": "The window state. Default to normal.",
  2136. "optional": true,
  2137. "$ref": "WindowState"
  2138. }
  2139. ]
  2140. },
  2141. {
  2142. "id": "PermissionType",
  2143. "experimental": true,
  2144. "type": "string",
  2145. "enum": [
  2146. "accessibilityEvents",
  2147. "audioCapture",
  2148. "backgroundSync",
  2149. "backgroundFetch",
  2150. "clipboardReadWrite",
  2151. "clipboardSanitizedWrite",
  2152. "displayCapture",
  2153. "durableStorage",
  2154. "flash",
  2155. "geolocation",
  2156. "midi",
  2157. "midiSysex",
  2158. "nfc",
  2159. "notifications",
  2160. "paymentHandler",
  2161. "periodicBackgroundSync",
  2162. "protectedMediaIdentifier",
  2163. "sensors",
  2164. "videoCapture",
  2165. "videoCapturePanTiltZoom",
  2166. "idleDetection",
  2167. "wakeLockScreen",
  2168. "wakeLockSystem"
  2169. ]
  2170. },
  2171. {
  2172. "id": "PermissionSetting",
  2173. "experimental": true,
  2174. "type": "string",
  2175. "enum": [
  2176. "granted",
  2177. "denied",
  2178. "prompt"
  2179. ]
  2180. },
  2181. {
  2182. "id": "PermissionDescriptor",
  2183. "description": "Definition of PermissionDescriptor defined in the Permissions API:\nhttps://w3c.github.io/permissions/#dictdef-permissiondescriptor.",
  2184. "experimental": true,
  2185. "type": "object",
  2186. "properties": [
  2187. {
  2188. "name": "name",
  2189. "description": "Name of permission.\nSee https://cs.chromium.org/chromium/src/third_party/blink/renderer/modules/permissions/permission_descriptor.idl for valid permission names.",
  2190. "type": "string"
  2191. },
  2192. {
  2193. "name": "sysex",
  2194. "description": "For \"midi\" permission, may also specify sysex control.",
  2195. "optional": true,
  2196. "type": "boolean"
  2197. },
  2198. {
  2199. "name": "userVisibleOnly",
  2200. "description": "For \"push\" permission, may specify userVisibleOnly.\nNote that userVisibleOnly = true is the only currently supported type.",
  2201. "optional": true,
  2202. "type": "boolean"
  2203. },
  2204. {
  2205. "name": "allowWithoutSanitization",
  2206. "description": "For \"clipboard\" permission, may specify allowWithoutSanitization.",
  2207. "optional": true,
  2208. "type": "boolean"
  2209. },
  2210. {
  2211. "name": "panTiltZoom",
  2212. "description": "For \"camera\" permission, may specify panTiltZoom.",
  2213. "optional": true,
  2214. "type": "boolean"
  2215. }
  2216. ]
  2217. },
  2218. {
  2219. "id": "BrowserCommandId",
  2220. "description": "Browser command ids used by executeBrowserCommand.",
  2221. "experimental": true,
  2222. "type": "string",
  2223. "enum": [
  2224. "openTabSearch",
  2225. "closeTabSearch"
  2226. ]
  2227. },
  2228. {
  2229. "id": "Bucket",
  2230. "description": "Chrome histogram bucket.",
  2231. "experimental": true,
  2232. "type": "object",
  2233. "properties": [
  2234. {
  2235. "name": "low",
  2236. "description": "Minimum value (inclusive).",
  2237. "type": "integer"
  2238. },
  2239. {
  2240. "name": "high",
  2241. "description": "Maximum value (exclusive).",
  2242. "type": "integer"
  2243. },
  2244. {
  2245. "name": "count",
  2246. "description": "Number of samples.",
  2247. "type": "integer"
  2248. }
  2249. ]
  2250. },
  2251. {
  2252. "id": "Histogram",
  2253. "description": "Chrome histogram.",
  2254. "experimental": true,
  2255. "type": "object",
  2256. "properties": [
  2257. {
  2258. "name": "name",
  2259. "description": "Name.",
  2260. "type": "string"
  2261. },
  2262. {
  2263. "name": "sum",
  2264. "description": "Sum of sample values.",
  2265. "type": "integer"
  2266. },
  2267. {
  2268. "name": "count",
  2269. "description": "Total number of samples.",
  2270. "type": "integer"
  2271. },
  2272. {
  2273. "name": "buckets",
  2274. "description": "Buckets.",
  2275. "type": "array",
  2276. "items": {
  2277. "$ref": "Bucket"
  2278. }
  2279. }
  2280. ]
  2281. }
  2282. ],
  2283. "commands": [
  2284. {
  2285. "name": "setPermission",
  2286. "description": "Set permission settings for given origin.",
  2287. "experimental": true,
  2288. "parameters": [
  2289. {
  2290. "name": "permission",
  2291. "description": "Descriptor of permission to override.",
  2292. "$ref": "PermissionDescriptor"
  2293. },
  2294. {
  2295. "name": "setting",
  2296. "description": "Setting of the permission.",
  2297. "$ref": "PermissionSetting"
  2298. },
  2299. {
  2300. "name": "origin",
  2301. "description": "Origin the permission applies to, all origins if not specified.",
  2302. "optional": true,
  2303. "type": "string"
  2304. },
  2305. {
  2306. "name": "browserContextId",
  2307. "description": "Context to override. When omitted, default browser context is used.",
  2308. "optional": true,
  2309. "$ref": "BrowserContextID"
  2310. }
  2311. ]
  2312. },
  2313. {
  2314. "name": "grantPermissions",
  2315. "description": "Grant specific permissions to the given origin and reject all others.",
  2316. "experimental": true,
  2317. "parameters": [
  2318. {
  2319. "name": "permissions",
  2320. "type": "array",
  2321. "items": {
  2322. "$ref": "PermissionType"
  2323. }
  2324. },
  2325. {
  2326. "name": "origin",
  2327. "description": "Origin the permission applies to, all origins if not specified.",
  2328. "optional": true,
  2329. "type": "string"
  2330. },
  2331. {
  2332. "name": "browserContextId",
  2333. "description": "BrowserContext to override permissions. When omitted, default browser context is used.",
  2334. "optional": true,
  2335. "$ref": "BrowserContextID"
  2336. }
  2337. ]
  2338. },
  2339. {
  2340. "name": "resetPermissions",
  2341. "description": "Reset all permission management for all origins.",
  2342. "experimental": true,
  2343. "parameters": [
  2344. {
  2345. "name": "browserContextId",
  2346. "description": "BrowserContext to reset permissions. When omitted, default browser context is used.",
  2347. "optional": true,
  2348. "$ref": "BrowserContextID"
  2349. }
  2350. ]
  2351. },
  2352. {
  2353. "name": "setDownloadBehavior",
  2354. "description": "Set the behavior when downloading a file.",
  2355. "experimental": true,
  2356. "parameters": [
  2357. {
  2358. "name": "behavior",
  2359. "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.",
  2360. "type": "string",
  2361. "enum": [
  2362. "deny",
  2363. "allow",
  2364. "allowAndName",
  2365. "default"
  2366. ]
  2367. },
  2368. {
  2369. "name": "browserContextId",
  2370. "description": "BrowserContext to set download behavior. When omitted, default browser context is used.",
  2371. "optional": true,
  2372. "$ref": "BrowserContextID"
  2373. },
  2374. {
  2375. "name": "downloadPath",
  2376. "description": "The default path to save downloaded files to. This is required if behavior is set to 'allow'\nor 'allowAndName'.",
  2377. "optional": true,
  2378. "type": "string"
  2379. },
  2380. {
  2381. "name": "eventsEnabled",
  2382. "description": "Whether to emit download events (defaults to false).",
  2383. "optional": true,
  2384. "type": "boolean"
  2385. }
  2386. ]
  2387. },
  2388. {
  2389. "name": "cancelDownload",
  2390. "description": "Cancel a download if in progress",
  2391. "experimental": true,
  2392. "parameters": [
  2393. {
  2394. "name": "guid",
  2395. "description": "Global unique identifier of the download.",
  2396. "type": "string"
  2397. },
  2398. {
  2399. "name": "browserContextId",
  2400. "description": "BrowserContext to perform the action in. When omitted, default browser context is used.",
  2401. "optional": true,
  2402. "$ref": "BrowserContextID"
  2403. }
  2404. ]
  2405. },
  2406. {
  2407. "name": "close",
  2408. "description": "Close browser gracefully."
  2409. },
  2410. {
  2411. "name": "crash",
  2412. "description": "Crashes browser on the main thread.",
  2413. "experimental": true
  2414. },
  2415. {
  2416. "name": "crashGpuProcess",
  2417. "description": "Crashes GPU process.",
  2418. "experimental": true
  2419. },
  2420. {
  2421. "name": "getVersion",
  2422. "description": "Returns version information.",
  2423. "returns": [
  2424. {
  2425. "name": "protocolVersion",
  2426. "description": "Protocol version.",
  2427. "type": "string"
  2428. },
  2429. {
  2430. "name": "product",
  2431. "description": "Product name.",
  2432. "type": "string"
  2433. },
  2434. {
  2435. "name": "revision",
  2436. "description": "Product revision.",
  2437. "type": "string"
  2438. },
  2439. {
  2440. "name": "userAgent",
  2441. "description": "User-Agent.",
  2442. "type": "string"
  2443. },
  2444. {
  2445. "name": "jsVersion",
  2446. "description": "V8 version.",
  2447. "type": "string"
  2448. }
  2449. ]
  2450. },
  2451. {
  2452. "name": "getBrowserCommandLine",
  2453. "description": "Returns the command line switches for the browser process if, and only if\n--enable-automation is on the commandline.",
  2454. "experimental": true,
  2455. "returns": [
  2456. {
  2457. "name": "arguments",
  2458. "description": "Commandline parameters",
  2459. "type": "array",
  2460. "items": {
  2461. "type": "string"
  2462. }
  2463. }
  2464. ]
  2465. },
  2466. {
  2467. "name": "getHistograms",
  2468. "description": "Get Chrome histograms.",
  2469. "experimental": true,
  2470. "parameters": [
  2471. {
  2472. "name": "query",
  2473. "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.",
  2474. "optional": true,
  2475. "type": "string"
  2476. },
  2477. {
  2478. "name": "delta",
  2479. "description": "If true, retrieve delta since last call.",
  2480. "optional": true,
  2481. "type": "boolean"
  2482. }
  2483. ],
  2484. "returns": [
  2485. {
  2486. "name": "histograms",
  2487. "description": "Histograms.",
  2488. "type": "array",
  2489. "items": {
  2490. "$ref": "Histogram"
  2491. }
  2492. }
  2493. ]
  2494. },
  2495. {
  2496. "name": "getHistogram",
  2497. "description": "Get a Chrome histogram by name.",
  2498. "experimental": true,
  2499. "parameters": [
  2500. {
  2501. "name": "name",
  2502. "description": "Requested histogram name.",
  2503. "type": "string"
  2504. },
  2505. {
  2506. "name": "delta",
  2507. "description": "If true, retrieve delta since last call.",
  2508. "optional": true,
  2509. "type": "boolean"
  2510. }
  2511. ],
  2512. "returns": [
  2513. {
  2514. "name": "histogram",
  2515. "description": "Histogram.",
  2516. "$ref": "Histogram"
  2517. }
  2518. ]
  2519. },
  2520. {
  2521. "name": "getWindowBounds",
  2522. "description": "Get position and size of the browser window.",
  2523. "experimental": true,
  2524. "parameters": [
  2525. {
  2526. "name": "windowId",
  2527. "description": "Browser window id.",
  2528. "$ref": "WindowID"
  2529. }
  2530. ],
  2531. "returns": [
  2532. {
  2533. "name": "bounds",
  2534. "description": "Bounds information of the window. When window state is 'minimized', the restored window\nposition and size are returned.",
  2535. "$ref": "Bounds"
  2536. }
  2537. ]
  2538. },
  2539. {
  2540. "name": "getWindowForTarget",
  2541. "description": "Get the browser window that contains the devtools target.",
  2542. "experimental": true,
  2543. "parameters": [
  2544. {
  2545. "name": "targetId",
  2546. "description": "Devtools agent host id. If called as a part of the session, associated targetId is used.",
  2547. "optional": true,
  2548. "$ref": "Target.TargetID"
  2549. }
  2550. ],
  2551. "returns": [
  2552. {
  2553. "name": "windowId",
  2554. "description": "Browser window id.",
  2555. "$ref": "WindowID"
  2556. },
  2557. {
  2558. "name": "bounds",
  2559. "description": "Bounds information of the window. When window state is 'minimized', the restored window\nposition and size are returned.",
  2560. "$ref": "Bounds"
  2561. }
  2562. ]
  2563. },
  2564. {
  2565. "name": "setWindowBounds",
  2566. "description": "Set position and/or size of the browser window.",
  2567. "experimental": true,
  2568. "parameters": [
  2569. {
  2570. "name": "windowId",
  2571. "description": "Browser window id.",
  2572. "$ref": "WindowID"
  2573. },
  2574. {
  2575. "name": "bounds",
  2576. "description": "New window bounds. The 'minimized', 'maximized' and 'fullscreen' states cannot be combined\nwith 'left', 'top', 'width' or 'height'. Leaves unspecified fields unchanged.",
  2577. "$ref": "Bounds"
  2578. }
  2579. ]
  2580. },
  2581. {
  2582. "name": "setDockTile",
  2583. "description": "Set dock tile details, platform-specific.",
  2584. "experimental": true,
  2585. "parameters": [
  2586. {
  2587. "name": "badgeLabel",
  2588. "optional": true,
  2589. "type": "string"
  2590. },
  2591. {
  2592. "name": "image",
  2593. "description": "Png encoded image. (Encoded as a base64 string when passed over JSON)",
  2594. "optional": true,
  2595. "type": "string"
  2596. }
  2597. ]
  2598. },
  2599. {
  2600. "name": "executeBrowserCommand",
  2601. "description": "Invoke custom browser commands used by telemetry.",
  2602. "experimental": true,
  2603. "parameters": [
  2604. {
  2605. "name": "commandId",
  2606. "$ref": "BrowserCommandId"
  2607. }
  2608. ]
  2609. }
  2610. ],
  2611. "events": [
  2612. {
  2613. "name": "downloadWillBegin",
  2614. "description": "Fired when page is about to start a download.",
  2615. "experimental": true,
  2616. "parameters": [
  2617. {
  2618. "name": "frameId",
  2619. "description": "Id of the frame that caused the download to begin.",
  2620. "$ref": "Page.FrameId"
  2621. },
  2622. {
  2623. "name": "guid",
  2624. "description": "Global unique identifier of the download.",
  2625. "type": "string"
  2626. },
  2627. {
  2628. "name": "url",
  2629. "description": "URL of the resource being downloaded.",
  2630. "type": "string"
  2631. },
  2632. {
  2633. "name": "suggestedFilename",
  2634. "description": "Suggested file name of the resource (the actual name of the file saved on disk may differ).",
  2635. "type": "string"
  2636. }
  2637. ]
  2638. },
  2639. {
  2640. "name": "downloadProgress",
  2641. "description": "Fired when download makes progress. Last call has |done| == true.",
  2642. "experimental": true,
  2643. "parameters": [
  2644. {
  2645. "name": "guid",
  2646. "description": "Global unique identifier of the download.",
  2647. "type": "string"
  2648. },
  2649. {
  2650. "name": "totalBytes",
  2651. "description": "Total expected bytes to download.",
  2652. "type": "number"
  2653. },
  2654. {
  2655. "name": "receivedBytes",
  2656. "description": "Total bytes received.",
  2657. "type": "number"
  2658. },
  2659. {
  2660. "name": "state",
  2661. "description": "Download status.",
  2662. "type": "string",
  2663. "enum": [
  2664. "inProgress",
  2665. "completed",
  2666. "canceled"
  2667. ]
  2668. }
  2669. ]
  2670. }
  2671. ]
  2672. },
  2673. {
  2674. "domain": "CSS",
  2675. "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.",
  2676. "experimental": true,
  2677. "dependencies": [
  2678. "DOM",
  2679. "Page"
  2680. ],
  2681. "types": [
  2682. {
  2683. "id": "StyleSheetId",
  2684. "type": "string"
  2685. },
  2686. {
  2687. "id": "StyleSheetOrigin",
  2688. "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.",
  2689. "type": "string",
  2690. "enum": [
  2691. "injected",
  2692. "user-agent",
  2693. "inspector",
  2694. "regular"
  2695. ]
  2696. },
  2697. {
  2698. "id": "PseudoElementMatches",
  2699. "description": "CSS rule collection for a single pseudo style.",
  2700. "type": "object",
  2701. "properties": [
  2702. {
  2703. "name": "pseudoType",
  2704. "description": "Pseudo element type.",
  2705. "$ref": "DOM.PseudoType"
  2706. },
  2707. {
  2708. "name": "pseudoIdentifier",
  2709. "description": "Pseudo element custom ident.",
  2710. "optional": true,
  2711. "type": "string"
  2712. },
  2713. {
  2714. "name": "matches",
  2715. "description": "Matches of CSS rules applicable to the pseudo style.",
  2716. "type": "array",
  2717. "items": {
  2718. "$ref": "RuleMatch"
  2719. }
  2720. }
  2721. ]
  2722. },
  2723. {
  2724. "id": "InheritedStyleEntry",
  2725. "description": "Inherited CSS rule collection from ancestor node.",
  2726. "type": "object",
  2727. "properties": [
  2728. {
  2729. "name": "inlineStyle",
  2730. "description": "The ancestor node's inline style, if any, in the style inheritance chain.",
  2731. "optional": true,
  2732. "$ref": "CSSStyle"
  2733. },
  2734. {
  2735. "name": "matchedCSSRules",
  2736. "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain.",
  2737. "type": "array",
  2738. "items": {
  2739. "$ref": "RuleMatch"
  2740. }
  2741. }
  2742. ]
  2743. },
  2744. {
  2745. "id": "InheritedPseudoElementMatches",
  2746. "description": "Inherited pseudo element matches from pseudos of an ancestor node.",
  2747. "type": "object",
  2748. "properties": [
  2749. {
  2750. "name": "pseudoElements",
  2751. "description": "Matches of pseudo styles from the pseudos of an ancestor node.",
  2752. "type": "array",
  2753. "items": {
  2754. "$ref": "PseudoElementMatches"
  2755. }
  2756. }
  2757. ]
  2758. },
  2759. {
  2760. "id": "RuleMatch",
  2761. "description": "Match data for a CSS rule.",
  2762. "type": "object",
  2763. "properties": [
  2764. {
  2765. "name": "rule",
  2766. "description": "CSS rule in the match.",
  2767. "$ref": "CSSRule"
  2768. },
  2769. {
  2770. "name": "matchingSelectors",
  2771. "description": "Matching selector indices in the rule's selectorList selectors (0-based).",
  2772. "type": "array",
  2773. "items": {
  2774. "type": "integer"
  2775. }
  2776. }
  2777. ]
  2778. },
  2779. {
  2780. "id": "Value",
  2781. "description": "Data for a simple selector (these are delimited by commas in a selector list).",
  2782. "type": "object",
  2783. "properties": [
  2784. {
  2785. "name": "text",
  2786. "description": "Value text.",
  2787. "type": "string"
  2788. },
  2789. {
  2790. "name": "range",
  2791. "description": "Value range in the underlying resource (if available).",
  2792. "optional": true,
  2793. "$ref": "SourceRange"
  2794. }
  2795. ]
  2796. },
  2797. {
  2798. "id": "SelectorList",
  2799. "description": "Selector list data.",
  2800. "type": "object",
  2801. "properties": [
  2802. {
  2803. "name": "selectors",
  2804. "description": "Selectors in the list.",
  2805. "type": "array",
  2806. "items": {
  2807. "$ref": "Value"
  2808. }
  2809. },
  2810. {
  2811. "name": "text",
  2812. "description": "Rule selector text.",
  2813. "type": "string"
  2814. }
  2815. ]
  2816. },
  2817. {
  2818. "id": "CSSStyleSheetHeader",
  2819. "description": "CSS stylesheet metainformation.",
  2820. "type": "object",
  2821. "properties": [
  2822. {
  2823. "name": "styleSheetId",
  2824. "description": "The stylesheet identifier.",
  2825. "$ref": "StyleSheetId"
  2826. },
  2827. {
  2828. "name": "frameId",
  2829. "description": "Owner frame identifier.",
  2830. "$ref": "Page.FrameId"
  2831. },
  2832. {
  2833. "name": "sourceURL",
  2834. "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).",
  2835. "type": "string"
  2836. },
  2837. {
  2838. "name": "sourceMapURL",
  2839. "description": "URL of source map associated with the stylesheet (if any).",
  2840. "optional": true,
  2841. "type": "string"
  2842. },
  2843. {
  2844. "name": "origin",
  2845. "description": "Stylesheet origin.",
  2846. "$ref": "StyleSheetOrigin"
  2847. },
  2848. {
  2849. "name": "title",
  2850. "description": "Stylesheet title.",
  2851. "type": "string"
  2852. },
  2853. {
  2854. "name": "ownerNode",
  2855. "description": "The backend id for the owner node of the stylesheet.",
  2856. "optional": true,
  2857. "$ref": "DOM.BackendNodeId"
  2858. },
  2859. {
  2860. "name": "disabled",
  2861. "description": "Denotes whether the stylesheet is disabled.",
  2862. "type": "boolean"
  2863. },
  2864. {
  2865. "name": "hasSourceURL",
  2866. "description": "Whether the sourceURL field value comes from the sourceURL comment.",
  2867. "optional": true,
  2868. "type": "boolean"
  2869. },
  2870. {
  2871. "name": "isInline",
  2872. "description": "Whether this stylesheet is created for STYLE tag by parser. This flag is not set for\ndocument.written STYLE tags.",
  2873. "type": "boolean"
  2874. },
  2875. {
  2876. "name": "isMutable",
  2877. "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.",
  2878. "type": "boolean"
  2879. },
  2880. {
  2881. "name": "isConstructed",
  2882. "description": "True if this stylesheet is created through new CSSStyleSheet() or imported as a\nCSS module script.",
  2883. "type": "boolean"
  2884. },
  2885. {
  2886. "name": "startLine",
  2887. "description": "Line offset of the stylesheet within the resource (zero based).",
  2888. "type": "number"
  2889. },
  2890. {
  2891. "name": "startColumn",
  2892. "description": "Column offset of the stylesheet within the resource (zero based).",
  2893. "type": "number"
  2894. },
  2895. {
  2896. "name": "length",
  2897. "description": "Size of the content (in characters).",
  2898. "type": "number"
  2899. },
  2900. {
  2901. "name": "endLine",
  2902. "description": "Line offset of the end of the stylesheet within the resource (zero based).",
  2903. "type": "number"
  2904. },
  2905. {
  2906. "name": "endColumn",
  2907. "description": "Column offset of the end of the stylesheet within the resource (zero based).",
  2908. "type": "number"
  2909. }
  2910. ]
  2911. },
  2912. {
  2913. "id": "CSSRule",
  2914. "description": "CSS rule representation.",
  2915. "type": "object",
  2916. "properties": [
  2917. {
  2918. "name": "styleSheetId",
  2919. "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
  2920. "optional": true,
  2921. "$ref": "StyleSheetId"
  2922. },
  2923. {
  2924. "name": "selectorList",
  2925. "description": "Rule selector data.",
  2926. "$ref": "SelectorList"
  2927. },
  2928. {
  2929. "name": "origin",
  2930. "description": "Parent stylesheet's origin.",
  2931. "$ref": "StyleSheetOrigin"
  2932. },
  2933. {
  2934. "name": "style",
  2935. "description": "Associated style declaration.",
  2936. "$ref": "CSSStyle"
  2937. },
  2938. {
  2939. "name": "media",
  2940. "description": "Media list array (for rules involving media queries). The array enumerates media queries\nstarting with the innermost one, going outwards.",
  2941. "optional": true,
  2942. "type": "array",
  2943. "items": {
  2944. "$ref": "CSSMedia"
  2945. }
  2946. },
  2947. {
  2948. "name": "containerQueries",
  2949. "description": "Container query list array (for rules involving container queries).\nThe array enumerates container queries starting with the innermost one, going outwards.",
  2950. "experimental": true,
  2951. "optional": true,
  2952. "type": "array",
  2953. "items": {
  2954. "$ref": "CSSContainerQuery"
  2955. }
  2956. },
  2957. {
  2958. "name": "supports",
  2959. "description": "@supports CSS at-rule array.\nThe array enumerates @supports at-rules starting with the innermost one, going outwards.",
  2960. "experimental": true,
  2961. "optional": true,
  2962. "type": "array",
  2963. "items": {
  2964. "$ref": "CSSSupports"
  2965. }
  2966. },
  2967. {
  2968. "name": "layers",
  2969. "description": "Cascade layer array. Contains the layer hierarchy that this rule belongs to starting\nwith the innermost layer and going outwards.",
  2970. "experimental": true,
  2971. "optional": true,
  2972. "type": "array",
  2973. "items": {
  2974. "$ref": "CSSLayer"
  2975. }
  2976. },
  2977. {
  2978. "name": "scopes",
  2979. "description": "@scope CSS at-rule array.\nThe array enumerates @scope at-rules starting with the innermost one, going outwards.",
  2980. "experimental": true,
  2981. "optional": true,
  2982. "type": "array",
  2983. "items": {
  2984. "$ref": "CSSScope"
  2985. }
  2986. }
  2987. ]
  2988. },
  2989. {
  2990. "id": "RuleUsage",
  2991. "description": "CSS coverage information.",
  2992. "type": "object",
  2993. "properties": [
  2994. {
  2995. "name": "styleSheetId",
  2996. "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
  2997. "$ref": "StyleSheetId"
  2998. },
  2999. {
  3000. "name": "startOffset",
  3001. "description": "Offset of the start of the rule (including selector) from the beginning of the stylesheet.",
  3002. "type": "number"
  3003. },
  3004. {
  3005. "name": "endOffset",
  3006. "description": "Offset of the end of the rule body from the beginning of the stylesheet.",
  3007. "type": "number"
  3008. },
  3009. {
  3010. "name": "used",
  3011. "description": "Indicates whether the rule was actually used by some element in the page.",
  3012. "type": "boolean"
  3013. }
  3014. ]
  3015. },
  3016. {
  3017. "id": "SourceRange",
  3018. "description": "Text range within a resource. All numbers are zero-based.",
  3019. "type": "object",
  3020. "properties": [
  3021. {
  3022. "name": "startLine",
  3023. "description": "Start line of range.",
  3024. "type": "integer"
  3025. },
  3026. {
  3027. "name": "startColumn",
  3028. "description": "Start column of range (inclusive).",
  3029. "type": "integer"
  3030. },
  3031. {
  3032. "name": "endLine",
  3033. "description": "End line of range",
  3034. "type": "integer"
  3035. },
  3036. {
  3037. "name": "endColumn",
  3038. "description": "End column of range (exclusive).",
  3039. "type": "integer"
  3040. }
  3041. ]
  3042. },
  3043. {
  3044. "id": "ShorthandEntry",
  3045. "type": "object",
  3046. "properties": [
  3047. {
  3048. "name": "name",
  3049. "description": "Shorthand name.",
  3050. "type": "string"
  3051. },
  3052. {
  3053. "name": "value",
  3054. "description": "Shorthand value.",
  3055. "type": "string"
  3056. },
  3057. {
  3058. "name": "important",
  3059. "description": "Whether the property has \"!important\" annotation (implies `false` if absent).",
  3060. "optional": true,
  3061. "type": "boolean"
  3062. }
  3063. ]
  3064. },
  3065. {
  3066. "id": "CSSComputedStyleProperty",
  3067. "type": "object",
  3068. "properties": [
  3069. {
  3070. "name": "name",
  3071. "description": "Computed style property name.",
  3072. "type": "string"
  3073. },
  3074. {
  3075. "name": "value",
  3076. "description": "Computed style property value.",
  3077. "type": "string"
  3078. }
  3079. ]
  3080. },
  3081. {
  3082. "id": "CSSStyle",
  3083. "description": "CSS style representation.",
  3084. "type": "object",
  3085. "properties": [
  3086. {
  3087. "name": "styleSheetId",
  3088. "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
  3089. "optional": true,
  3090. "$ref": "StyleSheetId"
  3091. },
  3092. {
  3093. "name": "cssProperties",
  3094. "description": "CSS properties in the style.",
  3095. "type": "array",
  3096. "items": {
  3097. "$ref": "CSSProperty"
  3098. }
  3099. },
  3100. {
  3101. "name": "shorthandEntries",
  3102. "description": "Computed values for all shorthands found in the style.",
  3103. "type": "array",
  3104. "items": {
  3105. "$ref": "ShorthandEntry"
  3106. }
  3107. },
  3108. {
  3109. "name": "cssText",
  3110. "description": "Style declaration text (if available).",
  3111. "optional": true,
  3112. "type": "string"
  3113. },
  3114. {
  3115. "name": "range",
  3116. "description": "Style declaration range in the enclosing stylesheet (if available).",
  3117. "optional": true,
  3118. "$ref": "SourceRange"
  3119. }
  3120. ]
  3121. },
  3122. {
  3123. "id": "CSSProperty",
  3124. "description": "CSS property declaration data.",
  3125. "type": "object",
  3126. "properties": [
  3127. {
  3128. "name": "name",
  3129. "description": "The property name.",
  3130. "type": "string"
  3131. },
  3132. {
  3133. "name": "value",
  3134. "description": "The property value.",
  3135. "type": "string"
  3136. },
  3137. {
  3138. "name": "important",
  3139. "description": "Whether the property has \"!important\" annotation (implies `false` if absent).",
  3140. "optional": true,
  3141. "type": "boolean"
  3142. },
  3143. {
  3144. "name": "implicit",
  3145. "description": "Whether the property is implicit (implies `false` if absent).",
  3146. "optional": true,
  3147. "type": "boolean"
  3148. },
  3149. {
  3150. "name": "text",
  3151. "description": "The full property text as specified in the style.",
  3152. "optional": true,
  3153. "type": "string"
  3154. },
  3155. {
  3156. "name": "parsedOk",
  3157. "description": "Whether the property is understood by the browser (implies `true` if absent).",
  3158. "optional": true,
  3159. "type": "boolean"
  3160. },
  3161. {
  3162. "name": "disabled",
  3163. "description": "Whether the property is disabled by the user (present for source-based properties only).",
  3164. "optional": true,
  3165. "type": "boolean"
  3166. },
  3167. {
  3168. "name": "range",
  3169. "description": "The entire property range in the enclosing style declaration (if available).",
  3170. "optional": true,
  3171. "$ref": "SourceRange"
  3172. },
  3173. {
  3174. "name": "longhandProperties",
  3175. "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.",
  3176. "experimental": true,
  3177. "optional": true,
  3178. "type": "array",
  3179. "items": {
  3180. "$ref": "CSSProperty"
  3181. }
  3182. }
  3183. ]
  3184. },
  3185. {
  3186. "id": "CSSMedia",
  3187. "description": "CSS media rule descriptor.",
  3188. "type": "object",
  3189. "properties": [
  3190. {
  3191. "name": "text",
  3192. "description": "Media query text.",
  3193. "type": "string"
  3194. },
  3195. {
  3196. "name": "source",
  3197. "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.",
  3198. "type": "string",
  3199. "enum": [
  3200. "mediaRule",
  3201. "importRule",
  3202. "linkedSheet",
  3203. "inlineSheet"
  3204. ]
  3205. },
  3206. {
  3207. "name": "sourceURL",
  3208. "description": "URL of the document containing the media query description.",
  3209. "optional": true,
  3210. "type": "string"
  3211. },
  3212. {
  3213. "name": "range",
  3214. "description": "The associated rule (@media or @import) header range in the enclosing stylesheet (if\navailable).",
  3215. "optional": true,
  3216. "$ref": "SourceRange"
  3217. },
  3218. {
  3219. "name": "styleSheetId",
  3220. "description": "Identifier of the stylesheet containing this object (if exists).",
  3221. "optional": true,
  3222. "$ref": "StyleSheetId"
  3223. },
  3224. {
  3225. "name": "mediaList",
  3226. "description": "Array of media queries.",
  3227. "optional": true,
  3228. "type": "array",
  3229. "items": {
  3230. "$ref": "MediaQuery"
  3231. }
  3232. }
  3233. ]
  3234. },
  3235. {
  3236. "id": "MediaQuery",
  3237. "description": "Media query descriptor.",
  3238. "type": "object",
  3239. "properties": [
  3240. {
  3241. "name": "expressions",
  3242. "description": "Array of media query expressions.",
  3243. "type": "array",
  3244. "items": {
  3245. "$ref": "MediaQueryExpression"
  3246. }
  3247. },
  3248. {
  3249. "name": "active",
  3250. "description": "Whether the media query condition is satisfied.",
  3251. "type": "boolean"
  3252. }
  3253. ]
  3254. },
  3255. {
  3256. "id": "MediaQueryExpression",
  3257. "description": "Media query expression descriptor.",
  3258. "type": "object",
  3259. "properties": [
  3260. {
  3261. "name": "value",
  3262. "description": "Media query expression value.",
  3263. "type": "number"
  3264. },
  3265. {
  3266. "name": "unit",
  3267. "description": "Media query expression units.",
  3268. "type": "string"
  3269. },
  3270. {
  3271. "name": "feature",
  3272. "description": "Media query expression feature.",
  3273. "type": "string"
  3274. },
  3275. {
  3276. "name": "valueRange",
  3277. "description": "The associated range of the value text in the enclosing stylesheet (if available).",
  3278. "optional": true,
  3279. "$ref": "SourceRange"
  3280. },
  3281. {
  3282. "name": "computedLength",
  3283. "description": "Computed length of media query expression (if applicable).",
  3284. "optional": true,
  3285. "type": "number"
  3286. }
  3287. ]
  3288. },
  3289. {
  3290. "id": "CSSContainerQuery",
  3291. "description": "CSS container query rule descriptor.",
  3292. "experimental": true,
  3293. "type": "object",
  3294. "properties": [
  3295. {
  3296. "name": "text",
  3297. "description": "Container query text.",
  3298. "type": "string"
  3299. },
  3300. {
  3301. "name": "range",
  3302. "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
  3303. "optional": true,
  3304. "$ref": "SourceRange"
  3305. },
  3306. {
  3307. "name": "styleSheetId",
  3308. "description": "Identifier of the stylesheet containing this object (if exists).",
  3309. "optional": true,
  3310. "$ref": "StyleSheetId"
  3311. },
  3312. {
  3313. "name": "name",
  3314. "description": "Optional name for the container.",
  3315. "optional": true,
  3316. "type": "string"
  3317. }
  3318. ]
  3319. },
  3320. {
  3321. "id": "CSSSupports",
  3322. "description": "CSS Supports at-rule descriptor.",
  3323. "experimental": true,
  3324. "type": "object",
  3325. "properties": [
  3326. {
  3327. "name": "text",
  3328. "description": "Supports rule text.",
  3329. "type": "string"
  3330. },
  3331. {
  3332. "name": "active",
  3333. "description": "Whether the supports condition is satisfied.",
  3334. "type": "boolean"
  3335. },
  3336. {
  3337. "name": "range",
  3338. "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
  3339. "optional": true,
  3340. "$ref": "SourceRange"
  3341. },
  3342. {
  3343. "name": "styleSheetId",
  3344. "description": "Identifier of the stylesheet containing this object (if exists).",
  3345. "optional": true,
  3346. "$ref": "StyleSheetId"
  3347. }
  3348. ]
  3349. },
  3350. {
  3351. "id": "CSSScope",
  3352. "description": "CSS Scope at-rule descriptor.",
  3353. "experimental": true,
  3354. "type": "object",
  3355. "properties": [
  3356. {
  3357. "name": "text",
  3358. "description": "Scope rule text.",
  3359. "type": "string"
  3360. },
  3361. {
  3362. "name": "range",
  3363. "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
  3364. "optional": true,
  3365. "$ref": "SourceRange"
  3366. },
  3367. {
  3368. "name": "styleSheetId",
  3369. "description": "Identifier of the stylesheet containing this object (if exists).",
  3370. "optional": true,
  3371. "$ref": "StyleSheetId"
  3372. }
  3373. ]
  3374. },
  3375. {
  3376. "id": "CSSLayer",
  3377. "description": "CSS Layer at-rule descriptor.",
  3378. "experimental": true,
  3379. "type": "object",
  3380. "properties": [
  3381. {
  3382. "name": "text",
  3383. "description": "Layer name.",
  3384. "type": "string"
  3385. },
  3386. {
  3387. "name": "range",
  3388. "description": "The associated rule header range in the enclosing stylesheet (if\navailable).",
  3389. "optional": true,
  3390. "$ref": "SourceRange"
  3391. },
  3392. {
  3393. "name": "styleSheetId",
  3394. "description": "Identifier of the stylesheet containing this object (if exists).",
  3395. "optional": true,
  3396. "$ref": "StyleSheetId"
  3397. }
  3398. ]
  3399. },
  3400. {
  3401. "id": "CSSLayerData",
  3402. "description": "CSS Layer data.",
  3403. "experimental": true,
  3404. "type": "object",
  3405. "properties": [
  3406. {
  3407. "name": "name",
  3408. "description": "Layer name.",
  3409. "type": "string"
  3410. },
  3411. {
  3412. "name": "subLayers",
  3413. "description": "Direct sub-layers",
  3414. "optional": true,
  3415. "type": "array",
  3416. "items": {
  3417. "$ref": "CSSLayerData"
  3418. }
  3419. },
  3420. {
  3421. "name": "order",
  3422. "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.",
  3423. "type": "number"
  3424. }
  3425. ]
  3426. },
  3427. {
  3428. "id": "PlatformFontUsage",
  3429. "description": "Information about amount of glyphs that were rendered with given font.",
  3430. "type": "object",
  3431. "properties": [
  3432. {
  3433. "name": "familyName",
  3434. "description": "Font's family name reported by platform.",
  3435. "type": "string"
  3436. },
  3437. {
  3438. "name": "isCustomFont",
  3439. "description": "Indicates if the font was downloaded or resolved locally.",
  3440. "type": "boolean"
  3441. },
  3442. {
  3443. "name": "glyphCount",
  3444. "description": "Amount of glyphs that were rendered with this font.",
  3445. "type": "number"
  3446. }
  3447. ]
  3448. },
  3449. {
  3450. "id": "FontVariationAxis",
  3451. "description": "Information about font variation axes for variable fonts",
  3452. "type": "object",
  3453. "properties": [
  3454. {
  3455. "name": "tag",
  3456. "description": "The font-variation-setting tag (a.k.a. \"axis tag\").",
  3457. "type": "string"
  3458. },
  3459. {
  3460. "name": "name",
  3461. "description": "Human-readable variation name in the default language (normally, \"en\").",
  3462. "type": "string"
  3463. },
  3464. {
  3465. "name": "minValue",
  3466. "description": "The minimum value (inclusive) the font supports for this tag.",
  3467. "type": "number"
  3468. },
  3469. {
  3470. "name": "maxValue",
  3471. "description": "The maximum value (inclusive) the font supports for this tag.",
  3472. "type": "number"
  3473. },
  3474. {
  3475. "name": "defaultValue",
  3476. "description": "The default value.",
  3477. "type": "number"
  3478. }
  3479. ]
  3480. },
  3481. {
  3482. "id": "FontFace",
  3483. "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.",
  3484. "type": "object",
  3485. "properties": [
  3486. {
  3487. "name": "fontFamily",
  3488. "description": "The font-family.",
  3489. "type": "string"
  3490. },
  3491. {
  3492. "name": "fontStyle",
  3493. "description": "The font-style.",
  3494. "type": "string"
  3495. },
  3496. {
  3497. "name": "fontVariant",
  3498. "description": "The font-variant.",
  3499. "type": "string"
  3500. },
  3501. {
  3502. "name": "fontWeight",
  3503. "description": "The font-weight.",
  3504. "type": "string"
  3505. },
  3506. {
  3507. "name": "fontStretch",
  3508. "description": "The font-stretch.",
  3509. "type": "string"
  3510. },
  3511. {
  3512. "name": "fontDisplay",
  3513. "description": "The font-display.",
  3514. "type": "string"
  3515. },
  3516. {
  3517. "name": "unicodeRange",
  3518. "description": "The unicode-range.",
  3519. "type": "string"
  3520. },
  3521. {
  3522. "name": "src",
  3523. "description": "The src.",
  3524. "type": "string"
  3525. },
  3526. {
  3527. "name": "platformFontFamily",
  3528. "description": "The resolved platform font family",
  3529. "type": "string"
  3530. },
  3531. {
  3532. "name": "fontVariationAxes",
  3533. "description": "Available variation settings (a.k.a. \"axes\").",
  3534. "optional": true,
  3535. "type": "array",
  3536. "items": {
  3537. "$ref": "FontVariationAxis"
  3538. }
  3539. }
  3540. ]
  3541. },
  3542. {
  3543. "id": "CSSKeyframesRule",
  3544. "description": "CSS keyframes rule representation.",
  3545. "type": "object",
  3546. "properties": [
  3547. {
  3548. "name": "animationName",
  3549. "description": "Animation name.",
  3550. "$ref": "Value"
  3551. },
  3552. {
  3553. "name": "keyframes",
  3554. "description": "List of keyframes.",
  3555. "type": "array",
  3556. "items": {
  3557. "$ref": "CSSKeyframeRule"
  3558. }
  3559. }
  3560. ]
  3561. },
  3562. {
  3563. "id": "CSSKeyframeRule",
  3564. "description": "CSS keyframe rule representation.",
  3565. "type": "object",
  3566. "properties": [
  3567. {
  3568. "name": "styleSheetId",
  3569. "description": "The css style sheet identifier (absent for user agent stylesheet and user-specified\nstylesheet rules) this rule came from.",
  3570. "optional": true,
  3571. "$ref": "StyleSheetId"
  3572. },
  3573. {
  3574. "name": "origin",
  3575. "description": "Parent stylesheet's origin.",
  3576. "$ref": "StyleSheetOrigin"
  3577. },
  3578. {
  3579. "name": "keyText",
  3580. "description": "Associated key text.",
  3581. "$ref": "Value"
  3582. },
  3583. {
  3584. "name": "style",
  3585. "description": "Associated style declaration.",
  3586. "$ref": "CSSStyle"
  3587. }
  3588. ]
  3589. },
  3590. {
  3591. "id": "StyleDeclarationEdit",
  3592. "description": "A descriptor of operation to mutate style declaration text.",
  3593. "type": "object",
  3594. "properties": [
  3595. {
  3596. "name": "styleSheetId",
  3597. "description": "The css style sheet identifier.",
  3598. "$ref": "StyleSheetId"
  3599. },
  3600. {
  3601. "name": "range",
  3602. "description": "The range of the style text in the enclosing stylesheet.",
  3603. "$ref": "SourceRange"
  3604. },
  3605. {
  3606. "name": "text",
  3607. "description": "New style text.",
  3608. "type": "string"
  3609. }
  3610. ]
  3611. }
  3612. ],
  3613. "commands": [
  3614. {
  3615. "name": "addRule",
  3616. "description": "Inserts a new rule with the given `ruleText` in a stylesheet with given `styleSheetId`, at the\nposition specified by `location`.",
  3617. "parameters": [
  3618. {
  3619. "name": "styleSheetId",
  3620. "description": "The css style sheet identifier where a new rule should be inserted.",
  3621. "$ref": "StyleSheetId"
  3622. },
  3623. {
  3624. "name": "ruleText",
  3625. "description": "The text of a new rule.",
  3626. "type": "string"
  3627. },
  3628. {
  3629. "name": "location",
  3630. "description": "Text position of a new rule in the target style sheet.",
  3631. "$ref": "SourceRange"
  3632. }
  3633. ],
  3634. "returns": [
  3635. {
  3636. "name": "rule",
  3637. "description": "The newly created rule.",
  3638. "$ref": "CSSRule"
  3639. }
  3640. ]
  3641. },
  3642. {
  3643. "name": "collectClassNames",
  3644. "description": "Returns all class names from specified stylesheet.",
  3645. "parameters": [
  3646. {
  3647. "name": "styleSheetId",
  3648. "$ref": "StyleSheetId"
  3649. }
  3650. ],
  3651. "returns": [
  3652. {
  3653. "name": "classNames",
  3654. "description": "Class name list.",
  3655. "type": "array",
  3656. "items": {
  3657. "type": "string"
  3658. }
  3659. }
  3660. ]
  3661. },
  3662. {
  3663. "name": "createStyleSheet",
  3664. "description": "Creates a new special \"via-inspector\" stylesheet in the frame with given `frameId`.",
  3665. "parameters": [
  3666. {
  3667. "name": "frameId",
  3668. "description": "Identifier of the frame where \"via-inspector\" stylesheet should be created.",
  3669. "$ref": "Page.FrameId"
  3670. }
  3671. ],
  3672. "returns": [
  3673. {
  3674. "name": "styleSheetId",
  3675. "description": "Identifier of the created \"via-inspector\" stylesheet.",
  3676. "$ref": "StyleSheetId"
  3677. }
  3678. ]
  3679. },
  3680. {
  3681. "name": "disable",
  3682. "description": "Disables the CSS agent for the given page."
  3683. },
  3684. {
  3685. "name": "enable",
  3686. "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."
  3687. },
  3688. {
  3689. "name": "forcePseudoState",
  3690. "description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by\nthe browser.",
  3691. "parameters": [
  3692. {
  3693. "name": "nodeId",
  3694. "description": "The element id for which to force the pseudo state.",
  3695. "$ref": "DOM.NodeId"
  3696. },
  3697. {
  3698. "name": "forcedPseudoClasses",
  3699. "description": "Element pseudo classes to force when computing the element's style.",
  3700. "type": "array",
  3701. "items": {
  3702. "type": "string"
  3703. }
  3704. }
  3705. ]
  3706. },
  3707. {
  3708. "name": "getBackgroundColors",
  3709. "parameters": [
  3710. {
  3711. "name": "nodeId",
  3712. "description": "Id of the node to get background colors for.",
  3713. "$ref": "DOM.NodeId"
  3714. }
  3715. ],
  3716. "returns": [
  3717. {
  3718. "name": "backgroundColors",
  3719. "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).",
  3720. "optional": true,
  3721. "type": "array",
  3722. "items": {
  3723. "type": "string"
  3724. }
  3725. },
  3726. {
  3727. "name": "computedFontSize",
  3728. "description": "The computed font size for this node, as a CSS computed value string (e.g. '12px').",
  3729. "optional": true,
  3730. "type": "string"
  3731. },
  3732. {
  3733. "name": "computedFontWeight",
  3734. "description": "The computed font weight for this node, as a CSS computed value string (e.g. 'normal' or\n'100').",
  3735. "optional": true,
  3736. "type": "string"
  3737. }
  3738. ]
  3739. },
  3740. {
  3741. "name": "getComputedStyleForNode",
  3742. "description": "Returns the computed style for a DOM node identified by `nodeId`.",
  3743. "parameters": [
  3744. {
  3745. "name": "nodeId",
  3746. "$ref": "DOM.NodeId"
  3747. }
  3748. ],
  3749. "returns": [
  3750. {
  3751. "name": "computedStyle",
  3752. "description": "Computed style for the specified DOM node.",
  3753. "type": "array",
  3754. "items": {
  3755. "$ref": "CSSComputedStyleProperty"
  3756. }
  3757. }
  3758. ]
  3759. },
  3760. {
  3761. "name": "getInlineStylesForNode",
  3762. "description": "Returns the styles defined inline (explicitly in the \"style\" attribute and implicitly, using DOM\nattributes) for a DOM node identified by `nodeId`.",
  3763. "parameters": [
  3764. {
  3765. "name": "nodeId",
  3766. "$ref": "DOM.NodeId"
  3767. }
  3768. ],
  3769. "returns": [
  3770. {
  3771. "name": "inlineStyle",
  3772. "description": "Inline style for the specified DOM node.",
  3773. "optional": true,
  3774. "$ref": "CSSStyle"
  3775. },
  3776. {
  3777. "name": "attributesStyle",
  3778. "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\").",
  3779. "optional": true,
  3780. "$ref": "CSSStyle"
  3781. }
  3782. ]
  3783. },
  3784. {
  3785. "name": "getMatchedStylesForNode",
  3786. "description": "Returns requested styles for a DOM node identified by `nodeId`.",
  3787. "parameters": [
  3788. {
  3789. "name": "nodeId",
  3790. "$ref": "DOM.NodeId"
  3791. }
  3792. ],
  3793. "returns": [
  3794. {
  3795. "name": "inlineStyle",
  3796. "description": "Inline style for the specified DOM node.",
  3797. "optional": true,
  3798. "$ref": "CSSStyle"
  3799. },
  3800. {
  3801. "name": "attributesStyle",
  3802. "description": "Attribute-defined element style (e.g. resulting from \"width=20 height=100%\").",
  3803. "optional": true,
  3804. "$ref": "CSSStyle"
  3805. },
  3806. {
  3807. "name": "matchedCSSRules",
  3808. "description": "CSS rules matching this node, from all applicable stylesheets.",
  3809. "optional": true,
  3810. "type": "array",
  3811. "items": {
  3812. "$ref": "RuleMatch"
  3813. }
  3814. },
  3815. {
  3816. "name": "pseudoElements",
  3817. "description": "Pseudo style matches for this node.",
  3818. "optional": true,
  3819. "type": "array",
  3820. "items": {
  3821. "$ref": "PseudoElementMatches"
  3822. }
  3823. },
  3824. {
  3825. "name": "inherited",
  3826. "description": "A chain of inherited styles (from the immediate node parent up to the DOM tree root).",
  3827. "optional": true,
  3828. "type": "array",
  3829. "items": {
  3830. "$ref": "InheritedStyleEntry"
  3831. }
  3832. },
  3833. {
  3834. "name": "inheritedPseudoElements",
  3835. "description": "A chain of inherited pseudo element styles (from the immediate node parent up to the DOM tree root).",
  3836. "optional": true,
  3837. "type": "array",
  3838. "items": {
  3839. "$ref": "InheritedPseudoElementMatches"
  3840. }
  3841. },
  3842. {
  3843. "name": "cssKeyframesRules",
  3844. "description": "A list of CSS keyframed animations matching this node.",
  3845. "optional": true,
  3846. "type": "array",
  3847. "items": {
  3848. "$ref": "CSSKeyframesRule"
  3849. }
  3850. },
  3851. {
  3852. "name": "parentLayoutNodeId",
  3853. "description": "Id of the first parent element that does not have display: contents.",
  3854. "experimental": true,
  3855. "optional": true,
  3856. "$ref": "DOM.NodeId"
  3857. }
  3858. ]
  3859. },
  3860. {
  3861. "name": "getMediaQueries",
  3862. "description": "Returns all media queries parsed by the rendering engine.",
  3863. "returns": [
  3864. {
  3865. "name": "medias",
  3866. "type": "array",
  3867. "items": {
  3868. "$ref": "CSSMedia"
  3869. }
  3870. }
  3871. ]
  3872. },
  3873. {
  3874. "name": "getPlatformFontsForNode",
  3875. "description": "Requests information about platform fonts which we used to render child TextNodes in the given\nnode.",
  3876. "parameters": [
  3877. {
  3878. "name": "nodeId",
  3879. "$ref": "DOM.NodeId"
  3880. }
  3881. ],
  3882. "returns": [
  3883. {
  3884. "name": "fonts",
  3885. "description": "Usage statistics for every employed platform font.",
  3886. "type": "array",
  3887. "items": {
  3888. "$ref": "PlatformFontUsage"
  3889. }
  3890. }
  3891. ]
  3892. },
  3893. {
  3894. "name": "getStyleSheetText",
  3895. "description": "Returns the current textual content for a stylesheet.",
  3896. "parameters": [
  3897. {
  3898. "name": "styleSheetId",
  3899. "$ref": "StyleSheetId"
  3900. }
  3901. ],
  3902. "returns": [
  3903. {
  3904. "name": "text",
  3905. "description": "The stylesheet text.",
  3906. "type": "string"
  3907. }
  3908. ]
  3909. },
  3910. {
  3911. "name": "getLayersForNode",
  3912. "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.",
  3913. "experimental": true,
  3914. "parameters": [
  3915. {
  3916. "name": "nodeId",
  3917. "$ref": "DOM.NodeId"
  3918. }
  3919. ],
  3920. "returns": [
  3921. {
  3922. "name": "rootLayer",
  3923. "$ref": "CSSLayerData"
  3924. }
  3925. ]
  3926. },
  3927. {
  3928. "name": "trackComputedStyleUpdates",
  3929. "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.",
  3930. "experimental": true,
  3931. "parameters": [
  3932. {
  3933. "name": "propertiesToTrack",
  3934. "type": "array",
  3935. "items": {
  3936. "$ref": "CSSComputedStyleProperty"
  3937. }
  3938. }
  3939. ]
  3940. },
  3941. {
  3942. "name": "takeComputedStyleUpdates",
  3943. "description": "Polls the next batch of computed style updates.",
  3944. "experimental": true,
  3945. "returns": [
  3946. {
  3947. "name": "nodeIds",
  3948. "description": "The list of node Ids that have their tracked computed styles updated",
  3949. "type": "array",
  3950. "items": {
  3951. "$ref": "DOM.NodeId"
  3952. }
  3953. }
  3954. ]
  3955. },
  3956. {
  3957. "name": "setEffectivePropertyValueForNode",
  3958. "description": "Find a rule with the given active property for the given node and set the new value for this\nproperty",
  3959. "parameters": [
  3960. {
  3961. "name": "nodeId",
  3962. "description": "The element id for which to set property.",
  3963. "$ref": "DOM.NodeId"
  3964. },
  3965. {
  3966. "name": "propertyName",
  3967. "type": "string"
  3968. },
  3969. {
  3970. "name": "value",
  3971. "type": "string"
  3972. }
  3973. ]
  3974. },
  3975. {
  3976. "name": "setKeyframeKey",
  3977. "description": "Modifies the keyframe rule key text.",
  3978. "parameters": [
  3979. {
  3980. "name": "styleSheetId",
  3981. "$ref": "StyleSheetId"
  3982. },
  3983. {
  3984. "name": "range",
  3985. "$ref": "SourceRange"
  3986. },
  3987. {
  3988. "name": "keyText",
  3989. "type": "string"
  3990. }
  3991. ],
  3992. "returns": [
  3993. {
  3994. "name": "keyText",
  3995. "description": "The resulting key text after modification.",
  3996. "$ref": "Value"
  3997. }
  3998. ]
  3999. },
  4000. {
  4001. "name": "setMediaText",
  4002. "description": "Modifies the rule selector.",
  4003. "parameters": [
  4004. {
  4005. "name": "styleSheetId",
  4006. "$ref": "StyleSheetId"
  4007. },
  4008. {
  4009. "name": "range",
  4010. "$ref": "SourceRange"
  4011. },
  4012. {
  4013. "name": "text",
  4014. "type": "string"
  4015. }
  4016. ],
  4017. "returns": [
  4018. {
  4019. "name": "media",
  4020. "description": "The resulting CSS media rule after modification.",
  4021. "$ref": "CSSMedia"
  4022. }
  4023. ]
  4024. },
  4025. {
  4026. "name": "setContainerQueryText",
  4027. "description": "Modifies the expression of a container query.",
  4028. "experimental": true,
  4029. "parameters": [
  4030. {
  4031. "name": "styleSheetId",
  4032. "$ref": "StyleSheetId"
  4033. },
  4034. {
  4035. "name": "range",
  4036. "$ref": "SourceRange"
  4037. },
  4038. {
  4039. "name": "text",
  4040. "type": "string"
  4041. }
  4042. ],
  4043. "returns": [
  4044. {
  4045. "name": "containerQuery",
  4046. "description": "The resulting CSS container query rule after modification.",
  4047. "$ref": "CSSContainerQuery"
  4048. }
  4049. ]
  4050. },
  4051. {
  4052. "name": "setSupportsText",
  4053. "description": "Modifies the expression of a supports at-rule.",
  4054. "experimental": true,
  4055. "parameters": [
  4056. {
  4057. "name": "styleSheetId",
  4058. "$ref": "StyleSheetId"
  4059. },
  4060. {
  4061. "name": "range",
  4062. "$ref": "SourceRange"
  4063. },
  4064. {
  4065. "name": "text",
  4066. "type": "string"
  4067. }
  4068. ],
  4069. "returns": [
  4070. {
  4071. "name": "supports",
  4072. "description": "The resulting CSS Supports rule after modification.",
  4073. "$ref": "CSSSupports"
  4074. }
  4075. ]
  4076. },
  4077. {
  4078. "name": "setScopeText",
  4079. "description": "Modifies the expression of a scope at-rule.",
  4080. "experimental": true,
  4081. "parameters": [
  4082. {
  4083. "name": "styleSheetId",
  4084. "$ref": "StyleSheetId"
  4085. },
  4086. {
  4087. "name": "range",
  4088. "$ref": "SourceRange"
  4089. },
  4090. {
  4091. "name": "text",
  4092. "type": "string"
  4093. }
  4094. ],
  4095. "returns": [
  4096. {
  4097. "name": "scope",
  4098. "description": "The resulting CSS Scope rule after modification.",
  4099. "$ref": "CSSScope"
  4100. }
  4101. ]
  4102. },
  4103. {
  4104. "name": "setRuleSelector",
  4105. "description": "Modifies the rule selector.",
  4106. "parameters": [
  4107. {
  4108. "name": "styleSheetId",
  4109. "$ref": "StyleSheetId"
  4110. },
  4111. {
  4112. "name": "range",
  4113. "$ref": "SourceRange"
  4114. },
  4115. {
  4116. "name": "selector",
  4117. "type": "string"
  4118. }
  4119. ],
  4120. "returns": [
  4121. {
  4122. "name": "selectorList",
  4123. "description": "The resulting selector list after modification.",
  4124. "$ref": "SelectorList"
  4125. }
  4126. ]
  4127. },
  4128. {
  4129. "name": "setStyleSheetText",
  4130. "description": "Sets the new stylesheet text.",
  4131. "parameters": [
  4132. {
  4133. "name": "styleSheetId",
  4134. "$ref": "StyleSheetId"
  4135. },
  4136. {
  4137. "name": "text",
  4138. "type": "string"
  4139. }
  4140. ],
  4141. "returns": [
  4142. {
  4143. "name": "sourceMapURL",
  4144. "description": "URL of source map associated with script (if any).",
  4145. "optional": true,
  4146. "type": "string"
  4147. }
  4148. ]
  4149. },
  4150. {
  4151. "name": "setStyleTexts",
  4152. "description": "Applies specified style edits one after another in the given order.",
  4153. "parameters": [
  4154. {
  4155. "name": "edits",
  4156. "type": "array",
  4157. "items": {
  4158. "$ref": "StyleDeclarationEdit"
  4159. }
  4160. }
  4161. ],
  4162. "returns": [
  4163. {
  4164. "name": "styles",
  4165. "description": "The resulting styles after modification.",
  4166. "type": "array",
  4167. "items": {
  4168. "$ref": "CSSStyle"
  4169. }
  4170. }
  4171. ]
  4172. },
  4173. {
  4174. "name": "startRuleUsageTracking",
  4175. "description": "Enables the selector recording."
  4176. },
  4177. {
  4178. "name": "stopRuleUsageTracking",
  4179. "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)",
  4180. "returns": [
  4181. {
  4182. "name": "ruleUsage",
  4183. "type": "array",
  4184. "items": {
  4185. "$ref": "RuleUsage"
  4186. }
  4187. }
  4188. ]
  4189. },
  4190. {
  4191. "name": "takeCoverageDelta",
  4192. "description": "Obtain list of rules that became used since last call to this method (or since start of coverage\ninstrumentation)",
  4193. "returns": [
  4194. {
  4195. "name": "coverage",
  4196. "type": "array",
  4197. "items": {
  4198. "$ref": "RuleUsage"
  4199. }
  4200. },
  4201. {
  4202. "name": "timestamp",
  4203. "description": "Monotonically increasing time, in seconds.",
  4204. "type": "number"
  4205. }
  4206. ]
  4207. },
  4208. {
  4209. "name": "setLocalFontsEnabled",
  4210. "description": "Enables/disables rendering of local CSS fonts (enabled by default).",
  4211. "experimental": true,
  4212. "parameters": [
  4213. {
  4214. "name": "enabled",
  4215. "description": "Whether rendering of local fonts is enabled.",
  4216. "type": "boolean"
  4217. }
  4218. ]
  4219. }
  4220. ],
  4221. "events": [
  4222. {
  4223. "name": "fontsUpdated",
  4224. "description": "Fires whenever a web font is updated. A non-empty font parameter indicates a successfully loaded\nweb font",
  4225. "parameters": [
  4226. {
  4227. "name": "font",
  4228. "description": "The web font that has loaded.",
  4229. "optional": true,
  4230. "$ref": "FontFace"
  4231. }
  4232. ]
  4233. },
  4234. {
  4235. "name": "mediaQueryResultChanged",
  4236. "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."
  4237. },
  4238. {
  4239. "name": "styleSheetAdded",
  4240. "description": "Fired whenever an active document stylesheet is added.",
  4241. "parameters": [
  4242. {
  4243. "name": "header",
  4244. "description": "Added stylesheet metainfo.",
  4245. "$ref": "CSSStyleSheetHeader"
  4246. }
  4247. ]
  4248. },
  4249. {
  4250. "name": "styleSheetChanged",
  4251. "description": "Fired whenever a stylesheet is changed as a result of the client operation.",
  4252. "parameters": [
  4253. {
  4254. "name": "styleSheetId",
  4255. "$ref": "StyleSheetId"
  4256. }
  4257. ]
  4258. },
  4259. {
  4260. "name": "styleSheetRemoved",
  4261. "description": "Fired whenever an active document stylesheet is removed.",
  4262. "parameters": [
  4263. {
  4264. "name": "styleSheetId",
  4265. "description": "Identifier of the removed stylesheet.",
  4266. "$ref": "StyleSheetId"
  4267. }
  4268. ]
  4269. }
  4270. ]
  4271. },
  4272. {
  4273. "domain": "CacheStorage",
  4274. "experimental": true,
  4275. "types": [
  4276. {
  4277. "id": "CacheId",
  4278. "description": "Unique identifier of the Cache object.",
  4279. "type": "string"
  4280. },
  4281. {
  4282. "id": "CachedResponseType",
  4283. "description": "type of HTTP response cached",
  4284. "type": "string",
  4285. "enum": [
  4286. "basic",
  4287. "cors",
  4288. "default",
  4289. "error",
  4290. "opaqueResponse",
  4291. "opaqueRedirect"
  4292. ]
  4293. },
  4294. {
  4295. "id": "DataEntry",
  4296. "description": "Data entry.",
  4297. "type": "object",
  4298. "properties": [
  4299. {
  4300. "name": "requestURL",
  4301. "description": "Request URL.",
  4302. "type": "string"
  4303. },
  4304. {
  4305. "name": "requestMethod",
  4306. "description": "Request method.",
  4307. "type": "string"
  4308. },
  4309. {
  4310. "name": "requestHeaders",
  4311. "description": "Request headers",
  4312. "type": "array",
  4313. "items": {
  4314. "$ref": "Header"
  4315. }
  4316. },
  4317. {
  4318. "name": "responseTime",
  4319. "description": "Number of seconds since epoch.",
  4320. "type": "number"
  4321. },
  4322. {
  4323. "name": "responseStatus",
  4324. "description": "HTTP response status code.",
  4325. "type": "integer"
  4326. },
  4327. {
  4328. "name": "responseStatusText",
  4329. "description": "HTTP response status text.",
  4330. "type": "string"
  4331. },
  4332. {
  4333. "name": "responseType",
  4334. "description": "HTTP response type",
  4335. "$ref": "CachedResponseType"
  4336. },
  4337. {
  4338. "name": "responseHeaders",
  4339. "description": "Response headers",
  4340. "type": "array",
  4341. "items": {
  4342. "$ref": "Header"
  4343. }
  4344. }
  4345. ]
  4346. },
  4347. {
  4348. "id": "Cache",
  4349. "description": "Cache identifier.",
  4350. "type": "object",
  4351. "properties": [
  4352. {
  4353. "name": "cacheId",
  4354. "description": "An opaque unique id of the cache.",
  4355. "$ref": "CacheId"
  4356. },
  4357. {
  4358. "name": "securityOrigin",
  4359. "description": "Security origin of the cache.",
  4360. "type": "string"
  4361. },
  4362. {
  4363. "name": "cacheName",
  4364. "description": "The name of the cache.",
  4365. "type": "string"
  4366. }
  4367. ]
  4368. },
  4369. {
  4370. "id": "Header",
  4371. "type": "object",
  4372. "properties": [
  4373. {
  4374. "name": "name",
  4375. "type": "string"
  4376. },
  4377. {
  4378. "name": "value",
  4379. "type": "string"
  4380. }
  4381. ]
  4382. },
  4383. {
  4384. "id": "CachedResponse",
  4385. "description": "Cached response",
  4386. "type": "object",
  4387. "properties": [
  4388. {
  4389. "name": "body",
  4390. "description": "Entry content, base64-encoded. (Encoded as a base64 string when passed over JSON)",
  4391. "type": "string"
  4392. }
  4393. ]
  4394. }
  4395. ],
  4396. "commands": [
  4397. {
  4398. "name": "deleteCache",
  4399. "description": "Deletes a cache.",
  4400. "parameters": [
  4401. {
  4402. "name": "cacheId",
  4403. "description": "Id of cache for deletion.",
  4404. "$ref": "CacheId"
  4405. }
  4406. ]
  4407. },
  4408. {
  4409. "name": "deleteEntry",
  4410. "description": "Deletes a cache entry.",
  4411. "parameters": [
  4412. {
  4413. "name": "cacheId",
  4414. "description": "Id of cache where the entry will be deleted.",
  4415. "$ref": "CacheId"
  4416. },
  4417. {
  4418. "name": "request",
  4419. "description": "URL spec of the request.",
  4420. "type": "string"
  4421. }
  4422. ]
  4423. },
  4424. {
  4425. "name": "requestCacheNames",
  4426. "description": "Requests cache names.",
  4427. "parameters": [
  4428. {
  4429. "name": "securityOrigin",
  4430. "description": "Security origin.",
  4431. "type": "string"
  4432. }
  4433. ],
  4434. "returns": [
  4435. {
  4436. "name": "caches",
  4437. "description": "Caches for the security origin.",
  4438. "type": "array",
  4439. "items": {
  4440. "$ref": "Cache"
  4441. }
  4442. }
  4443. ]
  4444. },
  4445. {
  4446. "name": "requestCachedResponse",
  4447. "description": "Fetches cache entry.",
  4448. "parameters": [
  4449. {
  4450. "name": "cacheId",
  4451. "description": "Id of cache that contains the entry.",
  4452. "$ref": "CacheId"
  4453. },
  4454. {
  4455. "name": "requestURL",
  4456. "description": "URL spec of the request.",
  4457. "type": "string"
  4458. },
  4459. {
  4460. "name": "requestHeaders",
  4461. "description": "headers of the request.",
  4462. "type": "array",
  4463. "items": {
  4464. "$ref": "Header"
  4465. }
  4466. }
  4467. ],
  4468. "returns": [
  4469. {
  4470. "name": "response",
  4471. "description": "Response read from the cache.",
  4472. "$ref": "CachedResponse"
  4473. }
  4474. ]
  4475. },
  4476. {
  4477. "name": "requestEntries",
  4478. "description": "Requests data from cache.",
  4479. "parameters": [
  4480. {
  4481. "name": "cacheId",
  4482. "description": "ID of cache to get entries from.",
  4483. "$ref": "CacheId"
  4484. },
  4485. {
  4486. "name": "skipCount",
  4487. "description": "Number of records to skip.",
  4488. "optional": true,
  4489. "type": "integer"
  4490. },
  4491. {
  4492. "name": "pageSize",
  4493. "description": "Number of records to fetch.",
  4494. "optional": true,
  4495. "type": "integer"
  4496. },
  4497. {
  4498. "name": "pathFilter",
  4499. "description": "If present, only return the entries containing this substring in the path",
  4500. "optional": true,
  4501. "type": "string"
  4502. }
  4503. ],
  4504. "returns": [
  4505. {
  4506. "name": "cacheDataEntries",
  4507. "description": "Array of object store data entries.",
  4508. "type": "array",
  4509. "items": {
  4510. "$ref": "DataEntry"
  4511. }
  4512. },
  4513. {
  4514. "name": "returnCount",
  4515. "description": "Count of returned entries from this storage. If pathFilter is empty, it\nis the count of all entries from this storage.",
  4516. "type": "number"
  4517. }
  4518. ]
  4519. }
  4520. ]
  4521. },
  4522. {
  4523. "domain": "Cast",
  4524. "description": "A domain for interacting with Cast, Presentation API, and Remote Playback API\nfunctionalities.",
  4525. "experimental": true,
  4526. "types": [
  4527. {
  4528. "id": "Sink",
  4529. "type": "object",
  4530. "properties": [
  4531. {
  4532. "name": "name",
  4533. "type": "string"
  4534. },
  4535. {
  4536. "name": "id",
  4537. "type": "string"
  4538. },
  4539. {
  4540. "name": "session",
  4541. "description": "Text describing the current session. Present only if there is an active\nsession on the sink.",
  4542. "optional": true,
  4543. "type": "string"
  4544. }
  4545. ]
  4546. }
  4547. ],
  4548. "commands": [
  4549. {
  4550. "name": "enable",
  4551. "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.",
  4552. "parameters": [
  4553. {
  4554. "name": "presentationUrl",
  4555. "optional": true,
  4556. "type": "string"
  4557. }
  4558. ]
  4559. },
  4560. {
  4561. "name": "disable",
  4562. "description": "Stops observing for sinks and issues."
  4563. },
  4564. {
  4565. "name": "setSinkToUse",
  4566. "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.",
  4567. "parameters": [
  4568. {
  4569. "name": "sinkName",
  4570. "type": "string"
  4571. }
  4572. ]
  4573. },
  4574. {
  4575. "name": "startDesktopMirroring",
  4576. "description": "Starts mirroring the desktop to the sink.",
  4577. "parameters": [
  4578. {
  4579. "name": "sinkName",
  4580. "type": "string"
  4581. }
  4582. ]
  4583. },
  4584. {
  4585. "name": "startTabMirroring",
  4586. "description": "Starts mirroring the tab to the sink.",
  4587. "parameters": [
  4588. {
  4589. "name": "sinkName",
  4590. "type": "string"
  4591. }
  4592. ]
  4593. },
  4594. {
  4595. "name": "stopCasting",
  4596. "description": "Stops the active Cast session on the sink.",
  4597. "parameters": [
  4598. {
  4599. "name": "sinkName",
  4600. "type": "string"
  4601. }
  4602. ]
  4603. }
  4604. ],
  4605. "events": [
  4606. {
  4607. "name": "sinksUpdated",
  4608. "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.",
  4609. "parameters": [
  4610. {
  4611. "name": "sinks",
  4612. "type": "array",
  4613. "items": {
  4614. "$ref": "Sink"
  4615. }
  4616. }
  4617. ]
  4618. },
  4619. {
  4620. "name": "issueUpdated",
  4621. "description": "This is fired whenever the outstanding issue/error message changes.\n|issueMessage| is empty if there is no issue.",
  4622. "parameters": [
  4623. {
  4624. "name": "issueMessage",
  4625. "type": "string"
  4626. }
  4627. ]
  4628. }
  4629. ]
  4630. },
  4631. {
  4632. "domain": "DOM",
  4633. "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>",
  4634. "dependencies": [
  4635. "Runtime"
  4636. ],
  4637. "types": [
  4638. {
  4639. "id": "NodeId",
  4640. "description": "Unique DOM node identifier.",
  4641. "type": "integer"
  4642. },
  4643. {
  4644. "id": "BackendNodeId",
  4645. "description": "Unique DOM node identifier used to reference a node that may not have been pushed to the\nfront-end.",
  4646. "type": "integer"
  4647. },
  4648. {
  4649. "id": "BackendNode",
  4650. "description": "Backend node with a friendly name.",
  4651. "type": "object",
  4652. "properties": [
  4653. {
  4654. "name": "nodeType",
  4655. "description": "`Node`'s nodeType.",
  4656. "type": "integer"
  4657. },
  4658. {
  4659. "name": "nodeName",
  4660. "description": "`Node`'s nodeName.",
  4661. "type": "string"
  4662. },
  4663. {
  4664. "name": "backendNodeId",
  4665. "$ref": "BackendNodeId"
  4666. }
  4667. ]
  4668. },
  4669. {
  4670. "id": "PseudoType",
  4671. "description": "Pseudo element type.",
  4672. "type": "string",
  4673. "enum": [
  4674. "first-line",
  4675. "first-letter",
  4676. "before",
  4677. "after",
  4678. "marker",
  4679. "backdrop",
  4680. "selection",
  4681. "target-text",
  4682. "spelling-error",
  4683. "grammar-error",
  4684. "highlight",
  4685. "first-line-inherited",
  4686. "scrollbar",
  4687. "scrollbar-thumb",
  4688. "scrollbar-button",
  4689. "scrollbar-track",
  4690. "scrollbar-track-piece",
  4691. "scrollbar-corner",
  4692. "resizer",
  4693. "input-list-button",
  4694. "page-transition",
  4695. "page-transition-container",
  4696. "page-transition-image-wrapper",
  4697. "page-transition-outgoing-image",
  4698. "page-transition-incoming-image"
  4699. ]
  4700. },
  4701. {
  4702. "id": "ShadowRootType",
  4703. "description": "Shadow root type.",
  4704. "type": "string",
  4705. "enum": [
  4706. "user-agent",
  4707. "open",
  4708. "closed"
  4709. ]
  4710. },
  4711. {
  4712. "id": "CompatibilityMode",
  4713. "description": "Document compatibility mode.",
  4714. "type": "string",
  4715. "enum": [
  4716. "QuirksMode",
  4717. "LimitedQuirksMode",
  4718. "NoQuirksMode"
  4719. ]
  4720. },
  4721. {
  4722. "id": "Node",
  4723. "description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes.\nDOMNode is a base node mirror type.",
  4724. "type": "object",
  4725. "properties": [
  4726. {
  4727. "name": "nodeId",
  4728. "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.",
  4729. "$ref": "NodeId"
  4730. },
  4731. {
  4732. "name": "parentId",
  4733. "description": "The id of the parent node if any.",
  4734. "optional": true,
  4735. "$ref": "NodeId"
  4736. },
  4737. {
  4738. "name": "backendNodeId",
  4739. "description": "The BackendNodeId for this node.",
  4740. "$ref": "BackendNodeId"
  4741. },
  4742. {
  4743. "name": "nodeType",
  4744. "description": "`Node`'s nodeType.",
  4745. "type": "integer"
  4746. },
  4747. {
  4748. "name": "nodeName",
  4749. "description": "`Node`'s nodeName.",
  4750. "type": "string"
  4751. },
  4752. {
  4753. "name": "localName",
  4754. "description": "`Node`'s localName.",
  4755. "type": "string"
  4756. },
  4757. {
  4758. "name": "nodeValue",
  4759. "description": "`Node`'s nodeValue.",
  4760. "type": "string"
  4761. },
  4762. {
  4763. "name": "childNodeCount",
  4764. "description": "Child count for `Container` nodes.",
  4765. "optional": true,
  4766. "type": "integer"
  4767. },
  4768. {
  4769. "name": "children",
  4770. "description": "Child nodes of this node when requested with children.",
  4771. "optional": true,
  4772. "type": "array",
  4773. "items": {
  4774. "$ref": "Node"
  4775. }
  4776. },
  4777. {
  4778. "name": "attributes",
  4779. "description": "Attributes of the `Element` node in the form of flat array `[name1, value1, name2, value2]`.",
  4780. "optional": true,
  4781. "type": "array",
  4782. "items": {
  4783. "type": "string"
  4784. }
  4785. },
  4786. {
  4787. "name": "documentURL",
  4788. "description": "Document URL that `Document` or `FrameOwner` node points to.",
  4789. "optional": true,
  4790. "type": "string"
  4791. },
  4792. {
  4793. "name": "baseURL",
  4794. "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
  4795. "optional": true,
  4796. "type": "string"
  4797. },
  4798. {
  4799. "name": "publicId",
  4800. "description": "`DocumentType`'s publicId.",
  4801. "optional": true,
  4802. "type": "string"
  4803. },
  4804. {
  4805. "name": "systemId",
  4806. "description": "`DocumentType`'s systemId.",
  4807. "optional": true,
  4808. "type": "string"
  4809. },
  4810. {
  4811. "name": "internalSubset",
  4812. "description": "`DocumentType`'s internalSubset.",
  4813. "optional": true,
  4814. "type": "string"
  4815. },
  4816. {
  4817. "name": "xmlVersion",
  4818. "description": "`Document`'s XML version in case of XML documents.",
  4819. "optional": true,
  4820. "type": "string"
  4821. },
  4822. {
  4823. "name": "name",
  4824. "description": "`Attr`'s name.",
  4825. "optional": true,
  4826. "type": "string"
  4827. },
  4828. {
  4829. "name": "value",
  4830. "description": "`Attr`'s value.",
  4831. "optional": true,
  4832. "type": "string"
  4833. },
  4834. {
  4835. "name": "pseudoType",
  4836. "description": "Pseudo element type for this node.",
  4837. "optional": true,
  4838. "$ref": "PseudoType"
  4839. },
  4840. {
  4841. "name": "pseudoIdentifier",
  4842. "description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
  4843. "optional": true,
  4844. "type": "string"
  4845. },
  4846. {
  4847. "name": "shadowRootType",
  4848. "description": "Shadow root type.",
  4849. "optional": true,
  4850. "$ref": "ShadowRootType"
  4851. },
  4852. {
  4853. "name": "frameId",
  4854. "description": "Frame ID for frame owner elements.",
  4855. "optional": true,
  4856. "$ref": "Page.FrameId"
  4857. },
  4858. {
  4859. "name": "contentDocument",
  4860. "description": "Content document for frame owner elements.",
  4861. "optional": true,
  4862. "$ref": "Node"
  4863. },
  4864. {
  4865. "name": "shadowRoots",
  4866. "description": "Shadow root list for given element host.",
  4867. "optional": true,
  4868. "type": "array",
  4869. "items": {
  4870. "$ref": "Node"
  4871. }
  4872. },
  4873. {
  4874. "name": "templateContent",
  4875. "description": "Content document fragment for template elements.",
  4876. "optional": true,
  4877. "$ref": "Node"
  4878. },
  4879. {
  4880. "name": "pseudoElements",
  4881. "description": "Pseudo elements associated with this node.",
  4882. "optional": true,
  4883. "type": "array",
  4884. "items": {
  4885. "$ref": "Node"
  4886. }
  4887. },
  4888. {
  4889. "name": "importedDocument",
  4890. "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.",
  4891. "deprecated": true,
  4892. "optional": true,
  4893. "$ref": "Node"
  4894. },
  4895. {
  4896. "name": "distributedNodes",
  4897. "description": "Distributed nodes for given insertion point.",
  4898. "optional": true,
  4899. "type": "array",
  4900. "items": {
  4901. "$ref": "BackendNode"
  4902. }
  4903. },
  4904. {
  4905. "name": "isSVG",
  4906. "description": "Whether the node is SVG.",
  4907. "optional": true,
  4908. "type": "boolean"
  4909. },
  4910. {
  4911. "name": "compatibilityMode",
  4912. "optional": true,
  4913. "$ref": "CompatibilityMode"
  4914. },
  4915. {
  4916. "name": "assignedSlot",
  4917. "optional": true,
  4918. "$ref": "BackendNode"
  4919. }
  4920. ]
  4921. },
  4922. {
  4923. "id": "RGBA",
  4924. "description": "A structure holding an RGBA color.",
  4925. "type": "object",
  4926. "properties": [
  4927. {
  4928. "name": "r",
  4929. "description": "The red component, in the [0-255] range.",
  4930. "type": "integer"
  4931. },
  4932. {
  4933. "name": "g",
  4934. "description": "The green component, in the [0-255] range.",
  4935. "type": "integer"
  4936. },
  4937. {
  4938. "name": "b",
  4939. "description": "The blue component, in the [0-255] range.",
  4940. "type": "integer"
  4941. },
  4942. {
  4943. "name": "a",
  4944. "description": "The alpha component, in the [0-1] range (default: 1).",
  4945. "optional": true,
  4946. "type": "number"
  4947. }
  4948. ]
  4949. },
  4950. {
  4951. "id": "Quad",
  4952. "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.",
  4953. "type": "array",
  4954. "items": {
  4955. "type": "number"
  4956. }
  4957. },
  4958. {
  4959. "id": "BoxModel",
  4960. "description": "Box model.",
  4961. "type": "object",
  4962. "properties": [
  4963. {
  4964. "name": "content",
  4965. "description": "Content box",
  4966. "$ref": "Quad"
  4967. },
  4968. {
  4969. "name": "padding",
  4970. "description": "Padding box",
  4971. "$ref": "Quad"
  4972. },
  4973. {
  4974. "name": "border",
  4975. "description": "Border box",
  4976. "$ref": "Quad"
  4977. },
  4978. {
  4979. "name": "margin",
  4980. "description": "Margin box",
  4981. "$ref": "Quad"
  4982. },
  4983. {
  4984. "name": "width",
  4985. "description": "Node width",
  4986. "type": "integer"
  4987. },
  4988. {
  4989. "name": "height",
  4990. "description": "Node height",
  4991. "type": "integer"
  4992. },
  4993. {
  4994. "name": "shapeOutside",
  4995. "description": "Shape outside coordinates",
  4996. "optional": true,
  4997. "$ref": "ShapeOutsideInfo"
  4998. }
  4999. ]
  5000. },
  5001. {
  5002. "id": "ShapeOutsideInfo",
  5003. "description": "CSS Shape Outside details.",
  5004. "type": "object",
  5005. "properties": [
  5006. {
  5007. "name": "bounds",
  5008. "description": "Shape bounds",
  5009. "$ref": "Quad"
  5010. },
  5011. {
  5012. "name": "shape",
  5013. "description": "Shape coordinate details",
  5014. "type": "array",
  5015. "items": {
  5016. "type": "any"
  5017. }
  5018. },
  5019. {
  5020. "name": "marginShape",
  5021. "description": "Margin shape bounds",
  5022. "type": "array",
  5023. "items": {
  5024. "type": "any"
  5025. }
  5026. }
  5027. ]
  5028. },
  5029. {
  5030. "id": "Rect",
  5031. "description": "Rectangle.",
  5032. "type": "object",
  5033. "properties": [
  5034. {
  5035. "name": "x",
  5036. "description": "X coordinate",
  5037. "type": "number"
  5038. },
  5039. {
  5040. "name": "y",
  5041. "description": "Y coordinate",
  5042. "type": "number"
  5043. },
  5044. {
  5045. "name": "width",
  5046. "description": "Rectangle width",
  5047. "type": "number"
  5048. },
  5049. {
  5050. "name": "height",
  5051. "description": "Rectangle height",
  5052. "type": "number"
  5053. }
  5054. ]
  5055. },
  5056. {
  5057. "id": "CSSComputedStyleProperty",
  5058. "type": "object",
  5059. "properties": [
  5060. {
  5061. "name": "name",
  5062. "description": "Computed style property name.",
  5063. "type": "string"
  5064. },
  5065. {
  5066. "name": "value",
  5067. "description": "Computed style property value.",
  5068. "type": "string"
  5069. }
  5070. ]
  5071. }
  5072. ],
  5073. "commands": [
  5074. {
  5075. "name": "collectClassNamesFromSubtree",
  5076. "description": "Collects class names for the node with given id and all of it's child nodes.",
  5077. "experimental": true,
  5078. "parameters": [
  5079. {
  5080. "name": "nodeId",
  5081. "description": "Id of the node to collect class names.",
  5082. "$ref": "NodeId"
  5083. }
  5084. ],
  5085. "returns": [
  5086. {
  5087. "name": "classNames",
  5088. "description": "Class name list.",
  5089. "type": "array",
  5090. "items": {
  5091. "type": "string"
  5092. }
  5093. }
  5094. ]
  5095. },
  5096. {
  5097. "name": "copyTo",
  5098. "description": "Creates a deep copy of the specified node and places it into the target container before the\ngiven anchor.",
  5099. "experimental": true,
  5100. "parameters": [
  5101. {
  5102. "name": "nodeId",
  5103. "description": "Id of the node to copy.",
  5104. "$ref": "NodeId"
  5105. },
  5106. {
  5107. "name": "targetNodeId",
  5108. "description": "Id of the element to drop the copy into.",
  5109. "$ref": "NodeId"
  5110. },
  5111. {
  5112. "name": "insertBeforeNodeId",
  5113. "description": "Drop the copy before this node (if absent, the copy becomes the last child of\n`targetNodeId`).",
  5114. "optional": true,
  5115. "$ref": "NodeId"
  5116. }
  5117. ],
  5118. "returns": [
  5119. {
  5120. "name": "nodeId",
  5121. "description": "Id of the node clone.",
  5122. "$ref": "NodeId"
  5123. }
  5124. ]
  5125. },
  5126. {
  5127. "name": "describeNode",
  5128. "description": "Describes node given its id, does not require domain to be enabled. Does not start tracking any\nobjects, can be used for automation.",
  5129. "parameters": [
  5130. {
  5131. "name": "nodeId",
  5132. "description": "Identifier of the node.",
  5133. "optional": true,
  5134. "$ref": "NodeId"
  5135. },
  5136. {
  5137. "name": "backendNodeId",
  5138. "description": "Identifier of the backend node.",
  5139. "optional": true,
  5140. "$ref": "BackendNodeId"
  5141. },
  5142. {
  5143. "name": "objectId",
  5144. "description": "JavaScript object id of the node wrapper.",
  5145. "optional": true,
  5146. "$ref": "Runtime.RemoteObjectId"
  5147. },
  5148. {
  5149. "name": "depth",
  5150. "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.",
  5151. "optional": true,
  5152. "type": "integer"
  5153. },
  5154. {
  5155. "name": "pierce",
  5156. "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
  5157. "optional": true,
  5158. "type": "boolean"
  5159. }
  5160. ],
  5161. "returns": [
  5162. {
  5163. "name": "node",
  5164. "description": "Node description.",
  5165. "$ref": "Node"
  5166. }
  5167. ]
  5168. },
  5169. {
  5170. "name": "scrollIntoViewIfNeeded",
  5171. "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.",
  5172. "experimental": true,
  5173. "parameters": [
  5174. {
  5175. "name": "nodeId",
  5176. "description": "Identifier of the node.",
  5177. "optional": true,
  5178. "$ref": "NodeId"
  5179. },
  5180. {
  5181. "name": "backendNodeId",
  5182. "description": "Identifier of the backend node.",
  5183. "optional": true,
  5184. "$ref": "BackendNodeId"
  5185. },
  5186. {
  5187. "name": "objectId",
  5188. "description": "JavaScript object id of the node wrapper.",
  5189. "optional": true,
  5190. "$ref": "Runtime.RemoteObjectId"
  5191. },
  5192. {
  5193. "name": "rect",
  5194. "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.",
  5195. "optional": true,
  5196. "$ref": "Rect"
  5197. }
  5198. ]
  5199. },
  5200. {
  5201. "name": "disable",
  5202. "description": "Disables DOM agent for the given page."
  5203. },
  5204. {
  5205. "name": "discardSearchResults",
  5206. "description": "Discards search results from the session with the given id. `getSearchResults` should no longer\nbe called for that search.",
  5207. "experimental": true,
  5208. "parameters": [
  5209. {
  5210. "name": "searchId",
  5211. "description": "Unique search session identifier.",
  5212. "type": "string"
  5213. }
  5214. ]
  5215. },
  5216. {
  5217. "name": "enable",
  5218. "description": "Enables DOM agent for the given page.",
  5219. "parameters": [
  5220. {
  5221. "name": "includeWhitespace",
  5222. "description": "Whether to include whitespaces in the children array of returned Nodes.",
  5223. "experimental": true,
  5224. "optional": true,
  5225. "type": "string",
  5226. "enum": [
  5227. "none",
  5228. "all"
  5229. ]
  5230. }
  5231. ]
  5232. },
  5233. {
  5234. "name": "focus",
  5235. "description": "Focuses the given element.",
  5236. "parameters": [
  5237. {
  5238. "name": "nodeId",
  5239. "description": "Identifier of the node.",
  5240. "optional": true,
  5241. "$ref": "NodeId"
  5242. },
  5243. {
  5244. "name": "backendNodeId",
  5245. "description": "Identifier of the backend node.",
  5246. "optional": true,
  5247. "$ref": "BackendNodeId"
  5248. },
  5249. {
  5250. "name": "objectId",
  5251. "description": "JavaScript object id of the node wrapper.",
  5252. "optional": true,
  5253. "$ref": "Runtime.RemoteObjectId"
  5254. }
  5255. ]
  5256. },
  5257. {
  5258. "name": "getAttributes",
  5259. "description": "Returns attributes for the specified node.",
  5260. "parameters": [
  5261. {
  5262. "name": "nodeId",
  5263. "description": "Id of the node to retrieve attibutes for.",
  5264. "$ref": "NodeId"
  5265. }
  5266. ],
  5267. "returns": [
  5268. {
  5269. "name": "attributes",
  5270. "description": "An interleaved array of node attribute names and values.",
  5271. "type": "array",
  5272. "items": {
  5273. "type": "string"
  5274. }
  5275. }
  5276. ]
  5277. },
  5278. {
  5279. "name": "getBoxModel",
  5280. "description": "Returns boxes for the given node.",
  5281. "parameters": [
  5282. {
  5283. "name": "nodeId",
  5284. "description": "Identifier of the node.",
  5285. "optional": true,
  5286. "$ref": "NodeId"
  5287. },
  5288. {
  5289. "name": "backendNodeId",
  5290. "description": "Identifier of the backend node.",
  5291. "optional": true,
  5292. "$ref": "BackendNodeId"
  5293. },
  5294. {
  5295. "name": "objectId",
  5296. "description": "JavaScript object id of the node wrapper.",
  5297. "optional": true,
  5298. "$ref": "Runtime.RemoteObjectId"
  5299. }
  5300. ],
  5301. "returns": [
  5302. {
  5303. "name": "model",
  5304. "description": "Box model for the node.",
  5305. "$ref": "BoxModel"
  5306. }
  5307. ]
  5308. },
  5309. {
  5310. "name": "getContentQuads",
  5311. "description": "Returns quads that describe node position on the page. This method\nmight return multiple quads for inline nodes.",
  5312. "experimental": true,
  5313. "parameters": [
  5314. {
  5315. "name": "nodeId",
  5316. "description": "Identifier of the node.",
  5317. "optional": true,
  5318. "$ref": "NodeId"
  5319. },
  5320. {
  5321. "name": "backendNodeId",
  5322. "description": "Identifier of the backend node.",
  5323. "optional": true,
  5324. "$ref": "BackendNodeId"
  5325. },
  5326. {
  5327. "name": "objectId",
  5328. "description": "JavaScript object id of the node wrapper.",
  5329. "optional": true,
  5330. "$ref": "Runtime.RemoteObjectId"
  5331. }
  5332. ],
  5333. "returns": [
  5334. {
  5335. "name": "quads",
  5336. "description": "Quads that describe node layout relative to viewport.",
  5337. "type": "array",
  5338. "items": {
  5339. "$ref": "Quad"
  5340. }
  5341. }
  5342. ]
  5343. },
  5344. {
  5345. "name": "getDocument",
  5346. "description": "Returns the root DOM node (and optionally the subtree) to the caller.",
  5347. "parameters": [
  5348. {
  5349. "name": "depth",
  5350. "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.",
  5351. "optional": true,
  5352. "type": "integer"
  5353. },
  5354. {
  5355. "name": "pierce",
  5356. "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
  5357. "optional": true,
  5358. "type": "boolean"
  5359. }
  5360. ],
  5361. "returns": [
  5362. {
  5363. "name": "root",
  5364. "description": "Resulting node.",
  5365. "$ref": "Node"
  5366. }
  5367. ]
  5368. },
  5369. {
  5370. "name": "getFlattenedDocument",
  5371. "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.",
  5372. "deprecated": true,
  5373. "parameters": [
  5374. {
  5375. "name": "depth",
  5376. "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.",
  5377. "optional": true,
  5378. "type": "integer"
  5379. },
  5380. {
  5381. "name": "pierce",
  5382. "description": "Whether or not iframes and shadow roots should be traversed when returning the subtree\n(default is false).",
  5383. "optional": true,
  5384. "type": "boolean"
  5385. }
  5386. ],
  5387. "returns": [
  5388. {
  5389. "name": "nodes",
  5390. "description": "Resulting node.",
  5391. "type": "array",
  5392. "items": {
  5393. "$ref": "Node"
  5394. }
  5395. }
  5396. ]
  5397. },
  5398. {
  5399. "name": "getNodesForSubtreeByStyle",
  5400. "description": "Finds nodes with a given computed style in a subtree.",
  5401. "experimental": true,
  5402. "parameters": [
  5403. {
  5404. "name": "nodeId",
  5405. "description": "Node ID pointing to the root of a subtree.",
  5406. "$ref": "NodeId"
  5407. },
  5408. {
  5409. "name": "computedStyles",
  5410. "description": "The style to filter nodes by (includes nodes if any of properties matches).",
  5411. "type": "array",
  5412. "items": {
  5413. "$ref": "CSSComputedStyleProperty"
  5414. }
  5415. },
  5416. {
  5417. "name": "pierce",
  5418. "description": "Whether or not iframes and shadow roots in the same target should be traversed when returning the\nresults (default is false).",
  5419. "optional": true,
  5420. "type": "boolean"
  5421. }
  5422. ],
  5423. "returns": [
  5424. {
  5425. "name": "nodeIds",
  5426. "description": "Resulting nodes.",
  5427. "type": "array",
  5428. "items": {
  5429. "$ref": "NodeId"
  5430. }
  5431. }
  5432. ]
  5433. },
  5434. {
  5435. "name": "getNodeForLocation",
  5436. "description": "Returns node id at given location. Depending on whether DOM domain is enabled, nodeId is\neither returned or not.",
  5437. "parameters": [
  5438. {
  5439. "name": "x",
  5440. "description": "X coordinate.",
  5441. "type": "integer"
  5442. },
  5443. {
  5444. "name": "y",
  5445. "description": "Y coordinate.",
  5446. "type": "integer"
  5447. },
  5448. {
  5449. "name": "includeUserAgentShadowDOM",
  5450. "description": "False to skip to the nearest non-UA shadow root ancestor (default: false).",
  5451. "optional": true,
  5452. "type": "boolean"
  5453. },
  5454. {
  5455. "name": "ignorePointerEventsNone",
  5456. "description": "Whether to ignore pointer-events: none on elements and hit test them.",
  5457. "optional": true,
  5458. "type": "boolean"
  5459. }
  5460. ],
  5461. "returns": [
  5462. {
  5463. "name": "backendNodeId",
  5464. "description": "Resulting node.",
  5465. "$ref": "BackendNodeId"
  5466. },
  5467. {
  5468. "name": "frameId",
  5469. "description": "Frame this node belongs to.",
  5470. "$ref": "Page.FrameId"
  5471. },
  5472. {
  5473. "name": "nodeId",
  5474. "description": "Id of the node at given coordinates, only when enabled and requested document.",
  5475. "optional": true,
  5476. "$ref": "NodeId"
  5477. }
  5478. ]
  5479. },
  5480. {
  5481. "name": "getOuterHTML",
  5482. "description": "Returns node's HTML markup.",
  5483. "parameters": [
  5484. {
  5485. "name": "nodeId",
  5486. "description": "Identifier of the node.",
  5487. "optional": true,
  5488. "$ref": "NodeId"
  5489. },
  5490. {
  5491. "name": "backendNodeId",
  5492. "description": "Identifier of the backend node.",
  5493. "optional": true,
  5494. "$ref": "BackendNodeId"
  5495. },
  5496. {
  5497. "name": "objectId",
  5498. "description": "JavaScript object id of the node wrapper.",
  5499. "optional": true,
  5500. "$ref": "Runtime.RemoteObjectId"
  5501. }
  5502. ],
  5503. "returns": [
  5504. {
  5505. "name": "outerHTML",
  5506. "description": "Outer HTML markup.",
  5507. "type": "string"
  5508. }
  5509. ]
  5510. },
  5511. {
  5512. "name": "getRelayoutBoundary",
  5513. "description": "Returns the id of the nearest ancestor that is a relayout boundary.",
  5514. "experimental": true,
  5515. "parameters": [
  5516. {
  5517. "name": "nodeId",
  5518. "description": "Id of the node.",
  5519. "$ref": "NodeId"
  5520. }
  5521. ],
  5522. "returns": [
  5523. {
  5524. "name": "nodeId",
  5525. "description": "Relayout boundary node id for the given node.",
  5526. "$ref": "NodeId"
  5527. }
  5528. ]
  5529. },
  5530. {
  5531. "name": "getSearchResults",
  5532. "description": "Returns search results from given `fromIndex` to given `toIndex` from the search with the given\nidentifier.",
  5533. "experimental": true,
  5534. "parameters": [
  5535. {
  5536. "name": "searchId",
  5537. "description": "Unique search session identifier.",
  5538. "type": "string"
  5539. },
  5540. {
  5541. "name": "fromIndex",
  5542. "description": "Start index of the search result to be returned.",
  5543. "type": "integer"
  5544. },
  5545. {
  5546. "name": "toIndex",
  5547. "description": "End index of the search result to be returned.",
  5548. "type": "integer"
  5549. }
  5550. ],
  5551. "returns": [
  5552. {
  5553. "name": "nodeIds",
  5554. "description": "Ids of the search result nodes.",
  5555. "type": "array",
  5556. "items": {
  5557. "$ref": "NodeId"
  5558. }
  5559. }
  5560. ]
  5561. },
  5562. {
  5563. "name": "hideHighlight",
  5564. "description": "Hides any highlight.",
  5565. "redirect": "Overlay"
  5566. },
  5567. {
  5568. "name": "highlightNode",
  5569. "description": "Highlights DOM node.",
  5570. "redirect": "Overlay"
  5571. },
  5572. {
  5573. "name": "highlightRect",
  5574. "description": "Highlights given rectangle.",
  5575. "redirect": "Overlay"
  5576. },
  5577. {
  5578. "name": "markUndoableState",
  5579. "description": "Marks last undoable state.",
  5580. "experimental": true
  5581. },
  5582. {
  5583. "name": "moveTo",
  5584. "description": "Moves node into the new container, places it before the given anchor.",
  5585. "parameters": [
  5586. {
  5587. "name": "nodeId",
  5588. "description": "Id of the node to move.",
  5589. "$ref": "NodeId"
  5590. },
  5591. {
  5592. "name": "targetNodeId",
  5593. "description": "Id of the element to drop the moved node into.",
  5594. "$ref": "NodeId"
  5595. },
  5596. {
  5597. "name": "insertBeforeNodeId",
  5598. "description": "Drop node before this one (if absent, the moved node becomes the last child of\n`targetNodeId`).",
  5599. "optional": true,
  5600. "$ref": "NodeId"
  5601. }
  5602. ],
  5603. "returns": [
  5604. {
  5605. "name": "nodeId",
  5606. "description": "New id of the moved node.",
  5607. "$ref": "NodeId"
  5608. }
  5609. ]
  5610. },
  5611. {
  5612. "name": "performSearch",
  5613. "description": "Searches for a given string in the DOM tree. Use `getSearchResults` to access search results or\n`cancelSearch` to end this search session.",
  5614. "experimental": true,
  5615. "parameters": [
  5616. {
  5617. "name": "query",
  5618. "description": "Plain text or query selector or XPath search query.",
  5619. "type": "string"
  5620. },
  5621. {
  5622. "name": "includeUserAgentShadowDOM",
  5623. "description": "True to search in user agent shadow DOM.",
  5624. "optional": true,
  5625. "type": "boolean"
  5626. }
  5627. ],
  5628. "returns": [
  5629. {
  5630. "name": "searchId",
  5631. "description": "Unique search session identifier.",
  5632. "type": "string"
  5633. },
  5634. {
  5635. "name": "resultCount",
  5636. "description": "Number of search results.",
  5637. "type": "integer"
  5638. }
  5639. ]
  5640. },
  5641. {
  5642. "name": "pushNodeByPathToFrontend",
  5643. "description": "Requests that the node is sent to the caller given its path. // FIXME, use XPath",
  5644. "experimental": true,
  5645. "parameters": [
  5646. {
  5647. "name": "path",
  5648. "description": "Path to node in the proprietary format.",
  5649. "type": "string"
  5650. }
  5651. ],
  5652. "returns": [
  5653. {
  5654. "name": "nodeId",
  5655. "description": "Id of the node for given path.",
  5656. "$ref": "NodeId"
  5657. }
  5658. ]
  5659. },
  5660. {
  5661. "name": "pushNodesByBackendIdsToFrontend",
  5662. "description": "Requests that a batch of nodes is sent to the caller given their backend node ids.",
  5663. "experimental": true,
  5664. "parameters": [
  5665. {
  5666. "name": "backendNodeIds",
  5667. "description": "The array of backend node ids.",
  5668. "type": "array",
  5669. "items": {
  5670. "$ref": "BackendNodeId"
  5671. }
  5672. }
  5673. ],
  5674. "returns": [
  5675. {
  5676. "name": "nodeIds",
  5677. "description": "The array of ids of pushed nodes that correspond to the backend ids specified in\nbackendNodeIds.",
  5678. "type": "array",
  5679. "items": {
  5680. "$ref": "NodeId"
  5681. }
  5682. }
  5683. ]
  5684. },
  5685. {
  5686. "name": "querySelector",
  5687. "description": "Executes `querySelector` on a given node.",
  5688. "parameters": [
  5689. {
  5690. "name": "nodeId",
  5691. "description": "Id of the node to query upon.",
  5692. "$ref": "NodeId"
  5693. },
  5694. {
  5695. "name": "selector",
  5696. "description": "Selector string.",
  5697. "type": "string"
  5698. }
  5699. ],
  5700. "returns": [
  5701. {
  5702. "name": "nodeId",
  5703. "description": "Query selector result.",
  5704. "$ref": "NodeId"
  5705. }
  5706. ]
  5707. },
  5708. {
  5709. "name": "querySelectorAll",
  5710. "description": "Executes `querySelectorAll` on a given node.",
  5711. "parameters": [
  5712. {
  5713. "name": "nodeId",
  5714. "description": "Id of the node to query upon.",
  5715. "$ref": "NodeId"
  5716. },
  5717. {
  5718. "name": "selector",
  5719. "description": "Selector string.",
  5720. "type": "string"
  5721. }
  5722. ],
  5723. "returns": [
  5724. {
  5725. "name": "nodeIds",
  5726. "description": "Query selector result.",
  5727. "type": "array",
  5728. "items": {
  5729. "$ref": "NodeId"
  5730. }
  5731. }
  5732. ]
  5733. },
  5734. {
  5735. "name": "getTopLayerElements",
  5736. "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.",
  5737. "experimental": true,
  5738. "returns": [
  5739. {
  5740. "name": "nodeIds",
  5741. "description": "NodeIds of top layer elements",
  5742. "type": "array",
  5743. "items": {
  5744. "$ref": "NodeId"
  5745. }
  5746. }
  5747. ]
  5748. },
  5749. {
  5750. "name": "redo",
  5751. "description": "Re-does the last undone action.",
  5752. "experimental": true
  5753. },
  5754. {
  5755. "name": "removeAttribute",
  5756. "description": "Removes attribute with given name from an element with given id.",
  5757. "parameters": [
  5758. {
  5759. "name": "nodeId",
  5760. "description": "Id of the element to remove attribute from.",
  5761. "$ref": "NodeId"
  5762. },
  5763. {
  5764. "name": "name",
  5765. "description": "Name of the attribute to remove.",
  5766. "type": "string"
  5767. }
  5768. ]
  5769. },
  5770. {
  5771. "name": "removeNode",
  5772. "description": "Removes node with given id.",
  5773. "parameters": [
  5774. {
  5775. "name": "nodeId",
  5776. "description": "Id of the node to remove.",
  5777. "$ref": "NodeId"
  5778. }
  5779. ]
  5780. },
  5781. {
  5782. "name": "requestChildNodes",
  5783. "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.",
  5784. "parameters": [
  5785. {
  5786. "name": "nodeId",
  5787. "description": "Id of the node to get children for.",
  5788. "$ref": "NodeId"
  5789. },
  5790. {
  5791. "name": "depth",
  5792. "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.",
  5793. "optional": true,
  5794. "type": "integer"
  5795. },
  5796. {
  5797. "name": "pierce",
  5798. "description": "Whether or not iframes and shadow roots should be traversed when returning the sub-tree\n(default is false).",
  5799. "optional": true,
  5800. "type": "boolean"
  5801. }
  5802. ]
  5803. },
  5804. {
  5805. "name": "requestNode",
  5806. "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.",
  5807. "parameters": [
  5808. {
  5809. "name": "objectId",
  5810. "description": "JavaScript object id to convert into node.",
  5811. "$ref": "Runtime.RemoteObjectId"
  5812. }
  5813. ],
  5814. "returns": [
  5815. {
  5816. "name": "nodeId",
  5817. "description": "Node id for given object.",
  5818. "$ref": "NodeId"
  5819. }
  5820. ]
  5821. },
  5822. {
  5823. "name": "resolveNode",
  5824. "description": "Resolves the JavaScript node object for a given NodeId or BackendNodeId.",
  5825. "parameters": [
  5826. {
  5827. "name": "nodeId",
  5828. "description": "Id of the node to resolve.",
  5829. "optional": true,
  5830. "$ref": "NodeId"
  5831. },
  5832. {
  5833. "name": "backendNodeId",
  5834. "description": "Backend identifier of the node to resolve.",
  5835. "optional": true,
  5836. "$ref": "DOM.BackendNodeId"
  5837. },
  5838. {
  5839. "name": "objectGroup",
  5840. "description": "Symbolic group name that can be used to release multiple objects.",
  5841. "optional": true,
  5842. "type": "string"
  5843. },
  5844. {
  5845. "name": "executionContextId",
  5846. "description": "Execution context in which to resolve the node.",
  5847. "optional": true,
  5848. "$ref": "Runtime.ExecutionContextId"
  5849. }
  5850. ],
  5851. "returns": [
  5852. {
  5853. "name": "object",
  5854. "description": "JavaScript object wrapper for given node.",
  5855. "$ref": "Runtime.RemoteObject"
  5856. }
  5857. ]
  5858. },
  5859. {
  5860. "name": "setAttributeValue",
  5861. "description": "Sets attribute for an element with given id.",
  5862. "parameters": [
  5863. {
  5864. "name": "nodeId",
  5865. "description": "Id of the element to set attribute for.",
  5866. "$ref": "NodeId"
  5867. },
  5868. {
  5869. "name": "name",
  5870. "description": "Attribute name.",
  5871. "type": "string"
  5872. },
  5873. {
  5874. "name": "value",
  5875. "description": "Attribute value.",
  5876. "type": "string"
  5877. }
  5878. ]
  5879. },
  5880. {
  5881. "name": "setAttributesAsText",
  5882. "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.",
  5883. "parameters": [
  5884. {
  5885. "name": "nodeId",
  5886. "description": "Id of the element to set attributes for.",
  5887. "$ref": "NodeId"
  5888. },
  5889. {
  5890. "name": "text",
  5891. "description": "Text with a number of attributes. Will parse this text using HTML parser.",
  5892. "type": "string"
  5893. },
  5894. {
  5895. "name": "name",
  5896. "description": "Attribute name to replace with new attributes derived from text in case text parsed\nsuccessfully.",
  5897. "optional": true,
  5898. "type": "string"
  5899. }
  5900. ]
  5901. },
  5902. {
  5903. "name": "setFileInputFiles",
  5904. "description": "Sets files for the given file input element.",
  5905. "parameters": [
  5906. {
  5907. "name": "files",
  5908. "description": "Array of file paths to set.",
  5909. "type": "array",
  5910. "items": {
  5911. "type": "string"
  5912. }
  5913. },
  5914. {
  5915. "name": "nodeId",
  5916. "description": "Identifier of the node.",
  5917. "optional": true,
  5918. "$ref": "NodeId"
  5919. },
  5920. {
  5921. "name": "backendNodeId",
  5922. "description": "Identifier of the backend node.",
  5923. "optional": true,
  5924. "$ref": "BackendNodeId"
  5925. },
  5926. {
  5927. "name": "objectId",
  5928. "description": "JavaScript object id of the node wrapper.",
  5929. "optional": true,
  5930. "$ref": "Runtime.RemoteObjectId"
  5931. }
  5932. ]
  5933. },
  5934. {
  5935. "name": "setNodeStackTracesEnabled",
  5936. "description": "Sets if stack traces should be captured for Nodes. See `Node.getNodeStackTraces`. Default is disabled.",
  5937. "experimental": true,
  5938. "parameters": [
  5939. {
  5940. "name": "enable",
  5941. "description": "Enable or disable.",
  5942. "type": "boolean"
  5943. }
  5944. ]
  5945. },
  5946. {
  5947. "name": "getNodeStackTraces",
  5948. "description": "Gets stack traces associated with a Node. As of now, only provides stack trace for Node creation.",
  5949. "experimental": true,
  5950. "parameters": [
  5951. {
  5952. "name": "nodeId",
  5953. "description": "Id of the node to get stack traces for.",
  5954. "$ref": "NodeId"
  5955. }
  5956. ],
  5957. "returns": [
  5958. {
  5959. "name": "creation",
  5960. "description": "Creation stack trace, if available.",
  5961. "optional": true,
  5962. "$ref": "Runtime.StackTrace"
  5963. }
  5964. ]
  5965. },
  5966. {
  5967. "name": "getFileInfo",
  5968. "description": "Returns file information for the given\nFile wrapper.",
  5969. "experimental": true,
  5970. "parameters": [
  5971. {
  5972. "name": "objectId",
  5973. "description": "JavaScript object id of the node wrapper.",
  5974. "$ref": "Runtime.RemoteObjectId"
  5975. }
  5976. ],
  5977. "returns": [
  5978. {
  5979. "name": "path",
  5980. "type": "string"
  5981. }
  5982. ]
  5983. },
  5984. {
  5985. "name": "setInspectedNode",
  5986. "description": "Enables console to refer to the node with given id via $x (see Command Line API for more details\n$x functions).",
  5987. "experimental": true,
  5988. "parameters": [
  5989. {
  5990. "name": "nodeId",
  5991. "description": "DOM node id to be accessible by means of $x command line API.",
  5992. "$ref": "NodeId"
  5993. }
  5994. ]
  5995. },
  5996. {
  5997. "name": "setNodeName",
  5998. "description": "Sets node name for a node with given id.",
  5999. "parameters": [
  6000. {
  6001. "name": "nodeId",
  6002. "description": "Id of the node to set name for.",
  6003. "$ref": "NodeId"
  6004. },
  6005. {
  6006. "name": "name",
  6007. "description": "New node's name.",
  6008. "type": "string"
  6009. }
  6010. ],
  6011. "returns": [
  6012. {
  6013. "name": "nodeId",
  6014. "description": "New node's id.",
  6015. "$ref": "NodeId"
  6016. }
  6017. ]
  6018. },
  6019. {
  6020. "name": "setNodeValue",
  6021. "description": "Sets node value for a node with given id.",
  6022. "parameters": [
  6023. {
  6024. "name": "nodeId",
  6025. "description": "Id of the node to set value for.",
  6026. "$ref": "NodeId"
  6027. },
  6028. {
  6029. "name": "value",
  6030. "description": "New node's value.",
  6031. "type": "string"
  6032. }
  6033. ]
  6034. },
  6035. {
  6036. "name": "setOuterHTML",
  6037. "description": "Sets node HTML markup, returns new node id.",
  6038. "parameters": [
  6039. {
  6040. "name": "nodeId",
  6041. "description": "Id of the node to set markup for.",
  6042. "$ref": "NodeId"
  6043. },
  6044. {
  6045. "name": "outerHTML",
  6046. "description": "Outer HTML markup to set.",
  6047. "type": "string"
  6048. }
  6049. ]
  6050. },
  6051. {
  6052. "name": "undo",
  6053. "description": "Undoes the last performed action.",
  6054. "experimental": true
  6055. },
  6056. {
  6057. "name": "getFrameOwner",
  6058. "description": "Returns iframe node that owns iframe with the given domain.",
  6059. "experimental": true,
  6060. "parameters": [
  6061. {
  6062. "name": "frameId",
  6063. "$ref": "Page.FrameId"
  6064. }
  6065. ],
  6066. "returns": [
  6067. {
  6068. "name": "backendNodeId",
  6069. "description": "Resulting node.",
  6070. "$ref": "BackendNodeId"
  6071. },
  6072. {
  6073. "name": "nodeId",
  6074. "description": "Id of the node at given coordinates, only when enabled and requested document.",
  6075. "optional": true,
  6076. "$ref": "NodeId"
  6077. }
  6078. ]
  6079. },
  6080. {
  6081. "name": "getContainerForNode",
  6082. "description": "Returns the container of the given node based on container query conditions.\nIf containerName is given, it will find the nearest container with a matching name;\notherwise it will find the nearest container regardless of its container name.",
  6083. "experimental": true,
  6084. "parameters": [
  6085. {
  6086. "name": "nodeId",
  6087. "$ref": "NodeId"
  6088. },
  6089. {
  6090. "name": "containerName",
  6091. "optional": true,
  6092. "type": "string"
  6093. }
  6094. ],
  6095. "returns": [
  6096. {
  6097. "name": "nodeId",
  6098. "description": "The container node for the given node, or null if not found.",
  6099. "optional": true,
  6100. "$ref": "NodeId"
  6101. }
  6102. ]
  6103. },
  6104. {
  6105. "name": "getQueryingDescendantsForContainer",
  6106. "description": "Returns the descendants of a container query container that have\ncontainer queries against this container.",
  6107. "experimental": true,
  6108. "parameters": [
  6109. {
  6110. "name": "nodeId",
  6111. "description": "Id of the container node to find querying descendants from.",
  6112. "$ref": "NodeId"
  6113. }
  6114. ],
  6115. "returns": [
  6116. {
  6117. "name": "nodeIds",
  6118. "description": "Descendant nodes with container queries against the given container.",
  6119. "type": "array",
  6120. "items": {
  6121. "$ref": "NodeId"
  6122. }
  6123. }
  6124. ]
  6125. }
  6126. ],
  6127. "events": [
  6128. {
  6129. "name": "attributeModified",
  6130. "description": "Fired when `Element`'s attribute is modified.",
  6131. "parameters": [
  6132. {
  6133. "name": "nodeId",
  6134. "description": "Id of the node that has changed.",
  6135. "$ref": "NodeId"
  6136. },
  6137. {
  6138. "name": "name",
  6139. "description": "Attribute name.",
  6140. "type": "string"
  6141. },
  6142. {
  6143. "name": "value",
  6144. "description": "Attribute value.",
  6145. "type": "string"
  6146. }
  6147. ]
  6148. },
  6149. {
  6150. "name": "attributeRemoved",
  6151. "description": "Fired when `Element`'s attribute is removed.",
  6152. "parameters": [
  6153. {
  6154. "name": "nodeId",
  6155. "description": "Id of the node that has changed.",
  6156. "$ref": "NodeId"
  6157. },
  6158. {
  6159. "name": "name",
  6160. "description": "A ttribute name.",
  6161. "type": "string"
  6162. }
  6163. ]
  6164. },
  6165. {
  6166. "name": "characterDataModified",
  6167. "description": "Mirrors `DOMCharacterDataModified` event.",
  6168. "parameters": [
  6169. {
  6170. "name": "nodeId",
  6171. "description": "Id of the node that has changed.",
  6172. "$ref": "NodeId"
  6173. },
  6174. {
  6175. "name": "characterData",
  6176. "description": "New text value.",
  6177. "type": "string"
  6178. }
  6179. ]
  6180. },
  6181. {
  6182. "name": "childNodeCountUpdated",
  6183. "description": "Fired when `Container`'s child node count has changed.",
  6184. "parameters": [
  6185. {
  6186. "name": "nodeId",
  6187. "description": "Id of the node that has changed.",
  6188. "$ref": "NodeId"
  6189. },
  6190. {
  6191. "name": "childNodeCount",
  6192. "description": "New node count.",
  6193. "type": "integer"
  6194. }
  6195. ]
  6196. },
  6197. {
  6198. "name": "childNodeInserted",
  6199. "description": "Mirrors `DOMNodeInserted` event.",
  6200. "parameters": [
  6201. {
  6202. "name": "parentNodeId",
  6203. "description": "Id of the node that has changed.",
  6204. "$ref": "NodeId"
  6205. },
  6206. {
  6207. "name": "previousNodeId",
  6208. "description": "Id of the previous sibling.",
  6209. "$ref": "NodeId"
  6210. },
  6211. {
  6212. "name": "node",
  6213. "description": "Inserted node data.",
  6214. "$ref": "Node"
  6215. }
  6216. ]
  6217. },
  6218. {
  6219. "name": "childNodeRemoved",
  6220. "description": "Mirrors `DOMNodeRemoved` event.",
  6221. "parameters": [
  6222. {
  6223. "name": "parentNodeId",
  6224. "description": "Parent id.",
  6225. "$ref": "NodeId"
  6226. },
  6227. {
  6228. "name": "nodeId",
  6229. "description": "Id of the node that has been removed.",
  6230. "$ref": "NodeId"
  6231. }
  6232. ]
  6233. },
  6234. {
  6235. "name": "distributedNodesUpdated",
  6236. "description": "Called when distribution is changed.",
  6237. "experimental": true,
  6238. "parameters": [
  6239. {
  6240. "name": "insertionPointId",
  6241. "description": "Insertion point where distributed nodes were updated.",
  6242. "$ref": "NodeId"
  6243. },
  6244. {
  6245. "name": "distributedNodes",
  6246. "description": "Distributed nodes for given insertion point.",
  6247. "type": "array",
  6248. "items": {
  6249. "$ref": "BackendNode"
  6250. }
  6251. }
  6252. ]
  6253. },
  6254. {
  6255. "name": "documentUpdated",
  6256. "description": "Fired when `Document` has been totally updated. Node ids are no longer valid."
  6257. },
  6258. {
  6259. "name": "inlineStyleInvalidated",
  6260. "description": "Fired when `Element`'s inline style is modified via a CSS property modification.",
  6261. "experimental": true,
  6262. "parameters": [
  6263. {
  6264. "name": "nodeIds",
  6265. "description": "Ids of the nodes for which the inline styles have been invalidated.",
  6266. "type": "array",
  6267. "items": {
  6268. "$ref": "NodeId"
  6269. }
  6270. }
  6271. ]
  6272. },
  6273. {
  6274. "name": "pseudoElementAdded",
  6275. "description": "Called when a pseudo element is added to an element.",
  6276. "experimental": true,
  6277. "parameters": [
  6278. {
  6279. "name": "parentId",
  6280. "description": "Pseudo element's parent element id.",
  6281. "$ref": "NodeId"
  6282. },
  6283. {
  6284. "name": "pseudoElement",
  6285. "description": "The added pseudo element.",
  6286. "$ref": "Node"
  6287. }
  6288. ]
  6289. },
  6290. {
  6291. "name": "topLayerElementsUpdated",
  6292. "description": "Called when top layer elements are changed.",
  6293. "experimental": true
  6294. },
  6295. {
  6296. "name": "pseudoElementRemoved",
  6297. "description": "Called when a pseudo element is removed from an element.",
  6298. "experimental": true,
  6299. "parameters": [
  6300. {
  6301. "name": "parentId",
  6302. "description": "Pseudo element's parent element id.",
  6303. "$ref": "NodeId"
  6304. },
  6305. {
  6306. "name": "pseudoElementId",
  6307. "description": "The removed pseudo element id.",
  6308. "$ref": "NodeId"
  6309. }
  6310. ]
  6311. },
  6312. {
  6313. "name": "setChildNodes",
  6314. "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon\nmost of the calls requesting node ids.",
  6315. "parameters": [
  6316. {
  6317. "name": "parentId",
  6318. "description": "Parent node id to populate with children.",
  6319. "$ref": "NodeId"
  6320. },
  6321. {
  6322. "name": "nodes",
  6323. "description": "Child nodes array.",
  6324. "type": "array",
  6325. "items": {
  6326. "$ref": "Node"
  6327. }
  6328. }
  6329. ]
  6330. },
  6331. {
  6332. "name": "shadowRootPopped",
  6333. "description": "Called when shadow root is popped from the element.",
  6334. "experimental": true,
  6335. "parameters": [
  6336. {
  6337. "name": "hostId",
  6338. "description": "Host element id.",
  6339. "$ref": "NodeId"
  6340. },
  6341. {
  6342. "name": "rootId",
  6343. "description": "Shadow root id.",
  6344. "$ref": "NodeId"
  6345. }
  6346. ]
  6347. },
  6348. {
  6349. "name": "shadowRootPushed",
  6350. "description": "Called when shadow root is pushed into the element.",
  6351. "experimental": true,
  6352. "parameters": [
  6353. {
  6354. "name": "hostId",
  6355. "description": "Host element id.",
  6356. "$ref": "NodeId"
  6357. },
  6358. {
  6359. "name": "root",
  6360. "description": "Shadow root.",
  6361. "$ref": "Node"
  6362. }
  6363. ]
  6364. }
  6365. ]
  6366. },
  6367. {
  6368. "domain": "DOMDebugger",
  6369. "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.",
  6370. "dependencies": [
  6371. "DOM",
  6372. "Debugger",
  6373. "Runtime"
  6374. ],
  6375. "types": [
  6376. {
  6377. "id": "DOMBreakpointType",
  6378. "description": "DOM breakpoint type.",
  6379. "type": "string",
  6380. "enum": [
  6381. "subtree-modified",
  6382. "attribute-modified",
  6383. "node-removed"
  6384. ]
  6385. },
  6386. {
  6387. "id": "CSPViolationType",
  6388. "description": "CSP Violation type.",
  6389. "experimental": true,
  6390. "type": "string",
  6391. "enum": [
  6392. "trustedtype-sink-violation",
  6393. "trustedtype-policy-violation"
  6394. ]
  6395. },
  6396. {
  6397. "id": "EventListener",
  6398. "description": "Object event listener.",
  6399. "type": "object",
  6400. "properties": [
  6401. {
  6402. "name": "type",
  6403. "description": "`EventListener`'s type.",
  6404. "type": "string"
  6405. },
  6406. {
  6407. "name": "useCapture",
  6408. "description": "`EventListener`'s useCapture.",
  6409. "type": "boolean"
  6410. },
  6411. {
  6412. "name": "passive",
  6413. "description": "`EventListener`'s passive flag.",
  6414. "type": "boolean"
  6415. },
  6416. {
  6417. "name": "once",
  6418. "description": "`EventListener`'s once flag.",
  6419. "type": "boolean"
  6420. },
  6421. {
  6422. "name": "scriptId",
  6423. "description": "Script id of the handler code.",
  6424. "$ref": "Runtime.ScriptId"
  6425. },
  6426. {
  6427. "name": "lineNumber",
  6428. "description": "Line number in the script (0-based).",
  6429. "type": "integer"
  6430. },
  6431. {
  6432. "name": "columnNumber",
  6433. "description": "Column number in the script (0-based).",
  6434. "type": "integer"
  6435. },
  6436. {
  6437. "name": "handler",
  6438. "description": "Event handler function value.",
  6439. "optional": true,
  6440. "$ref": "Runtime.RemoteObject"
  6441. },
  6442. {
  6443. "name": "originalHandler",
  6444. "description": "Event original handler function value.",
  6445. "optional": true,
  6446. "$ref": "Runtime.RemoteObject"
  6447. },
  6448. {
  6449. "name": "backendNodeId",
  6450. "description": "Node the listener is added to (if any).",
  6451. "optional": true,
  6452. "$ref": "DOM.BackendNodeId"
  6453. }
  6454. ]
  6455. }
  6456. ],
  6457. "commands": [
  6458. {
  6459. "name": "getEventListeners",
  6460. "description": "Returns event listeners of the given object.",
  6461. "parameters": [
  6462. {
  6463. "name": "objectId",
  6464. "description": "Identifier of the object to return listeners for.",
  6465. "$ref": "Runtime.RemoteObjectId"
  6466. },
  6467. {
  6468. "name": "depth",
  6469. "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.",
  6470. "optional": true,
  6471. "type": "integer"
  6472. },
  6473. {
  6474. "name": "pierce",
  6475. "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.",
  6476. "optional": true,
  6477. "type": "boolean"
  6478. }
  6479. ],
  6480. "returns": [
  6481. {
  6482. "name": "listeners",
  6483. "description": "Array of relevant listeners.",
  6484. "type": "array",
  6485. "items": {
  6486. "$ref": "EventListener"
  6487. }
  6488. }
  6489. ]
  6490. },
  6491. {
  6492. "name": "removeDOMBreakpoint",
  6493. "description": "Removes DOM breakpoint that was set using `setDOMBreakpoint`.",
  6494. "parameters": [
  6495. {
  6496. "name": "nodeId",
  6497. "description": "Identifier of the node to remove breakpoint from.",
  6498. "$ref": "DOM.NodeId"
  6499. },
  6500. {
  6501. "name": "type",
  6502. "description": "Type of the breakpoint to remove.",
  6503. "$ref": "DOMBreakpointType"
  6504. }
  6505. ]
  6506. },
  6507. {
  6508. "name": "removeEventListenerBreakpoint",
  6509. "description": "Removes breakpoint on particular DOM event.",
  6510. "parameters": [
  6511. {
  6512. "name": "eventName",
  6513. "description": "Event name.",
  6514. "type": "string"
  6515. },
  6516. {
  6517. "name": "targetName",
  6518. "description": "EventTarget interface name.",
  6519. "experimental": true,
  6520. "optional": true,
  6521. "type": "string"
  6522. }
  6523. ]
  6524. },
  6525. {
  6526. "name": "removeInstrumentationBreakpoint",
  6527. "description": "Removes breakpoint on particular native event.",
  6528. "experimental": true,
  6529. "parameters": [
  6530. {
  6531. "name": "eventName",
  6532. "description": "Instrumentation name to stop on.",
  6533. "type": "string"
  6534. }
  6535. ]
  6536. },
  6537. {
  6538. "name": "removeXHRBreakpoint",
  6539. "description": "Removes breakpoint from XMLHttpRequest.",
  6540. "parameters": [
  6541. {
  6542. "name": "url",
  6543. "description": "Resource URL substring.",
  6544. "type": "string"
  6545. }
  6546. ]
  6547. },
  6548. {
  6549. "name": "setBreakOnCSPViolation",
  6550. "description": "Sets breakpoint on particular CSP violations.",
  6551. "experimental": true,
  6552. "parameters": [
  6553. {
  6554. "name": "violationTypes",
  6555. "description": "CSP Violations to stop upon.",
  6556. "type": "array",
  6557. "items": {
  6558. "$ref": "CSPViolationType"
  6559. }
  6560. }
  6561. ]
  6562. },
  6563. {
  6564. "name": "setDOMBreakpoint",
  6565. "description": "Sets breakpoint on particular operation with DOM.",
  6566. "parameters": [
  6567. {
  6568. "name": "nodeId",
  6569. "description": "Identifier of the node to set breakpoint on.",
  6570. "$ref": "DOM.NodeId"
  6571. },
  6572. {
  6573. "name": "type",
  6574. "description": "Type of the operation to stop upon.",
  6575. "$ref": "DOMBreakpointType"
  6576. }
  6577. ]
  6578. },
  6579. {
  6580. "name": "setEventListenerBreakpoint",
  6581. "description": "Sets breakpoint on particular DOM event.",
  6582. "parameters": [
  6583. {
  6584. "name": "eventName",
  6585. "description": "DOM Event name to stop on (any DOM event will do).",
  6586. "type": "string"
  6587. },
  6588. {
  6589. "name": "targetName",
  6590. "description": "EventTarget interface name to stop on. If equal to `\"*\"` or not provided, will stop on any\nEventTarget.",
  6591. "experimental": true,
  6592. "optional": true,
  6593. "type": "string"
  6594. }
  6595. ]
  6596. },
  6597. {
  6598. "name": "setInstrumentationBreakpoint",
  6599. "description": "Sets breakpoint on particular native event.",
  6600. "experimental": true,
  6601. "parameters": [
  6602. {
  6603. "name": "eventName",
  6604. "description": "Instrumentation name to stop on.",
  6605. "type": "string"
  6606. }
  6607. ]
  6608. },
  6609. {
  6610. "name": "setXHRBreakpoint",
  6611. "description": "Sets breakpoint on XMLHttpRequest.",
  6612. "parameters": [
  6613. {
  6614. "name": "url",
  6615. "description": "Resource URL substring. All XHRs having this substring in the URL will get stopped upon.",
  6616. "type": "string"
  6617. }
  6618. ]
  6619. }
  6620. ]
  6621. },
  6622. {
  6623. "domain": "EventBreakpoints",
  6624. "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.",
  6625. "experimental": true,
  6626. "commands": [
  6627. {
  6628. "name": "setInstrumentationBreakpoint",
  6629. "description": "Sets breakpoint on particular native event.",
  6630. "parameters": [
  6631. {
  6632. "name": "eventName",
  6633. "description": "Instrumentation name to stop on.",
  6634. "type": "string"
  6635. }
  6636. ]
  6637. },
  6638. {
  6639. "name": "removeInstrumentationBreakpoint",
  6640. "description": "Removes breakpoint on particular native event.",
  6641. "parameters": [
  6642. {
  6643. "name": "eventName",
  6644. "description": "Instrumentation name to stop on.",
  6645. "type": "string"
  6646. }
  6647. ]
  6648. }
  6649. ]
  6650. },
  6651. {
  6652. "domain": "DOMSnapshot",
  6653. "description": "This domain facilitates obtaining document snapshots with DOM, layout, and style information.",
  6654. "experimental": true,
  6655. "dependencies": [
  6656. "CSS",
  6657. "DOM",
  6658. "DOMDebugger",
  6659. "Page"
  6660. ],
  6661. "types": [
  6662. {
  6663. "id": "DOMNode",
  6664. "description": "A Node in the DOM tree.",
  6665. "type": "object",
  6666. "properties": [
  6667. {
  6668. "name": "nodeType",
  6669. "description": "`Node`'s nodeType.",
  6670. "type": "integer"
  6671. },
  6672. {
  6673. "name": "nodeName",
  6674. "description": "`Node`'s nodeName.",
  6675. "type": "string"
  6676. },
  6677. {
  6678. "name": "nodeValue",
  6679. "description": "`Node`'s nodeValue.",
  6680. "type": "string"
  6681. },
  6682. {
  6683. "name": "textValue",
  6684. "description": "Only set for textarea elements, contains the text value.",
  6685. "optional": true,
  6686. "type": "string"
  6687. },
  6688. {
  6689. "name": "inputValue",
  6690. "description": "Only set for input elements, contains the input's associated text value.",
  6691. "optional": true,
  6692. "type": "string"
  6693. },
  6694. {
  6695. "name": "inputChecked",
  6696. "description": "Only set for radio and checkbox input elements, indicates if the element has been checked",
  6697. "optional": true,
  6698. "type": "boolean"
  6699. },
  6700. {
  6701. "name": "optionSelected",
  6702. "description": "Only set for option elements, indicates if the element has been selected",
  6703. "optional": true,
  6704. "type": "boolean"
  6705. },
  6706. {
  6707. "name": "backendNodeId",
  6708. "description": "`Node`'s id, corresponds to DOM.Node.backendNodeId.",
  6709. "$ref": "DOM.BackendNodeId"
  6710. },
  6711. {
  6712. "name": "childNodeIndexes",
  6713. "description": "The indexes of the node's child nodes in the `domNodes` array returned by `getSnapshot`, if\nany.",
  6714. "optional": true,
  6715. "type": "array",
  6716. "items": {
  6717. "type": "integer"
  6718. }
  6719. },
  6720. {
  6721. "name": "attributes",
  6722. "description": "Attributes of an `Element` node.",
  6723. "optional": true,
  6724. "type": "array",
  6725. "items": {
  6726. "$ref": "NameValue"
  6727. }
  6728. },
  6729. {
  6730. "name": "pseudoElementIndexes",
  6731. "description": "Indexes of pseudo elements associated with this node in the `domNodes` array returned by\n`getSnapshot`, if any.",
  6732. "optional": true,
  6733. "type": "array",
  6734. "items": {
  6735. "type": "integer"
  6736. }
  6737. },
  6738. {
  6739. "name": "layoutNodeIndex",
  6740. "description": "The index of the node's related layout tree node in the `layoutTreeNodes` array returned by\n`getSnapshot`, if any.",
  6741. "optional": true,
  6742. "type": "integer"
  6743. },
  6744. {
  6745. "name": "documentURL",
  6746. "description": "Document URL that `Document` or `FrameOwner` node points to.",
  6747. "optional": true,
  6748. "type": "string"
  6749. },
  6750. {
  6751. "name": "baseURL",
  6752. "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
  6753. "optional": true,
  6754. "type": "string"
  6755. },
  6756. {
  6757. "name": "contentLanguage",
  6758. "description": "Only set for documents, contains the document's content language.",
  6759. "optional": true,
  6760. "type": "string"
  6761. },
  6762. {
  6763. "name": "documentEncoding",
  6764. "description": "Only set for documents, contains the document's character set encoding.",
  6765. "optional": true,
  6766. "type": "string"
  6767. },
  6768. {
  6769. "name": "publicId",
  6770. "description": "`DocumentType` node's publicId.",
  6771. "optional": true,
  6772. "type": "string"
  6773. },
  6774. {
  6775. "name": "systemId",
  6776. "description": "`DocumentType` node's systemId.",
  6777. "optional": true,
  6778. "type": "string"
  6779. },
  6780. {
  6781. "name": "frameId",
  6782. "description": "Frame ID for frame owner elements and also for the document node.",
  6783. "optional": true,
  6784. "$ref": "Page.FrameId"
  6785. },
  6786. {
  6787. "name": "contentDocumentIndex",
  6788. "description": "The index of a frame owner element's content document in the `domNodes` array returned by\n`getSnapshot`, if any.",
  6789. "optional": true,
  6790. "type": "integer"
  6791. },
  6792. {
  6793. "name": "pseudoType",
  6794. "description": "Type of a pseudo element node.",
  6795. "optional": true,
  6796. "$ref": "DOM.PseudoType"
  6797. },
  6798. {
  6799. "name": "shadowRootType",
  6800. "description": "Shadow root type.",
  6801. "optional": true,
  6802. "$ref": "DOM.ShadowRootType"
  6803. },
  6804. {
  6805. "name": "isClickable",
  6806. "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.",
  6807. "optional": true,
  6808. "type": "boolean"
  6809. },
  6810. {
  6811. "name": "eventListeners",
  6812. "description": "Details of the node's event listeners, if any.",
  6813. "optional": true,
  6814. "type": "array",
  6815. "items": {
  6816. "$ref": "DOMDebugger.EventListener"
  6817. }
  6818. },
  6819. {
  6820. "name": "currentSourceURL",
  6821. "description": "The selected url for nodes with a srcset attribute.",
  6822. "optional": true,
  6823. "type": "string"
  6824. },
  6825. {
  6826. "name": "originURL",
  6827. "description": "The url of the script (if any) that generates this node.",
  6828. "optional": true,
  6829. "type": "string"
  6830. },
  6831. {
  6832. "name": "scrollOffsetX",
  6833. "description": "Scroll offsets, set when this node is a Document.",
  6834. "optional": true,
  6835. "type": "number"
  6836. },
  6837. {
  6838. "name": "scrollOffsetY",
  6839. "optional": true,
  6840. "type": "number"
  6841. }
  6842. ]
  6843. },
  6844. {
  6845. "id": "InlineTextBox",
  6846. "description": "Details of post layout rendered text positions. The exact layout should not be regarded as\nstable and may change between versions.",
  6847. "type": "object",
  6848. "properties": [
  6849. {
  6850. "name": "boundingBox",
  6851. "description": "The bounding box in document coordinates. Note that scroll offset of the document is ignored.",
  6852. "$ref": "DOM.Rect"
  6853. },
  6854. {
  6855. "name": "startCharacterIndex",
  6856. "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.",
  6857. "type": "integer"
  6858. },
  6859. {
  6860. "name": "numCharacters",
  6861. "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.",
  6862. "type": "integer"
  6863. }
  6864. ]
  6865. },
  6866. {
  6867. "id": "LayoutTreeNode",
  6868. "description": "Details of an element in the DOM tree with a LayoutObject.",
  6869. "type": "object",
  6870. "properties": [
  6871. {
  6872. "name": "domNodeIndex",
  6873. "description": "The index of the related DOM node in the `domNodes` array returned by `getSnapshot`.",
  6874. "type": "integer"
  6875. },
  6876. {
  6877. "name": "boundingBox",
  6878. "description": "The bounding box in document coordinates. Note that scroll offset of the document is ignored.",
  6879. "$ref": "DOM.Rect"
  6880. },
  6881. {
  6882. "name": "layoutText",
  6883. "description": "Contents of the LayoutText, if any.",
  6884. "optional": true,
  6885. "type": "string"
  6886. },
  6887. {
  6888. "name": "inlineTextNodes",
  6889. "description": "The post-layout inline text nodes, if any.",
  6890. "optional": true,
  6891. "type": "array",
  6892. "items": {
  6893. "$ref": "InlineTextBox"
  6894. }
  6895. },
  6896. {
  6897. "name": "styleIndex",
  6898. "description": "Index into the `computedStyles` array returned by `getSnapshot`.",
  6899. "optional": true,
  6900. "type": "integer"
  6901. },
  6902. {
  6903. "name": "paintOrder",
  6904. "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.",
  6905. "optional": true,
  6906. "type": "integer"
  6907. },
  6908. {
  6909. "name": "isStackingContext",
  6910. "description": "Set to true to indicate the element begins a new stacking context.",
  6911. "optional": true,
  6912. "type": "boolean"
  6913. }
  6914. ]
  6915. },
  6916. {
  6917. "id": "ComputedStyle",
  6918. "description": "A subset of the full ComputedStyle as defined by the request whitelist.",
  6919. "type": "object",
  6920. "properties": [
  6921. {
  6922. "name": "properties",
  6923. "description": "Name/value pairs of computed style properties.",
  6924. "type": "array",
  6925. "items": {
  6926. "$ref": "NameValue"
  6927. }
  6928. }
  6929. ]
  6930. },
  6931. {
  6932. "id": "NameValue",
  6933. "description": "A name/value pair.",
  6934. "type": "object",
  6935. "properties": [
  6936. {
  6937. "name": "name",
  6938. "description": "Attribute/property name.",
  6939. "type": "string"
  6940. },
  6941. {
  6942. "name": "value",
  6943. "description": "Attribute/property value.",
  6944. "type": "string"
  6945. }
  6946. ]
  6947. },
  6948. {
  6949. "id": "StringIndex",
  6950. "description": "Index of the string in the strings table.",
  6951. "type": "integer"
  6952. },
  6953. {
  6954. "id": "ArrayOfStrings",
  6955. "description": "Index of the string in the strings table.",
  6956. "type": "array",
  6957. "items": {
  6958. "$ref": "StringIndex"
  6959. }
  6960. },
  6961. {
  6962. "id": "RareStringData",
  6963. "description": "Data that is only present on rare nodes.",
  6964. "type": "object",
  6965. "properties": [
  6966. {
  6967. "name": "index",
  6968. "type": "array",
  6969. "items": {
  6970. "type": "integer"
  6971. }
  6972. },
  6973. {
  6974. "name": "value",
  6975. "type": "array",
  6976. "items": {
  6977. "$ref": "StringIndex"
  6978. }
  6979. }
  6980. ]
  6981. },
  6982. {
  6983. "id": "RareBooleanData",
  6984. "type": "object",
  6985. "properties": [
  6986. {
  6987. "name": "index",
  6988. "type": "array",
  6989. "items": {
  6990. "type": "integer"
  6991. }
  6992. }
  6993. ]
  6994. },
  6995. {
  6996. "id": "RareIntegerData",
  6997. "type": "object",
  6998. "properties": [
  6999. {
  7000. "name": "index",
  7001. "type": "array",
  7002. "items": {
  7003. "type": "integer"
  7004. }
  7005. },
  7006. {
  7007. "name": "value",
  7008. "type": "array",
  7009. "items": {
  7010. "type": "integer"
  7011. }
  7012. }
  7013. ]
  7014. },
  7015. {
  7016. "id": "Rectangle",
  7017. "type": "array",
  7018. "items": {
  7019. "type": "number"
  7020. }
  7021. },
  7022. {
  7023. "id": "DocumentSnapshot",
  7024. "description": "Document snapshot.",
  7025. "type": "object",
  7026. "properties": [
  7027. {
  7028. "name": "documentURL",
  7029. "description": "Document URL that `Document` or `FrameOwner` node points to.",
  7030. "$ref": "StringIndex"
  7031. },
  7032. {
  7033. "name": "title",
  7034. "description": "Document title.",
  7035. "$ref": "StringIndex"
  7036. },
  7037. {
  7038. "name": "baseURL",
  7039. "description": "Base URL that `Document` or `FrameOwner` node uses for URL completion.",
  7040. "$ref": "StringIndex"
  7041. },
  7042. {
  7043. "name": "contentLanguage",
  7044. "description": "Contains the document's content language.",
  7045. "$ref": "StringIndex"
  7046. },
  7047. {
  7048. "name": "encodingName",
  7049. "description": "Contains the document's character set encoding.",
  7050. "$ref": "StringIndex"
  7051. },
  7052. {
  7053. "name": "publicId",
  7054. "description": "`DocumentType` node's publicId.",
  7055. "$ref": "StringIndex"
  7056. },
  7057. {
  7058. "name": "systemId",
  7059. "description": "`DocumentType` node's systemId.",
  7060. "$ref": "StringIndex"
  7061. },
  7062. {
  7063. "name": "frameId",
  7064. "description": "Frame ID for frame owner elements and also for the document node.",
  7065. "$ref": "StringIndex"
  7066. },
  7067. {
  7068. "name": "nodes",
  7069. "description": "A table with dom nodes.",
  7070. "$ref": "NodeTreeSnapshot"
  7071. },
  7072. {
  7073. "name": "layout",
  7074. "description": "The nodes in the layout tree.",
  7075. "$ref": "LayoutTreeSnapshot"
  7076. },
  7077. {
  7078. "name": "textBoxes",
  7079. "description": "The post-layout inline text nodes.",
  7080. "$ref": "TextBoxSnapshot"
  7081. },
  7082. {
  7083. "name": "scrollOffsetX",
  7084. "description": "Horizontal scroll offset.",
  7085. "optional": true,
  7086. "type": "number"
  7087. },
  7088. {
  7089. "name": "scrollOffsetY",
  7090. "description": "Vertical scroll offset.",
  7091. "optional": true,
  7092. "type": "number"
  7093. },
  7094. {
  7095. "name": "contentWidth",
  7096. "description": "Document content width.",
  7097. "optional": true,
  7098. "type": "number"
  7099. },
  7100. {
  7101. "name": "contentHeight",
  7102. "description": "Document content height.",
  7103. "optional": true,
  7104. "type": "number"
  7105. }
  7106. ]
  7107. },
  7108. {
  7109. "id": "NodeTreeSnapshot",
  7110. "description": "Table containing nodes.",
  7111. "type": "object",
  7112. "properties": [
  7113. {
  7114. "name": "parentIndex",
  7115. "description": "Parent node index.",
  7116. "optional": true,
  7117. "type": "array",
  7118. "items": {
  7119. "type": "integer"
  7120. }
  7121. },
  7122. {
  7123. "name": "nodeType",
  7124. "description": "`Node`'s nodeType.",
  7125. "optional": true,
  7126. "type": "array",
  7127. "items": {
  7128. "type": "integer"
  7129. }
  7130. },
  7131. {
  7132. "name": "shadowRootType",
  7133. "description": "Type of the shadow root the `Node` is in. String values are equal to the `ShadowRootType` enum.",
  7134. "optional": true,
  7135. "$ref": "RareStringData"
  7136. },
  7137. {
  7138. "name": "nodeName",
  7139. "description": "`Node`'s nodeName.",
  7140. "optional": true,
  7141. "type": "array",
  7142. "items": {
  7143. "$ref": "StringIndex"
  7144. }
  7145. },
  7146. {
  7147. "name": "nodeValue",
  7148. "description": "`Node`'s nodeValue.",
  7149. "optional": true,
  7150. "type": "array",
  7151. "items": {
  7152. "$ref": "StringIndex"
  7153. }
  7154. },
  7155. {
  7156. "name": "backendNodeId",
  7157. "description": "`Node`'s id, corresponds to DOM.Node.backendNodeId.",
  7158. "optional": true,
  7159. "type": "array",
  7160. "items": {
  7161. "$ref": "DOM.BackendNodeId"
  7162. }
  7163. },
  7164. {
  7165. "name": "attributes",
  7166. "description": "Attributes of an `Element` node. Flatten name, value pairs.",
  7167. "optional": true,
  7168. "type": "array",
  7169. "items": {
  7170. "$ref": "ArrayOfStrings"
  7171. }
  7172. },
  7173. {
  7174. "name": "textValue",
  7175. "description": "Only set for textarea elements, contains the text value.",
  7176. "optional": true,
  7177. "$ref": "RareStringData"
  7178. },
  7179. {
  7180. "name": "inputValue",
  7181. "description": "Only set for input elements, contains the input's associated text value.",
  7182. "optional": true,
  7183. "$ref": "RareStringData"
  7184. },
  7185. {
  7186. "name": "inputChecked",
  7187. "description": "Only set for radio and checkbox input elements, indicates if the element has been checked",
  7188. "optional": true,
  7189. "$ref": "RareBooleanData"
  7190. },
  7191. {
  7192. "name": "optionSelected",
  7193. "description": "Only set for option elements, indicates if the element has been selected",
  7194. "optional": true,
  7195. "$ref": "RareBooleanData"
  7196. },
  7197. {
  7198. "name": "contentDocumentIndex",
  7199. "description": "The index of the document in the list of the snapshot documents.",
  7200. "optional": true,
  7201. "$ref": "RareIntegerData"
  7202. },
  7203. {
  7204. "name": "pseudoType",
  7205. "description": "Type of a pseudo element node.",
  7206. "optional": true,
  7207. "$ref": "RareStringData"
  7208. },
  7209. {
  7210. "name": "pseudoIdentifier",
  7211. "description": "Pseudo element identifier for this node. Only present if there is a\nvalid pseudoType.",
  7212. "optional": true,
  7213. "$ref": "RareStringData"
  7214. },
  7215. {
  7216. "name": "isClickable",
  7217. "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.",
  7218. "optional": true,
  7219. "$ref": "RareBooleanData"
  7220. },
  7221. {
  7222. "name": "currentSourceURL",
  7223. "description": "The selected url for nodes with a srcset attribute.",
  7224. "optional": true,
  7225. "$ref": "RareStringData"
  7226. },
  7227. {
  7228. "name": "originURL",
  7229. "description": "The url of the script (if any) that generates this node.",
  7230. "optional": true,
  7231. "$ref": "RareStringData"
  7232. }
  7233. ]
  7234. },
  7235. {
  7236. "id": "LayoutTreeSnapshot",
  7237. "description": "Table of details of an element in the DOM tree with a LayoutObject.",
  7238. "type": "object",
  7239. "properties": [
  7240. {
  7241. "name": "nodeIndex",
  7242. "description": "Index of the corresponding node in the `NodeTreeSnapshot` array returned by `captureSnapshot`.",
  7243. "type": "array",
  7244. "items": {
  7245. "type": "integer"
  7246. }
  7247. },
  7248. {
  7249. "name": "styles",
  7250. "description": "Array of indexes specifying computed style strings, filtered according to the `computedStyles` parameter passed to `captureSnapshot`.",
  7251. "type": "array",
  7252. "items": {
  7253. "$ref": "ArrayOfStrings"
  7254. }
  7255. },
  7256. {
  7257. "name": "bounds",
  7258. "description": "The absolute position bounding box.",
  7259. "type": "array",
  7260. "items": {
  7261. "$ref": "Rectangle"
  7262. }
  7263. },
  7264. {
  7265. "name": "text",
  7266. "description": "Contents of the LayoutText, if any.",
  7267. "type": "array",
  7268. "items": {
  7269. "$ref": "StringIndex"
  7270. }
  7271. },
  7272. {
  7273. "name": "stackingContexts",
  7274. "description": "Stacking context information.",
  7275. "$ref": "RareBooleanData"
  7276. },
  7277. {
  7278. "name": "paintOrders",
  7279. "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.",
  7280. "optional": true,
  7281. "type": "array",
  7282. "items": {
  7283. "type": "integer"
  7284. }
  7285. },
  7286. {
  7287. "name": "offsetRects",
  7288. "description": "The offset rect of nodes. Only available when includeDOMRects is set to true",
  7289. "optional": true,
  7290. "type": "array",
  7291. "items": {
  7292. "$ref": "Rectangle"
  7293. }
  7294. },
  7295. {
  7296. "name": "scrollRects",
  7297. "description": "The scroll rect of nodes. Only available when includeDOMRects is set to true",
  7298. "optional": true,
  7299. "type": "array",
  7300. "items": {
  7301. "$ref": "Rectangle"
  7302. }
  7303. },
  7304. {
  7305. "name": "clientRects",
  7306. "description": "The client rect of nodes. Only available when includeDOMRects is set to true",
  7307. "optional": true,
  7308. "type": "array",
  7309. "items": {
  7310. "$ref": "Rectangle"
  7311. }
  7312. },
  7313. {
  7314. "name": "blendedBackgroundColors",
  7315. "description": "The list of background colors that are blended with colors of overlapping elements.",
  7316. "experimental": true,
  7317. "optional": true,
  7318. "type": "array",
  7319. "items": {
  7320. "$ref": "StringIndex"
  7321. }
  7322. },
  7323. {
  7324. "name": "textColorOpacities",
  7325. "description": "The list of computed text opacities.",
  7326. "experimental": true,
  7327. "optional": true,
  7328. "type": "array",
  7329. "items": {
  7330. "type": "number"
  7331. }
  7332. }
  7333. ]
  7334. },
  7335. {
  7336. "id": "TextBoxSnapshot",
  7337. "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.",
  7338. "type": "object",
  7339. "properties": [
  7340. {
  7341. "name": "layoutIndex",
  7342. "description": "Index of the layout tree node that owns this box collection.",
  7343. "type": "array",
  7344. "items": {
  7345. "type": "integer"
  7346. }
  7347. },
  7348. {
  7349. "name": "bounds",
  7350. "description": "The absolute position bounding box.",
  7351. "type": "array",
  7352. "items": {
  7353. "$ref": "Rectangle"
  7354. }
  7355. },
  7356. {
  7357. "name": "start",
  7358. "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.",
  7359. "type": "array",
  7360. "items": {
  7361. "type": "integer"
  7362. }
  7363. },
  7364. {
  7365. "name": "length",
  7366. "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.",
  7367. "type": "array",
  7368. "items": {
  7369. "type": "integer"
  7370. }
  7371. }
  7372. ]
  7373. }
  7374. ],
  7375. "commands": [
  7376. {
  7377. "name": "disable",
  7378. "description": "Disables DOM snapshot agent for the given page."
  7379. },
  7380. {
  7381. "name": "enable",
  7382. "description": "Enables DOM snapshot agent for the given page."
  7383. },
  7384. {
  7385. "name": "getSnapshot",
  7386. "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.",
  7387. "deprecated": true,
  7388. "parameters": [
  7389. {
  7390. "name": "computedStyleWhitelist",
  7391. "description": "Whitelist of computed styles to return.",
  7392. "type": "array",
  7393. "items": {
  7394. "type": "string"
  7395. }
  7396. },
  7397. {
  7398. "name": "includeEventListeners",
  7399. "description": "Whether or not to retrieve details of DOM listeners (default false).",
  7400. "optional": true,
  7401. "type": "boolean"
  7402. },
  7403. {
  7404. "name": "includePaintOrder",
  7405. "description": "Whether to determine and include the paint order index of LayoutTreeNodes (default false).",
  7406. "optional": true,
  7407. "type": "boolean"
  7408. },
  7409. {
  7410. "name": "includeUserAgentShadowTree",
  7411. "description": "Whether to include UA shadow tree in the snapshot (default false).",
  7412. "optional": true,
  7413. "type": "boolean"
  7414. }
  7415. ],
  7416. "returns": [
  7417. {
  7418. "name": "domNodes",
  7419. "description": "The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.",
  7420. "type": "array",
  7421. "items": {
  7422. "$ref": "DOMNode"
  7423. }
  7424. },
  7425. {
  7426. "name": "layoutTreeNodes",
  7427. "description": "The nodes in the layout tree.",
  7428. "type": "array",
  7429. "items": {
  7430. "$ref": "LayoutTreeNode"
  7431. }
  7432. },
  7433. {
  7434. "name": "computedStyles",
  7435. "description": "Whitelisted ComputedStyle properties for each node in the layout tree.",
  7436. "type": "array",
  7437. "items": {
  7438. "$ref": "ComputedStyle"
  7439. }
  7440. }
  7441. ]
  7442. },
  7443. {
  7444. "name": "captureSnapshot",
  7445. "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.",
  7446. "parameters": [
  7447. {
  7448. "name": "computedStyles",
  7449. "description": "Whitelist of computed styles to return.",
  7450. "type": "array",
  7451. "items": {
  7452. "type": "string"
  7453. }
  7454. },
  7455. {
  7456. "name": "includePaintOrder",
  7457. "description": "Whether to include layout object paint orders into the snapshot.",
  7458. "optional": true,
  7459. "type": "boolean"
  7460. },
  7461. {
  7462. "name": "includeDOMRects",
  7463. "description": "Whether to include DOM rectangles (offsetRects, clientRects, scrollRects) into the snapshot",
  7464. "optional": true,
  7465. "type": "boolean"
  7466. },
  7467. {
  7468. "name": "includeBlendedBackgroundColors",
  7469. "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.",
  7470. "experimental": true,
  7471. "optional": true,
  7472. "type": "boolean"
  7473. },
  7474. {
  7475. "name": "includeTextColorOpacities",
  7476. "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.",
  7477. "experimental": true,
  7478. "optional": true,
  7479. "type": "boolean"
  7480. }
  7481. ],
  7482. "returns": [
  7483. {
  7484. "name": "documents",
  7485. "description": "The nodes in the DOM tree. The DOMNode at index 0 corresponds to the root document.",
  7486. "type": "array",
  7487. "items": {
  7488. "$ref": "DocumentSnapshot"
  7489. }
  7490. },
  7491. {
  7492. "name": "strings",
  7493. "description": "Shared string table that all string properties refer to with indexes.",
  7494. "type": "array",
  7495. "items": {
  7496. "type": "string"
  7497. }
  7498. }
  7499. ]
  7500. }
  7501. ]
  7502. },
  7503. {
  7504. "domain": "DOMStorage",
  7505. "description": "Query and modify DOM storage.",
  7506. "experimental": true,
  7507. "types": [
  7508. {
  7509. "id": "SerializedStorageKey",
  7510. "type": "string"
  7511. },
  7512. {
  7513. "id": "StorageId",
  7514. "description": "DOM Storage identifier.",
  7515. "type": "object",
  7516. "properties": [
  7517. {
  7518. "name": "securityOrigin",
  7519. "description": "Security origin for the storage.",
  7520. "optional": true,
  7521. "type": "string"
  7522. },
  7523. {
  7524. "name": "storageKey",
  7525. "description": "Represents a key by which DOM Storage keys its CachedStorageAreas",
  7526. "optional": true,
  7527. "$ref": "SerializedStorageKey"
  7528. },
  7529. {
  7530. "name": "isLocalStorage",
  7531. "description": "Whether the storage is local storage (not session storage).",
  7532. "type": "boolean"
  7533. }
  7534. ]
  7535. },
  7536. {
  7537. "id": "Item",
  7538. "description": "DOM Storage item.",
  7539. "type": "array",
  7540. "items": {
  7541. "type": "string"
  7542. }
  7543. }
  7544. ],
  7545. "commands": [
  7546. {
  7547. "name": "clear",
  7548. "parameters": [
  7549. {
  7550. "name": "storageId",
  7551. "$ref": "StorageId"
  7552. }
  7553. ]
  7554. },
  7555. {
  7556. "name": "disable",
  7557. "description": "Disables storage tracking, prevents storage events from being sent to the client."
  7558. },
  7559. {
  7560. "name": "enable",
  7561. "description": "Enables storage tracking, storage events will now be delivered to the client."
  7562. },
  7563. {
  7564. "name": "getDOMStorageItems",
  7565. "parameters": [
  7566. {
  7567. "name": "storageId",
  7568. "$ref": "StorageId"
  7569. }
  7570. ],
  7571. "returns": [
  7572. {
  7573. "name": "entries",
  7574. "type": "array",
  7575. "items": {
  7576. "$ref": "Item"
  7577. }
  7578. }
  7579. ]
  7580. },
  7581. {
  7582. "name": "removeDOMStorageItem",
  7583. "parameters": [
  7584. {
  7585. "name": "storageId",
  7586. "$ref": "StorageId"
  7587. },
  7588. {
  7589. "name": "key",
  7590. "type": "string"
  7591. }
  7592. ]
  7593. },
  7594. {
  7595. "name": "setDOMStorageItem",
  7596. "parameters": [
  7597. {
  7598. "name": "storageId",
  7599. "$ref": "StorageId"
  7600. },
  7601. {
  7602. "name": "key",
  7603. "type": "string"
  7604. },
  7605. {
  7606. "name": "value",
  7607. "type": "string"
  7608. }
  7609. ]
  7610. }
  7611. ],
  7612. "events": [
  7613. {
  7614. "name": "domStorageItemAdded",
  7615. "parameters": [
  7616. {
  7617. "name": "storageId",
  7618. "$ref": "StorageId"
  7619. },
  7620. {
  7621. "name": "key",
  7622. "type": "string"
  7623. },
  7624. {
  7625. "name": "newValue",
  7626. "type": "string"
  7627. }
  7628. ]
  7629. },
  7630. {
  7631. "name": "domStorageItemRemoved",
  7632. "parameters": [
  7633. {
  7634. "name": "storageId",
  7635. "$ref": "StorageId"
  7636. },
  7637. {
  7638. "name": "key",
  7639. "type": "string"
  7640. }
  7641. ]
  7642. },
  7643. {
  7644. "name": "domStorageItemUpdated",
  7645. "parameters": [
  7646. {
  7647. "name": "storageId",
  7648. "$ref": "StorageId"
  7649. },
  7650. {
  7651. "name": "key",
  7652. "type": "string"
  7653. },
  7654. {
  7655. "name": "oldValue",
  7656. "type": "string"
  7657. },
  7658. {
  7659. "name": "newValue",
  7660. "type": "string"
  7661. }
  7662. ]
  7663. },
  7664. {
  7665. "name": "domStorageItemsCleared",
  7666. "parameters": [
  7667. {
  7668. "name": "storageId",
  7669. "$ref": "StorageId"
  7670. }
  7671. ]
  7672. }
  7673. ]
  7674. },
  7675. {
  7676. "domain": "Database",
  7677. "experimental": true,
  7678. "types": [
  7679. {
  7680. "id": "DatabaseId",
  7681. "description": "Unique identifier of Database object.",
  7682. "type": "string"
  7683. },
  7684. {
  7685. "id": "Database",
  7686. "description": "Database object.",
  7687. "type": "object",
  7688. "properties": [
  7689. {
  7690. "name": "id",
  7691. "description": "Database ID.",
  7692. "$ref": "DatabaseId"
  7693. },
  7694. {
  7695. "name": "domain",
  7696. "description": "Database domain.",
  7697. "type": "string"
  7698. },
  7699. {
  7700. "name": "name",
  7701. "description": "Database name.",
  7702. "type": "string"
  7703. },
  7704. {
  7705. "name": "version",
  7706. "description": "Database version.",
  7707. "type": "string"
  7708. }
  7709. ]
  7710. },
  7711. {
  7712. "id": "Error",
  7713. "description": "Database error.",
  7714. "type": "object",
  7715. "properties": [
  7716. {
  7717. "name": "message",
  7718. "description": "Error message.",
  7719. "type": "string"
  7720. },
  7721. {
  7722. "name": "code",
  7723. "description": "Error code.",
  7724. "type": "integer"
  7725. }
  7726. ]
  7727. }
  7728. ],
  7729. "commands": [
  7730. {
  7731. "name": "disable",
  7732. "description": "Disables database tracking, prevents database events from being sent to the client."
  7733. },
  7734. {
  7735. "name": "enable",
  7736. "description": "Enables database tracking, database events will now be delivered to the client."
  7737. },
  7738. {
  7739. "name": "executeSQL",
  7740. "parameters": [
  7741. {
  7742. "name": "databaseId",
  7743. "$ref": "DatabaseId"
  7744. },
  7745. {
  7746. "name": "query",
  7747. "type": "string"
  7748. }
  7749. ],
  7750. "returns": [
  7751. {
  7752. "name": "columnNames",
  7753. "optional": true,
  7754. "type": "array",
  7755. "items": {
  7756. "type": "string"
  7757. }
  7758. },
  7759. {
  7760. "name": "values",
  7761. "optional": true,
  7762. "type": "array",
  7763. "items": {
  7764. "type": "any"
  7765. }
  7766. },
  7767. {
  7768. "name": "sqlError",
  7769. "optional": true,
  7770. "$ref": "Error"
  7771. }
  7772. ]
  7773. },
  7774. {
  7775. "name": "getDatabaseTableNames",
  7776. "parameters": [
  7777. {
  7778. "name": "databaseId",
  7779. "$ref": "DatabaseId"
  7780. }
  7781. ],
  7782. "returns": [
  7783. {
  7784. "name": "tableNames",
  7785. "type": "array",
  7786. "items": {
  7787. "type": "string"
  7788. }
  7789. }
  7790. ]
  7791. }
  7792. ],
  7793. "events": [
  7794. {
  7795. "name": "addDatabase",
  7796. "parameters": [
  7797. {
  7798. "name": "database",
  7799. "$ref": "Database"
  7800. }
  7801. ]
  7802. }
  7803. ]
  7804. },
  7805. {
  7806. "domain": "DeviceOrientation",
  7807. "experimental": true,
  7808. "commands": [
  7809. {
  7810. "name": "clearDeviceOrientationOverride",
  7811. "description": "Clears the overridden Device Orientation."
  7812. },
  7813. {
  7814. "name": "setDeviceOrientationOverride",
  7815. "description": "Overrides the Device Orientation.",
  7816. "parameters": [
  7817. {
  7818. "name": "alpha",
  7819. "description": "Mock alpha",
  7820. "type": "number"
  7821. },
  7822. {
  7823. "name": "beta",
  7824. "description": "Mock beta",
  7825. "type": "number"
  7826. },
  7827. {
  7828. "name": "gamma",
  7829. "description": "Mock gamma",
  7830. "type": "number"
  7831. }
  7832. ]
  7833. }
  7834. ]
  7835. },
  7836. {
  7837. "domain": "Emulation",
  7838. "description": "This domain emulates different environments for the page.",
  7839. "dependencies": [
  7840. "DOM",
  7841. "Page",
  7842. "Runtime"
  7843. ],
  7844. "types": [
  7845. {
  7846. "id": "ScreenOrientation",
  7847. "description": "Screen orientation.",
  7848. "type": "object",
  7849. "properties": [
  7850. {
  7851. "name": "type",
  7852. "description": "Orientation type.",
  7853. "type": "string",
  7854. "enum": [
  7855. "portraitPrimary",
  7856. "portraitSecondary",
  7857. "landscapePrimary",
  7858. "landscapeSecondary"
  7859. ]
  7860. },
  7861. {
  7862. "name": "angle",
  7863. "description": "Orientation angle.",
  7864. "type": "integer"
  7865. }
  7866. ]
  7867. },
  7868. {
  7869. "id": "DisplayFeature",
  7870. "type": "object",
  7871. "properties": [
  7872. {
  7873. "name": "orientation",
  7874. "description": "Orientation of a display feature in relation to screen",
  7875. "type": "string",
  7876. "enum": [
  7877. "vertical",
  7878. "horizontal"
  7879. ]
  7880. },
  7881. {
  7882. "name": "offset",
  7883. "description": "The offset from the screen origin in either the x (for vertical\norientation) or y (for horizontal orientation) direction.",
  7884. "type": "integer"
  7885. },
  7886. {
  7887. "name": "maskLength",
  7888. "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.",
  7889. "type": "integer"
  7890. }
  7891. ]
  7892. },
  7893. {
  7894. "id": "MediaFeature",
  7895. "type": "object",
  7896. "properties": [
  7897. {
  7898. "name": "name",
  7899. "type": "string"
  7900. },
  7901. {
  7902. "name": "value",
  7903. "type": "string"
  7904. }
  7905. ]
  7906. },
  7907. {
  7908. "id": "VirtualTimePolicy",
  7909. "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.",
  7910. "experimental": true,
  7911. "type": "string",
  7912. "enum": [
  7913. "advance",
  7914. "pause",
  7915. "pauseIfNetworkFetchesPending"
  7916. ]
  7917. },
  7918. {
  7919. "id": "UserAgentBrandVersion",
  7920. "description": "Used to specify User Agent Cient Hints to emulate. See https://wicg.github.io/ua-client-hints",
  7921. "experimental": true,
  7922. "type": "object",
  7923. "properties": [
  7924. {
  7925. "name": "brand",
  7926. "type": "string"
  7927. },
  7928. {
  7929. "name": "version",
  7930. "type": "string"
  7931. }
  7932. ]
  7933. },
  7934. {
  7935. "id": "UserAgentMetadata",
  7936. "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.",
  7937. "experimental": true,
  7938. "type": "object",
  7939. "properties": [
  7940. {
  7941. "name": "brands",
  7942. "optional": true,
  7943. "type": "array",
  7944. "items": {
  7945. "$ref": "UserAgentBrandVersion"
  7946. }
  7947. },
  7948. {
  7949. "name": "fullVersionList",
  7950. "optional": true,
  7951. "type": "array",
  7952. "items": {
  7953. "$ref": "UserAgentBrandVersion"
  7954. }
  7955. },
  7956. {
  7957. "name": "fullVersion",
  7958. "deprecated": true,
  7959. "optional": true,
  7960. "type": "string"
  7961. },
  7962. {
  7963. "name": "platform",
  7964. "type": "string"
  7965. },
  7966. {
  7967. "name": "platformVersion",
  7968. "type": "string"
  7969. },
  7970. {
  7971. "name": "architecture",
  7972. "type": "string"
  7973. },
  7974. {
  7975. "name": "model",
  7976. "type": "string"
  7977. },
  7978. {
  7979. "name": "mobile",
  7980. "type": "boolean"
  7981. },
  7982. {
  7983. "name": "bitness",
  7984. "optional": true,
  7985. "type": "string"
  7986. },
  7987. {
  7988. "name": "wow64",
  7989. "optional": true,
  7990. "type": "boolean"
  7991. }
  7992. ]
  7993. },
  7994. {
  7995. "id": "DisabledImageType",
  7996. "description": "Enum of image types that can be disabled.",
  7997. "experimental": true,
  7998. "type": "string",
  7999. "enum": [
  8000. "avif",
  8001. "jxl",
  8002. "webp"
  8003. ]
  8004. }
  8005. ],
  8006. "commands": [
  8007. {
  8008. "name": "canEmulate",
  8009. "description": "Tells whether emulation is supported.",
  8010. "returns": [
  8011. {
  8012. "name": "result",
  8013. "description": "True if emulation is supported.",
  8014. "type": "boolean"
  8015. }
  8016. ]
  8017. },
  8018. {
  8019. "name": "clearDeviceMetricsOverride",
  8020. "description": "Clears the overridden device metrics."
  8021. },
  8022. {
  8023. "name": "clearGeolocationOverride",
  8024. "description": "Clears the overridden Geolocation Position and Error."
  8025. },
  8026. {
  8027. "name": "resetPageScaleFactor",
  8028. "description": "Requests that page scale factor is reset to initial values.",
  8029. "experimental": true
  8030. },
  8031. {
  8032. "name": "setFocusEmulationEnabled",
  8033. "description": "Enables or disables simulating a focused and active page.",
  8034. "experimental": true,
  8035. "parameters": [
  8036. {
  8037. "name": "enabled",
  8038. "description": "Whether to enable to disable focus emulation.",
  8039. "type": "boolean"
  8040. }
  8041. ]
  8042. },
  8043. {
  8044. "name": "setAutoDarkModeOverride",
  8045. "description": "Automatically render all web contents using a dark theme.",
  8046. "experimental": true,
  8047. "parameters": [
  8048. {
  8049. "name": "enabled",
  8050. "description": "Whether to enable or disable automatic dark mode.\nIf not specified, any existing override will be cleared.",
  8051. "optional": true,
  8052. "type": "boolean"
  8053. }
  8054. ]
  8055. },
  8056. {
  8057. "name": "setCPUThrottlingRate",
  8058. "description": "Enables CPU throttling to emulate slow CPUs.",
  8059. "experimental": true,
  8060. "parameters": [
  8061. {
  8062. "name": "rate",
  8063. "description": "Throttling rate as a slowdown factor (1 is no throttle, 2 is 2x slowdown, etc).",
  8064. "type": "number"
  8065. }
  8066. ]
  8067. },
  8068. {
  8069. "name": "setDefaultBackgroundColorOverride",
  8070. "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.",
  8071. "parameters": [
  8072. {
  8073. "name": "color",
  8074. "description": "RGBA of the default background color. If not specified, any existing override will be\ncleared.",
  8075. "optional": true,
  8076. "$ref": "DOM.RGBA"
  8077. }
  8078. ]
  8079. },
  8080. {
  8081. "name": "setDeviceMetricsOverride",
  8082. "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).",
  8083. "parameters": [
  8084. {
  8085. "name": "width",
  8086. "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
  8087. "type": "integer"
  8088. },
  8089. {
  8090. "name": "height",
  8091. "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
  8092. "type": "integer"
  8093. },
  8094. {
  8095. "name": "deviceScaleFactor",
  8096. "description": "Overriding device scale factor value. 0 disables the override.",
  8097. "type": "number"
  8098. },
  8099. {
  8100. "name": "mobile",
  8101. "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text\nautosizing and more.",
  8102. "type": "boolean"
  8103. },
  8104. {
  8105. "name": "scale",
  8106. "description": "Scale to apply to resulting view image.",
  8107. "experimental": true,
  8108. "optional": true,
  8109. "type": "number"
  8110. },
  8111. {
  8112. "name": "screenWidth",
  8113. "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000).",
  8114. "experimental": true,
  8115. "optional": true,
  8116. "type": "integer"
  8117. },
  8118. {
  8119. "name": "screenHeight",
  8120. "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000).",
  8121. "experimental": true,
  8122. "optional": true,
  8123. "type": "integer"
  8124. },
  8125. {
  8126. "name": "positionX",
  8127. "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000).",
  8128. "experimental": true,
  8129. "optional": true,
  8130. "type": "integer"
  8131. },
  8132. {
  8133. "name": "positionY",
  8134. "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).",
  8135. "experimental": true,
  8136. "optional": true,
  8137. "type": "integer"
  8138. },
  8139. {
  8140. "name": "dontSetVisibleSize",
  8141. "description": "Do not set visible view size, rely upon explicit setVisibleSize call.",
  8142. "experimental": true,
  8143. "optional": true,
  8144. "type": "boolean"
  8145. },
  8146. {
  8147. "name": "screenOrientation",
  8148. "description": "Screen orientation override.",
  8149. "optional": true,
  8150. "$ref": "ScreenOrientation"
  8151. },
  8152. {
  8153. "name": "viewport",
  8154. "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.",
  8155. "experimental": true,
  8156. "optional": true,
  8157. "$ref": "Page.Viewport"
  8158. },
  8159. {
  8160. "name": "displayFeature",
  8161. "description": "If set, the display feature of a multi-segment screen. If not set, multi-segment support\nis turned-off.",
  8162. "experimental": true,
  8163. "optional": true,
  8164. "$ref": "DisplayFeature"
  8165. }
  8166. ]
  8167. },
  8168. {
  8169. "name": "setScrollbarsHidden",
  8170. "experimental": true,
  8171. "parameters": [
  8172. {
  8173. "name": "hidden",
  8174. "description": "Whether scrollbars should be always hidden.",
  8175. "type": "boolean"
  8176. }
  8177. ]
  8178. },
  8179. {
  8180. "name": "setDocumentCookieDisabled",
  8181. "experimental": true,
  8182. "parameters": [
  8183. {
  8184. "name": "disabled",
  8185. "description": "Whether document.coookie API should be disabled.",
  8186. "type": "boolean"
  8187. }
  8188. ]
  8189. },
  8190. {
  8191. "name": "setEmitTouchEventsForMouse",
  8192. "experimental": true,
  8193. "parameters": [
  8194. {
  8195. "name": "enabled",
  8196. "description": "Whether touch emulation based on mouse input should be enabled.",
  8197. "type": "boolean"
  8198. },
  8199. {
  8200. "name": "configuration",
  8201. "description": "Touch/gesture events configuration. Default: current platform.",
  8202. "optional": true,
  8203. "type": "string",
  8204. "enum": [
  8205. "mobile",
  8206. "desktop"
  8207. ]
  8208. }
  8209. ]
  8210. },
  8211. {
  8212. "name": "setEmulatedMedia",
  8213. "description": "Emulates the given media type or media feature for CSS media queries.",
  8214. "parameters": [
  8215. {
  8216. "name": "media",
  8217. "description": "Media type to emulate. Empty string disables the override.",
  8218. "optional": true,
  8219. "type": "string"
  8220. },
  8221. {
  8222. "name": "features",
  8223. "description": "Media features to emulate.",
  8224. "optional": true,
  8225. "type": "array",
  8226. "items": {
  8227. "$ref": "MediaFeature"
  8228. }
  8229. }
  8230. ]
  8231. },
  8232. {
  8233. "name": "setEmulatedVisionDeficiency",
  8234. "description": "Emulates the given vision deficiency.",
  8235. "experimental": true,
  8236. "parameters": [
  8237. {
  8238. "name": "type",
  8239. "description": "Vision deficiency to emulate.",
  8240. "type": "string",
  8241. "enum": [
  8242. "none",
  8243. "achromatopsia",
  8244. "blurredVision",
  8245. "deuteranopia",
  8246. "protanopia",
  8247. "tritanopia"
  8248. ]
  8249. }
  8250. ]
  8251. },
  8252. {
  8253. "name": "setGeolocationOverride",
  8254. "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position\nunavailable.",
  8255. "parameters": [
  8256. {
  8257. "name": "latitude",
  8258. "description": "Mock latitude",
  8259. "optional": true,
  8260. "type": "number"
  8261. },
  8262. {
  8263. "name": "longitude",
  8264. "description": "Mock longitude",
  8265. "optional": true,
  8266. "type": "number"
  8267. },
  8268. {
  8269. "name": "accuracy",
  8270. "description": "Mock accuracy",
  8271. "optional": true,
  8272. "type": "number"
  8273. }
  8274. ]
  8275. },
  8276. {
  8277. "name": "setIdleOverride",
  8278. "description": "Overrides the Idle state.",
  8279. "experimental": true,
  8280. "parameters": [
  8281. {
  8282. "name": "isUserActive",
  8283. "description": "Mock isUserActive",
  8284. "type": "boolean"
  8285. },
  8286. {
  8287. "name": "isScreenUnlocked",
  8288. "description": "Mock isScreenUnlocked",
  8289. "type": "boolean"
  8290. }
  8291. ]
  8292. },
  8293. {
  8294. "name": "clearIdleOverride",
  8295. "description": "Clears Idle state overrides.",
  8296. "experimental": true
  8297. },
  8298. {
  8299. "name": "setNavigatorOverrides",
  8300. "description": "Overrides value returned by the javascript navigator object.",
  8301. "experimental": true,
  8302. "deprecated": true,
  8303. "parameters": [
  8304. {
  8305. "name": "platform",
  8306. "description": "The platform navigator.platform should return.",
  8307. "type": "string"
  8308. }
  8309. ]
  8310. },
  8311. {
  8312. "name": "setPageScaleFactor",
  8313. "description": "Sets a specified page scale factor.",
  8314. "experimental": true,
  8315. "parameters": [
  8316. {
  8317. "name": "pageScaleFactor",
  8318. "description": "Page scale factor.",
  8319. "type": "number"
  8320. }
  8321. ]
  8322. },
  8323. {
  8324. "name": "setScriptExecutionDisabled",
  8325. "description": "Switches script execution in the page.",
  8326. "parameters": [
  8327. {
  8328. "name": "value",
  8329. "description": "Whether script execution should be disabled in the page.",
  8330. "type": "boolean"
  8331. }
  8332. ]
  8333. },
  8334. {
  8335. "name": "setTouchEmulationEnabled",
  8336. "description": "Enables touch on platforms which do not support them.",
  8337. "parameters": [
  8338. {
  8339. "name": "enabled",
  8340. "description": "Whether the touch event emulation should be enabled.",
  8341. "type": "boolean"
  8342. },
  8343. {
  8344. "name": "maxTouchPoints",
  8345. "description": "Maximum touch points supported. Defaults to one.",
  8346. "optional": true,
  8347. "type": "integer"
  8348. }
  8349. ]
  8350. },
  8351. {
  8352. "name": "setVirtualTimePolicy",
  8353. "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.",
  8354. "experimental": true,
  8355. "parameters": [
  8356. {
  8357. "name": "policy",
  8358. "$ref": "VirtualTimePolicy"
  8359. },
  8360. {
  8361. "name": "budget",
  8362. "description": "If set, after this many virtual milliseconds have elapsed virtual time will be paused and a\nvirtualTimeBudgetExpired event is sent.",
  8363. "optional": true,
  8364. "type": "number"
  8365. },
  8366. {
  8367. "name": "maxVirtualTimeTaskStarvationCount",
  8368. "description": "If set this specifies the maximum number of tasks that can be run before virtual is forced\nforwards to prevent deadlock.",
  8369. "optional": true,
  8370. "type": "integer"
  8371. },
  8372. {
  8373. "name": "initialVirtualTime",
  8374. "description": "If set, base::Time::Now will be overridden to initially return this value.",
  8375. "optional": true,
  8376. "$ref": "Network.TimeSinceEpoch"
  8377. }
  8378. ],
  8379. "returns": [
  8380. {
  8381. "name": "virtualTimeTicksBase",
  8382. "description": "Absolute timestamp at which virtual time was first enabled (up time in milliseconds).",
  8383. "type": "number"
  8384. }
  8385. ]
  8386. },
  8387. {
  8388. "name": "setLocaleOverride",
  8389. "description": "Overrides default host system locale with the specified one.",
  8390. "experimental": true,
  8391. "parameters": [
  8392. {
  8393. "name": "locale",
  8394. "description": "ICU style C locale (e.g. \"en_US\"). If not specified or empty, disables the override and\nrestores default host system locale.",
  8395. "optional": true,
  8396. "type": "string"
  8397. }
  8398. ]
  8399. },
  8400. {
  8401. "name": "setTimezoneOverride",
  8402. "description": "Overrides default host system timezone with the specified one.",
  8403. "experimental": true,
  8404. "parameters": [
  8405. {
  8406. "name": "timezoneId",
  8407. "description": "The timezone identifier. If empty, disables the override and\nrestores default host system timezone.",
  8408. "type": "string"
  8409. }
  8410. ]
  8411. },
  8412. {
  8413. "name": "setVisibleSize",
  8414. "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.",
  8415. "experimental": true,
  8416. "deprecated": true,
  8417. "parameters": [
  8418. {
  8419. "name": "width",
  8420. "description": "Frame width (DIP).",
  8421. "type": "integer"
  8422. },
  8423. {
  8424. "name": "height",
  8425. "description": "Frame height (DIP).",
  8426. "type": "integer"
  8427. }
  8428. ]
  8429. },
  8430. {
  8431. "name": "setDisabledImageTypes",
  8432. "experimental": true,
  8433. "parameters": [
  8434. {
  8435. "name": "imageTypes",
  8436. "description": "Image types to disable.",
  8437. "type": "array",
  8438. "items": {
  8439. "$ref": "DisabledImageType"
  8440. }
  8441. }
  8442. ]
  8443. },
  8444. {
  8445. "name": "setHardwareConcurrencyOverride",
  8446. "experimental": true,
  8447. "parameters": [
  8448. {
  8449. "name": "hardwareConcurrency",
  8450. "description": "Hardware concurrency to report",
  8451. "type": "integer"
  8452. }
  8453. ]
  8454. },
  8455. {
  8456. "name": "setUserAgentOverride",
  8457. "description": "Allows overriding user agent with the given string.",
  8458. "parameters": [
  8459. {
  8460. "name": "userAgent",
  8461. "description": "User agent to use.",
  8462. "type": "string"
  8463. },
  8464. {
  8465. "name": "acceptLanguage",
  8466. "description": "Browser langugage to emulate.",
  8467. "optional": true,
  8468. "type": "string"
  8469. },
  8470. {
  8471. "name": "platform",
  8472. "description": "The platform navigator.platform should return.",
  8473. "optional": true,
  8474. "type": "string"
  8475. },
  8476. {
  8477. "name": "userAgentMetadata",
  8478. "description": "To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData",
  8479. "experimental": true,
  8480. "optional": true,
  8481. "$ref": "UserAgentMetadata"
  8482. }
  8483. ]
  8484. },
  8485. {
  8486. "name": "setAutomationOverride",
  8487. "description": "Allows overriding the automation flag.",
  8488. "experimental": true,
  8489. "parameters": [
  8490. {
  8491. "name": "enabled",
  8492. "description": "Whether the override should be enabled.",
  8493. "type": "boolean"
  8494. }
  8495. ]
  8496. }
  8497. ],
  8498. "events": [
  8499. {
  8500. "name": "virtualTimeBudgetExpired",
  8501. "description": "Notification sent after the virtual time budget for the current VirtualTimePolicy has run out.",
  8502. "experimental": true
  8503. }
  8504. ]
  8505. },
  8506. {
  8507. "domain": "HeadlessExperimental",
  8508. "description": "This domain provides experimental commands only supported in headless mode.",
  8509. "experimental": true,
  8510. "dependencies": [
  8511. "Page",
  8512. "Runtime"
  8513. ],
  8514. "types": [
  8515. {
  8516. "id": "ScreenshotParams",
  8517. "description": "Encoding options for a screenshot.",
  8518. "type": "object",
  8519. "properties": [
  8520. {
  8521. "name": "format",
  8522. "description": "Image compression format (defaults to png).",
  8523. "optional": true,
  8524. "type": "string",
  8525. "enum": [
  8526. "jpeg",
  8527. "png"
  8528. ]
  8529. },
  8530. {
  8531. "name": "quality",
  8532. "description": "Compression quality from range [0..100] (jpeg only).",
  8533. "optional": true,
  8534. "type": "integer"
  8535. }
  8536. ]
  8537. }
  8538. ],
  8539. "commands": [
  8540. {
  8541. "name": "beginFrame",
  8542. "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.",
  8543. "parameters": [
  8544. {
  8545. "name": "frameTimeTicks",
  8546. "description": "Timestamp of this BeginFrame in Renderer TimeTicks (milliseconds of uptime). If not set,\nthe current time will be used.",
  8547. "optional": true,
  8548. "type": "number"
  8549. },
  8550. {
  8551. "name": "interval",
  8552. "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.",
  8553. "optional": true,
  8554. "type": "number"
  8555. },
  8556. {
  8557. "name": "noDisplayUpdates",
  8558. "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.",
  8559. "optional": true,
  8560. "type": "boolean"
  8561. },
  8562. {
  8563. "name": "screenshot",
  8564. "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.",
  8565. "optional": true,
  8566. "$ref": "ScreenshotParams"
  8567. }
  8568. ],
  8569. "returns": [
  8570. {
  8571. "name": "hasDamage",
  8572. "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.",
  8573. "type": "boolean"
  8574. },
  8575. {
  8576. "name": "screenshotData",
  8577. "description": "Base64-encoded image data of the screenshot, if one was requested and successfully taken. (Encoded as a base64 string when passed over JSON)",
  8578. "optional": true,
  8579. "type": "string"
  8580. }
  8581. ]
  8582. },
  8583. {
  8584. "name": "disable",
  8585. "description": "Disables headless events for the target."
  8586. },
  8587. {
  8588. "name": "enable",
  8589. "description": "Enables headless events for the target."
  8590. }
  8591. ],
  8592. "events": [
  8593. {
  8594. "name": "needsBeginFramesChanged",
  8595. "description": "Issued when the target starts or stops needing BeginFrames.\nDeprecated. Issue beginFrame unconditionally instead and use result from\nbeginFrame to detect whether the frames were suppressed.",
  8596. "deprecated": true,
  8597. "parameters": [
  8598. {
  8599. "name": "needsBeginFrames",
  8600. "description": "True if BeginFrames are needed, false otherwise.",
  8601. "type": "boolean"
  8602. }
  8603. ]
  8604. }
  8605. ]
  8606. },
  8607. {
  8608. "domain": "IO",
  8609. "description": "Input/Output operations for streams produced by DevTools.",
  8610. "types": [
  8611. {
  8612. "id": "StreamHandle",
  8613. "description": "This is either obtained from another method or specified as `blob:&lt;uuid&gt;` where\n`&lt;uuid&gt` is an UUID of a Blob.",
  8614. "type": "string"
  8615. }
  8616. ],
  8617. "commands": [
  8618. {
  8619. "name": "close",
  8620. "description": "Close the stream, discard any temporary backing storage.",
  8621. "parameters": [
  8622. {
  8623. "name": "handle",
  8624. "description": "Handle of the stream to close.",
  8625. "$ref": "StreamHandle"
  8626. }
  8627. ]
  8628. },
  8629. {
  8630. "name": "read",
  8631. "description": "Read a chunk of the stream",
  8632. "parameters": [
  8633. {
  8634. "name": "handle",
  8635. "description": "Handle of the stream to read.",
  8636. "$ref": "StreamHandle"
  8637. },
  8638. {
  8639. "name": "offset",
  8640. "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.",
  8641. "optional": true,
  8642. "type": "integer"
  8643. },
  8644. {
  8645. "name": "size",
  8646. "description": "Maximum number of bytes to read (left upon the agent discretion if not specified).",
  8647. "optional": true,
  8648. "type": "integer"
  8649. }
  8650. ],
  8651. "returns": [
  8652. {
  8653. "name": "base64Encoded",
  8654. "description": "Set if the data is base64-encoded",
  8655. "optional": true,
  8656. "type": "boolean"
  8657. },
  8658. {
  8659. "name": "data",
  8660. "description": "Data that were read.",
  8661. "type": "string"
  8662. },
  8663. {
  8664. "name": "eof",
  8665. "description": "Set if the end-of-file condition occurred while reading.",
  8666. "type": "boolean"
  8667. }
  8668. ]
  8669. },
  8670. {
  8671. "name": "resolveBlob",
  8672. "description": "Return UUID of Blob object specified by a remote object id.",
  8673. "parameters": [
  8674. {
  8675. "name": "objectId",
  8676. "description": "Object id of a Blob object wrapper.",
  8677. "$ref": "Runtime.RemoteObjectId"
  8678. }
  8679. ],
  8680. "returns": [
  8681. {
  8682. "name": "uuid",
  8683. "description": "UUID of the specified Blob.",
  8684. "type": "string"
  8685. }
  8686. ]
  8687. }
  8688. ]
  8689. },
  8690. {
  8691. "domain": "IndexedDB",
  8692. "experimental": true,
  8693. "dependencies": [
  8694. "Runtime"
  8695. ],
  8696. "types": [
  8697. {
  8698. "id": "DatabaseWithObjectStores",
  8699. "description": "Database with an array of object stores.",
  8700. "type": "object",
  8701. "properties": [
  8702. {
  8703. "name": "name",
  8704. "description": "Database name.",
  8705. "type": "string"
  8706. },
  8707. {
  8708. "name": "version",
  8709. "description": "Database version (type is not 'integer', as the standard\nrequires the version number to be 'unsigned long long')",
  8710. "type": "number"
  8711. },
  8712. {
  8713. "name": "objectStores",
  8714. "description": "Object stores in this database.",
  8715. "type": "array",
  8716. "items": {
  8717. "$ref": "ObjectStore"
  8718. }
  8719. }
  8720. ]
  8721. },
  8722. {
  8723. "id": "ObjectStore",
  8724. "description": "Object store.",
  8725. "type": "object",
  8726. "properties": [
  8727. {
  8728. "name": "name",
  8729. "description": "Object store name.",
  8730. "type": "string"
  8731. },
  8732. {
  8733. "name": "keyPath",
  8734. "description": "Object store key path.",
  8735. "$ref": "KeyPath"
  8736. },
  8737. {
  8738. "name": "autoIncrement",
  8739. "description": "If true, object store has auto increment flag set.",
  8740. "type": "boolean"
  8741. },
  8742. {
  8743. "name": "indexes",
  8744. "description": "Indexes in this object store.",
  8745. "type": "array",
  8746. "items": {
  8747. "$ref": "ObjectStoreIndex"
  8748. }
  8749. }
  8750. ]
  8751. },
  8752. {
  8753. "id": "ObjectStoreIndex",
  8754. "description": "Object store index.",
  8755. "type": "object",
  8756. "properties": [
  8757. {
  8758. "name": "name",
  8759. "description": "Index name.",
  8760. "type": "string"
  8761. },
  8762. {
  8763. "name": "keyPath",
  8764. "description": "Index key path.",
  8765. "$ref": "KeyPath"
  8766. },
  8767. {
  8768. "name": "unique",
  8769. "description": "If true, index is unique.",
  8770. "type": "boolean"
  8771. },
  8772. {
  8773. "name": "multiEntry",
  8774. "description": "If true, index allows multiple entries for a key.",
  8775. "type": "boolean"
  8776. }
  8777. ]
  8778. },
  8779. {
  8780. "id": "Key",
  8781. "description": "Key.",
  8782. "type": "object",
  8783. "properties": [
  8784. {
  8785. "name": "type",
  8786. "description": "Key type.",
  8787. "type": "string",
  8788. "enum": [
  8789. "number",
  8790. "string",
  8791. "date",
  8792. "array"
  8793. ]
  8794. },
  8795. {
  8796. "name": "number",
  8797. "description": "Number value.",
  8798. "optional": true,
  8799. "type": "number"
  8800. },
  8801. {
  8802. "name": "string",
  8803. "description": "String value.",
  8804. "optional": true,
  8805. "type": "string"
  8806. },
  8807. {
  8808. "name": "date",
  8809. "description": "Date value.",
  8810. "optional": true,
  8811. "type": "number"
  8812. },
  8813. {
  8814. "name": "array",
  8815. "description": "Array value.",
  8816. "optional": true,
  8817. "type": "array",
  8818. "items": {
  8819. "$ref": "Key"
  8820. }
  8821. }
  8822. ]
  8823. },
  8824. {
  8825. "id": "KeyRange",
  8826. "description": "Key range.",
  8827. "type": "object",
  8828. "properties": [
  8829. {
  8830. "name": "lower",
  8831. "description": "Lower bound.",
  8832. "optional": true,
  8833. "$ref": "Key"
  8834. },
  8835. {
  8836. "name": "upper",
  8837. "description": "Upper bound.",
  8838. "optional": true,
  8839. "$ref": "Key"
  8840. },
  8841. {
  8842. "name": "lowerOpen",
  8843. "description": "If true lower bound is open.",
  8844. "type": "boolean"
  8845. },
  8846. {
  8847. "name": "upperOpen",
  8848. "description": "If true upper bound is open.",
  8849. "type": "boolean"
  8850. }
  8851. ]
  8852. },
  8853. {
  8854. "id": "DataEntry",
  8855. "description": "Data entry.",
  8856. "type": "object",
  8857. "properties": [
  8858. {
  8859. "name": "key",
  8860. "description": "Key object.",
  8861. "$ref": "Runtime.RemoteObject"
  8862. },
  8863. {
  8864. "name": "primaryKey",
  8865. "description": "Primary key object.",
  8866. "$ref": "Runtime.RemoteObject"
  8867. },
  8868. {
  8869. "name": "value",
  8870. "description": "Value object.",
  8871. "$ref": "Runtime.RemoteObject"
  8872. }
  8873. ]
  8874. },
  8875. {
  8876. "id": "KeyPath",
  8877. "description": "Key path.",
  8878. "type": "object",
  8879. "properties": [
  8880. {
  8881. "name": "type",
  8882. "description": "Key path type.",
  8883. "type": "string",
  8884. "enum": [
  8885. "null",
  8886. "string",
  8887. "array"
  8888. ]
  8889. },
  8890. {
  8891. "name": "string",
  8892. "description": "String value.",
  8893. "optional": true,
  8894. "type": "string"
  8895. },
  8896. {
  8897. "name": "array",
  8898. "description": "Array value.",
  8899. "optional": true,
  8900. "type": "array",
  8901. "items": {
  8902. "type": "string"
  8903. }
  8904. }
  8905. ]
  8906. }
  8907. ],
  8908. "commands": [
  8909. {
  8910. "name": "clearObjectStore",
  8911. "description": "Clears all entries from an object store.",
  8912. "parameters": [
  8913. {
  8914. "name": "securityOrigin",
  8915. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  8916. "optional": true,
  8917. "type": "string"
  8918. },
  8919. {
  8920. "name": "storageKey",
  8921. "description": "Storage key.",
  8922. "optional": true,
  8923. "type": "string"
  8924. },
  8925. {
  8926. "name": "databaseName",
  8927. "description": "Database name.",
  8928. "type": "string"
  8929. },
  8930. {
  8931. "name": "objectStoreName",
  8932. "description": "Object store name.",
  8933. "type": "string"
  8934. }
  8935. ]
  8936. },
  8937. {
  8938. "name": "deleteDatabase",
  8939. "description": "Deletes a database.",
  8940. "parameters": [
  8941. {
  8942. "name": "securityOrigin",
  8943. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  8944. "optional": true,
  8945. "type": "string"
  8946. },
  8947. {
  8948. "name": "storageKey",
  8949. "description": "Storage key.",
  8950. "optional": true,
  8951. "type": "string"
  8952. },
  8953. {
  8954. "name": "databaseName",
  8955. "description": "Database name.",
  8956. "type": "string"
  8957. }
  8958. ]
  8959. },
  8960. {
  8961. "name": "deleteObjectStoreEntries",
  8962. "description": "Delete a range of entries from an object store",
  8963. "parameters": [
  8964. {
  8965. "name": "securityOrigin",
  8966. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  8967. "optional": true,
  8968. "type": "string"
  8969. },
  8970. {
  8971. "name": "storageKey",
  8972. "description": "Storage key.",
  8973. "optional": true,
  8974. "type": "string"
  8975. },
  8976. {
  8977. "name": "databaseName",
  8978. "type": "string"
  8979. },
  8980. {
  8981. "name": "objectStoreName",
  8982. "type": "string"
  8983. },
  8984. {
  8985. "name": "keyRange",
  8986. "description": "Range of entry keys to delete",
  8987. "$ref": "KeyRange"
  8988. }
  8989. ]
  8990. },
  8991. {
  8992. "name": "disable",
  8993. "description": "Disables events from backend."
  8994. },
  8995. {
  8996. "name": "enable",
  8997. "description": "Enables events from backend."
  8998. },
  8999. {
  9000. "name": "requestData",
  9001. "description": "Requests data from object store or index.",
  9002. "parameters": [
  9003. {
  9004. "name": "securityOrigin",
  9005. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  9006. "optional": true,
  9007. "type": "string"
  9008. },
  9009. {
  9010. "name": "storageKey",
  9011. "description": "Storage key.",
  9012. "optional": true,
  9013. "type": "string"
  9014. },
  9015. {
  9016. "name": "databaseName",
  9017. "description": "Database name.",
  9018. "type": "string"
  9019. },
  9020. {
  9021. "name": "objectStoreName",
  9022. "description": "Object store name.",
  9023. "type": "string"
  9024. },
  9025. {
  9026. "name": "indexName",
  9027. "description": "Index name, empty string for object store data requests.",
  9028. "type": "string"
  9029. },
  9030. {
  9031. "name": "skipCount",
  9032. "description": "Number of records to skip.",
  9033. "type": "integer"
  9034. },
  9035. {
  9036. "name": "pageSize",
  9037. "description": "Number of records to fetch.",
  9038. "type": "integer"
  9039. },
  9040. {
  9041. "name": "keyRange",
  9042. "description": "Key range.",
  9043. "optional": true,
  9044. "$ref": "KeyRange"
  9045. }
  9046. ],
  9047. "returns": [
  9048. {
  9049. "name": "objectStoreDataEntries",
  9050. "description": "Array of object store data entries.",
  9051. "type": "array",
  9052. "items": {
  9053. "$ref": "DataEntry"
  9054. }
  9055. },
  9056. {
  9057. "name": "hasMore",
  9058. "description": "If true, there are more entries to fetch in the given range.",
  9059. "type": "boolean"
  9060. }
  9061. ]
  9062. },
  9063. {
  9064. "name": "getMetadata",
  9065. "description": "Gets metadata of an object store",
  9066. "parameters": [
  9067. {
  9068. "name": "securityOrigin",
  9069. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  9070. "optional": true,
  9071. "type": "string"
  9072. },
  9073. {
  9074. "name": "storageKey",
  9075. "description": "Storage key.",
  9076. "optional": true,
  9077. "type": "string"
  9078. },
  9079. {
  9080. "name": "databaseName",
  9081. "description": "Database name.",
  9082. "type": "string"
  9083. },
  9084. {
  9085. "name": "objectStoreName",
  9086. "description": "Object store name.",
  9087. "type": "string"
  9088. }
  9089. ],
  9090. "returns": [
  9091. {
  9092. "name": "entriesCount",
  9093. "description": "the entries count",
  9094. "type": "number"
  9095. },
  9096. {
  9097. "name": "keyGeneratorValue",
  9098. "description": "the current value of key generator, to become the next inserted\nkey into the object store. Valid if objectStore.autoIncrement\nis true.",
  9099. "type": "number"
  9100. }
  9101. ]
  9102. },
  9103. {
  9104. "name": "requestDatabase",
  9105. "description": "Requests database with given name in given frame.",
  9106. "parameters": [
  9107. {
  9108. "name": "securityOrigin",
  9109. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  9110. "optional": true,
  9111. "type": "string"
  9112. },
  9113. {
  9114. "name": "storageKey",
  9115. "description": "Storage key.",
  9116. "optional": true,
  9117. "type": "string"
  9118. },
  9119. {
  9120. "name": "databaseName",
  9121. "description": "Database name.",
  9122. "type": "string"
  9123. }
  9124. ],
  9125. "returns": [
  9126. {
  9127. "name": "databaseWithObjectStores",
  9128. "description": "Database with an array of object stores.",
  9129. "$ref": "DatabaseWithObjectStores"
  9130. }
  9131. ]
  9132. },
  9133. {
  9134. "name": "requestDatabaseNames",
  9135. "description": "Requests database names for given security origin.",
  9136. "parameters": [
  9137. {
  9138. "name": "securityOrigin",
  9139. "description": "At least and at most one of securityOrigin, storageKey must be specified.\nSecurity origin.",
  9140. "optional": true,
  9141. "type": "string"
  9142. },
  9143. {
  9144. "name": "storageKey",
  9145. "description": "Storage key.",
  9146. "optional": true,
  9147. "type": "string"
  9148. }
  9149. ],
  9150. "returns": [
  9151. {
  9152. "name": "databaseNames",
  9153. "description": "Database names for origin.",
  9154. "type": "array",
  9155. "items": {
  9156. "type": "string"
  9157. }
  9158. }
  9159. ]
  9160. }
  9161. ]
  9162. },
  9163. {
  9164. "domain": "Input",
  9165. "types": [
  9166. {
  9167. "id": "TouchPoint",
  9168. "type": "object",
  9169. "properties": [
  9170. {
  9171. "name": "x",
  9172. "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
  9173. "type": "number"
  9174. },
  9175. {
  9176. "name": "y",
  9177. "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.",
  9178. "type": "number"
  9179. },
  9180. {
  9181. "name": "radiusX",
  9182. "description": "X radius of the touch area (default: 1.0).",
  9183. "optional": true,
  9184. "type": "number"
  9185. },
  9186. {
  9187. "name": "radiusY",
  9188. "description": "Y radius of the touch area (default: 1.0).",
  9189. "optional": true,
  9190. "type": "number"
  9191. },
  9192. {
  9193. "name": "rotationAngle",
  9194. "description": "Rotation angle (default: 0.0).",
  9195. "optional": true,
  9196. "type": "number"
  9197. },
  9198. {
  9199. "name": "force",
  9200. "description": "Force (default: 1.0).",
  9201. "optional": true,
  9202. "type": "number"
  9203. },
  9204. {
  9205. "name": "tangentialPressure",
  9206. "description": "The normalized tangential pressure, which has a range of [-1,1] (default: 0).",
  9207. "experimental": true,
  9208. "optional": true,
  9209. "type": "number"
  9210. },
  9211. {
  9212. "name": "tiltX",
  9213. "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)",
  9214. "experimental": true,
  9215. "optional": true,
  9216. "type": "integer"
  9217. },
  9218. {
  9219. "name": "tiltY",
  9220. "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).",
  9221. "experimental": true,
  9222. "optional": true,
  9223. "type": "integer"
  9224. },
  9225. {
  9226. "name": "twist",
  9227. "description": "The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).",
  9228. "experimental": true,
  9229. "optional": true,
  9230. "type": "integer"
  9231. },
  9232. {
  9233. "name": "id",
  9234. "description": "Identifier used to track touch sources between events, must be unique within an event.",
  9235. "optional": true,
  9236. "type": "number"
  9237. }
  9238. ]
  9239. },
  9240. {
  9241. "id": "GestureSourceType",
  9242. "experimental": true,
  9243. "type": "string",
  9244. "enum": [
  9245. "default",
  9246. "touch",
  9247. "mouse"
  9248. ]
  9249. },
  9250. {
  9251. "id": "MouseButton",
  9252. "type": "string",
  9253. "enum": [
  9254. "none",
  9255. "left",
  9256. "middle",
  9257. "right",
  9258. "back",
  9259. "forward"
  9260. ]
  9261. },
  9262. {
  9263. "id": "TimeSinceEpoch",
  9264. "description": "UTC time in seconds, counted from January 1, 1970.",
  9265. "type": "number"
  9266. },
  9267. {
  9268. "id": "DragDataItem",
  9269. "experimental": true,
  9270. "type": "object",
  9271. "properties": [
  9272. {
  9273. "name": "mimeType",
  9274. "description": "Mime type of the dragged data.",
  9275. "type": "string"
  9276. },
  9277. {
  9278. "name": "data",
  9279. "description": "Depending of the value of `mimeType`, it contains the dragged link,\ntext, HTML markup or any other data.",
  9280. "type": "string"
  9281. },
  9282. {
  9283. "name": "title",
  9284. "description": "Title associated with a link. Only valid when `mimeType` == \"text/uri-list\".",
  9285. "optional": true,
  9286. "type": "string"
  9287. },
  9288. {
  9289. "name": "baseURL",
  9290. "description": "Stores the base URL for the contained markup. Only valid when `mimeType`\n== \"text/html\".",
  9291. "optional": true,
  9292. "type": "string"
  9293. }
  9294. ]
  9295. },
  9296. {
  9297. "id": "DragData",
  9298. "experimental": true,
  9299. "type": "object",
  9300. "properties": [
  9301. {
  9302. "name": "items",
  9303. "type": "array",
  9304. "items": {
  9305. "$ref": "DragDataItem"
  9306. }
  9307. },
  9308. {
  9309. "name": "files",
  9310. "description": "List of filenames that should be included when dropping",
  9311. "optional": true,
  9312. "type": "array",
  9313. "items": {
  9314. "type": "string"
  9315. }
  9316. },
  9317. {
  9318. "name": "dragOperationsMask",
  9319. "description": "Bit field representing allowed drag operations. Copy = 1, Link = 2, Move = 16",
  9320. "type": "integer"
  9321. }
  9322. ]
  9323. }
  9324. ],
  9325. "commands": [
  9326. {
  9327. "name": "dispatchDragEvent",
  9328. "description": "Dispatches a drag event into the page.",
  9329. "experimental": true,
  9330. "parameters": [
  9331. {
  9332. "name": "type",
  9333. "description": "Type of the drag event.",
  9334. "type": "string",
  9335. "enum": [
  9336. "dragEnter",
  9337. "dragOver",
  9338. "drop",
  9339. "dragCancel"
  9340. ]
  9341. },
  9342. {
  9343. "name": "x",
  9344. "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
  9345. "type": "number"
  9346. },
  9347. {
  9348. "name": "y",
  9349. "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.",
  9350. "type": "number"
  9351. },
  9352. {
  9353. "name": "data",
  9354. "$ref": "DragData"
  9355. },
  9356. {
  9357. "name": "modifiers",
  9358. "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
  9359. "optional": true,
  9360. "type": "integer"
  9361. }
  9362. ]
  9363. },
  9364. {
  9365. "name": "dispatchKeyEvent",
  9366. "description": "Dispatches a key event to the page.",
  9367. "parameters": [
  9368. {
  9369. "name": "type",
  9370. "description": "Type of the key event.",
  9371. "type": "string",
  9372. "enum": [
  9373. "keyDown",
  9374. "keyUp",
  9375. "rawKeyDown",
  9376. "char"
  9377. ]
  9378. },
  9379. {
  9380. "name": "modifiers",
  9381. "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
  9382. "optional": true,
  9383. "type": "integer"
  9384. },
  9385. {
  9386. "name": "timestamp",
  9387. "description": "Time at which the event occurred.",
  9388. "optional": true,
  9389. "$ref": "TimeSinceEpoch"
  9390. },
  9391. {
  9392. "name": "text",
  9393. "description": "Text as generated by processing a virtual key code with a keyboard layout. Not needed for\nfor `keyUp` and `rawKeyDown` events (default: \"\")",
  9394. "optional": true,
  9395. "type": "string"
  9396. },
  9397. {
  9398. "name": "unmodifiedText",
  9399. "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: \"\").",
  9400. "optional": true,
  9401. "type": "string"
  9402. },
  9403. {
  9404. "name": "keyIdentifier",
  9405. "description": "Unique key identifier (e.g., 'U+0041') (default: \"\").",
  9406. "optional": true,
  9407. "type": "string"
  9408. },
  9409. {
  9410. "name": "code",
  9411. "description": "Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: \"\").",
  9412. "optional": true,
  9413. "type": "string"
  9414. },
  9415. {
  9416. "name": "key",
  9417. "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: \"\").",
  9418. "optional": true,
  9419. "type": "string"
  9420. },
  9421. {
  9422. "name": "windowsVirtualKeyCode",
  9423. "description": "Windows virtual key code (default: 0).",
  9424. "optional": true,
  9425. "type": "integer"
  9426. },
  9427. {
  9428. "name": "nativeVirtualKeyCode",
  9429. "description": "Native virtual key code (default: 0).",
  9430. "optional": true,
  9431. "type": "integer"
  9432. },
  9433. {
  9434. "name": "autoRepeat",
  9435. "description": "Whether the event was generated from auto repeat (default: false).",
  9436. "optional": true,
  9437. "type": "boolean"
  9438. },
  9439. {
  9440. "name": "isKeypad",
  9441. "description": "Whether the event was generated from the keypad (default: false).",
  9442. "optional": true,
  9443. "type": "boolean"
  9444. },
  9445. {
  9446. "name": "isSystemKey",
  9447. "description": "Whether the event was a system key event (default: false).",
  9448. "optional": true,
  9449. "type": "boolean"
  9450. },
  9451. {
  9452. "name": "location",
  9453. "description": "Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default:\n0).",
  9454. "optional": true,
  9455. "type": "integer"
  9456. },
  9457. {
  9458. "name": "commands",
  9459. "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.",
  9460. "experimental": true,
  9461. "optional": true,
  9462. "type": "array",
  9463. "items": {
  9464. "type": "string"
  9465. }
  9466. }
  9467. ]
  9468. },
  9469. {
  9470. "name": "insertText",
  9471. "description": "This method emulates inserting text that doesn't come from a key press,\nfor example an emoji keyboard or an IME.",
  9472. "experimental": true,
  9473. "parameters": [
  9474. {
  9475. "name": "text",
  9476. "description": "The text to insert.",
  9477. "type": "string"
  9478. }
  9479. ]
  9480. },
  9481. {
  9482. "name": "imeSetComposition",
  9483. "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.",
  9484. "experimental": true,
  9485. "parameters": [
  9486. {
  9487. "name": "text",
  9488. "description": "The text to insert",
  9489. "type": "string"
  9490. },
  9491. {
  9492. "name": "selectionStart",
  9493. "description": "selection start",
  9494. "type": "integer"
  9495. },
  9496. {
  9497. "name": "selectionEnd",
  9498. "description": "selection end",
  9499. "type": "integer"
  9500. },
  9501. {
  9502. "name": "replacementStart",
  9503. "description": "replacement start",
  9504. "optional": true,
  9505. "type": "integer"
  9506. },
  9507. {
  9508. "name": "replacementEnd",
  9509. "description": "replacement end",
  9510. "optional": true,
  9511. "type": "integer"
  9512. }
  9513. ]
  9514. },
  9515. {
  9516. "name": "dispatchMouseEvent",
  9517. "description": "Dispatches a mouse event to the page.",
  9518. "parameters": [
  9519. {
  9520. "name": "type",
  9521. "description": "Type of the mouse event.",
  9522. "type": "string",
  9523. "enum": [
  9524. "mousePressed",
  9525. "mouseReleased",
  9526. "mouseMoved",
  9527. "mouseWheel"
  9528. ]
  9529. },
  9530. {
  9531. "name": "x",
  9532. "description": "X coordinate of the event relative to the main frame's viewport in CSS pixels.",
  9533. "type": "number"
  9534. },
  9535. {
  9536. "name": "y",
  9537. "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.",
  9538. "type": "number"
  9539. },
  9540. {
  9541. "name": "modifiers",
  9542. "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
  9543. "optional": true,
  9544. "type": "integer"
  9545. },
  9546. {
  9547. "name": "timestamp",
  9548. "description": "Time at which the event occurred.",
  9549. "optional": true,
  9550. "$ref": "TimeSinceEpoch"
  9551. },
  9552. {
  9553. "name": "button",
  9554. "description": "Mouse button (default: \"none\").",
  9555. "optional": true,
  9556. "$ref": "MouseButton"
  9557. },
  9558. {
  9559. "name": "buttons",
  9560. "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.",
  9561. "optional": true,
  9562. "type": "integer"
  9563. },
  9564. {
  9565. "name": "clickCount",
  9566. "description": "Number of times the mouse button was clicked (default: 0).",
  9567. "optional": true,
  9568. "type": "integer"
  9569. },
  9570. {
  9571. "name": "force",
  9572. "description": "The normalized pressure, which has a range of [0,1] (default: 0).",
  9573. "experimental": true,
  9574. "optional": true,
  9575. "type": "number"
  9576. },
  9577. {
  9578. "name": "tangentialPressure",
  9579. "description": "The normalized tangential pressure, which has a range of [-1,1] (default: 0).",
  9580. "experimental": true,
  9581. "optional": true,
  9582. "type": "number"
  9583. },
  9584. {
  9585. "name": "tiltX",
  9586. "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).",
  9587. "experimental": true,
  9588. "optional": true,
  9589. "type": "integer"
  9590. },
  9591. {
  9592. "name": "tiltY",
  9593. "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).",
  9594. "experimental": true,
  9595. "optional": true,
  9596. "type": "integer"
  9597. },
  9598. {
  9599. "name": "twist",
  9600. "description": "The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).",
  9601. "experimental": true,
  9602. "optional": true,
  9603. "type": "integer"
  9604. },
  9605. {
  9606. "name": "deltaX",
  9607. "description": "X delta in CSS pixels for mouse wheel event (default: 0).",
  9608. "optional": true,
  9609. "type": "number"
  9610. },
  9611. {
  9612. "name": "deltaY",
  9613. "description": "Y delta in CSS pixels for mouse wheel event (default: 0).",
  9614. "optional": true,
  9615. "type": "number"
  9616. },
  9617. {
  9618. "name": "pointerType",
  9619. "description": "Pointer type (default: \"mouse\").",
  9620. "optional": true,
  9621. "type": "string",
  9622. "enum": [
  9623. "mouse",
  9624. "pen"
  9625. ]
  9626. }
  9627. ]
  9628. },
  9629. {
  9630. "name": "dispatchTouchEvent",
  9631. "description": "Dispatches a touch event to the page.",
  9632. "parameters": [
  9633. {
  9634. "name": "type",
  9635. "description": "Type of the touch event. TouchEnd and TouchCancel must not contain any touch points, while\nTouchStart and TouchMove must contains at least one.",
  9636. "type": "string",
  9637. "enum": [
  9638. "touchStart",
  9639. "touchEnd",
  9640. "touchMove",
  9641. "touchCancel"
  9642. ]
  9643. },
  9644. {
  9645. "name": "touchPoints",
  9646. "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.",
  9647. "type": "array",
  9648. "items": {
  9649. "$ref": "TouchPoint"
  9650. }
  9651. },
  9652. {
  9653. "name": "modifiers",
  9654. "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
  9655. "optional": true,
  9656. "type": "integer"
  9657. },
  9658. {
  9659. "name": "timestamp",
  9660. "description": "Time at which the event occurred.",
  9661. "optional": true,
  9662. "$ref": "TimeSinceEpoch"
  9663. }
  9664. ]
  9665. },
  9666. {
  9667. "name": "emulateTouchFromMouseEvent",
  9668. "description": "Emulates touch event from the mouse event parameters.",
  9669. "experimental": true,
  9670. "parameters": [
  9671. {
  9672. "name": "type",
  9673. "description": "Type of the mouse event.",
  9674. "type": "string",
  9675. "enum": [
  9676. "mousePressed",
  9677. "mouseReleased",
  9678. "mouseMoved",
  9679. "mouseWheel"
  9680. ]
  9681. },
  9682. {
  9683. "name": "x",
  9684. "description": "X coordinate of the mouse pointer in DIP.",
  9685. "type": "integer"
  9686. },
  9687. {
  9688. "name": "y",
  9689. "description": "Y coordinate of the mouse pointer in DIP.",
  9690. "type": "integer"
  9691. },
  9692. {
  9693. "name": "button",
  9694. "description": "Mouse button. Only \"none\", \"left\", \"right\" are supported.",
  9695. "$ref": "MouseButton"
  9696. },
  9697. {
  9698. "name": "timestamp",
  9699. "description": "Time at which the event occurred (default: current time).",
  9700. "optional": true,
  9701. "$ref": "TimeSinceEpoch"
  9702. },
  9703. {
  9704. "name": "deltaX",
  9705. "description": "X delta in DIP for mouse wheel event (default: 0).",
  9706. "optional": true,
  9707. "type": "number"
  9708. },
  9709. {
  9710. "name": "deltaY",
  9711. "description": "Y delta in DIP for mouse wheel event (default: 0).",
  9712. "optional": true,
  9713. "type": "number"
  9714. },
  9715. {
  9716. "name": "modifiers",
  9717. "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8\n(default: 0).",
  9718. "optional": true,
  9719. "type": "integer"
  9720. },
  9721. {
  9722. "name": "clickCount",
  9723. "description": "Number of times the mouse button was clicked (default: 0).",
  9724. "optional": true,
  9725. "type": "integer"
  9726. }
  9727. ]
  9728. },
  9729. {
  9730. "name": "setIgnoreInputEvents",
  9731. "description": "Ignores input events (useful while auditing page).",
  9732. "parameters": [
  9733. {
  9734. "name": "ignore",
  9735. "description": "Ignores input events processing when set to true.",
  9736. "type": "boolean"
  9737. }
  9738. ]
  9739. },
  9740. {
  9741. "name": "setInterceptDrags",
  9742. "description": "Prevents default drag and drop behavior and instead emits `Input.dragIntercepted` events.\nDrag and drop behavior can be directly controlled via `Input.dispatchDragEvent`.",
  9743. "experimental": true,
  9744. "parameters": [
  9745. {
  9746. "name": "enabled",
  9747. "type": "boolean"
  9748. }
  9749. ]
  9750. },
  9751. {
  9752. "name": "synthesizePinchGesture",
  9753. "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
  9754. "experimental": true,
  9755. "parameters": [
  9756. {
  9757. "name": "x",
  9758. "description": "X coordinate of the start of the gesture in CSS pixels.",
  9759. "type": "number"
  9760. },
  9761. {
  9762. "name": "y",
  9763. "description": "Y coordinate of the start of the gesture in CSS pixels.",
  9764. "type": "number"
  9765. },
  9766. {
  9767. "name": "scaleFactor",
  9768. "description": "Relative scale factor after zooming (>1.0 zooms in, <1.0 zooms out).",
  9769. "type": "number"
  9770. },
  9771. {
  9772. "name": "relativeSpeed",
  9773. "description": "Relative pointer speed in pixels per second (default: 800).",
  9774. "optional": true,
  9775. "type": "integer"
  9776. },
  9777. {
  9778. "name": "gestureSourceType",
  9779. "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
  9780. "optional": true,
  9781. "$ref": "GestureSourceType"
  9782. }
  9783. ]
  9784. },
  9785. {
  9786. "name": "synthesizeScrollGesture",
  9787. "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.",
  9788. "experimental": true,
  9789. "parameters": [
  9790. {
  9791. "name": "x",
  9792. "description": "X coordinate of the start of the gesture in CSS pixels.",
  9793. "type": "number"
  9794. },
  9795. {
  9796. "name": "y",
  9797. "description": "Y coordinate of the start of the gesture in CSS pixels.",
  9798. "type": "number"
  9799. },
  9800. {
  9801. "name": "xDistance",
  9802. "description": "The distance to scroll along the X axis (positive to scroll left).",
  9803. "optional": true,
  9804. "type": "number"
  9805. },
  9806. {
  9807. "name": "yDistance",
  9808. "description": "The distance to scroll along the Y axis (positive to scroll up).",
  9809. "optional": true,
  9810. "type": "number"
  9811. },
  9812. {
  9813. "name": "xOverscroll",
  9814. "description": "The number of additional pixels to scroll back along the X axis, in addition to the given\ndistance.",
  9815. "optional": true,
  9816. "type": "number"
  9817. },
  9818. {
  9819. "name": "yOverscroll",
  9820. "description": "The number of additional pixels to scroll back along the Y axis, in addition to the given\ndistance.",
  9821. "optional": true,
  9822. "type": "number"
  9823. },
  9824. {
  9825. "name": "preventFling",
  9826. "description": "Prevent fling (default: true).",
  9827. "optional": true,
  9828. "type": "boolean"
  9829. },
  9830. {
  9831. "name": "speed",
  9832. "description": "Swipe speed in pixels per second (default: 800).",
  9833. "optional": true,
  9834. "type": "integer"
  9835. },
  9836. {
  9837. "name": "gestureSourceType",
  9838. "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
  9839. "optional": true,
  9840. "$ref": "GestureSourceType"
  9841. },
  9842. {
  9843. "name": "repeatCount",
  9844. "description": "The number of times to repeat the gesture (default: 0).",
  9845. "optional": true,
  9846. "type": "integer"
  9847. },
  9848. {
  9849. "name": "repeatDelayMs",
  9850. "description": "The number of milliseconds delay between each repeat. (default: 250).",
  9851. "optional": true,
  9852. "type": "integer"
  9853. },
  9854. {
  9855. "name": "interactionMarkerName",
  9856. "description": "The name of the interaction markers to generate, if not empty (default: \"\").",
  9857. "optional": true,
  9858. "type": "string"
  9859. }
  9860. ]
  9861. },
  9862. {
  9863. "name": "synthesizeTapGesture",
  9864. "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
  9865. "experimental": true,
  9866. "parameters": [
  9867. {
  9868. "name": "x",
  9869. "description": "X coordinate of the start of the gesture in CSS pixels.",
  9870. "type": "number"
  9871. },
  9872. {
  9873. "name": "y",
  9874. "description": "Y coordinate of the start of the gesture in CSS pixels.",
  9875. "type": "number"
  9876. },
  9877. {
  9878. "name": "duration",
  9879. "description": "Duration between touchdown and touchup events in ms (default: 50).",
  9880. "optional": true,
  9881. "type": "integer"
  9882. },
  9883. {
  9884. "name": "tapCount",
  9885. "description": "Number of times to perform the tap (e.g. 2 for double tap, default: 1).",
  9886. "optional": true,
  9887. "type": "integer"
  9888. },
  9889. {
  9890. "name": "gestureSourceType",
  9891. "description": "Which type of input events to be generated (default: 'default', which queries the platform\nfor the preferred input type).",
  9892. "optional": true,
  9893. "$ref": "GestureSourceType"
  9894. }
  9895. ]
  9896. }
  9897. ],
  9898. "events": [
  9899. {
  9900. "name": "dragIntercepted",
  9901. "description": "Emitted only when `Input.setInterceptDrags` is enabled. Use this data with `Input.dispatchDragEvent` to\nrestore normal drag and drop behavior.",
  9902. "experimental": true,
  9903. "parameters": [
  9904. {
  9905. "name": "data",
  9906. "$ref": "DragData"
  9907. }
  9908. ]
  9909. }
  9910. ]
  9911. },
  9912. {
  9913. "domain": "Inspector",
  9914. "experimental": true,
  9915. "commands": [
  9916. {
  9917. "name": "disable",
  9918. "description": "Disables inspector domain notifications."
  9919. },
  9920. {
  9921. "name": "enable",
  9922. "description": "Enables inspector domain notifications."
  9923. }
  9924. ],
  9925. "events": [
  9926. {
  9927. "name": "detached",
  9928. "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
  9929. "parameters": [
  9930. {
  9931. "name": "reason",
  9932. "description": "The reason why connection has been terminated.",
  9933. "type": "string"
  9934. }
  9935. ]
  9936. },
  9937. {
  9938. "name": "targetCrashed",
  9939. "description": "Fired when debugging target has crashed"
  9940. },
  9941. {
  9942. "name": "targetReloadedAfterCrash",
  9943. "description": "Fired when debugging target has reloaded after crash"
  9944. }
  9945. ]
  9946. },
  9947. {
  9948. "domain": "LayerTree",
  9949. "experimental": true,
  9950. "dependencies": [
  9951. "DOM"
  9952. ],
  9953. "types": [
  9954. {
  9955. "id": "LayerId",
  9956. "description": "Unique Layer identifier.",
  9957. "type": "string"
  9958. },
  9959. {
  9960. "id": "SnapshotId",
  9961. "description": "Unique snapshot identifier.",
  9962. "type": "string"
  9963. },
  9964. {
  9965. "id": "ScrollRect",
  9966. "description": "Rectangle where scrolling happens on the main thread.",
  9967. "type": "object",
  9968. "properties": [
  9969. {
  9970. "name": "rect",
  9971. "description": "Rectangle itself.",
  9972. "$ref": "DOM.Rect"
  9973. },
  9974. {
  9975. "name": "type",
  9976. "description": "Reason for rectangle to force scrolling on the main thread",
  9977. "type": "string",
  9978. "enum": [
  9979. "RepaintsOnScroll",
  9980. "TouchEventHandler",
  9981. "WheelEventHandler"
  9982. ]
  9983. }
  9984. ]
  9985. },
  9986. {
  9987. "id": "StickyPositionConstraint",
  9988. "description": "Sticky position constraints.",
  9989. "type": "object",
  9990. "properties": [
  9991. {
  9992. "name": "stickyBoxRect",
  9993. "description": "Layout rectangle of the sticky element before being shifted",
  9994. "$ref": "DOM.Rect"
  9995. },
  9996. {
  9997. "name": "containingBlockRect",
  9998. "description": "Layout rectangle of the containing block of the sticky element",
  9999. "$ref": "DOM.Rect"
  10000. },
  10001. {
  10002. "name": "nearestLayerShiftingStickyBox",
  10003. "description": "The nearest sticky layer that shifts the sticky box",
  10004. "optional": true,
  10005. "$ref": "LayerId"
  10006. },
  10007. {
  10008. "name": "nearestLayerShiftingContainingBlock",
  10009. "description": "The nearest sticky layer that shifts the containing block",
  10010. "optional": true,
  10011. "$ref": "LayerId"
  10012. }
  10013. ]
  10014. },
  10015. {
  10016. "id": "PictureTile",
  10017. "description": "Serialized fragment of layer picture along with its offset within the layer.",
  10018. "type": "object",
  10019. "properties": [
  10020. {
  10021. "name": "x",
  10022. "description": "Offset from owning layer left boundary",
  10023. "type": "number"
  10024. },
  10025. {
  10026. "name": "y",
  10027. "description": "Offset from owning layer top boundary",
  10028. "type": "number"
  10029. },
  10030. {
  10031. "name": "picture",
  10032. "description": "Base64-encoded snapshot data. (Encoded as a base64 string when passed over JSON)",
  10033. "type": "string"
  10034. }
  10035. ]
  10036. },
  10037. {
  10038. "id": "Layer",
  10039. "description": "Information about a compositing layer.",
  10040. "type": "object",
  10041. "properties": [
  10042. {
  10043. "name": "layerId",
  10044. "description": "The unique id for this layer.",
  10045. "$ref": "LayerId"
  10046. },
  10047. {
  10048. "name": "parentLayerId",
  10049. "description": "The id of parent (not present for root).",
  10050. "optional": true,
  10051. "$ref": "LayerId"
  10052. },
  10053. {
  10054. "name": "backendNodeId",
  10055. "description": "The backend id for the node associated with this layer.",
  10056. "optional": true,
  10057. "$ref": "DOM.BackendNodeId"
  10058. },
  10059. {
  10060. "name": "offsetX",
  10061. "description": "Offset from parent layer, X coordinate.",
  10062. "type": "number"
  10063. },
  10064. {
  10065. "name": "offsetY",
  10066. "description": "Offset from parent layer, Y coordinate.",
  10067. "type": "number"
  10068. },
  10069. {
  10070. "name": "width",
  10071. "description": "Layer width.",
  10072. "type": "number"
  10073. },
  10074. {
  10075. "name": "height",
  10076. "description": "Layer height.",
  10077. "type": "number"
  10078. },
  10079. {
  10080. "name": "transform",
  10081. "description": "Transformation matrix for layer, default is identity matrix",
  10082. "optional": true,
  10083. "type": "array",
  10084. "items": {
  10085. "type": "number"
  10086. }
  10087. },
  10088. {
  10089. "name": "anchorX",
  10090. "description": "Transform anchor point X, absent if no transform specified",
  10091. "optional": true,
  10092. "type": "number"
  10093. },
  10094. {
  10095. "name": "anchorY",
  10096. "description": "Transform anchor point Y, absent if no transform specified",
  10097. "optional": true,
  10098. "type": "number"
  10099. },
  10100. {
  10101. "name": "anchorZ",
  10102. "description": "Transform anchor point Z, absent if no transform specified",
  10103. "optional": true,
  10104. "type": "number"
  10105. },
  10106. {
  10107. "name": "paintCount",
  10108. "description": "Indicates how many time this layer has painted.",
  10109. "type": "integer"
  10110. },
  10111. {
  10112. "name": "drawsContent",
  10113. "description": "Indicates whether this layer hosts any content, rather than being used for\ntransform/scrolling purposes only.",
  10114. "type": "boolean"
  10115. },
  10116. {
  10117. "name": "invisible",
  10118. "description": "Set if layer is not visible.",
  10119. "optional": true,
  10120. "type": "boolean"
  10121. },
  10122. {
  10123. "name": "scrollRects",
  10124. "description": "Rectangles scrolling on main thread only.",
  10125. "optional": true,
  10126. "type": "array",
  10127. "items": {
  10128. "$ref": "ScrollRect"
  10129. }
  10130. },
  10131. {
  10132. "name": "stickyPositionConstraint",
  10133. "description": "Sticky position constraint information",
  10134. "optional": true,
  10135. "$ref": "StickyPositionConstraint"
  10136. }
  10137. ]
  10138. },
  10139. {
  10140. "id": "PaintProfile",
  10141. "description": "Array of timings, one per paint step.",
  10142. "type": "array",
  10143. "items": {
  10144. "type": "number"
  10145. }
  10146. }
  10147. ],
  10148. "commands": [
  10149. {
  10150. "name": "compositingReasons",
  10151. "description": "Provides the reasons why the given layer was composited.",
  10152. "parameters": [
  10153. {
  10154. "name": "layerId",
  10155. "description": "The id of the layer for which we want to get the reasons it was composited.",
  10156. "$ref": "LayerId"
  10157. }
  10158. ],
  10159. "returns": [
  10160. {
  10161. "name": "compositingReasons",
  10162. "description": "A list of strings specifying reasons for the given layer to become composited.",
  10163. "deprecated": true,
  10164. "type": "array",
  10165. "items": {
  10166. "type": "string"
  10167. }
  10168. },
  10169. {
  10170. "name": "compositingReasonIds",
  10171. "description": "A list of strings specifying reason IDs for the given layer to become composited.",
  10172. "type": "array",
  10173. "items": {
  10174. "type": "string"
  10175. }
  10176. }
  10177. ]
  10178. },
  10179. {
  10180. "name": "disable",
  10181. "description": "Disables compositing tree inspection."
  10182. },
  10183. {
  10184. "name": "enable",
  10185. "description": "Enables compositing tree inspection."
  10186. },
  10187. {
  10188. "name": "loadSnapshot",
  10189. "description": "Returns the snapshot identifier.",
  10190. "parameters": [
  10191. {
  10192. "name": "tiles",
  10193. "description": "An array of tiles composing the snapshot.",
  10194. "type": "array",
  10195. "items": {
  10196. "$ref": "PictureTile"
  10197. }
  10198. }
  10199. ],
  10200. "returns": [
  10201. {
  10202. "name": "snapshotId",
  10203. "description": "The id of the snapshot.",
  10204. "$ref": "SnapshotId"
  10205. }
  10206. ]
  10207. },
  10208. {
  10209. "name": "makeSnapshot",
  10210. "description": "Returns the layer snapshot identifier.",
  10211. "parameters": [
  10212. {
  10213. "name": "layerId",
  10214. "description": "The id of the layer.",
  10215. "$ref": "LayerId"
  10216. }
  10217. ],
  10218. "returns": [
  10219. {
  10220. "name": "snapshotId",
  10221. "description": "The id of the layer snapshot.",
  10222. "$ref": "SnapshotId"
  10223. }
  10224. ]
  10225. },
  10226. {
  10227. "name": "profileSnapshot",
  10228. "parameters": [
  10229. {
  10230. "name": "snapshotId",
  10231. "description": "The id of the layer snapshot.",
  10232. "$ref": "SnapshotId"
  10233. },
  10234. {
  10235. "name": "minRepeatCount",
  10236. "description": "The maximum number of times to replay the snapshot (1, if not specified).",
  10237. "optional": true,
  10238. "type": "integer"
  10239. },
  10240. {
  10241. "name": "minDuration",
  10242. "description": "The minimum duration (in seconds) to replay the snapshot.",
  10243. "optional": true,
  10244. "type": "number"
  10245. },
  10246. {
  10247. "name": "clipRect",
  10248. "description": "The clip rectangle to apply when replaying the snapshot.",
  10249. "optional": true,
  10250. "$ref": "DOM.Rect"
  10251. }
  10252. ],
  10253. "returns": [
  10254. {
  10255. "name": "timings",
  10256. "description": "The array of paint profiles, one per run.",
  10257. "type": "array",
  10258. "items": {
  10259. "$ref": "PaintProfile"
  10260. }
  10261. }
  10262. ]
  10263. },
  10264. {
  10265. "name": "releaseSnapshot",
  10266. "description": "Releases layer snapshot captured by the back-end.",
  10267. "parameters": [
  10268. {
  10269. "name": "snapshotId",
  10270. "description": "The id of the layer snapshot.",
  10271. "$ref": "SnapshotId"
  10272. }
  10273. ]
  10274. },
  10275. {
  10276. "name": "replaySnapshot",
  10277. "description": "Replays the layer snapshot and returns the resulting bitmap.",
  10278. "parameters": [
  10279. {
  10280. "name": "snapshotId",
  10281. "description": "The id of the layer snapshot.",
  10282. "$ref": "SnapshotId"
  10283. },
  10284. {
  10285. "name": "fromStep",
  10286. "description": "The first step to replay from (replay from the very start if not specified).",
  10287. "optional": true,
  10288. "type": "integer"
  10289. },
  10290. {
  10291. "name": "toStep",
  10292. "description": "The last step to replay to (replay till the end if not specified).",
  10293. "optional": true,
  10294. "type": "integer"
  10295. },
  10296. {
  10297. "name": "scale",
  10298. "description": "The scale to apply while replaying (defaults to 1).",
  10299. "optional": true,
  10300. "type": "number"
  10301. }
  10302. ],
  10303. "returns": [
  10304. {
  10305. "name": "dataURL",
  10306. "description": "A data: URL for resulting image.",
  10307. "type": "string"
  10308. }
  10309. ]
  10310. },
  10311. {
  10312. "name": "snapshotCommandLog",
  10313. "description": "Replays the layer snapshot and returns canvas log.",
  10314. "parameters": [
  10315. {
  10316. "name": "snapshotId",
  10317. "description": "The id of the layer snapshot.",
  10318. "$ref": "SnapshotId"
  10319. }
  10320. ],
  10321. "returns": [
  10322. {
  10323. "name": "commandLog",
  10324. "description": "The array of canvas function calls.",
  10325. "type": "array",
  10326. "items": {
  10327. "type": "object"
  10328. }
  10329. }
  10330. ]
  10331. }
  10332. ],
  10333. "events": [
  10334. {
  10335. "name": "layerPainted",
  10336. "parameters": [
  10337. {
  10338. "name": "layerId",
  10339. "description": "The id of the painted layer.",
  10340. "$ref": "LayerId"
  10341. },
  10342. {
  10343. "name": "clip",
  10344. "description": "Clip rectangle.",
  10345. "$ref": "DOM.Rect"
  10346. }
  10347. ]
  10348. },
  10349. {
  10350. "name": "layerTreeDidChange",
  10351. "parameters": [
  10352. {
  10353. "name": "layers",
  10354. "description": "Layer tree, absent if not in the comspositing mode.",
  10355. "optional": true,
  10356. "type": "array",
  10357. "items": {
  10358. "$ref": "Layer"
  10359. }
  10360. }
  10361. ]
  10362. }
  10363. ]
  10364. },
  10365. {
  10366. "domain": "Log",
  10367. "description": "Provides access to log entries.",
  10368. "dependencies": [
  10369. "Runtime",
  10370. "Network"
  10371. ],
  10372. "types": [
  10373. {
  10374. "id": "LogEntry",
  10375. "description": "Log entry.",
  10376. "type": "object",
  10377. "properties": [
  10378. {
  10379. "name": "source",
  10380. "description": "Log entry source.",
  10381. "type": "string",
  10382. "enum": [
  10383. "xml",
  10384. "javascript",
  10385. "network",
  10386. "storage",
  10387. "appcache",
  10388. "rendering",
  10389. "security",
  10390. "deprecation",
  10391. "worker",
  10392. "violation",
  10393. "intervention",
  10394. "recommendation",
  10395. "other"
  10396. ]
  10397. },
  10398. {
  10399. "name": "level",
  10400. "description": "Log entry severity.",
  10401. "type": "string",
  10402. "enum": [
  10403. "verbose",
  10404. "info",
  10405. "warning",
  10406. "error"
  10407. ]
  10408. },
  10409. {
  10410. "name": "text",
  10411. "description": "Logged text.",
  10412. "type": "string"
  10413. },
  10414. {
  10415. "name": "category",
  10416. "optional": true,
  10417. "type": "string",
  10418. "enum": [
  10419. "cors"
  10420. ]
  10421. },
  10422. {
  10423. "name": "timestamp",
  10424. "description": "Timestamp when this entry was added.",
  10425. "$ref": "Runtime.Timestamp"
  10426. },
  10427. {
  10428. "name": "url",
  10429. "description": "URL of the resource if known.",
  10430. "optional": true,
  10431. "type": "string"
  10432. },
  10433. {
  10434. "name": "lineNumber",
  10435. "description": "Line number in the resource.",
  10436. "optional": true,
  10437. "type": "integer"
  10438. },
  10439. {
  10440. "name": "stackTrace",
  10441. "description": "JavaScript stack trace.",
  10442. "optional": true,
  10443. "$ref": "Runtime.StackTrace"
  10444. },
  10445. {
  10446. "name": "networkRequestId",
  10447. "description": "Identifier of the network request associated with this entry.",
  10448. "optional": true,
  10449. "$ref": "Network.RequestId"
  10450. },
  10451. {
  10452. "name": "workerId",
  10453. "description": "Identifier of the worker associated with this entry.",
  10454. "optional": true,
  10455. "type": "string"
  10456. },
  10457. {
  10458. "name": "args",
  10459. "description": "Call arguments.",
  10460. "optional": true,
  10461. "type": "array",
  10462. "items": {
  10463. "$ref": "Runtime.RemoteObject"
  10464. }
  10465. }
  10466. ]
  10467. },
  10468. {
  10469. "id": "ViolationSetting",
  10470. "description": "Violation configuration setting.",
  10471. "type": "object",
  10472. "properties": [
  10473. {
  10474. "name": "name",
  10475. "description": "Violation type.",
  10476. "type": "string",
  10477. "enum": [
  10478. "longTask",
  10479. "longLayout",
  10480. "blockedEvent",
  10481. "blockedParser",
  10482. "discouragedAPIUse",
  10483. "handler",
  10484. "recurringHandler"
  10485. ]
  10486. },
  10487. {
  10488. "name": "threshold",
  10489. "description": "Time threshold to trigger upon.",
  10490. "type": "number"
  10491. }
  10492. ]
  10493. }
  10494. ],
  10495. "commands": [
  10496. {
  10497. "name": "clear",
  10498. "description": "Clears the log."
  10499. },
  10500. {
  10501. "name": "disable",
  10502. "description": "Disables log domain, prevents further log entries from being reported to the client."
  10503. },
  10504. {
  10505. "name": "enable",
  10506. "description": "Enables log domain, sends the entries collected so far to the client by means of the\n`entryAdded` notification."
  10507. },
  10508. {
  10509. "name": "startViolationsReport",
  10510. "description": "start violation reporting.",
  10511. "parameters": [
  10512. {
  10513. "name": "config",
  10514. "description": "Configuration for violations.",
  10515. "type": "array",
  10516. "items": {
  10517. "$ref": "ViolationSetting"
  10518. }
  10519. }
  10520. ]
  10521. },
  10522. {
  10523. "name": "stopViolationsReport",
  10524. "description": "Stop violation reporting."
  10525. }
  10526. ],
  10527. "events": [
  10528. {
  10529. "name": "entryAdded",
  10530. "description": "Issued when new message was logged.",
  10531. "parameters": [
  10532. {
  10533. "name": "entry",
  10534. "description": "The entry.",
  10535. "$ref": "LogEntry"
  10536. }
  10537. ]
  10538. }
  10539. ]
  10540. },
  10541. {
  10542. "domain": "Memory",
  10543. "experimental": true,
  10544. "types": [
  10545. {
  10546. "id": "PressureLevel",
  10547. "description": "Memory pressure level.",
  10548. "type": "string",
  10549. "enum": [
  10550. "moderate",
  10551. "critical"
  10552. ]
  10553. },
  10554. {
  10555. "id": "SamplingProfileNode",
  10556. "description": "Heap profile sample.",
  10557. "type": "object",
  10558. "properties": [
  10559. {
  10560. "name": "size",
  10561. "description": "Size of the sampled allocation.",
  10562. "type": "number"
  10563. },
  10564. {
  10565. "name": "total",
  10566. "description": "Total bytes attributed to this sample.",
  10567. "type": "number"
  10568. },
  10569. {
  10570. "name": "stack",
  10571. "description": "Execution stack at the point of allocation.",
  10572. "type": "array",
  10573. "items": {
  10574. "type": "string"
  10575. }
  10576. }
  10577. ]
  10578. },
  10579. {
  10580. "id": "SamplingProfile",
  10581. "description": "Array of heap profile samples.",
  10582. "type": "object",
  10583. "properties": [
  10584. {
  10585. "name": "samples",
  10586. "type": "array",
  10587. "items": {
  10588. "$ref": "SamplingProfileNode"
  10589. }
  10590. },
  10591. {
  10592. "name": "modules",
  10593. "type": "array",
  10594. "items": {
  10595. "$ref": "Module"
  10596. }
  10597. }
  10598. ]
  10599. },
  10600. {
  10601. "id": "Module",
  10602. "description": "Executable module information",
  10603. "type": "object",
  10604. "properties": [
  10605. {
  10606. "name": "name",
  10607. "description": "Name of the module.",
  10608. "type": "string"
  10609. },
  10610. {
  10611. "name": "uuid",
  10612. "description": "UUID of the module.",
  10613. "type": "string"
  10614. },
  10615. {
  10616. "name": "baseAddress",
  10617. "description": "Base address where the module is loaded into memory. Encoded as a decimal\nor hexadecimal (0x prefixed) string.",
  10618. "type": "string"
  10619. },
  10620. {
  10621. "name": "size",
  10622. "description": "Size of the module in bytes.",
  10623. "type": "number"
  10624. }
  10625. ]
  10626. }
  10627. ],
  10628. "commands": [
  10629. {
  10630. "name": "getDOMCounters",
  10631. "returns": [
  10632. {
  10633. "name": "documents",
  10634. "type": "integer"
  10635. },
  10636. {
  10637. "name": "nodes",
  10638. "type": "integer"
  10639. },
  10640. {
  10641. "name": "jsEventListeners",
  10642. "type": "integer"
  10643. }
  10644. ]
  10645. },
  10646. {
  10647. "name": "prepareForLeakDetection"
  10648. },
  10649. {
  10650. "name": "forciblyPurgeJavaScriptMemory",
  10651. "description": "Simulate OomIntervention by purging V8 memory."
  10652. },
  10653. {
  10654. "name": "setPressureNotificationsSuppressed",
  10655. "description": "Enable/disable suppressing memory pressure notifications in all processes.",
  10656. "parameters": [
  10657. {
  10658. "name": "suppressed",
  10659. "description": "If true, memory pressure notifications will be suppressed.",
  10660. "type": "boolean"
  10661. }
  10662. ]
  10663. },
  10664. {
  10665. "name": "simulatePressureNotification",
  10666. "description": "Simulate a memory pressure notification in all processes.",
  10667. "parameters": [
  10668. {
  10669. "name": "level",
  10670. "description": "Memory pressure level of the notification.",
  10671. "$ref": "PressureLevel"
  10672. }
  10673. ]
  10674. },
  10675. {
  10676. "name": "startSampling",
  10677. "description": "Start collecting native memory profile.",
  10678. "parameters": [
  10679. {
  10680. "name": "samplingInterval",
  10681. "description": "Average number of bytes between samples.",
  10682. "optional": true,
  10683. "type": "integer"
  10684. },
  10685. {
  10686. "name": "suppressRandomness",
  10687. "description": "Do not randomize intervals between samples.",
  10688. "optional": true,
  10689. "type": "boolean"
  10690. }
  10691. ]
  10692. },
  10693. {
  10694. "name": "stopSampling",
  10695. "description": "Stop collecting native memory profile."
  10696. },
  10697. {
  10698. "name": "getAllTimeSamplingProfile",
  10699. "description": "Retrieve native memory allocations profile\ncollected since renderer process startup.",
  10700. "returns": [
  10701. {
  10702. "name": "profile",
  10703. "$ref": "SamplingProfile"
  10704. }
  10705. ]
  10706. },
  10707. {
  10708. "name": "getBrowserSamplingProfile",
  10709. "description": "Retrieve native memory allocations profile\ncollected since browser process startup.",
  10710. "returns": [
  10711. {
  10712. "name": "profile",
  10713. "$ref": "SamplingProfile"
  10714. }
  10715. ]
  10716. },
  10717. {
  10718. "name": "getSamplingProfile",
  10719. "description": "Retrieve native memory allocations profile collected since last\n`startSampling` call.",
  10720. "returns": [
  10721. {
  10722. "name": "profile",
  10723. "$ref": "SamplingProfile"
  10724. }
  10725. ]
  10726. }
  10727. ]
  10728. },
  10729. {
  10730. "domain": "Network",
  10731. "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.",
  10732. "dependencies": [
  10733. "Debugger",
  10734. "Runtime",
  10735. "Security"
  10736. ],
  10737. "types": [
  10738. {
  10739. "id": "ResourceType",
  10740. "description": "Resource type as it was perceived by the rendering engine.",
  10741. "type": "string",
  10742. "enum": [
  10743. "Document",
  10744. "Stylesheet",
  10745. "Image",
  10746. "Media",
  10747. "Font",
  10748. "Script",
  10749. "TextTrack",
  10750. "XHR",
  10751. "Fetch",
  10752. "Prefetch",
  10753. "EventSource",
  10754. "WebSocket",
  10755. "Manifest",
  10756. "SignedExchange",
  10757. "Ping",
  10758. "CSPViolationReport",
  10759. "Preflight",
  10760. "Other"
  10761. ]
  10762. },
  10763. {
  10764. "id": "LoaderId",
  10765. "description": "Unique loader identifier.",
  10766. "type": "string"
  10767. },
  10768. {
  10769. "id": "RequestId",
  10770. "description": "Unique request identifier.",
  10771. "type": "string"
  10772. },
  10773. {
  10774. "id": "InterceptionId",
  10775. "description": "Unique intercepted request identifier.",
  10776. "type": "string"
  10777. },
  10778. {
  10779. "id": "ErrorReason",
  10780. "description": "Network level fetch failure reason.",
  10781. "type": "string",
  10782. "enum": [
  10783. "Failed",
  10784. "Aborted",
  10785. "TimedOut",
  10786. "AccessDenied",
  10787. "ConnectionClosed",
  10788. "ConnectionReset",
  10789. "ConnectionRefused",
  10790. "ConnectionAborted",
  10791. "ConnectionFailed",
  10792. "NameNotResolved",
  10793. "InternetDisconnected",
  10794. "AddressUnreachable",
  10795. "BlockedByClient",
  10796. "BlockedByResponse"
  10797. ]
  10798. },
  10799. {
  10800. "id": "TimeSinceEpoch",
  10801. "description": "UTC time in seconds, counted from January 1, 1970.",
  10802. "type": "number"
  10803. },
  10804. {
  10805. "id": "MonotonicTime",
  10806. "description": "Monotonically increasing time in seconds since an arbitrary point in the past.",
  10807. "type": "number"
  10808. },
  10809. {
  10810. "id": "Headers",
  10811. "description": "Request / response headers as keys / values of JSON object.",
  10812. "type": "object"
  10813. },
  10814. {
  10815. "id": "ConnectionType",
  10816. "description": "The underlying connection technology that the browser is supposedly using.",
  10817. "type": "string",
  10818. "enum": [
  10819. "none",
  10820. "cellular2g",
  10821. "cellular3g",
  10822. "cellular4g",
  10823. "bluetooth",
  10824. "ethernet",
  10825. "wifi",
  10826. "wimax",
  10827. "other"
  10828. ]
  10829. },
  10830. {
  10831. "id": "CookieSameSite",
  10832. "description": "Represents the cookie's 'SameSite' status:\nhttps://tools.ietf.org/html/draft-west-first-party-cookies",
  10833. "type": "string",
  10834. "enum": [
  10835. "Strict",
  10836. "Lax",
  10837. "None"
  10838. ]
  10839. },
  10840. {
  10841. "id": "CookiePriority",
  10842. "description": "Represents the cookie's 'Priority' status:\nhttps://tools.ietf.org/html/draft-west-cookie-priority-00",
  10843. "experimental": true,
  10844. "type": "string",
  10845. "enum": [
  10846. "Low",
  10847. "Medium",
  10848. "High"
  10849. ]
  10850. },
  10851. {
  10852. "id": "CookieSourceScheme",
  10853. "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.",
  10854. "experimental": true,
  10855. "type": "string",
  10856. "enum": [
  10857. "Unset",
  10858. "NonSecure",
  10859. "Secure"
  10860. ]
  10861. },
  10862. {
  10863. "id": "ResourceTiming",
  10864. "description": "Timing information for the request.",
  10865. "type": "object",
  10866. "properties": [
  10867. {
  10868. "name": "requestTime",
  10869. "description": "Timing's requestTime is a baseline in seconds, while the other numbers are ticks in\nmilliseconds relatively to this requestTime.",
  10870. "type": "number"
  10871. },
  10872. {
  10873. "name": "proxyStart",
  10874. "description": "Started resolving proxy.",
  10875. "type": "number"
  10876. },
  10877. {
  10878. "name": "proxyEnd",
  10879. "description": "Finished resolving proxy.",
  10880. "type": "number"
  10881. },
  10882. {
  10883. "name": "dnsStart",
  10884. "description": "Started DNS address resolve.",
  10885. "type": "number"
  10886. },
  10887. {
  10888. "name": "dnsEnd",
  10889. "description": "Finished DNS address resolve.",
  10890. "type": "number"
  10891. },
  10892. {
  10893. "name": "connectStart",
  10894. "description": "Started connecting to the remote host.",
  10895. "type": "number"
  10896. },
  10897. {
  10898. "name": "connectEnd",
  10899. "description": "Connected to the remote host.",
  10900. "type": "number"
  10901. },
  10902. {
  10903. "name": "sslStart",
  10904. "description": "Started SSL handshake.",
  10905. "type": "number"
  10906. },
  10907. {
  10908. "name": "sslEnd",
  10909. "description": "Finished SSL handshake.",
  10910. "type": "number"
  10911. },
  10912. {
  10913. "name": "workerStart",
  10914. "description": "Started running ServiceWorker.",
  10915. "experimental": true,
  10916. "type": "number"
  10917. },
  10918. {
  10919. "name": "workerReady",
  10920. "description": "Finished Starting ServiceWorker.",
  10921. "experimental": true,
  10922. "type": "number"
  10923. },
  10924. {
  10925. "name": "workerFetchStart",
  10926. "description": "Started fetch event.",
  10927. "experimental": true,
  10928. "type": "number"
  10929. },
  10930. {
  10931. "name": "workerRespondWithSettled",
  10932. "description": "Settled fetch event respondWith promise.",
  10933. "experimental": true,
  10934. "type": "number"
  10935. },
  10936. {
  10937. "name": "sendStart",
  10938. "description": "Started sending request.",
  10939. "type": "number"
  10940. },
  10941. {
  10942. "name": "sendEnd",
  10943. "description": "Finished sending request.",
  10944. "type": "number"
  10945. },
  10946. {
  10947. "name": "pushStart",
  10948. "description": "Time the server started pushing request.",
  10949. "experimental": true,
  10950. "type": "number"
  10951. },
  10952. {
  10953. "name": "pushEnd",
  10954. "description": "Time the server finished pushing request.",
  10955. "experimental": true,
  10956. "type": "number"
  10957. },
  10958. {
  10959. "name": "receiveHeadersEnd",
  10960. "description": "Finished receiving response headers.",
  10961. "type": "number"
  10962. }
  10963. ]
  10964. },
  10965. {
  10966. "id": "ResourcePriority",
  10967. "description": "Loading priority of a resource request.",
  10968. "type": "string",
  10969. "enum": [
  10970. "VeryLow",
  10971. "Low",
  10972. "Medium",
  10973. "High",
  10974. "VeryHigh"
  10975. ]
  10976. },
  10977. {
  10978. "id": "PostDataEntry",
  10979. "description": "Post data entry for HTTP request",
  10980. "type": "object",
  10981. "properties": [
  10982. {
  10983. "name": "bytes",
  10984. "optional": true,
  10985. "type": "string"
  10986. }
  10987. ]
  10988. },
  10989. {
  10990. "id": "Request",
  10991. "description": "HTTP request data.",
  10992. "type": "object",
  10993. "properties": [
  10994. {
  10995. "name": "url",
  10996. "description": "Request URL (without fragment).",
  10997. "type": "string"
  10998. },
  10999. {
  11000. "name": "urlFragment",
  11001. "description": "Fragment of the requested URL starting with hash, if present.",
  11002. "optional": true,
  11003. "type": "string"
  11004. },
  11005. {
  11006. "name": "method",
  11007. "description": "HTTP request method.",
  11008. "type": "string"
  11009. },
  11010. {
  11011. "name": "headers",
  11012. "description": "HTTP request headers.",
  11013. "$ref": "Headers"
  11014. },
  11015. {
  11016. "name": "postData",
  11017. "description": "HTTP POST request data.",
  11018. "optional": true,
  11019. "type": "string"
  11020. },
  11021. {
  11022. "name": "hasPostData",
  11023. "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.",
  11024. "optional": true,
  11025. "type": "boolean"
  11026. },
  11027. {
  11028. "name": "postDataEntries",
  11029. "description": "Request body elements. This will be converted from base64 to binary",
  11030. "experimental": true,
  11031. "optional": true,
  11032. "type": "array",
  11033. "items": {
  11034. "$ref": "PostDataEntry"
  11035. }
  11036. },
  11037. {
  11038. "name": "mixedContentType",
  11039. "description": "The mixed content type of the request.",
  11040. "optional": true,
  11041. "$ref": "Security.MixedContentType"
  11042. },
  11043. {
  11044. "name": "initialPriority",
  11045. "description": "Priority of the resource request at the time request is sent.",
  11046. "$ref": "ResourcePriority"
  11047. },
  11048. {
  11049. "name": "referrerPolicy",
  11050. "description": "The referrer policy of the request, as defined in https://www.w3.org/TR/referrer-policy/",
  11051. "type": "string",
  11052. "enum": [
  11053. "unsafe-url",
  11054. "no-referrer-when-downgrade",
  11055. "no-referrer",
  11056. "origin",
  11057. "origin-when-cross-origin",
  11058. "same-origin",
  11059. "strict-origin",
  11060. "strict-origin-when-cross-origin"
  11061. ]
  11062. },
  11063. {
  11064. "name": "isLinkPreload",
  11065. "description": "Whether is loaded via link preload.",
  11066. "optional": true,
  11067. "type": "boolean"
  11068. },
  11069. {
  11070. "name": "trustTokenParams",
  11071. "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.",
  11072. "experimental": true,
  11073. "optional": true,
  11074. "$ref": "TrustTokenParams"
  11075. },
  11076. {
  11077. "name": "isSameSite",
  11078. "description": "True if this resource request is considered to be the 'same site' as the\nrequest correspondinfg to the main frame.",
  11079. "experimental": true,
  11080. "optional": true,
  11081. "type": "boolean"
  11082. }
  11083. ]
  11084. },
  11085. {
  11086. "id": "SignedCertificateTimestamp",
  11087. "description": "Details of a signed certificate timestamp (SCT).",
  11088. "type": "object",
  11089. "properties": [
  11090. {
  11091. "name": "status",
  11092. "description": "Validation status.",
  11093. "type": "string"
  11094. },
  11095. {
  11096. "name": "origin",
  11097. "description": "Origin.",
  11098. "type": "string"
  11099. },
  11100. {
  11101. "name": "logDescription",
  11102. "description": "Log name / description.",
  11103. "type": "string"
  11104. },
  11105. {
  11106. "name": "logId",
  11107. "description": "Log ID.",
  11108. "type": "string"
  11109. },
  11110. {
  11111. "name": "timestamp",
  11112. "description": "Issuance date. Unlike TimeSinceEpoch, this contains the number of\nmilliseconds since January 1, 1970, UTC, not the number of seconds.",
  11113. "type": "number"
  11114. },
  11115. {
  11116. "name": "hashAlgorithm",
  11117. "description": "Hash algorithm.",
  11118. "type": "string"
  11119. },
  11120. {
  11121. "name": "signatureAlgorithm",
  11122. "description": "Signature algorithm.",
  11123. "type": "string"
  11124. },
  11125. {
  11126. "name": "signatureData",
  11127. "description": "Signature data.",
  11128. "type": "string"
  11129. }
  11130. ]
  11131. },
  11132. {
  11133. "id": "SecurityDetails",
  11134. "description": "Security details about a request.",
  11135. "type": "object",
  11136. "properties": [
  11137. {
  11138. "name": "protocol",
  11139. "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\").",
  11140. "type": "string"
  11141. },
  11142. {
  11143. "name": "keyExchange",
  11144. "description": "Key Exchange used by the connection, or the empty string if not applicable.",
  11145. "type": "string"
  11146. },
  11147. {
  11148. "name": "keyExchangeGroup",
  11149. "description": "(EC)DH group used by the connection, if applicable.",
  11150. "optional": true,
  11151. "type": "string"
  11152. },
  11153. {
  11154. "name": "cipher",
  11155. "description": "Cipher name.",
  11156. "type": "string"
  11157. },
  11158. {
  11159. "name": "mac",
  11160. "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs.",
  11161. "optional": true,
  11162. "type": "string"
  11163. },
  11164. {
  11165. "name": "certificateId",
  11166. "description": "Certificate ID value.",
  11167. "$ref": "Security.CertificateId"
  11168. },
  11169. {
  11170. "name": "subjectName",
  11171. "description": "Certificate subject name.",
  11172. "type": "string"
  11173. },
  11174. {
  11175. "name": "sanList",
  11176. "description": "Subject Alternative Name (SAN) DNS names and IP addresses.",
  11177. "type": "array",
  11178. "items": {
  11179. "type": "string"
  11180. }
  11181. },
  11182. {
  11183. "name": "issuer",
  11184. "description": "Name of the issuing CA.",
  11185. "type": "string"
  11186. },
  11187. {
  11188. "name": "validFrom",
  11189. "description": "Certificate valid from date.",
  11190. "$ref": "TimeSinceEpoch"
  11191. },
  11192. {
  11193. "name": "validTo",
  11194. "description": "Certificate valid to (expiration) date",
  11195. "$ref": "TimeSinceEpoch"
  11196. },
  11197. {
  11198. "name": "signedCertificateTimestampList",
  11199. "description": "List of signed certificate timestamps (SCTs).",
  11200. "type": "array",
  11201. "items": {
  11202. "$ref": "SignedCertificateTimestamp"
  11203. }
  11204. },
  11205. {
  11206. "name": "certificateTransparencyCompliance",
  11207. "description": "Whether the request complied with Certificate Transparency policy",
  11208. "$ref": "CertificateTransparencyCompliance"
  11209. },
  11210. {
  11211. "name": "serverSignatureAlgorithm",
  11212. "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.",
  11213. "optional": true,
  11214. "type": "integer"
  11215. },
  11216. {
  11217. "name": "encryptedClientHello",
  11218. "description": "Whether the connection used Encrypted ClientHello",
  11219. "type": "boolean"
  11220. }
  11221. ]
  11222. },
  11223. {
  11224. "id": "CertificateTransparencyCompliance",
  11225. "description": "Whether the request complied with Certificate Transparency policy.",
  11226. "type": "string",
  11227. "enum": [
  11228. "unknown",
  11229. "not-compliant",
  11230. "compliant"
  11231. ]
  11232. },
  11233. {
  11234. "id": "BlockedReason",
  11235. "description": "The reason why request was blocked.",
  11236. "type": "string",
  11237. "enum": [
  11238. "other",
  11239. "csp",
  11240. "mixed-content",
  11241. "origin",
  11242. "inspector",
  11243. "subresource-filter",
  11244. "content-type",
  11245. "coep-frame-resource-needs-coep-header",
  11246. "coop-sandboxed-iframe-cannot-navigate-to-coop-page",
  11247. "corp-not-same-origin",
  11248. "corp-not-same-origin-after-defaulted-to-same-origin-by-coep",
  11249. "corp-not-same-site"
  11250. ]
  11251. },
  11252. {
  11253. "id": "CorsError",
  11254. "description": "The reason why request was blocked.",
  11255. "type": "string",
  11256. "enum": [
  11257. "DisallowedByMode",
  11258. "InvalidResponse",
  11259. "WildcardOriginNotAllowed",
  11260. "MissingAllowOriginHeader",
  11261. "MultipleAllowOriginValues",
  11262. "InvalidAllowOriginValue",
  11263. "AllowOriginMismatch",
  11264. "InvalidAllowCredentials",
  11265. "CorsDisabledScheme",
  11266. "PreflightInvalidStatus",
  11267. "PreflightDisallowedRedirect",
  11268. "PreflightWildcardOriginNotAllowed",
  11269. "PreflightMissingAllowOriginHeader",
  11270. "PreflightMultipleAllowOriginValues",
  11271. "PreflightInvalidAllowOriginValue",
  11272. "PreflightAllowOriginMismatch",
  11273. "PreflightInvalidAllowCredentials",
  11274. "PreflightMissingAllowExternal",
  11275. "PreflightInvalidAllowExternal",
  11276. "PreflightMissingAllowPrivateNetwork",
  11277. "PreflightInvalidAllowPrivateNetwork",
  11278. "InvalidAllowMethodsPreflightResponse",
  11279. "InvalidAllowHeadersPreflightResponse",
  11280. "MethodDisallowedByPreflightResponse",
  11281. "HeaderDisallowedByPreflightResponse",
  11282. "RedirectContainsCredentials",
  11283. "InsecurePrivateNetwork",
  11284. "InvalidPrivateNetworkAccess",
  11285. "UnexpectedPrivateNetworkAccess",
  11286. "NoCorsRedirectModeNotFollow"
  11287. ]
  11288. },
  11289. {
  11290. "id": "CorsErrorStatus",
  11291. "type": "object",
  11292. "properties": [
  11293. {
  11294. "name": "corsError",
  11295. "$ref": "CorsError"
  11296. },
  11297. {
  11298. "name": "failedParameter",
  11299. "type": "string"
  11300. }
  11301. ]
  11302. },
  11303. {
  11304. "id": "ServiceWorkerResponseSource",
  11305. "description": "Source of serviceworker response.",
  11306. "type": "string",
  11307. "enum": [
  11308. "cache-storage",
  11309. "http-cache",
  11310. "fallback-code",
  11311. "network"
  11312. ]
  11313. },
  11314. {
  11315. "id": "TrustTokenParams",
  11316. "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.",
  11317. "experimental": true,
  11318. "type": "object",
  11319. "properties": [
  11320. {
  11321. "name": "type",
  11322. "$ref": "TrustTokenOperationType"
  11323. },
  11324. {
  11325. "name": "refreshPolicy",
  11326. "description": "Only set for \"token-redemption\" type and determine whether\nto request a fresh SRR or use a still valid cached SRR.",
  11327. "type": "string",
  11328. "enum": [
  11329. "UseCached",
  11330. "Refresh"
  11331. ]
  11332. },
  11333. {
  11334. "name": "issuers",
  11335. "description": "Origins of issuers from whom to request tokens or redemption\nrecords.",
  11336. "optional": true,
  11337. "type": "array",
  11338. "items": {
  11339. "type": "string"
  11340. }
  11341. }
  11342. ]
  11343. },
  11344. {
  11345. "id": "TrustTokenOperationType",
  11346. "experimental": true,
  11347. "type": "string",
  11348. "enum": [
  11349. "Issuance",
  11350. "Redemption",
  11351. "Signing"
  11352. ]
  11353. },
  11354. {
  11355. "id": "Response",
  11356. "description": "HTTP response data.",
  11357. "type": "object",
  11358. "properties": [
  11359. {
  11360. "name": "url",
  11361. "description": "Response URL. This URL can be different from CachedResource.url in case of redirect.",
  11362. "type": "string"
  11363. },
  11364. {
  11365. "name": "status",
  11366. "description": "HTTP response status code.",
  11367. "type": "integer"
  11368. },
  11369. {
  11370. "name": "statusText",
  11371. "description": "HTTP response status text.",
  11372. "type": "string"
  11373. },
  11374. {
  11375. "name": "headers",
  11376. "description": "HTTP response headers.",
  11377. "$ref": "Headers"
  11378. },
  11379. {
  11380. "name": "headersText",
  11381. "description": "HTTP response headers text. This has been replaced by the headers in Network.responseReceivedExtraInfo.",
  11382. "deprecated": true,
  11383. "optional": true,
  11384. "type": "string"
  11385. },
  11386. {
  11387. "name": "mimeType",
  11388. "description": "Resource mimeType as determined by the browser.",
  11389. "type": "string"
  11390. },
  11391. {
  11392. "name": "requestHeaders",
  11393. "description": "Refined HTTP request headers that were actually transmitted over the network.",
  11394. "optional": true,
  11395. "$ref": "Headers"
  11396. },
  11397. {
  11398. "name": "requestHeadersText",
  11399. "description": "HTTP request headers text. This has been replaced by the headers in Network.requestWillBeSentExtraInfo.",
  11400. "deprecated": true,
  11401. "optional": true,
  11402. "type": "string"
  11403. },
  11404. {
  11405. "name": "connectionReused",
  11406. "description": "Specifies whether physical connection was actually reused for this request.",
  11407. "type": "boolean"
  11408. },
  11409. {
  11410. "name": "connectionId",
  11411. "description": "Physical connection id that was actually used for this request.",
  11412. "type": "number"
  11413. },
  11414. {
  11415. "name": "remoteIPAddress",
  11416. "description": "Remote IP address.",
  11417. "optional": true,
  11418. "type": "string"
  11419. },
  11420. {
  11421. "name": "remotePort",
  11422. "description": "Remote port.",
  11423. "optional": true,
  11424. "type": "integer"
  11425. },
  11426. {
  11427. "name": "fromDiskCache",
  11428. "description": "Specifies that the request was served from the disk cache.",
  11429. "optional": true,
  11430. "type": "boolean"
  11431. },
  11432. {
  11433. "name": "fromServiceWorker",
  11434. "description": "Specifies that the request was served from the ServiceWorker.",
  11435. "optional": true,
  11436. "type": "boolean"
  11437. },
  11438. {
  11439. "name": "fromPrefetchCache",
  11440. "description": "Specifies that the request was served from the prefetch cache.",
  11441. "optional": true,
  11442. "type": "boolean"
  11443. },
  11444. {
  11445. "name": "encodedDataLength",
  11446. "description": "Total number of bytes received for this request so far.",
  11447. "type": "number"
  11448. },
  11449. {
  11450. "name": "timing",
  11451. "description": "Timing information for the given request.",
  11452. "optional": true,
  11453. "$ref": "ResourceTiming"
  11454. },
  11455. {
  11456. "name": "serviceWorkerResponseSource",
  11457. "description": "Response source of response from ServiceWorker.",
  11458. "optional": true,
  11459. "$ref": "ServiceWorkerResponseSource"
  11460. },
  11461. {
  11462. "name": "responseTime",
  11463. "description": "The time at which the returned response was generated.",
  11464. "optional": true,
  11465. "$ref": "TimeSinceEpoch"
  11466. },
  11467. {
  11468. "name": "cacheStorageCacheName",
  11469. "description": "Cache Storage Cache Name.",
  11470. "optional": true,
  11471. "type": "string"
  11472. },
  11473. {
  11474. "name": "protocol",
  11475. "description": "Protocol used to fetch this request.",
  11476. "optional": true,
  11477. "type": "string"
  11478. },
  11479. {
  11480. "name": "securityState",
  11481. "description": "Security state of the request resource.",
  11482. "$ref": "Security.SecurityState"
  11483. },
  11484. {
  11485. "name": "securityDetails",
  11486. "description": "Security details for the request.",
  11487. "optional": true,
  11488. "$ref": "SecurityDetails"
  11489. }
  11490. ]
  11491. },
  11492. {
  11493. "id": "WebSocketRequest",
  11494. "description": "WebSocket request data.",
  11495. "type": "object",
  11496. "properties": [
  11497. {
  11498. "name": "headers",
  11499. "description": "HTTP request headers.",
  11500. "$ref": "Headers"
  11501. }
  11502. ]
  11503. },
  11504. {
  11505. "id": "WebSocketResponse",
  11506. "description": "WebSocket response data.",
  11507. "type": "object",
  11508. "properties": [
  11509. {
  11510. "name": "status",
  11511. "description": "HTTP response status code.",
  11512. "type": "integer"
  11513. },
  11514. {
  11515. "name": "statusText",
  11516. "description": "HTTP response status text.",
  11517. "type": "string"
  11518. },
  11519. {
  11520. "name": "headers",
  11521. "description": "HTTP response headers.",
  11522. "$ref": "Headers"
  11523. },
  11524. {
  11525. "name": "headersText",
  11526. "description": "HTTP response headers text.",
  11527. "optional": true,
  11528. "type": "string"
  11529. },
  11530. {
  11531. "name": "requestHeaders",
  11532. "description": "HTTP request headers.",
  11533. "optional": true,
  11534. "$ref": "Headers"
  11535. },
  11536. {
  11537. "name": "requestHeadersText",
  11538. "description": "HTTP request headers text.",
  11539. "optional": true,
  11540. "type": "string"
  11541. }
  11542. ]
  11543. },
  11544. {
  11545. "id": "WebSocketFrame",
  11546. "description": "WebSocket message data. This represents an entire WebSocket message, not just a fragmented frame as the name suggests.",
  11547. "type": "object",
  11548. "properties": [
  11549. {
  11550. "name": "opcode",
  11551. "description": "WebSocket message opcode.",
  11552. "type": "number"
  11553. },
  11554. {
  11555. "name": "mask",
  11556. "description": "WebSocket message mask.",
  11557. "type": "boolean"
  11558. },
  11559. {
  11560. "name": "payloadData",
  11561. "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.",
  11562. "type": "string"
  11563. }
  11564. ]
  11565. },
  11566. {
  11567. "id": "CachedResource",
  11568. "description": "Information about the cached resource.",
  11569. "type": "object",
  11570. "properties": [
  11571. {
  11572. "name": "url",
  11573. "description": "Resource URL. This is the url of the original network request.",
  11574. "type": "string"
  11575. },
  11576. {
  11577. "name": "type",
  11578. "description": "Type of this resource.",
  11579. "$ref": "ResourceType"
  11580. },
  11581. {
  11582. "name": "response",
  11583. "description": "Cached response data.",
  11584. "optional": true,
  11585. "$ref": "Response"
  11586. },
  11587. {
  11588. "name": "bodySize",
  11589. "description": "Cached response body size.",
  11590. "type": "number"
  11591. }
  11592. ]
  11593. },
  11594. {
  11595. "id": "Initiator",
  11596. "description": "Information about the request initiator.",
  11597. "type": "object",
  11598. "properties": [
  11599. {
  11600. "name": "type",
  11601. "description": "Type of this initiator.",
  11602. "type": "string",
  11603. "enum": [
  11604. "parser",
  11605. "script",
  11606. "preload",
  11607. "SignedExchange",
  11608. "preflight",
  11609. "other"
  11610. ]
  11611. },
  11612. {
  11613. "name": "stack",
  11614. "description": "Initiator JavaScript stack trace, set for Script only.",
  11615. "optional": true,
  11616. "$ref": "Runtime.StackTrace"
  11617. },
  11618. {
  11619. "name": "url",
  11620. "description": "Initiator URL, set for Parser type or for Script type (when script is importing module) or for SignedExchange type.",
  11621. "optional": true,
  11622. "type": "string"
  11623. },
  11624. {
  11625. "name": "lineNumber",
  11626. "description": "Initiator line number, set for Parser type or for Script type (when script is importing\nmodule) (0-based).",
  11627. "optional": true,
  11628. "type": "number"
  11629. },
  11630. {
  11631. "name": "columnNumber",
  11632. "description": "Initiator column number, set for Parser type or for Script type (when script is importing\nmodule) (0-based).",
  11633. "optional": true,
  11634. "type": "number"
  11635. },
  11636. {
  11637. "name": "requestId",
  11638. "description": "Set if another request triggered this request (e.g. preflight).",
  11639. "optional": true,
  11640. "$ref": "RequestId"
  11641. }
  11642. ]
  11643. },
  11644. {
  11645. "id": "Cookie",
  11646. "description": "Cookie object",
  11647. "type": "object",
  11648. "properties": [
  11649. {
  11650. "name": "name",
  11651. "description": "Cookie name.",
  11652. "type": "string"
  11653. },
  11654. {
  11655. "name": "value",
  11656. "description": "Cookie value.",
  11657. "type": "string"
  11658. },
  11659. {
  11660. "name": "domain",
  11661. "description": "Cookie domain.",
  11662. "type": "string"
  11663. },
  11664. {
  11665. "name": "path",
  11666. "description": "Cookie path.",
  11667. "type": "string"
  11668. },
  11669. {
  11670. "name": "expires",
  11671. "description": "Cookie expiration date as the number of seconds since the UNIX epoch.",
  11672. "type": "number"
  11673. },
  11674. {
  11675. "name": "size",
  11676. "description": "Cookie size.",
  11677. "type": "integer"
  11678. },
  11679. {
  11680. "name": "httpOnly",
  11681. "description": "True if cookie is http-only.",
  11682. "type": "boolean"
  11683. },
  11684. {
  11685. "name": "secure",
  11686. "description": "True if cookie is secure.",
  11687. "type": "boolean"
  11688. },
  11689. {
  11690. "name": "session",
  11691. "description": "True in case of session cookie.",
  11692. "type": "boolean"
  11693. },
  11694. {
  11695. "name": "sameSite",
  11696. "description": "Cookie SameSite type.",
  11697. "optional": true,
  11698. "$ref": "CookieSameSite"
  11699. },
  11700. {
  11701. "name": "priority",
  11702. "description": "Cookie Priority",
  11703. "experimental": true,
  11704. "$ref": "CookiePriority"
  11705. },
  11706. {
  11707. "name": "sameParty",
  11708. "description": "True if cookie is SameParty.",
  11709. "experimental": true,
  11710. "type": "boolean"
  11711. },
  11712. {
  11713. "name": "sourceScheme",
  11714. "description": "Cookie source scheme type.",
  11715. "experimental": true,
  11716. "$ref": "CookieSourceScheme"
  11717. },
  11718. {
  11719. "name": "sourcePort",
  11720. "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.",
  11721. "experimental": true,
  11722. "type": "integer"
  11723. },
  11724. {
  11725. "name": "partitionKey",
  11726. "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.",
  11727. "experimental": true,
  11728. "optional": true,
  11729. "type": "string"
  11730. },
  11731. {
  11732. "name": "partitionKeyOpaque",
  11733. "description": "True if cookie partition key is opaque.",
  11734. "experimental": true,
  11735. "optional": true,
  11736. "type": "boolean"
  11737. }
  11738. ]
  11739. },
  11740. {
  11741. "id": "SetCookieBlockedReason",
  11742. "description": "Types of reasons why a cookie may not be stored from a response.",
  11743. "experimental": true,
  11744. "type": "string",
  11745. "enum": [
  11746. "SecureOnly",
  11747. "SameSiteStrict",
  11748. "SameSiteLax",
  11749. "SameSiteUnspecifiedTreatedAsLax",
  11750. "SameSiteNoneInsecure",
  11751. "UserPreferences",
  11752. "SyntaxError",
  11753. "SchemeNotSupported",
  11754. "OverwriteSecure",
  11755. "InvalidDomain",
  11756. "InvalidPrefix",
  11757. "UnknownError",
  11758. "SchemefulSameSiteStrict",
  11759. "SchemefulSameSiteLax",
  11760. "SchemefulSameSiteUnspecifiedTreatedAsLax",
  11761. "SamePartyFromCrossPartyContext",
  11762. "SamePartyConflictsWithOtherAttributes",
  11763. "NameValuePairExceedsMaxSize"
  11764. ]
  11765. },
  11766. {
  11767. "id": "CookieBlockedReason",
  11768. "description": "Types of reasons why a cookie may not be sent with a request.",
  11769. "experimental": true,
  11770. "type": "string",
  11771. "enum": [
  11772. "SecureOnly",
  11773. "NotOnPath",
  11774. "DomainMismatch",
  11775. "SameSiteStrict",
  11776. "SameSiteLax",
  11777. "SameSiteUnspecifiedTreatedAsLax",
  11778. "SameSiteNoneInsecure",
  11779. "UserPreferences",
  11780. "UnknownError",
  11781. "SchemefulSameSiteStrict",
  11782. "SchemefulSameSiteLax",
  11783. "SchemefulSameSiteUnspecifiedTreatedAsLax",
  11784. "SamePartyFromCrossPartyContext",
  11785. "NameValuePairExceedsMaxSize"
  11786. ]
  11787. },
  11788. {
  11789. "id": "BlockedSetCookieWithReason",
  11790. "description": "A cookie which was not stored from a response with the corresponding reason.",
  11791. "experimental": true,
  11792. "type": "object",
  11793. "properties": [
  11794. {
  11795. "name": "blockedReasons",
  11796. "description": "The reason(s) this cookie was blocked.",
  11797. "type": "array",
  11798. "items": {
  11799. "$ref": "SetCookieBlockedReason"
  11800. }
  11801. },
  11802. {
  11803. "name": "cookieLine",
  11804. "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.",
  11805. "type": "string"
  11806. },
  11807. {
  11808. "name": "cookie",
  11809. "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.",
  11810. "optional": true,
  11811. "$ref": "Cookie"
  11812. }
  11813. ]
  11814. },
  11815. {
  11816. "id": "BlockedCookieWithReason",
  11817. "description": "A cookie with was not sent with a request with the corresponding reason.",
  11818. "experimental": true,
  11819. "type": "object",
  11820. "properties": [
  11821. {
  11822. "name": "blockedReasons",
  11823. "description": "The reason(s) the cookie was blocked.",
  11824. "type": "array",
  11825. "items": {
  11826. "$ref": "CookieBlockedReason"
  11827. }
  11828. },
  11829. {
  11830. "name": "cookie",
  11831. "description": "The cookie object representing the cookie which was not sent.",
  11832. "$ref": "Cookie"
  11833. }
  11834. ]
  11835. },
  11836. {
  11837. "id": "CookieParam",
  11838. "description": "Cookie parameter object",
  11839. "type": "object",
  11840. "properties": [
  11841. {
  11842. "name": "name",
  11843. "description": "Cookie name.",
  11844. "type": "string"
  11845. },
  11846. {
  11847. "name": "value",
  11848. "description": "Cookie value.",
  11849. "type": "string"
  11850. },
  11851. {
  11852. "name": "url",
  11853. "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.",
  11854. "optional": true,
  11855. "type": "string"
  11856. },
  11857. {
  11858. "name": "domain",
  11859. "description": "Cookie domain.",
  11860. "optional": true,
  11861. "type": "string"
  11862. },
  11863. {
  11864. "name": "path",
  11865. "description": "Cookie path.",
  11866. "optional": true,
  11867. "type": "string"
  11868. },
  11869. {
  11870. "name": "secure",
  11871. "description": "True if cookie is secure.",
  11872. "optional": true,
  11873. "type": "boolean"
  11874. },
  11875. {
  11876. "name": "httpOnly",
  11877. "description": "True if cookie is http-only.",
  11878. "optional": true,
  11879. "type": "boolean"
  11880. },
  11881. {
  11882. "name": "sameSite",
  11883. "description": "Cookie SameSite type.",
  11884. "optional": true,
  11885. "$ref": "CookieSameSite"
  11886. },
  11887. {
  11888. "name": "expires",
  11889. "description": "Cookie expiration date, session cookie if not set",
  11890. "optional": true,
  11891. "$ref": "TimeSinceEpoch"
  11892. },
  11893. {
  11894. "name": "priority",
  11895. "description": "Cookie Priority.",
  11896. "experimental": true,
  11897. "optional": true,
  11898. "$ref": "CookiePriority"
  11899. },
  11900. {
  11901. "name": "sameParty",
  11902. "description": "True if cookie is SameParty.",
  11903. "experimental": true,
  11904. "optional": true,
  11905. "type": "boolean"
  11906. },
  11907. {
  11908. "name": "sourceScheme",
  11909. "description": "Cookie source scheme type.",
  11910. "experimental": true,
  11911. "optional": true,
  11912. "$ref": "CookieSourceScheme"
  11913. },
  11914. {
  11915. "name": "sourcePort",
  11916. "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.",
  11917. "experimental": true,
  11918. "optional": true,
  11919. "type": "integer"
  11920. },
  11921. {
  11922. "name": "partitionKey",
  11923. "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.",
  11924. "experimental": true,
  11925. "optional": true,
  11926. "type": "string"
  11927. }
  11928. ]
  11929. },
  11930. {
  11931. "id": "AuthChallenge",
  11932. "description": "Authorization challenge for HTTP status code 401 or 407.",
  11933. "experimental": true,
  11934. "type": "object",
  11935. "properties": [
  11936. {
  11937. "name": "source",
  11938. "description": "Source of the authentication challenge.",
  11939. "optional": true,
  11940. "type": "string",
  11941. "enum": [
  11942. "Server",
  11943. "Proxy"
  11944. ]
  11945. },
  11946. {
  11947. "name": "origin",
  11948. "description": "Origin of the challenger.",
  11949. "type": "string"
  11950. },
  11951. {
  11952. "name": "scheme",
  11953. "description": "The authentication scheme used, such as basic or digest",
  11954. "type": "string"
  11955. },
  11956. {
  11957. "name": "realm",
  11958. "description": "The realm of the challenge. May be empty.",
  11959. "type": "string"
  11960. }
  11961. ]
  11962. },
  11963. {
  11964. "id": "AuthChallengeResponse",
  11965. "description": "Response to an AuthChallenge.",
  11966. "experimental": true,
  11967. "type": "object",
  11968. "properties": [
  11969. {
  11970. "name": "response",
  11971. "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.",
  11972. "type": "string",
  11973. "enum": [
  11974. "Default",
  11975. "CancelAuth",
  11976. "ProvideCredentials"
  11977. ]
  11978. },
  11979. {
  11980. "name": "username",
  11981. "description": "The username to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
  11982. "optional": true,
  11983. "type": "string"
  11984. },
  11985. {
  11986. "name": "password",
  11987. "description": "The password to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
  11988. "optional": true,
  11989. "type": "string"
  11990. }
  11991. ]
  11992. },
  11993. {
  11994. "id": "InterceptionStage",
  11995. "description": "Stages of the interception to begin intercepting. Request will intercept before the request is\nsent. Response will intercept after the response is received.",
  11996. "experimental": true,
  11997. "type": "string",
  11998. "enum": [
  11999. "Request",
  12000. "HeadersReceived"
  12001. ]
  12002. },
  12003. {
  12004. "id": "RequestPattern",
  12005. "description": "Request pattern for interception.",
  12006. "experimental": true,
  12007. "type": "object",
  12008. "properties": [
  12009. {
  12010. "name": "urlPattern",
  12011. "description": "Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is\nbackslash. Omitting is equivalent to `\"*\"`.",
  12012. "optional": true,
  12013. "type": "string"
  12014. },
  12015. {
  12016. "name": "resourceType",
  12017. "description": "If set, only requests for matching resource types will be intercepted.",
  12018. "optional": true,
  12019. "$ref": "ResourceType"
  12020. },
  12021. {
  12022. "name": "interceptionStage",
  12023. "description": "Stage at which to begin intercepting requests. Default is Request.",
  12024. "optional": true,
  12025. "$ref": "InterceptionStage"
  12026. }
  12027. ]
  12028. },
  12029. {
  12030. "id": "SignedExchangeSignature",
  12031. "description": "Information about a signed exchange signature.\nhttps://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#rfc.section.3.1",
  12032. "experimental": true,
  12033. "type": "object",
  12034. "properties": [
  12035. {
  12036. "name": "label",
  12037. "description": "Signed exchange signature label.",
  12038. "type": "string"
  12039. },
  12040. {
  12041. "name": "signature",
  12042. "description": "The hex string of signed exchange signature.",
  12043. "type": "string"
  12044. },
  12045. {
  12046. "name": "integrity",
  12047. "description": "Signed exchange signature integrity.",
  12048. "type": "string"
  12049. },
  12050. {
  12051. "name": "certUrl",
  12052. "description": "Signed exchange signature cert Url.",
  12053. "optional": true,
  12054. "type": "string"
  12055. },
  12056. {
  12057. "name": "certSha256",
  12058. "description": "The hex string of signed exchange signature cert sha256.",
  12059. "optional": true,
  12060. "type": "string"
  12061. },
  12062. {
  12063. "name": "validityUrl",
  12064. "description": "Signed exchange signature validity Url.",
  12065. "type": "string"
  12066. },
  12067. {
  12068. "name": "date",
  12069. "description": "Signed exchange signature date.",
  12070. "type": "integer"
  12071. },
  12072. {
  12073. "name": "expires",
  12074. "description": "Signed exchange signature expires.",
  12075. "type": "integer"
  12076. },
  12077. {
  12078. "name": "certificates",
  12079. "description": "The encoded certificates.",
  12080. "optional": true,
  12081. "type": "array",
  12082. "items": {
  12083. "type": "string"
  12084. }
  12085. }
  12086. ]
  12087. },
  12088. {
  12089. "id": "SignedExchangeHeader",
  12090. "description": "Information about a signed exchange header.\nhttps://wicg.github.io/webpackage/draft-yasskin-httpbis-origin-signed-exchanges-impl.html#cbor-representation",
  12091. "experimental": true,
  12092. "type": "object",
  12093. "properties": [
  12094. {
  12095. "name": "requestUrl",
  12096. "description": "Signed exchange request URL.",
  12097. "type": "string"
  12098. },
  12099. {
  12100. "name": "responseCode",
  12101. "description": "Signed exchange response code.",
  12102. "type": "integer"
  12103. },
  12104. {
  12105. "name": "responseHeaders",
  12106. "description": "Signed exchange response headers.",
  12107. "$ref": "Headers"
  12108. },
  12109. {
  12110. "name": "signatures",
  12111. "description": "Signed exchange response signature.",
  12112. "type": "array",
  12113. "items": {
  12114. "$ref": "SignedExchangeSignature"
  12115. }
  12116. },
  12117. {
  12118. "name": "headerIntegrity",
  12119. "description": "Signed exchange header integrity hash in the form of \"sha256-<base64-hash-value>\".",
  12120. "type": "string"
  12121. }
  12122. ]
  12123. },
  12124. {
  12125. "id": "SignedExchangeErrorField",
  12126. "description": "Field type for a signed exchange related error.",
  12127. "experimental": true,
  12128. "type": "string",
  12129. "enum": [
  12130. "signatureSig",
  12131. "signatureIntegrity",
  12132. "signatureCertUrl",
  12133. "signatureCertSha256",
  12134. "signatureValidityUrl",
  12135. "signatureTimestamps"
  12136. ]
  12137. },
  12138. {
  12139. "id": "SignedExchangeError",
  12140. "description": "Information about a signed exchange response.",
  12141. "experimental": true,
  12142. "type": "object",
  12143. "properties": [
  12144. {
  12145. "name": "message",
  12146. "description": "Error message.",
  12147. "type": "string"
  12148. },
  12149. {
  12150. "name": "signatureIndex",
  12151. "description": "The index of the signature which caused the error.",
  12152. "optional": true,
  12153. "type": "integer"
  12154. },
  12155. {
  12156. "name": "errorField",
  12157. "description": "The field which caused the error.",
  12158. "optional": true,
  12159. "$ref": "SignedExchangeErrorField"
  12160. }
  12161. ]
  12162. },
  12163. {
  12164. "id": "SignedExchangeInfo",
  12165. "description": "Information about a signed exchange response.",
  12166. "experimental": true,
  12167. "type": "object",
  12168. "properties": [
  12169. {
  12170. "name": "outerResponse",
  12171. "description": "The outer response of signed HTTP exchange which was received from network.",
  12172. "$ref": "Response"
  12173. },
  12174. {
  12175. "name": "header",
  12176. "description": "Information about the signed exchange header.",
  12177. "optional": true,
  12178. "$ref": "SignedExchangeHeader"
  12179. },
  12180. {
  12181. "name": "securityDetails",
  12182. "description": "Security details for the signed exchange header.",
  12183. "optional": true,
  12184. "$ref": "SecurityDetails"
  12185. },
  12186. {
  12187. "name": "errors",
  12188. "description": "Errors occurred while handling the signed exchagne.",
  12189. "optional": true,
  12190. "type": "array",
  12191. "items": {
  12192. "$ref": "SignedExchangeError"
  12193. }
  12194. }
  12195. ]
  12196. },
  12197. {
  12198. "id": "ContentEncoding",
  12199. "description": "List of content encodings supported by the backend.",
  12200. "experimental": true,
  12201. "type": "string",
  12202. "enum": [
  12203. "deflate",
  12204. "gzip",
  12205. "br"
  12206. ]
  12207. },
  12208. {
  12209. "id": "PrivateNetworkRequestPolicy",
  12210. "experimental": true,
  12211. "type": "string",
  12212. "enum": [
  12213. "Allow",
  12214. "BlockFromInsecureToMorePrivate",
  12215. "WarnFromInsecureToMorePrivate",
  12216. "PreflightBlock",
  12217. "PreflightWarn"
  12218. ]
  12219. },
  12220. {
  12221. "id": "IPAddressSpace",
  12222. "experimental": true,
  12223. "type": "string",
  12224. "enum": [
  12225. "Local",
  12226. "Private",
  12227. "Public",
  12228. "Unknown"
  12229. ]
  12230. },
  12231. {
  12232. "id": "ConnectTiming",
  12233. "experimental": true,
  12234. "type": "object",
  12235. "properties": [
  12236. {
  12237. "name": "requestTime",
  12238. "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).",
  12239. "type": "number"
  12240. }
  12241. ]
  12242. },
  12243. {
  12244. "id": "ClientSecurityState",
  12245. "experimental": true,
  12246. "type": "object",
  12247. "properties": [
  12248. {
  12249. "name": "initiatorIsSecureContext",
  12250. "type": "boolean"
  12251. },
  12252. {
  12253. "name": "initiatorIPAddressSpace",
  12254. "$ref": "IPAddressSpace"
  12255. },
  12256. {
  12257. "name": "privateNetworkRequestPolicy",
  12258. "$ref": "PrivateNetworkRequestPolicy"
  12259. }
  12260. ]
  12261. },
  12262. {
  12263. "id": "CrossOriginOpenerPolicyValue",
  12264. "experimental": true,
  12265. "type": "string",
  12266. "enum": [
  12267. "SameOrigin",
  12268. "SameOriginAllowPopups",
  12269. "RestrictProperties",
  12270. "UnsafeNone",
  12271. "SameOriginPlusCoep",
  12272. "RestrictPropertiesPlusCoep"
  12273. ]
  12274. },
  12275. {
  12276. "id": "CrossOriginOpenerPolicyStatus",
  12277. "experimental": true,
  12278. "type": "object",
  12279. "properties": [
  12280. {
  12281. "name": "value",
  12282. "$ref": "CrossOriginOpenerPolicyValue"
  12283. },
  12284. {
  12285. "name": "reportOnlyValue",
  12286. "$ref": "CrossOriginOpenerPolicyValue"
  12287. },
  12288. {
  12289. "name": "reportingEndpoint",
  12290. "optional": true,
  12291. "type": "string"
  12292. },
  12293. {
  12294. "name": "reportOnlyReportingEndpoint",
  12295. "optional": true,
  12296. "type": "string"
  12297. }
  12298. ]
  12299. },
  12300. {
  12301. "id": "CrossOriginEmbedderPolicyValue",
  12302. "experimental": true,
  12303. "type": "string",
  12304. "enum": [
  12305. "None",
  12306. "Credentialless",
  12307. "RequireCorp"
  12308. ]
  12309. },
  12310. {
  12311. "id": "CrossOriginEmbedderPolicyStatus",
  12312. "experimental": true,
  12313. "type": "object",
  12314. "properties": [
  12315. {
  12316. "name": "value",
  12317. "$ref": "CrossOriginEmbedderPolicyValue"
  12318. },
  12319. {
  12320. "name": "reportOnlyValue",
  12321. "$ref": "CrossOriginEmbedderPolicyValue"
  12322. },
  12323. {
  12324. "name": "reportingEndpoint",
  12325. "optional": true,
  12326. "type": "string"
  12327. },
  12328. {
  12329. "name": "reportOnlyReportingEndpoint",
  12330. "optional": true,
  12331. "type": "string"
  12332. }
  12333. ]
  12334. },
  12335. {
  12336. "id": "SecurityIsolationStatus",
  12337. "experimental": true,
  12338. "type": "object",
  12339. "properties": [
  12340. {
  12341. "name": "coop",
  12342. "optional": true,
  12343. "$ref": "CrossOriginOpenerPolicyStatus"
  12344. },
  12345. {
  12346. "name": "coep",
  12347. "optional": true,
  12348. "$ref": "CrossOriginEmbedderPolicyStatus"
  12349. }
  12350. ]
  12351. },
  12352. {
  12353. "id": "ReportStatus",
  12354. "description": "The status of a Reporting API report.",
  12355. "experimental": true,
  12356. "type": "string",
  12357. "enum": [
  12358. "Queued",
  12359. "Pending",
  12360. "MarkedForRemoval",
  12361. "Success"
  12362. ]
  12363. },
  12364. {
  12365. "id": "ReportId",
  12366. "experimental": true,
  12367. "type": "string"
  12368. },
  12369. {
  12370. "id": "ReportingApiReport",
  12371. "description": "An object representing a report generated by the Reporting API.",
  12372. "experimental": true,
  12373. "type": "object",
  12374. "properties": [
  12375. {
  12376. "name": "id",
  12377. "$ref": "ReportId"
  12378. },
  12379. {
  12380. "name": "initiatorUrl",
  12381. "description": "The URL of the document that triggered the report.",
  12382. "type": "string"
  12383. },
  12384. {
  12385. "name": "destination",
  12386. "description": "The name of the endpoint group that should be used to deliver the report.",
  12387. "type": "string"
  12388. },
  12389. {
  12390. "name": "type",
  12391. "description": "The type of the report (specifies the set of data that is contained in the report body).",
  12392. "type": "string"
  12393. },
  12394. {
  12395. "name": "timestamp",
  12396. "description": "When the report was generated.",
  12397. "$ref": "Network.TimeSinceEpoch"
  12398. },
  12399. {
  12400. "name": "depth",
  12401. "description": "How many uploads deep the related request was.",
  12402. "type": "integer"
  12403. },
  12404. {
  12405. "name": "completedAttempts",
  12406. "description": "The number of delivery attempts made so far, not including an active attempt.",
  12407. "type": "integer"
  12408. },
  12409. {
  12410. "name": "body",
  12411. "type": "object"
  12412. },
  12413. {
  12414. "name": "status",
  12415. "$ref": "ReportStatus"
  12416. }
  12417. ]
  12418. },
  12419. {
  12420. "id": "ReportingApiEndpoint",
  12421. "experimental": true,
  12422. "type": "object",
  12423. "properties": [
  12424. {
  12425. "name": "url",
  12426. "description": "The URL of the endpoint to which reports may be delivered.",
  12427. "type": "string"
  12428. },
  12429. {
  12430. "name": "groupName",
  12431. "description": "Name of the endpoint group.",
  12432. "type": "string"
  12433. }
  12434. ]
  12435. },
  12436. {
  12437. "id": "LoadNetworkResourcePageResult",
  12438. "description": "An object providing the result of a network resource load.",
  12439. "experimental": true,
  12440. "type": "object",
  12441. "properties": [
  12442. {
  12443. "name": "success",
  12444. "type": "boolean"
  12445. },
  12446. {
  12447. "name": "netError",
  12448. "description": "Optional values used for error reporting.",
  12449. "optional": true,
  12450. "type": "number"
  12451. },
  12452. {
  12453. "name": "netErrorName",
  12454. "optional": true,
  12455. "type": "string"
  12456. },
  12457. {
  12458. "name": "httpStatusCode",
  12459. "optional": true,
  12460. "type": "number"
  12461. },
  12462. {
  12463. "name": "stream",
  12464. "description": "If successful, one of the following two fields holds the result.",
  12465. "optional": true,
  12466. "$ref": "IO.StreamHandle"
  12467. },
  12468. {
  12469. "name": "headers",
  12470. "description": "Response headers.",
  12471. "optional": true,
  12472. "$ref": "Network.Headers"
  12473. }
  12474. ]
  12475. },
  12476. {
  12477. "id": "LoadNetworkResourceOptions",
  12478. "description": "An options object that may be extended later to better support CORS,\nCORB and streaming.",
  12479. "experimental": true,
  12480. "type": "object",
  12481. "properties": [
  12482. {
  12483. "name": "disableCache",
  12484. "type": "boolean"
  12485. },
  12486. {
  12487. "name": "includeCredentials",
  12488. "type": "boolean"
  12489. }
  12490. ]
  12491. }
  12492. ],
  12493. "commands": [
  12494. {
  12495. "name": "setAcceptedEncodings",
  12496. "description": "Sets a list of content encodings that will be accepted. Empty list means no encoding is accepted.",
  12497. "experimental": true,
  12498. "parameters": [
  12499. {
  12500. "name": "encodings",
  12501. "description": "List of accepted content encodings.",
  12502. "type": "array",
  12503. "items": {
  12504. "$ref": "ContentEncoding"
  12505. }
  12506. }
  12507. ]
  12508. },
  12509. {
  12510. "name": "clearAcceptedEncodingsOverride",
  12511. "description": "Clears accepted encodings set by setAcceptedEncodings",
  12512. "experimental": true
  12513. },
  12514. {
  12515. "name": "canClearBrowserCache",
  12516. "description": "Tells whether clearing browser cache is supported.",
  12517. "deprecated": true,
  12518. "returns": [
  12519. {
  12520. "name": "result",
  12521. "description": "True if browser cache can be cleared.",
  12522. "type": "boolean"
  12523. }
  12524. ]
  12525. },
  12526. {
  12527. "name": "canClearBrowserCookies",
  12528. "description": "Tells whether clearing browser cookies is supported.",
  12529. "deprecated": true,
  12530. "returns": [
  12531. {
  12532. "name": "result",
  12533. "description": "True if browser cookies can be cleared.",
  12534. "type": "boolean"
  12535. }
  12536. ]
  12537. },
  12538. {
  12539. "name": "canEmulateNetworkConditions",
  12540. "description": "Tells whether emulation of network conditions is supported.",
  12541. "deprecated": true,
  12542. "returns": [
  12543. {
  12544. "name": "result",
  12545. "description": "True if emulation of network conditions is supported.",
  12546. "type": "boolean"
  12547. }
  12548. ]
  12549. },
  12550. {
  12551. "name": "clearBrowserCache",
  12552. "description": "Clears browser cache."
  12553. },
  12554. {
  12555. "name": "clearBrowserCookies",
  12556. "description": "Clears browser cookies."
  12557. },
  12558. {
  12559. "name": "continueInterceptedRequest",
  12560. "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.",
  12561. "experimental": true,
  12562. "deprecated": true,
  12563. "parameters": [
  12564. {
  12565. "name": "interceptionId",
  12566. "$ref": "InterceptionId"
  12567. },
  12568. {
  12569. "name": "errorReason",
  12570. "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.",
  12571. "optional": true,
  12572. "$ref": "ErrorReason"
  12573. },
  12574. {
  12575. "name": "rawResponse",
  12576. "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)",
  12577. "optional": true,
  12578. "type": "string"
  12579. },
  12580. {
  12581. "name": "url",
  12582. "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.",
  12583. "optional": true,
  12584. "type": "string"
  12585. },
  12586. {
  12587. "name": "method",
  12588. "description": "If set this allows the request method to be overridden. Must not be set in response to an\nauthChallenge.",
  12589. "optional": true,
  12590. "type": "string"
  12591. },
  12592. {
  12593. "name": "postData",
  12594. "description": "If set this allows postData to be set. Must not be set in response to an authChallenge.",
  12595. "optional": true,
  12596. "type": "string"
  12597. },
  12598. {
  12599. "name": "headers",
  12600. "description": "If set this allows the request headers to be changed. Must not be set in response to an\nauthChallenge.",
  12601. "optional": true,
  12602. "$ref": "Headers"
  12603. },
  12604. {
  12605. "name": "authChallengeResponse",
  12606. "description": "Response to a requestIntercepted with an authChallenge. Must not be set otherwise.",
  12607. "optional": true,
  12608. "$ref": "AuthChallengeResponse"
  12609. }
  12610. ]
  12611. },
  12612. {
  12613. "name": "deleteCookies",
  12614. "description": "Deletes browser cookies with matching name and url or domain/path pair.",
  12615. "parameters": [
  12616. {
  12617. "name": "name",
  12618. "description": "Name of the cookies to remove.",
  12619. "type": "string"
  12620. },
  12621. {
  12622. "name": "url",
  12623. "description": "If specified, deletes all the cookies with the given name where domain and path match\nprovided URL.",
  12624. "optional": true,
  12625. "type": "string"
  12626. },
  12627. {
  12628. "name": "domain",
  12629. "description": "If specified, deletes only cookies with the exact domain.",
  12630. "optional": true,
  12631. "type": "string"
  12632. },
  12633. {
  12634. "name": "path",
  12635. "description": "If specified, deletes only cookies with the exact path.",
  12636. "optional": true,
  12637. "type": "string"
  12638. }
  12639. ]
  12640. },
  12641. {
  12642. "name": "disable",
  12643. "description": "Disables network tracking, prevents network events from being sent to the client."
  12644. },
  12645. {
  12646. "name": "emulateNetworkConditions",
  12647. "description": "Activates emulation of network conditions.",
  12648. "parameters": [
  12649. {
  12650. "name": "offline",
  12651. "description": "True to emulate internet disconnection.",
  12652. "type": "boolean"
  12653. },
  12654. {
  12655. "name": "latency",
  12656. "description": "Minimum latency from request sent to response headers received (ms).",
  12657. "type": "number"
  12658. },
  12659. {
  12660. "name": "downloadThroughput",
  12661. "description": "Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.",
  12662. "type": "number"
  12663. },
  12664. {
  12665. "name": "uploadThroughput",
  12666. "description": "Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.",
  12667. "type": "number"
  12668. },
  12669. {
  12670. "name": "connectionType",
  12671. "description": "Connection type if known.",
  12672. "optional": true,
  12673. "$ref": "ConnectionType"
  12674. }
  12675. ]
  12676. },
  12677. {
  12678. "name": "enable",
  12679. "description": "Enables network tracking, network events will now be delivered to the client.",
  12680. "parameters": [
  12681. {
  12682. "name": "maxTotalBufferSize",
  12683. "description": "Buffer size in bytes to use when preserving network payloads (XHRs, etc).",
  12684. "experimental": true,
  12685. "optional": true,
  12686. "type": "integer"
  12687. },
  12688. {
  12689. "name": "maxResourceBufferSize",
  12690. "description": "Per-resource buffer size in bytes to use when preserving network payloads (XHRs, etc).",
  12691. "experimental": true,
  12692. "optional": true,
  12693. "type": "integer"
  12694. },
  12695. {
  12696. "name": "maxPostDataSize",
  12697. "description": "Longest post body size (in bytes) that would be included in requestWillBeSent notification",
  12698. "optional": true,
  12699. "type": "integer"
  12700. }
  12701. ]
  12702. },
  12703. {
  12704. "name": "getAllCookies",
  12705. "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie\ninformation in the `cookies` field.",
  12706. "returns": [
  12707. {
  12708. "name": "cookies",
  12709. "description": "Array of cookie objects.",
  12710. "type": "array",
  12711. "items": {
  12712. "$ref": "Cookie"
  12713. }
  12714. }
  12715. ]
  12716. },
  12717. {
  12718. "name": "getCertificate",
  12719. "description": "Returns the DER-encoded certificate.",
  12720. "experimental": true,
  12721. "parameters": [
  12722. {
  12723. "name": "origin",
  12724. "description": "Origin to get certificate for.",
  12725. "type": "string"
  12726. }
  12727. ],
  12728. "returns": [
  12729. {
  12730. "name": "tableNames",
  12731. "type": "array",
  12732. "items": {
  12733. "type": "string"
  12734. }
  12735. }
  12736. ]
  12737. },
  12738. {
  12739. "name": "getCookies",
  12740. "description": "Returns all browser cookies for the current URL. Depending on the backend support, will return\ndetailed cookie information in the `cookies` field.",
  12741. "parameters": [
  12742. {
  12743. "name": "urls",
  12744. "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.",
  12745. "optional": true,
  12746. "type": "array",
  12747. "items": {
  12748. "type": "string"
  12749. }
  12750. }
  12751. ],
  12752. "returns": [
  12753. {
  12754. "name": "cookies",
  12755. "description": "Array of cookie objects.",
  12756. "type": "array",
  12757. "items": {
  12758. "$ref": "Cookie"
  12759. }
  12760. }
  12761. ]
  12762. },
  12763. {
  12764. "name": "getResponseBody",
  12765. "description": "Returns content served for the given request.",
  12766. "parameters": [
  12767. {
  12768. "name": "requestId",
  12769. "description": "Identifier of the network request to get content for.",
  12770. "$ref": "RequestId"
  12771. }
  12772. ],
  12773. "returns": [
  12774. {
  12775. "name": "body",
  12776. "description": "Response body.",
  12777. "type": "string"
  12778. },
  12779. {
  12780. "name": "base64Encoded",
  12781. "description": "True, if content was sent as base64.",
  12782. "type": "boolean"
  12783. }
  12784. ]
  12785. },
  12786. {
  12787. "name": "getRequestPostData",
  12788. "description": "Returns post data sent with the request. Returns an error when no data was sent with the request.",
  12789. "parameters": [
  12790. {
  12791. "name": "requestId",
  12792. "description": "Identifier of the network request to get content for.",
  12793. "$ref": "RequestId"
  12794. }
  12795. ],
  12796. "returns": [
  12797. {
  12798. "name": "postData",
  12799. "description": "Request body string, omitting files from multipart requests",
  12800. "type": "string"
  12801. }
  12802. ]
  12803. },
  12804. {
  12805. "name": "getResponseBodyForInterception",
  12806. "description": "Returns content served for the given currently intercepted request.",
  12807. "experimental": true,
  12808. "parameters": [
  12809. {
  12810. "name": "interceptionId",
  12811. "description": "Identifier for the intercepted request to get body for.",
  12812. "$ref": "InterceptionId"
  12813. }
  12814. ],
  12815. "returns": [
  12816. {
  12817. "name": "body",
  12818. "description": "Response body.",
  12819. "type": "string"
  12820. },
  12821. {
  12822. "name": "base64Encoded",
  12823. "description": "True, if content was sent as base64.",
  12824. "type": "boolean"
  12825. }
  12826. ]
  12827. },
  12828. {
  12829. "name": "takeResponseBodyForInterceptionAsStream",
  12830. "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.",
  12831. "experimental": true,
  12832. "parameters": [
  12833. {
  12834. "name": "interceptionId",
  12835. "$ref": "InterceptionId"
  12836. }
  12837. ],
  12838. "returns": [
  12839. {
  12840. "name": "stream",
  12841. "$ref": "IO.StreamHandle"
  12842. }
  12843. ]
  12844. },
  12845. {
  12846. "name": "replayXHR",
  12847. "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.",
  12848. "experimental": true,
  12849. "parameters": [
  12850. {
  12851. "name": "requestId",
  12852. "description": "Identifier of XHR to replay.",
  12853. "$ref": "RequestId"
  12854. }
  12855. ]
  12856. },
  12857. {
  12858. "name": "searchInResponseBody",
  12859. "description": "Searches for given string in response content.",
  12860. "experimental": true,
  12861. "parameters": [
  12862. {
  12863. "name": "requestId",
  12864. "description": "Identifier of the network response to search.",
  12865. "$ref": "RequestId"
  12866. },
  12867. {
  12868. "name": "query",
  12869. "description": "String to search for.",
  12870. "type": "string"
  12871. },
  12872. {
  12873. "name": "caseSensitive",
  12874. "description": "If true, search is case sensitive.",
  12875. "optional": true,
  12876. "type": "boolean"
  12877. },
  12878. {
  12879. "name": "isRegex",
  12880. "description": "If true, treats string parameter as regex.",
  12881. "optional": true,
  12882. "type": "boolean"
  12883. }
  12884. ],
  12885. "returns": [
  12886. {
  12887. "name": "result",
  12888. "description": "List of search matches.",
  12889. "type": "array",
  12890. "items": {
  12891. "$ref": "Debugger.SearchMatch"
  12892. }
  12893. }
  12894. ]
  12895. },
  12896. {
  12897. "name": "setBlockedURLs",
  12898. "description": "Blocks URLs from loading.",
  12899. "experimental": true,
  12900. "parameters": [
  12901. {
  12902. "name": "urls",
  12903. "description": "URL patterns to block. Wildcards ('*') are allowed.",
  12904. "type": "array",
  12905. "items": {
  12906. "type": "string"
  12907. }
  12908. }
  12909. ]
  12910. },
  12911. {
  12912. "name": "setBypassServiceWorker",
  12913. "description": "Toggles ignoring of service worker for each request.",
  12914. "experimental": true,
  12915. "parameters": [
  12916. {
  12917. "name": "bypass",
  12918. "description": "Bypass service worker and load from network.",
  12919. "type": "boolean"
  12920. }
  12921. ]
  12922. },
  12923. {
  12924. "name": "setCacheDisabled",
  12925. "description": "Toggles ignoring cache for each request. If `true`, cache will not be used.",
  12926. "parameters": [
  12927. {
  12928. "name": "cacheDisabled",
  12929. "description": "Cache disabled state.",
  12930. "type": "boolean"
  12931. }
  12932. ]
  12933. },
  12934. {
  12935. "name": "setCookie",
  12936. "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.",
  12937. "parameters": [
  12938. {
  12939. "name": "name",
  12940. "description": "Cookie name.",
  12941. "type": "string"
  12942. },
  12943. {
  12944. "name": "value",
  12945. "description": "Cookie value.",
  12946. "type": "string"
  12947. },
  12948. {
  12949. "name": "url",
  12950. "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.",
  12951. "optional": true,
  12952. "type": "string"
  12953. },
  12954. {
  12955. "name": "domain",
  12956. "description": "Cookie domain.",
  12957. "optional": true,
  12958. "type": "string"
  12959. },
  12960. {
  12961. "name": "path",
  12962. "description": "Cookie path.",
  12963. "optional": true,
  12964. "type": "string"
  12965. },
  12966. {
  12967. "name": "secure",
  12968. "description": "True if cookie is secure.",
  12969. "optional": true,
  12970. "type": "boolean"
  12971. },
  12972. {
  12973. "name": "httpOnly",
  12974. "description": "True if cookie is http-only.",
  12975. "optional": true,
  12976. "type": "boolean"
  12977. },
  12978. {
  12979. "name": "sameSite",
  12980. "description": "Cookie SameSite type.",
  12981. "optional": true,
  12982. "$ref": "CookieSameSite"
  12983. },
  12984. {
  12985. "name": "expires",
  12986. "description": "Cookie expiration date, session cookie if not set",
  12987. "optional": true,
  12988. "$ref": "TimeSinceEpoch"
  12989. },
  12990. {
  12991. "name": "priority",
  12992. "description": "Cookie Priority type.",
  12993. "experimental": true,
  12994. "optional": true,
  12995. "$ref": "CookiePriority"
  12996. },
  12997. {
  12998. "name": "sameParty",
  12999. "description": "True if cookie is SameParty.",
  13000. "experimental": true,
  13001. "optional": true,
  13002. "type": "boolean"
  13003. },
  13004. {
  13005. "name": "sourceScheme",
  13006. "description": "Cookie source scheme type.",
  13007. "experimental": true,
  13008. "optional": true,
  13009. "$ref": "CookieSourceScheme"
  13010. },
  13011. {
  13012. "name": "sourcePort",
  13013. "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.",
  13014. "experimental": true,
  13015. "optional": true,
  13016. "type": "integer"
  13017. },
  13018. {
  13019. "name": "partitionKey",
  13020. "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.",
  13021. "experimental": true,
  13022. "optional": true,
  13023. "type": "string"
  13024. }
  13025. ],
  13026. "returns": [
  13027. {
  13028. "name": "success",
  13029. "description": "Always set to true. If an error occurs, the response indicates protocol error.",
  13030. "deprecated": true,
  13031. "type": "boolean"
  13032. }
  13033. ]
  13034. },
  13035. {
  13036. "name": "setCookies",
  13037. "description": "Sets given cookies.",
  13038. "parameters": [
  13039. {
  13040. "name": "cookies",
  13041. "description": "Cookies to be set.",
  13042. "type": "array",
  13043. "items": {
  13044. "$ref": "CookieParam"
  13045. }
  13046. }
  13047. ]
  13048. },
  13049. {
  13050. "name": "setExtraHTTPHeaders",
  13051. "description": "Specifies whether to always send extra HTTP headers with the requests from this page.",
  13052. "parameters": [
  13053. {
  13054. "name": "headers",
  13055. "description": "Map with extra HTTP headers.",
  13056. "$ref": "Headers"
  13057. }
  13058. ]
  13059. },
  13060. {
  13061. "name": "setAttachDebugStack",
  13062. "description": "Specifies whether to attach a page script stack id in requests",
  13063. "experimental": true,
  13064. "parameters": [
  13065. {
  13066. "name": "enabled",
  13067. "description": "Whether to attach a page script stack for debugging purpose.",
  13068. "type": "boolean"
  13069. }
  13070. ]
  13071. },
  13072. {
  13073. "name": "setRequestInterception",
  13074. "description": "Sets the requests to intercept that match the provided patterns and optionally resource types.\nDeprecated, please use Fetch.enable instead.",
  13075. "experimental": true,
  13076. "deprecated": true,
  13077. "parameters": [
  13078. {
  13079. "name": "patterns",
  13080. "description": "Requests matching any of these patterns will be forwarded and wait for the corresponding\ncontinueInterceptedRequest call.",
  13081. "type": "array",
  13082. "items": {
  13083. "$ref": "RequestPattern"
  13084. }
  13085. }
  13086. ]
  13087. },
  13088. {
  13089. "name": "setUserAgentOverride",
  13090. "description": "Allows overriding user agent with the given string.",
  13091. "redirect": "Emulation",
  13092. "parameters": [
  13093. {
  13094. "name": "userAgent",
  13095. "description": "User agent to use.",
  13096. "type": "string"
  13097. },
  13098. {
  13099. "name": "acceptLanguage",
  13100. "description": "Browser langugage to emulate.",
  13101. "optional": true,
  13102. "type": "string"
  13103. },
  13104. {
  13105. "name": "platform",
  13106. "description": "The platform navigator.platform should return.",
  13107. "optional": true,
  13108. "type": "string"
  13109. },
  13110. {
  13111. "name": "userAgentMetadata",
  13112. "description": "To be sent in Sec-CH-UA-* headers and returned in navigator.userAgentData",
  13113. "experimental": true,
  13114. "optional": true,
  13115. "$ref": "Emulation.UserAgentMetadata"
  13116. }
  13117. ]
  13118. },
  13119. {
  13120. "name": "getSecurityIsolationStatus",
  13121. "description": "Returns information about the COEP/COOP isolation status.",
  13122. "experimental": true,
  13123. "parameters": [
  13124. {
  13125. "name": "frameId",
  13126. "description": "If no frameId is provided, the status of the target is provided.",
  13127. "optional": true,
  13128. "$ref": "Page.FrameId"
  13129. }
  13130. ],
  13131. "returns": [
  13132. {
  13133. "name": "status",
  13134. "$ref": "SecurityIsolationStatus"
  13135. }
  13136. ]
  13137. },
  13138. {
  13139. "name": "enableReportingApi",
  13140. "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.",
  13141. "experimental": true,
  13142. "parameters": [
  13143. {
  13144. "name": "enable",
  13145. "description": "Whether to enable or disable events for the Reporting API",
  13146. "type": "boolean"
  13147. }
  13148. ]
  13149. },
  13150. {
  13151. "name": "loadNetworkResource",
  13152. "description": "Fetches the resource and returns the content.",
  13153. "experimental": true,
  13154. "parameters": [
  13155. {
  13156. "name": "frameId",
  13157. "description": "Frame id to get the resource for. Mandatory for frame targets, and\nshould be omitted for worker targets.",
  13158. "optional": true,
  13159. "$ref": "Page.FrameId"
  13160. },
  13161. {
  13162. "name": "url",
  13163. "description": "URL of the resource to get content for.",
  13164. "type": "string"
  13165. },
  13166. {
  13167. "name": "options",
  13168. "description": "Options for the request.",
  13169. "$ref": "LoadNetworkResourceOptions"
  13170. }
  13171. ],
  13172. "returns": [
  13173. {
  13174. "name": "resource",
  13175. "$ref": "LoadNetworkResourcePageResult"
  13176. }
  13177. ]
  13178. }
  13179. ],
  13180. "events": [
  13181. {
  13182. "name": "dataReceived",
  13183. "description": "Fired when data chunk was received over the network.",
  13184. "parameters": [
  13185. {
  13186. "name": "requestId",
  13187. "description": "Request identifier.",
  13188. "$ref": "RequestId"
  13189. },
  13190. {
  13191. "name": "timestamp",
  13192. "description": "Timestamp.",
  13193. "$ref": "MonotonicTime"
  13194. },
  13195. {
  13196. "name": "dataLength",
  13197. "description": "Data chunk length.",
  13198. "type": "integer"
  13199. },
  13200. {
  13201. "name": "encodedDataLength",
  13202. "description": "Actual bytes received (might be less than dataLength for compressed encodings).",
  13203. "type": "integer"
  13204. }
  13205. ]
  13206. },
  13207. {
  13208. "name": "eventSourceMessageReceived",
  13209. "description": "Fired when EventSource message is received.",
  13210. "parameters": [
  13211. {
  13212. "name": "requestId",
  13213. "description": "Request identifier.",
  13214. "$ref": "RequestId"
  13215. },
  13216. {
  13217. "name": "timestamp",
  13218. "description": "Timestamp.",
  13219. "$ref": "MonotonicTime"
  13220. },
  13221. {
  13222. "name": "eventName",
  13223. "description": "Message type.",
  13224. "type": "string"
  13225. },
  13226. {
  13227. "name": "eventId",
  13228. "description": "Message identifier.",
  13229. "type": "string"
  13230. },
  13231. {
  13232. "name": "data",
  13233. "description": "Message content.",
  13234. "type": "string"
  13235. }
  13236. ]
  13237. },
  13238. {
  13239. "name": "loadingFailed",
  13240. "description": "Fired when HTTP request has failed to load.",
  13241. "parameters": [
  13242. {
  13243. "name": "requestId",
  13244. "description": "Request identifier.",
  13245. "$ref": "RequestId"
  13246. },
  13247. {
  13248. "name": "timestamp",
  13249. "description": "Timestamp.",
  13250. "$ref": "MonotonicTime"
  13251. },
  13252. {
  13253. "name": "type",
  13254. "description": "Resource type.",
  13255. "$ref": "ResourceType"
  13256. },
  13257. {
  13258. "name": "errorText",
  13259. "description": "User friendly error message.",
  13260. "type": "string"
  13261. },
  13262. {
  13263. "name": "canceled",
  13264. "description": "True if loading was canceled.",
  13265. "optional": true,
  13266. "type": "boolean"
  13267. },
  13268. {
  13269. "name": "blockedReason",
  13270. "description": "The reason why loading was blocked, if any.",
  13271. "optional": true,
  13272. "$ref": "BlockedReason"
  13273. },
  13274. {
  13275. "name": "corsErrorStatus",
  13276. "description": "The reason why loading was blocked by CORS, if any.",
  13277. "optional": true,
  13278. "$ref": "CorsErrorStatus"
  13279. }
  13280. ]
  13281. },
  13282. {
  13283. "name": "loadingFinished",
  13284. "description": "Fired when HTTP request has finished loading.",
  13285. "parameters": [
  13286. {
  13287. "name": "requestId",
  13288. "description": "Request identifier.",
  13289. "$ref": "RequestId"
  13290. },
  13291. {
  13292. "name": "timestamp",
  13293. "description": "Timestamp.",
  13294. "$ref": "MonotonicTime"
  13295. },
  13296. {
  13297. "name": "encodedDataLength",
  13298. "description": "Total number of bytes received for this request.",
  13299. "type": "number"
  13300. },
  13301. {
  13302. "name": "shouldReportCorbBlocking",
  13303. "description": "Set when 1) response was blocked by Cross-Origin Read Blocking and also\n2) this needs to be reported to the DevTools console.",
  13304. "optional": true,
  13305. "type": "boolean"
  13306. }
  13307. ]
  13308. },
  13309. {
  13310. "name": "requestIntercepted",
  13311. "description": "Details of an intercepted HTTP request, which must be either allowed, blocked, modified or\nmocked.\nDeprecated, use Fetch.requestPaused instead.",
  13312. "experimental": true,
  13313. "deprecated": true,
  13314. "parameters": [
  13315. {
  13316. "name": "interceptionId",
  13317. "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.",
  13318. "$ref": "InterceptionId"
  13319. },
  13320. {
  13321. "name": "request",
  13322. "$ref": "Request"
  13323. },
  13324. {
  13325. "name": "frameId",
  13326. "description": "The id of the frame that initiated the request.",
  13327. "$ref": "Page.FrameId"
  13328. },
  13329. {
  13330. "name": "resourceType",
  13331. "description": "How the requested resource will be used.",
  13332. "$ref": "ResourceType"
  13333. },
  13334. {
  13335. "name": "isNavigationRequest",
  13336. "description": "Whether this is a navigation request, which can abort the navigation completely.",
  13337. "type": "boolean"
  13338. },
  13339. {
  13340. "name": "isDownload",
  13341. "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).",
  13342. "optional": true,
  13343. "type": "boolean"
  13344. },
  13345. {
  13346. "name": "redirectUrl",
  13347. "description": "Redirect location, only sent if a redirect was intercepted.",
  13348. "optional": true,
  13349. "type": "string"
  13350. },
  13351. {
  13352. "name": "authChallenge",
  13353. "description": "Details of the Authorization Challenge encountered. If this is set then\ncontinueInterceptedRequest must contain an authChallengeResponse.",
  13354. "optional": true,
  13355. "$ref": "AuthChallenge"
  13356. },
  13357. {
  13358. "name": "responseErrorReason",
  13359. "description": "Response error if intercepted at response stage or if redirect occurred while intercepting\nrequest.",
  13360. "optional": true,
  13361. "$ref": "ErrorReason"
  13362. },
  13363. {
  13364. "name": "responseStatusCode",
  13365. "description": "Response code if intercepted at response stage or if redirect occurred while intercepting\nrequest or auth retry occurred.",
  13366. "optional": true,
  13367. "type": "integer"
  13368. },
  13369. {
  13370. "name": "responseHeaders",
  13371. "description": "Response headers if intercepted at the response stage or if redirect occurred while\nintercepting request or auth retry occurred.",
  13372. "optional": true,
  13373. "$ref": "Headers"
  13374. },
  13375. {
  13376. "name": "requestId",
  13377. "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.",
  13378. "optional": true,
  13379. "$ref": "RequestId"
  13380. }
  13381. ]
  13382. },
  13383. {
  13384. "name": "requestServedFromCache",
  13385. "description": "Fired if request ended up loading from cache.",
  13386. "parameters": [
  13387. {
  13388. "name": "requestId",
  13389. "description": "Request identifier.",
  13390. "$ref": "RequestId"
  13391. }
  13392. ]
  13393. },
  13394. {
  13395. "name": "requestWillBeSent",
  13396. "description": "Fired when page is about to send HTTP request.",
  13397. "parameters": [
  13398. {
  13399. "name": "requestId",
  13400. "description": "Request identifier.",
  13401. "$ref": "RequestId"
  13402. },
  13403. {
  13404. "name": "loaderId",
  13405. "description": "Loader identifier. Empty string if the request is fetched from worker.",
  13406. "$ref": "LoaderId"
  13407. },
  13408. {
  13409. "name": "documentURL",
  13410. "description": "URL of the document this request is loaded for.",
  13411. "type": "string"
  13412. },
  13413. {
  13414. "name": "request",
  13415. "description": "Request data.",
  13416. "$ref": "Request"
  13417. },
  13418. {
  13419. "name": "timestamp",
  13420. "description": "Timestamp.",
  13421. "$ref": "MonotonicTime"
  13422. },
  13423. {
  13424. "name": "wallTime",
  13425. "description": "Timestamp.",
  13426. "$ref": "TimeSinceEpoch"
  13427. },
  13428. {
  13429. "name": "initiator",
  13430. "description": "Request initiator.",
  13431. "$ref": "Initiator"
  13432. },
  13433. {
  13434. "name": "redirectHasExtraInfo",
  13435. "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.",
  13436. "experimental": true,
  13437. "type": "boolean"
  13438. },
  13439. {
  13440. "name": "redirectResponse",
  13441. "description": "Redirect response data.",
  13442. "optional": true,
  13443. "$ref": "Response"
  13444. },
  13445. {
  13446. "name": "type",
  13447. "description": "Type of this resource.",
  13448. "optional": true,
  13449. "$ref": "ResourceType"
  13450. },
  13451. {
  13452. "name": "frameId",
  13453. "description": "Frame identifier.",
  13454. "optional": true,
  13455. "$ref": "Page.FrameId"
  13456. },
  13457. {
  13458. "name": "hasUserGesture",
  13459. "description": "Whether the request is initiated by a user gesture. Defaults to false.",
  13460. "optional": true,
  13461. "type": "boolean"
  13462. }
  13463. ]
  13464. },
  13465. {
  13466. "name": "resourceChangedPriority",
  13467. "description": "Fired when resource loading priority is changed",
  13468. "experimental": true,
  13469. "parameters": [
  13470. {
  13471. "name": "requestId",
  13472. "description": "Request identifier.",
  13473. "$ref": "RequestId"
  13474. },
  13475. {
  13476. "name": "newPriority",
  13477. "description": "New priority",
  13478. "$ref": "ResourcePriority"
  13479. },
  13480. {
  13481. "name": "timestamp",
  13482. "description": "Timestamp.",
  13483. "$ref": "MonotonicTime"
  13484. }
  13485. ]
  13486. },
  13487. {
  13488. "name": "signedExchangeReceived",
  13489. "description": "Fired when a signed exchange was received over the network",
  13490. "experimental": true,
  13491. "parameters": [
  13492. {
  13493. "name": "requestId",
  13494. "description": "Request identifier.",
  13495. "$ref": "RequestId"
  13496. },
  13497. {
  13498. "name": "info",
  13499. "description": "Information about the signed exchange response.",
  13500. "$ref": "SignedExchangeInfo"
  13501. }
  13502. ]
  13503. },
  13504. {
  13505. "name": "responseReceived",
  13506. "description": "Fired when HTTP response is available.",
  13507. "parameters": [
  13508. {
  13509. "name": "requestId",
  13510. "description": "Request identifier.",
  13511. "$ref": "RequestId"
  13512. },
  13513. {
  13514. "name": "loaderId",
  13515. "description": "Loader identifier. Empty string if the request is fetched from worker.",
  13516. "$ref": "LoaderId"
  13517. },
  13518. {
  13519. "name": "timestamp",
  13520. "description": "Timestamp.",
  13521. "$ref": "MonotonicTime"
  13522. },
  13523. {
  13524. "name": "type",
  13525. "description": "Resource type.",
  13526. "$ref": "ResourceType"
  13527. },
  13528. {
  13529. "name": "response",
  13530. "description": "Response data.",
  13531. "$ref": "Response"
  13532. },
  13533. {
  13534. "name": "hasExtraInfo",
  13535. "description": "Indicates whether requestWillBeSentExtraInfo and responseReceivedExtraInfo events will be\nor were emitted for this request.",
  13536. "experimental": true,
  13537. "type": "boolean"
  13538. },
  13539. {
  13540. "name": "frameId",
  13541. "description": "Frame identifier.",
  13542. "optional": true,
  13543. "$ref": "Page.FrameId"
  13544. }
  13545. ]
  13546. },
  13547. {
  13548. "name": "webSocketClosed",
  13549. "description": "Fired when WebSocket is closed.",
  13550. "parameters": [
  13551. {
  13552. "name": "requestId",
  13553. "description": "Request identifier.",
  13554. "$ref": "RequestId"
  13555. },
  13556. {
  13557. "name": "timestamp",
  13558. "description": "Timestamp.",
  13559. "$ref": "MonotonicTime"
  13560. }
  13561. ]
  13562. },
  13563. {
  13564. "name": "webSocketCreated",
  13565. "description": "Fired upon WebSocket creation.",
  13566. "parameters": [
  13567. {
  13568. "name": "requestId",
  13569. "description": "Request identifier.",
  13570. "$ref": "RequestId"
  13571. },
  13572. {
  13573. "name": "url",
  13574. "description": "WebSocket request URL.",
  13575. "type": "string"
  13576. },
  13577. {
  13578. "name": "initiator",
  13579. "description": "Request initiator.",
  13580. "optional": true,
  13581. "$ref": "Initiator"
  13582. }
  13583. ]
  13584. },
  13585. {
  13586. "name": "webSocketFrameError",
  13587. "description": "Fired when WebSocket message error occurs.",
  13588. "parameters": [
  13589. {
  13590. "name": "requestId",
  13591. "description": "Request identifier.",
  13592. "$ref": "RequestId"
  13593. },
  13594. {
  13595. "name": "timestamp",
  13596. "description": "Timestamp.",
  13597. "$ref": "MonotonicTime"
  13598. },
  13599. {
  13600. "name": "errorMessage",
  13601. "description": "WebSocket error message.",
  13602. "type": "string"
  13603. }
  13604. ]
  13605. },
  13606. {
  13607. "name": "webSocketFrameReceived",
  13608. "description": "Fired when WebSocket message is received.",
  13609. "parameters": [
  13610. {
  13611. "name": "requestId",
  13612. "description": "Request identifier.",
  13613. "$ref": "RequestId"
  13614. },
  13615. {
  13616. "name": "timestamp",
  13617. "description": "Timestamp.",
  13618. "$ref": "MonotonicTime"
  13619. },
  13620. {
  13621. "name": "response",
  13622. "description": "WebSocket response data.",
  13623. "$ref": "WebSocketFrame"
  13624. }
  13625. ]
  13626. },
  13627. {
  13628. "name": "webSocketFrameSent",
  13629. "description": "Fired when WebSocket message is sent.",
  13630. "parameters": [
  13631. {
  13632. "name": "requestId",
  13633. "description": "Request identifier.",
  13634. "$ref": "RequestId"
  13635. },
  13636. {
  13637. "name": "timestamp",
  13638. "description": "Timestamp.",
  13639. "$ref": "MonotonicTime"
  13640. },
  13641. {
  13642. "name": "response",
  13643. "description": "WebSocket response data.",
  13644. "$ref": "WebSocketFrame"
  13645. }
  13646. ]
  13647. },
  13648. {
  13649. "name": "webSocketHandshakeResponseReceived",
  13650. "description": "Fired when WebSocket handshake response becomes available.",
  13651. "parameters": [
  13652. {
  13653. "name": "requestId",
  13654. "description": "Request identifier.",
  13655. "$ref": "RequestId"
  13656. },
  13657. {
  13658. "name": "timestamp",
  13659. "description": "Timestamp.",
  13660. "$ref": "MonotonicTime"
  13661. },
  13662. {
  13663. "name": "response",
  13664. "description": "WebSocket response data.",
  13665. "$ref": "WebSocketResponse"
  13666. }
  13667. ]
  13668. },
  13669. {
  13670. "name": "webSocketWillSendHandshakeRequest",
  13671. "description": "Fired when WebSocket is about to initiate handshake.",
  13672. "parameters": [
  13673. {
  13674. "name": "requestId",
  13675. "description": "Request identifier.",
  13676. "$ref": "RequestId"
  13677. },
  13678. {
  13679. "name": "timestamp",
  13680. "description": "Timestamp.",
  13681. "$ref": "MonotonicTime"
  13682. },
  13683. {
  13684. "name": "wallTime",
  13685. "description": "UTC Timestamp.",
  13686. "$ref": "TimeSinceEpoch"
  13687. },
  13688. {
  13689. "name": "request",
  13690. "description": "WebSocket request data.",
  13691. "$ref": "WebSocketRequest"
  13692. }
  13693. ]
  13694. },
  13695. {
  13696. "name": "webTransportCreated",
  13697. "description": "Fired upon WebTransport creation.",
  13698. "parameters": [
  13699. {
  13700. "name": "transportId",
  13701. "description": "WebTransport identifier.",
  13702. "$ref": "RequestId"
  13703. },
  13704. {
  13705. "name": "url",
  13706. "description": "WebTransport request URL.",
  13707. "type": "string"
  13708. },
  13709. {
  13710. "name": "timestamp",
  13711. "description": "Timestamp.",
  13712. "$ref": "MonotonicTime"
  13713. },
  13714. {
  13715. "name": "initiator",
  13716. "description": "Request initiator.",
  13717. "optional": true,
  13718. "$ref": "Initiator"
  13719. }
  13720. ]
  13721. },
  13722. {
  13723. "name": "webTransportConnectionEstablished",
  13724. "description": "Fired when WebTransport handshake is finished.",
  13725. "parameters": [
  13726. {
  13727. "name": "transportId",
  13728. "description": "WebTransport identifier.",
  13729. "$ref": "RequestId"
  13730. },
  13731. {
  13732. "name": "timestamp",
  13733. "description": "Timestamp.",
  13734. "$ref": "MonotonicTime"
  13735. }
  13736. ]
  13737. },
  13738. {
  13739. "name": "webTransportClosed",
  13740. "description": "Fired when WebTransport is disposed.",
  13741. "parameters": [
  13742. {
  13743. "name": "transportId",
  13744. "description": "WebTransport identifier.",
  13745. "$ref": "RequestId"
  13746. },
  13747. {
  13748. "name": "timestamp",
  13749. "description": "Timestamp.",
  13750. "$ref": "MonotonicTime"
  13751. }
  13752. ]
  13753. },
  13754. {
  13755. "name": "requestWillBeSentExtraInfo",
  13756. "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.",
  13757. "experimental": true,
  13758. "parameters": [
  13759. {
  13760. "name": "requestId",
  13761. "description": "Request identifier. Used to match this information to an existing requestWillBeSent event.",
  13762. "$ref": "RequestId"
  13763. },
  13764. {
  13765. "name": "associatedCookies",
  13766. "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.",
  13767. "type": "array",
  13768. "items": {
  13769. "$ref": "BlockedCookieWithReason"
  13770. }
  13771. },
  13772. {
  13773. "name": "headers",
  13774. "description": "Raw request headers as they will be sent over the wire.",
  13775. "$ref": "Headers"
  13776. },
  13777. {
  13778. "name": "connectTiming",
  13779. "description": "Connection timing information for the request.",
  13780. "experimental": true,
  13781. "$ref": "ConnectTiming"
  13782. },
  13783. {
  13784. "name": "clientSecurityState",
  13785. "description": "The client security state set for the request.",
  13786. "optional": true,
  13787. "$ref": "ClientSecurityState"
  13788. }
  13789. ]
  13790. },
  13791. {
  13792. "name": "responseReceivedExtraInfo",
  13793. "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.",
  13794. "experimental": true,
  13795. "parameters": [
  13796. {
  13797. "name": "requestId",
  13798. "description": "Request identifier. Used to match this information to another responseReceived event.",
  13799. "$ref": "RequestId"
  13800. },
  13801. {
  13802. "name": "blockedCookies",
  13803. "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.",
  13804. "type": "array",
  13805. "items": {
  13806. "$ref": "BlockedSetCookieWithReason"
  13807. }
  13808. },
  13809. {
  13810. "name": "headers",
  13811. "description": "Raw response headers as they were received over the wire.",
  13812. "$ref": "Headers"
  13813. },
  13814. {
  13815. "name": "resourceIPAddressSpace",
  13816. "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`.",
  13817. "$ref": "IPAddressSpace"
  13818. },
  13819. {
  13820. "name": "statusCode",
  13821. "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.",
  13822. "type": "integer"
  13823. },
  13824. {
  13825. "name": "headersText",
  13826. "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.",
  13827. "optional": true,
  13828. "type": "string"
  13829. }
  13830. ]
  13831. },
  13832. {
  13833. "name": "trustTokenOperationDone",
  13834. "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.",
  13835. "experimental": true,
  13836. "parameters": [
  13837. {
  13838. "name": "status",
  13839. "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).",
  13840. "type": "string",
  13841. "enum": [
  13842. "Ok",
  13843. "InvalidArgument",
  13844. "FailedPrecondition",
  13845. "ResourceExhausted",
  13846. "AlreadyExists",
  13847. "Unavailable",
  13848. "BadResponse",
  13849. "InternalError",
  13850. "UnknownError",
  13851. "FulfilledLocally"
  13852. ]
  13853. },
  13854. {
  13855. "name": "type",
  13856. "$ref": "TrustTokenOperationType"
  13857. },
  13858. {
  13859. "name": "requestId",
  13860. "$ref": "RequestId"
  13861. },
  13862. {
  13863. "name": "topLevelOrigin",
  13864. "description": "Top level origin. The context in which the operation was attempted.",
  13865. "optional": true,
  13866. "type": "string"
  13867. },
  13868. {
  13869. "name": "issuerOrigin",
  13870. "description": "Origin of the issuer in case of a \"Issuance\" or \"Redemption\" operation.",
  13871. "optional": true,
  13872. "type": "string"
  13873. },
  13874. {
  13875. "name": "issuedTokenCount",
  13876. "description": "The number of obtained Trust Tokens on a successful \"Issuance\" operation.",
  13877. "optional": true,
  13878. "type": "integer"
  13879. }
  13880. ]
  13881. },
  13882. {
  13883. "name": "subresourceWebBundleMetadataReceived",
  13884. "description": "Fired once when parsing the .wbn file has succeeded.\nThe event contains the information about the web bundle contents.",
  13885. "experimental": true,
  13886. "parameters": [
  13887. {
  13888. "name": "requestId",
  13889. "description": "Request identifier. Used to match this information to another event.",
  13890. "$ref": "RequestId"
  13891. },
  13892. {
  13893. "name": "urls",
  13894. "description": "A list of URLs of resources in the subresource Web Bundle.",
  13895. "type": "array",
  13896. "items": {
  13897. "type": "string"
  13898. }
  13899. }
  13900. ]
  13901. },
  13902. {
  13903. "name": "subresourceWebBundleMetadataError",
  13904. "description": "Fired once when parsing the .wbn file has failed.",
  13905. "experimental": true,
  13906. "parameters": [
  13907. {
  13908. "name": "requestId",
  13909. "description": "Request identifier. Used to match this information to another event.",
  13910. "$ref": "RequestId"
  13911. },
  13912. {
  13913. "name": "errorMessage",
  13914. "description": "Error message",
  13915. "type": "string"
  13916. }
  13917. ]
  13918. },
  13919. {
  13920. "name": "subresourceWebBundleInnerResponseParsed",
  13921. "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.",
  13922. "experimental": true,
  13923. "parameters": [
  13924. {
  13925. "name": "innerRequestId",
  13926. "description": "Request identifier of the subresource request",
  13927. "$ref": "RequestId"
  13928. },
  13929. {
  13930. "name": "innerRequestURL",
  13931. "description": "URL of the subresource resource.",
  13932. "type": "string"
  13933. },
  13934. {
  13935. "name": "bundleRequestId",
  13936. "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.",
  13937. "optional": true,
  13938. "$ref": "RequestId"
  13939. }
  13940. ]
  13941. },
  13942. {
  13943. "name": "subresourceWebBundleInnerResponseError",
  13944. "description": "Fired when request for resources within a .wbn file failed.",
  13945. "experimental": true,
  13946. "parameters": [
  13947. {
  13948. "name": "innerRequestId",
  13949. "description": "Request identifier of the subresource request",
  13950. "$ref": "RequestId"
  13951. },
  13952. {
  13953. "name": "innerRequestURL",
  13954. "description": "URL of the subresource resource.",
  13955. "type": "string"
  13956. },
  13957. {
  13958. "name": "errorMessage",
  13959. "description": "Error message",
  13960. "type": "string"
  13961. },
  13962. {
  13963. "name": "bundleRequestId",
  13964. "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.",
  13965. "optional": true,
  13966. "$ref": "RequestId"
  13967. }
  13968. ]
  13969. },
  13970. {
  13971. "name": "reportingApiReportAdded",
  13972. "description": "Is sent whenever a new report is added.\nAnd after 'enableReportingApi' for all existing reports.",
  13973. "experimental": true,
  13974. "parameters": [
  13975. {
  13976. "name": "report",
  13977. "$ref": "ReportingApiReport"
  13978. }
  13979. ]
  13980. },
  13981. {
  13982. "name": "reportingApiReportUpdated",
  13983. "experimental": true,
  13984. "parameters": [
  13985. {
  13986. "name": "report",
  13987. "$ref": "ReportingApiReport"
  13988. }
  13989. ]
  13990. },
  13991. {
  13992. "name": "reportingApiEndpointsChangedForOrigin",
  13993. "experimental": true,
  13994. "parameters": [
  13995. {
  13996. "name": "origin",
  13997. "description": "Origin of the document(s) which configured the endpoints.",
  13998. "type": "string"
  13999. },
  14000. {
  14001. "name": "endpoints",
  14002. "type": "array",
  14003. "items": {
  14004. "$ref": "ReportingApiEndpoint"
  14005. }
  14006. }
  14007. ]
  14008. }
  14009. ]
  14010. },
  14011. {
  14012. "domain": "Overlay",
  14013. "description": "This domain provides various functionality related to drawing atop the inspected page.",
  14014. "experimental": true,
  14015. "dependencies": [
  14016. "DOM",
  14017. "Page",
  14018. "Runtime"
  14019. ],
  14020. "types": [
  14021. {
  14022. "id": "SourceOrderConfig",
  14023. "description": "Configuration data for drawing the source order of an elements children.",
  14024. "type": "object",
  14025. "properties": [
  14026. {
  14027. "name": "parentOutlineColor",
  14028. "description": "the color to outline the givent element in.",
  14029. "$ref": "DOM.RGBA"
  14030. },
  14031. {
  14032. "name": "childOutlineColor",
  14033. "description": "the color to outline the child elements in.",
  14034. "$ref": "DOM.RGBA"
  14035. }
  14036. ]
  14037. },
  14038. {
  14039. "id": "GridHighlightConfig",
  14040. "description": "Configuration data for the highlighting of Grid elements.",
  14041. "type": "object",
  14042. "properties": [
  14043. {
  14044. "name": "showGridExtensionLines",
  14045. "description": "Whether the extension lines from grid cells to the rulers should be shown (default: false).",
  14046. "optional": true,
  14047. "type": "boolean"
  14048. },
  14049. {
  14050. "name": "showPositiveLineNumbers",
  14051. "description": "Show Positive line number labels (default: false).",
  14052. "optional": true,
  14053. "type": "boolean"
  14054. },
  14055. {
  14056. "name": "showNegativeLineNumbers",
  14057. "description": "Show Negative line number labels (default: false).",
  14058. "optional": true,
  14059. "type": "boolean"
  14060. },
  14061. {
  14062. "name": "showAreaNames",
  14063. "description": "Show area name labels (default: false).",
  14064. "optional": true,
  14065. "type": "boolean"
  14066. },
  14067. {
  14068. "name": "showLineNames",
  14069. "description": "Show line name labels (default: false).",
  14070. "optional": true,
  14071. "type": "boolean"
  14072. },
  14073. {
  14074. "name": "showTrackSizes",
  14075. "description": "Show track size labels (default: false).",
  14076. "optional": true,
  14077. "type": "boolean"
  14078. },
  14079. {
  14080. "name": "gridBorderColor",
  14081. "description": "The grid container border highlight color (default: transparent).",
  14082. "optional": true,
  14083. "$ref": "DOM.RGBA"
  14084. },
  14085. {
  14086. "name": "cellBorderColor",
  14087. "description": "The cell border color (default: transparent). Deprecated, please use rowLineColor and columnLineColor instead.",
  14088. "deprecated": true,
  14089. "optional": true,
  14090. "$ref": "DOM.RGBA"
  14091. },
  14092. {
  14093. "name": "rowLineColor",
  14094. "description": "The row line color (default: transparent).",
  14095. "optional": true,
  14096. "$ref": "DOM.RGBA"
  14097. },
  14098. {
  14099. "name": "columnLineColor",
  14100. "description": "The column line color (default: transparent).",
  14101. "optional": true,
  14102. "$ref": "DOM.RGBA"
  14103. },
  14104. {
  14105. "name": "gridBorderDash",
  14106. "description": "Whether the grid border is dashed (default: false).",
  14107. "optional": true,
  14108. "type": "boolean"
  14109. },
  14110. {
  14111. "name": "cellBorderDash",
  14112. "description": "Whether the cell border is dashed (default: false). Deprecated, please us rowLineDash and columnLineDash instead.",
  14113. "deprecated": true,
  14114. "optional": true,
  14115. "type": "boolean"
  14116. },
  14117. {
  14118. "name": "rowLineDash",
  14119. "description": "Whether row lines are dashed (default: false).",
  14120. "optional": true,
  14121. "type": "boolean"
  14122. },
  14123. {
  14124. "name": "columnLineDash",
  14125. "description": "Whether column lines are dashed (default: false).",
  14126. "optional": true,
  14127. "type": "boolean"
  14128. },
  14129. {
  14130. "name": "rowGapColor",
  14131. "description": "The row gap highlight fill color (default: transparent).",
  14132. "optional": true,
  14133. "$ref": "DOM.RGBA"
  14134. },
  14135. {
  14136. "name": "rowHatchColor",
  14137. "description": "The row gap hatching fill color (default: transparent).",
  14138. "optional": true,
  14139. "$ref": "DOM.RGBA"
  14140. },
  14141. {
  14142. "name": "columnGapColor",
  14143. "description": "The column gap highlight fill color (default: transparent).",
  14144. "optional": true,
  14145. "$ref": "DOM.RGBA"
  14146. },
  14147. {
  14148. "name": "columnHatchColor",
  14149. "description": "The column gap hatching fill color (default: transparent).",
  14150. "optional": true,
  14151. "$ref": "DOM.RGBA"
  14152. },
  14153. {
  14154. "name": "areaBorderColor",
  14155. "description": "The named grid areas border color (Default: transparent).",
  14156. "optional": true,
  14157. "$ref": "DOM.RGBA"
  14158. },
  14159. {
  14160. "name": "gridBackgroundColor",
  14161. "description": "The grid container background color (Default: transparent).",
  14162. "optional": true,
  14163. "$ref": "DOM.RGBA"
  14164. }
  14165. ]
  14166. },
  14167. {
  14168. "id": "FlexContainerHighlightConfig",
  14169. "description": "Configuration data for the highlighting of Flex container elements.",
  14170. "type": "object",
  14171. "properties": [
  14172. {
  14173. "name": "containerBorder",
  14174. "description": "The style of the container border",
  14175. "optional": true,
  14176. "$ref": "LineStyle"
  14177. },
  14178. {
  14179. "name": "lineSeparator",
  14180. "description": "The style of the separator between lines",
  14181. "optional": true,
  14182. "$ref": "LineStyle"
  14183. },
  14184. {
  14185. "name": "itemSeparator",
  14186. "description": "The style of the separator between items",
  14187. "optional": true,
  14188. "$ref": "LineStyle"
  14189. },
  14190. {
  14191. "name": "mainDistributedSpace",
  14192. "description": "Style of content-distribution space on the main axis (justify-content).",
  14193. "optional": true,
  14194. "$ref": "BoxStyle"
  14195. },
  14196. {
  14197. "name": "crossDistributedSpace",
  14198. "description": "Style of content-distribution space on the cross axis (align-content).",
  14199. "optional": true,
  14200. "$ref": "BoxStyle"
  14201. },
  14202. {
  14203. "name": "rowGapSpace",
  14204. "description": "Style of empty space caused by row gaps (gap/row-gap).",
  14205. "optional": true,
  14206. "$ref": "BoxStyle"
  14207. },
  14208. {
  14209. "name": "columnGapSpace",
  14210. "description": "Style of empty space caused by columns gaps (gap/column-gap).",
  14211. "optional": true,
  14212. "$ref": "BoxStyle"
  14213. },
  14214. {
  14215. "name": "crossAlignment",
  14216. "description": "Style of the self-alignment line (align-items).",
  14217. "optional": true,
  14218. "$ref": "LineStyle"
  14219. }
  14220. ]
  14221. },
  14222. {
  14223. "id": "FlexItemHighlightConfig",
  14224. "description": "Configuration data for the highlighting of Flex item elements.",
  14225. "type": "object",
  14226. "properties": [
  14227. {
  14228. "name": "baseSizeBox",
  14229. "description": "Style of the box representing the item's base size",
  14230. "optional": true,
  14231. "$ref": "BoxStyle"
  14232. },
  14233. {
  14234. "name": "baseSizeBorder",
  14235. "description": "Style of the border around the box representing the item's base size",
  14236. "optional": true,
  14237. "$ref": "LineStyle"
  14238. },
  14239. {
  14240. "name": "flexibilityArrow",
  14241. "description": "Style of the arrow representing if the item grew or shrank",
  14242. "optional": true,
  14243. "$ref": "LineStyle"
  14244. }
  14245. ]
  14246. },
  14247. {
  14248. "id": "LineStyle",
  14249. "description": "Style information for drawing a line.",
  14250. "type": "object",
  14251. "properties": [
  14252. {
  14253. "name": "color",
  14254. "description": "The color of the line (default: transparent)",
  14255. "optional": true,
  14256. "$ref": "DOM.RGBA"
  14257. },
  14258. {
  14259. "name": "pattern",
  14260. "description": "The line pattern (default: solid)",
  14261. "optional": true,
  14262. "type": "string",
  14263. "enum": [
  14264. "dashed",
  14265. "dotted"
  14266. ]
  14267. }
  14268. ]
  14269. },
  14270. {
  14271. "id": "BoxStyle",
  14272. "description": "Style information for drawing a box.",
  14273. "type": "object",
  14274. "properties": [
  14275. {
  14276. "name": "fillColor",
  14277. "description": "The background color for the box (default: transparent)",
  14278. "optional": true,
  14279. "$ref": "DOM.RGBA"
  14280. },
  14281. {
  14282. "name": "hatchColor",
  14283. "description": "The hatching color for the box (default: transparent)",
  14284. "optional": true,
  14285. "$ref": "DOM.RGBA"
  14286. }
  14287. ]
  14288. },
  14289. {
  14290. "id": "ContrastAlgorithm",
  14291. "type": "string",
  14292. "enum": [
  14293. "aa",
  14294. "aaa",
  14295. "apca"
  14296. ]
  14297. },
  14298. {
  14299. "id": "HighlightConfig",
  14300. "description": "Configuration data for the highlighting of page elements.",
  14301. "type": "object",
  14302. "properties": [
  14303. {
  14304. "name": "showInfo",
  14305. "description": "Whether the node info tooltip should be shown (default: false).",
  14306. "optional": true,
  14307. "type": "boolean"
  14308. },
  14309. {
  14310. "name": "showStyles",
  14311. "description": "Whether the node styles in the tooltip (default: false).",
  14312. "optional": true,
  14313. "type": "boolean"
  14314. },
  14315. {
  14316. "name": "showRulers",
  14317. "description": "Whether the rulers should be shown (default: false).",
  14318. "optional": true,
  14319. "type": "boolean"
  14320. },
  14321. {
  14322. "name": "showAccessibilityInfo",
  14323. "description": "Whether the a11y info should be shown (default: true).",
  14324. "optional": true,
  14325. "type": "boolean"
  14326. },
  14327. {
  14328. "name": "showExtensionLines",
  14329. "description": "Whether the extension lines from node to the rulers should be shown (default: false).",
  14330. "optional": true,
  14331. "type": "boolean"
  14332. },
  14333. {
  14334. "name": "contentColor",
  14335. "description": "The content box highlight fill color (default: transparent).",
  14336. "optional": true,
  14337. "$ref": "DOM.RGBA"
  14338. },
  14339. {
  14340. "name": "paddingColor",
  14341. "description": "The padding highlight fill color (default: transparent).",
  14342. "optional": true,
  14343. "$ref": "DOM.RGBA"
  14344. },
  14345. {
  14346. "name": "borderColor",
  14347. "description": "The border highlight fill color (default: transparent).",
  14348. "optional": true,
  14349. "$ref": "DOM.RGBA"
  14350. },
  14351. {
  14352. "name": "marginColor",
  14353. "description": "The margin highlight fill color (default: transparent).",
  14354. "optional": true,
  14355. "$ref": "DOM.RGBA"
  14356. },
  14357. {
  14358. "name": "eventTargetColor",
  14359. "description": "The event target element highlight fill color (default: transparent).",
  14360. "optional": true,
  14361. "$ref": "DOM.RGBA"
  14362. },
  14363. {
  14364. "name": "shapeColor",
  14365. "description": "The shape outside fill color (default: transparent).",
  14366. "optional": true,
  14367. "$ref": "DOM.RGBA"
  14368. },
  14369. {
  14370. "name": "shapeMarginColor",
  14371. "description": "The shape margin fill color (default: transparent).",
  14372. "optional": true,
  14373. "$ref": "DOM.RGBA"
  14374. },
  14375. {
  14376. "name": "cssGridColor",
  14377. "description": "The grid layout color (default: transparent).",
  14378. "optional": true,
  14379. "$ref": "DOM.RGBA"
  14380. },
  14381. {
  14382. "name": "colorFormat",
  14383. "description": "The color format used to format color styles (default: hex).",
  14384. "optional": true,
  14385. "$ref": "ColorFormat"
  14386. },
  14387. {
  14388. "name": "gridHighlightConfig",
  14389. "description": "The grid layout highlight configuration (default: all transparent).",
  14390. "optional": true,
  14391. "$ref": "GridHighlightConfig"
  14392. },
  14393. {
  14394. "name": "flexContainerHighlightConfig",
  14395. "description": "The flex container highlight configuration (default: all transparent).",
  14396. "optional": true,
  14397. "$ref": "FlexContainerHighlightConfig"
  14398. },
  14399. {
  14400. "name": "flexItemHighlightConfig",
  14401. "description": "The flex item highlight configuration (default: all transparent).",
  14402. "optional": true,
  14403. "$ref": "FlexItemHighlightConfig"
  14404. },
  14405. {
  14406. "name": "contrastAlgorithm",
  14407. "description": "The contrast algorithm to use for the contrast ratio (default: aa).",
  14408. "optional": true,
  14409. "$ref": "ContrastAlgorithm"
  14410. },
  14411. {
  14412. "name": "containerQueryContainerHighlightConfig",
  14413. "description": "The container query container highlight configuration (default: all transparent).",
  14414. "optional": true,
  14415. "$ref": "ContainerQueryContainerHighlightConfig"
  14416. }
  14417. ]
  14418. },
  14419. {
  14420. "id": "ColorFormat",
  14421. "type": "string",
  14422. "enum": [
  14423. "rgb",
  14424. "hsl",
  14425. "hwb",
  14426. "hex"
  14427. ]
  14428. },
  14429. {
  14430. "id": "GridNodeHighlightConfig",
  14431. "description": "Configurations for Persistent Grid Highlight",
  14432. "type": "object",
  14433. "properties": [
  14434. {
  14435. "name": "gridHighlightConfig",
  14436. "description": "A descriptor for the highlight appearance.",
  14437. "$ref": "GridHighlightConfig"
  14438. },
  14439. {
  14440. "name": "nodeId",
  14441. "description": "Identifier of the node to highlight.",
  14442. "$ref": "DOM.NodeId"
  14443. }
  14444. ]
  14445. },
  14446. {
  14447. "id": "FlexNodeHighlightConfig",
  14448. "type": "object",
  14449. "properties": [
  14450. {
  14451. "name": "flexContainerHighlightConfig",
  14452. "description": "A descriptor for the highlight appearance of flex containers.",
  14453. "$ref": "FlexContainerHighlightConfig"
  14454. },
  14455. {
  14456. "name": "nodeId",
  14457. "description": "Identifier of the node to highlight.",
  14458. "$ref": "DOM.NodeId"
  14459. }
  14460. ]
  14461. },
  14462. {
  14463. "id": "ScrollSnapContainerHighlightConfig",
  14464. "type": "object",
  14465. "properties": [
  14466. {
  14467. "name": "snapportBorder",
  14468. "description": "The style of the snapport border (default: transparent)",
  14469. "optional": true,
  14470. "$ref": "LineStyle"
  14471. },
  14472. {
  14473. "name": "snapAreaBorder",
  14474. "description": "The style of the snap area border (default: transparent)",
  14475. "optional": true,
  14476. "$ref": "LineStyle"
  14477. },
  14478. {
  14479. "name": "scrollMarginColor",
  14480. "description": "The margin highlight fill color (default: transparent).",
  14481. "optional": true,
  14482. "$ref": "DOM.RGBA"
  14483. },
  14484. {
  14485. "name": "scrollPaddingColor",
  14486. "description": "The padding highlight fill color (default: transparent).",
  14487. "optional": true,
  14488. "$ref": "DOM.RGBA"
  14489. }
  14490. ]
  14491. },
  14492. {
  14493. "id": "ScrollSnapHighlightConfig",
  14494. "type": "object",
  14495. "properties": [
  14496. {
  14497. "name": "scrollSnapContainerHighlightConfig",
  14498. "description": "A descriptor for the highlight appearance of scroll snap containers.",
  14499. "$ref": "ScrollSnapContainerHighlightConfig"
  14500. },
  14501. {
  14502. "name": "nodeId",
  14503. "description": "Identifier of the node to highlight.",
  14504. "$ref": "DOM.NodeId"
  14505. }
  14506. ]
  14507. },
  14508. {
  14509. "id": "HingeConfig",
  14510. "description": "Configuration for dual screen hinge",
  14511. "type": "object",
  14512. "properties": [
  14513. {
  14514. "name": "rect",
  14515. "description": "A rectangle represent hinge",
  14516. "$ref": "DOM.Rect"
  14517. },
  14518. {
  14519. "name": "contentColor",
  14520. "description": "The content box highlight fill color (default: a dark color).",
  14521. "optional": true,
  14522. "$ref": "DOM.RGBA"
  14523. },
  14524. {
  14525. "name": "outlineColor",
  14526. "description": "The content box highlight outline color (default: transparent).",
  14527. "optional": true,
  14528. "$ref": "DOM.RGBA"
  14529. }
  14530. ]
  14531. },
  14532. {
  14533. "id": "ContainerQueryHighlightConfig",
  14534. "type": "object",
  14535. "properties": [
  14536. {
  14537. "name": "containerQueryContainerHighlightConfig",
  14538. "description": "A descriptor for the highlight appearance of container query containers.",
  14539. "$ref": "ContainerQueryContainerHighlightConfig"
  14540. },
  14541. {
  14542. "name": "nodeId",
  14543. "description": "Identifier of the container node to highlight.",
  14544. "$ref": "DOM.NodeId"
  14545. }
  14546. ]
  14547. },
  14548. {
  14549. "id": "ContainerQueryContainerHighlightConfig",
  14550. "type": "object",
  14551. "properties": [
  14552. {
  14553. "name": "containerBorder",
  14554. "description": "The style of the container border.",
  14555. "optional": true,
  14556. "$ref": "LineStyle"
  14557. },
  14558. {
  14559. "name": "descendantBorder",
  14560. "description": "The style of the descendants' borders.",
  14561. "optional": true,
  14562. "$ref": "LineStyle"
  14563. }
  14564. ]
  14565. },
  14566. {
  14567. "id": "IsolatedElementHighlightConfig",
  14568. "type": "object",
  14569. "properties": [
  14570. {
  14571. "name": "isolationModeHighlightConfig",
  14572. "description": "A descriptor for the highlight appearance of an element in isolation mode.",
  14573. "$ref": "IsolationModeHighlightConfig"
  14574. },
  14575. {
  14576. "name": "nodeId",
  14577. "description": "Identifier of the isolated element to highlight.",
  14578. "$ref": "DOM.NodeId"
  14579. }
  14580. ]
  14581. },
  14582. {
  14583. "id": "IsolationModeHighlightConfig",
  14584. "type": "object",
  14585. "properties": [
  14586. {
  14587. "name": "resizerColor",
  14588. "description": "The fill color of the resizers (default: transparent).",
  14589. "optional": true,
  14590. "$ref": "DOM.RGBA"
  14591. },
  14592. {
  14593. "name": "resizerHandleColor",
  14594. "description": "The fill color for resizer handles (default: transparent).",
  14595. "optional": true,
  14596. "$ref": "DOM.RGBA"
  14597. },
  14598. {
  14599. "name": "maskColor",
  14600. "description": "The fill color for the mask covering non-isolated elements (default: transparent).",
  14601. "optional": true,
  14602. "$ref": "DOM.RGBA"
  14603. }
  14604. ]
  14605. },
  14606. {
  14607. "id": "InspectMode",
  14608. "type": "string",
  14609. "enum": [
  14610. "searchForNode",
  14611. "searchForUAShadowDOM",
  14612. "captureAreaScreenshot",
  14613. "showDistances",
  14614. "none"
  14615. ]
  14616. }
  14617. ],
  14618. "commands": [
  14619. {
  14620. "name": "disable",
  14621. "description": "Disables domain notifications."
  14622. },
  14623. {
  14624. "name": "enable",
  14625. "description": "Enables domain notifications."
  14626. },
  14627. {
  14628. "name": "getHighlightObjectForTest",
  14629. "description": "For testing.",
  14630. "parameters": [
  14631. {
  14632. "name": "nodeId",
  14633. "description": "Id of the node to get highlight object for.",
  14634. "$ref": "DOM.NodeId"
  14635. },
  14636. {
  14637. "name": "includeDistance",
  14638. "description": "Whether to include distance info.",
  14639. "optional": true,
  14640. "type": "boolean"
  14641. },
  14642. {
  14643. "name": "includeStyle",
  14644. "description": "Whether to include style info.",
  14645. "optional": true,
  14646. "type": "boolean"
  14647. },
  14648. {
  14649. "name": "colorFormat",
  14650. "description": "The color format to get config with (default: hex).",
  14651. "optional": true,
  14652. "$ref": "ColorFormat"
  14653. },
  14654. {
  14655. "name": "showAccessibilityInfo",
  14656. "description": "Whether to show accessibility info (default: true).",
  14657. "optional": true,
  14658. "type": "boolean"
  14659. }
  14660. ],
  14661. "returns": [
  14662. {
  14663. "name": "highlight",
  14664. "description": "Highlight data for the node.",
  14665. "type": "object"
  14666. }
  14667. ]
  14668. },
  14669. {
  14670. "name": "getGridHighlightObjectsForTest",
  14671. "description": "For Persistent Grid testing.",
  14672. "parameters": [
  14673. {
  14674. "name": "nodeIds",
  14675. "description": "Ids of the node to get highlight object for.",
  14676. "type": "array",
  14677. "items": {
  14678. "$ref": "DOM.NodeId"
  14679. }
  14680. }
  14681. ],
  14682. "returns": [
  14683. {
  14684. "name": "highlights",
  14685. "description": "Grid Highlight data for the node ids provided.",
  14686. "type": "object"
  14687. }
  14688. ]
  14689. },
  14690. {
  14691. "name": "getSourceOrderHighlightObjectForTest",
  14692. "description": "For Source Order Viewer testing.",
  14693. "parameters": [
  14694. {
  14695. "name": "nodeId",
  14696. "description": "Id of the node to highlight.",
  14697. "$ref": "DOM.NodeId"
  14698. }
  14699. ],
  14700. "returns": [
  14701. {
  14702. "name": "highlight",
  14703. "description": "Source order highlight data for the node id provided.",
  14704. "type": "object"
  14705. }
  14706. ]
  14707. },
  14708. {
  14709. "name": "hideHighlight",
  14710. "description": "Hides any highlight."
  14711. },
  14712. {
  14713. "name": "highlightFrame",
  14714. "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.",
  14715. "deprecated": true,
  14716. "parameters": [
  14717. {
  14718. "name": "frameId",
  14719. "description": "Identifier of the frame to highlight.",
  14720. "$ref": "Page.FrameId"
  14721. },
  14722. {
  14723. "name": "contentColor",
  14724. "description": "The content box highlight fill color (default: transparent).",
  14725. "optional": true,
  14726. "$ref": "DOM.RGBA"
  14727. },
  14728. {
  14729. "name": "contentOutlineColor",
  14730. "description": "The content box highlight outline color (default: transparent).",
  14731. "optional": true,
  14732. "$ref": "DOM.RGBA"
  14733. }
  14734. ]
  14735. },
  14736. {
  14737. "name": "highlightNode",
  14738. "description": "Highlights DOM node with given id or with the given JavaScript object wrapper. Either nodeId or\nobjectId must be specified.",
  14739. "parameters": [
  14740. {
  14741. "name": "highlightConfig",
  14742. "description": "A descriptor for the highlight appearance.",
  14743. "$ref": "HighlightConfig"
  14744. },
  14745. {
  14746. "name": "nodeId",
  14747. "description": "Identifier of the node to highlight.",
  14748. "optional": true,
  14749. "$ref": "DOM.NodeId"
  14750. },
  14751. {
  14752. "name": "backendNodeId",
  14753. "description": "Identifier of the backend node to highlight.",
  14754. "optional": true,
  14755. "$ref": "DOM.BackendNodeId"
  14756. },
  14757. {
  14758. "name": "objectId",
  14759. "description": "JavaScript object id of the node to be highlighted.",
  14760. "optional": true,
  14761. "$ref": "Runtime.RemoteObjectId"
  14762. },
  14763. {
  14764. "name": "selector",
  14765. "description": "Selectors to highlight relevant nodes.",
  14766. "optional": true,
  14767. "type": "string"
  14768. }
  14769. ]
  14770. },
  14771. {
  14772. "name": "highlightQuad",
  14773. "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
  14774. "parameters": [
  14775. {
  14776. "name": "quad",
  14777. "description": "Quad to highlight",
  14778. "$ref": "DOM.Quad"
  14779. },
  14780. {
  14781. "name": "color",
  14782. "description": "The highlight fill color (default: transparent).",
  14783. "optional": true,
  14784. "$ref": "DOM.RGBA"
  14785. },
  14786. {
  14787. "name": "outlineColor",
  14788. "description": "The highlight outline color (default: transparent).",
  14789. "optional": true,
  14790. "$ref": "DOM.RGBA"
  14791. }
  14792. ]
  14793. },
  14794. {
  14795. "name": "highlightRect",
  14796. "description": "Highlights given rectangle. Coordinates are absolute with respect to the main frame viewport.",
  14797. "parameters": [
  14798. {
  14799. "name": "x",
  14800. "description": "X coordinate",
  14801. "type": "integer"
  14802. },
  14803. {
  14804. "name": "y",
  14805. "description": "Y coordinate",
  14806. "type": "integer"
  14807. },
  14808. {
  14809. "name": "width",
  14810. "description": "Rectangle width",
  14811. "type": "integer"
  14812. },
  14813. {
  14814. "name": "height",
  14815. "description": "Rectangle height",
  14816. "type": "integer"
  14817. },
  14818. {
  14819. "name": "color",
  14820. "description": "The highlight fill color (default: transparent).",
  14821. "optional": true,
  14822. "$ref": "DOM.RGBA"
  14823. },
  14824. {
  14825. "name": "outlineColor",
  14826. "description": "The highlight outline color (default: transparent).",
  14827. "optional": true,
  14828. "$ref": "DOM.RGBA"
  14829. }
  14830. ]
  14831. },
  14832. {
  14833. "name": "highlightSourceOrder",
  14834. "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.",
  14835. "parameters": [
  14836. {
  14837. "name": "sourceOrderConfig",
  14838. "description": "A descriptor for the appearance of the overlay drawing.",
  14839. "$ref": "SourceOrderConfig"
  14840. },
  14841. {
  14842. "name": "nodeId",
  14843. "description": "Identifier of the node to highlight.",
  14844. "optional": true,
  14845. "$ref": "DOM.NodeId"
  14846. },
  14847. {
  14848. "name": "backendNodeId",
  14849. "description": "Identifier of the backend node to highlight.",
  14850. "optional": true,
  14851. "$ref": "DOM.BackendNodeId"
  14852. },
  14853. {
  14854. "name": "objectId",
  14855. "description": "JavaScript object id of the node to be highlighted.",
  14856. "optional": true,
  14857. "$ref": "Runtime.RemoteObjectId"
  14858. }
  14859. ]
  14860. },
  14861. {
  14862. "name": "setInspectMode",
  14863. "description": "Enters the 'inspect' mode. In this mode, elements that user is hovering over are highlighted.\nBackend then generates 'inspectNodeRequested' event upon element selection.",
  14864. "parameters": [
  14865. {
  14866. "name": "mode",
  14867. "description": "Set an inspection mode.",
  14868. "$ref": "InspectMode"
  14869. },
  14870. {
  14871. "name": "highlightConfig",
  14872. "description": "A descriptor for the highlight appearance of hovered-over nodes. May be omitted if `enabled\n== false`.",
  14873. "optional": true,
  14874. "$ref": "HighlightConfig"
  14875. }
  14876. ]
  14877. },
  14878. {
  14879. "name": "setShowAdHighlights",
  14880. "description": "Highlights owner element of all frames detected to be ads.",
  14881. "parameters": [
  14882. {
  14883. "name": "show",
  14884. "description": "True for showing ad highlights",
  14885. "type": "boolean"
  14886. }
  14887. ]
  14888. },
  14889. {
  14890. "name": "setPausedInDebuggerMessage",
  14891. "parameters": [
  14892. {
  14893. "name": "message",
  14894. "description": "The message to display, also triggers resume and step over controls.",
  14895. "optional": true,
  14896. "type": "string"
  14897. }
  14898. ]
  14899. },
  14900. {
  14901. "name": "setShowDebugBorders",
  14902. "description": "Requests that backend shows debug borders on layers",
  14903. "parameters": [
  14904. {
  14905. "name": "show",
  14906. "description": "True for showing debug borders",
  14907. "type": "boolean"
  14908. }
  14909. ]
  14910. },
  14911. {
  14912. "name": "setShowFPSCounter",
  14913. "description": "Requests that backend shows the FPS counter",
  14914. "parameters": [
  14915. {
  14916. "name": "show",
  14917. "description": "True for showing the FPS counter",
  14918. "type": "boolean"
  14919. }
  14920. ]
  14921. },
  14922. {
  14923. "name": "setShowGridOverlays",
  14924. "description": "Highlight multiple elements with the CSS Grid overlay.",
  14925. "parameters": [
  14926. {
  14927. "name": "gridNodeHighlightConfigs",
  14928. "description": "An array of node identifiers and descriptors for the highlight appearance.",
  14929. "type": "array",
  14930. "items": {
  14931. "$ref": "GridNodeHighlightConfig"
  14932. }
  14933. }
  14934. ]
  14935. },
  14936. {
  14937. "name": "setShowFlexOverlays",
  14938. "parameters": [
  14939. {
  14940. "name": "flexNodeHighlightConfigs",
  14941. "description": "An array of node identifiers and descriptors for the highlight appearance.",
  14942. "type": "array",
  14943. "items": {
  14944. "$ref": "FlexNodeHighlightConfig"
  14945. }
  14946. }
  14947. ]
  14948. },
  14949. {
  14950. "name": "setShowScrollSnapOverlays",
  14951. "parameters": [
  14952. {
  14953. "name": "scrollSnapHighlightConfigs",
  14954. "description": "An array of node identifiers and descriptors for the highlight appearance.",
  14955. "type": "array",
  14956. "items": {
  14957. "$ref": "ScrollSnapHighlightConfig"
  14958. }
  14959. }
  14960. ]
  14961. },
  14962. {
  14963. "name": "setShowContainerQueryOverlays",
  14964. "parameters": [
  14965. {
  14966. "name": "containerQueryHighlightConfigs",
  14967. "description": "An array of node identifiers and descriptors for the highlight appearance.",
  14968. "type": "array",
  14969. "items": {
  14970. "$ref": "ContainerQueryHighlightConfig"
  14971. }
  14972. }
  14973. ]
  14974. },
  14975. {
  14976. "name": "setShowPaintRects",
  14977. "description": "Requests that backend shows paint rectangles",
  14978. "parameters": [
  14979. {
  14980. "name": "result",
  14981. "description": "True for showing paint rectangles",
  14982. "type": "boolean"
  14983. }
  14984. ]
  14985. },
  14986. {
  14987. "name": "setShowLayoutShiftRegions",
  14988. "description": "Requests that backend shows layout shift regions",
  14989. "parameters": [
  14990. {
  14991. "name": "result",
  14992. "description": "True for showing layout shift regions",
  14993. "type": "boolean"
  14994. }
  14995. ]
  14996. },
  14997. {
  14998. "name": "setShowScrollBottleneckRects",
  14999. "description": "Requests that backend shows scroll bottleneck rects",
  15000. "parameters": [
  15001. {
  15002. "name": "show",
  15003. "description": "True for showing scroll bottleneck rects",
  15004. "type": "boolean"
  15005. }
  15006. ]
  15007. },
  15008. {
  15009. "name": "setShowHitTestBorders",
  15010. "description": "Deprecated, no longer has any effect.",
  15011. "deprecated": true,
  15012. "parameters": [
  15013. {
  15014. "name": "show",
  15015. "description": "True for showing hit-test borders",
  15016. "type": "boolean"
  15017. }
  15018. ]
  15019. },
  15020. {
  15021. "name": "setShowWebVitals",
  15022. "description": "Request that backend shows an overlay with web vital metrics.",
  15023. "parameters": [
  15024. {
  15025. "name": "show",
  15026. "type": "boolean"
  15027. }
  15028. ]
  15029. },
  15030. {
  15031. "name": "setShowViewportSizeOnResize",
  15032. "description": "Paints viewport size upon main frame resize.",
  15033. "parameters": [
  15034. {
  15035. "name": "show",
  15036. "description": "Whether to paint size or not.",
  15037. "type": "boolean"
  15038. }
  15039. ]
  15040. },
  15041. {
  15042. "name": "setShowHinge",
  15043. "description": "Add a dual screen device hinge",
  15044. "parameters": [
  15045. {
  15046. "name": "hingeConfig",
  15047. "description": "hinge data, null means hideHinge",
  15048. "optional": true,
  15049. "$ref": "HingeConfig"
  15050. }
  15051. ]
  15052. },
  15053. {
  15054. "name": "setShowIsolatedElements",
  15055. "description": "Show elements in isolation mode with overlays.",
  15056. "parameters": [
  15057. {
  15058. "name": "isolatedElementHighlightConfigs",
  15059. "description": "An array of node identifiers and descriptors for the highlight appearance.",
  15060. "type": "array",
  15061. "items": {
  15062. "$ref": "IsolatedElementHighlightConfig"
  15063. }
  15064. }
  15065. ]
  15066. }
  15067. ],
  15068. "events": [
  15069. {
  15070. "name": "inspectNodeRequested",
  15071. "description": "Fired when the node should be inspected. This happens after call to `setInspectMode` or when\nuser manually inspects an element.",
  15072. "parameters": [
  15073. {
  15074. "name": "backendNodeId",
  15075. "description": "Id of the node to inspect.",
  15076. "$ref": "DOM.BackendNodeId"
  15077. }
  15078. ]
  15079. },
  15080. {
  15081. "name": "nodeHighlightRequested",
  15082. "description": "Fired when the node should be highlighted. This happens after call to `setInspectMode`.",
  15083. "parameters": [
  15084. {
  15085. "name": "nodeId",
  15086. "$ref": "DOM.NodeId"
  15087. }
  15088. ]
  15089. },
  15090. {
  15091. "name": "screenshotRequested",
  15092. "description": "Fired when user asks to capture screenshot of some area on the page.",
  15093. "parameters": [
  15094. {
  15095. "name": "viewport",
  15096. "description": "Viewport to capture, in device independent pixels (dip).",
  15097. "$ref": "Page.Viewport"
  15098. }
  15099. ]
  15100. },
  15101. {
  15102. "name": "inspectModeCanceled",
  15103. "description": "Fired when user cancels the inspect mode."
  15104. }
  15105. ]
  15106. },
  15107. {
  15108. "domain": "Page",
  15109. "description": "Actions and events related to the inspected page belong to the page domain.",
  15110. "dependencies": [
  15111. "Debugger",
  15112. "DOM",
  15113. "IO",
  15114. "Network",
  15115. "Runtime"
  15116. ],
  15117. "types": [
  15118. {
  15119. "id": "FrameId",
  15120. "description": "Unique frame identifier.",
  15121. "type": "string"
  15122. },
  15123. {
  15124. "id": "AdFrameType",
  15125. "description": "Indicates whether a frame has been identified as an ad.",
  15126. "experimental": true,
  15127. "type": "string",
  15128. "enum": [
  15129. "none",
  15130. "child",
  15131. "root"
  15132. ]
  15133. },
  15134. {
  15135. "id": "AdFrameExplanation",
  15136. "experimental": true,
  15137. "type": "string",
  15138. "enum": [
  15139. "ParentIsAd",
  15140. "CreatedByAdScript",
  15141. "MatchedBlockingRule"
  15142. ]
  15143. },
  15144. {
  15145. "id": "AdFrameStatus",
  15146. "description": "Indicates whether a frame has been identified as an ad and why.",
  15147. "experimental": true,
  15148. "type": "object",
  15149. "properties": [
  15150. {
  15151. "name": "adFrameType",
  15152. "$ref": "AdFrameType"
  15153. },
  15154. {
  15155. "name": "explanations",
  15156. "optional": true,
  15157. "type": "array",
  15158. "items": {
  15159. "$ref": "AdFrameExplanation"
  15160. }
  15161. }
  15162. ]
  15163. },
  15164. {
  15165. "id": "AdScriptId",
  15166. "description": "Identifies the bottom-most script which caused the frame to be labelled\nas an ad.",
  15167. "experimental": true,
  15168. "type": "object",
  15169. "properties": [
  15170. {
  15171. "name": "scriptId",
  15172. "description": "Script Id of the bottom-most script which caused the frame to be labelled\nas an ad.",
  15173. "$ref": "Runtime.ScriptId"
  15174. },
  15175. {
  15176. "name": "debuggerId",
  15177. "description": "Id of adScriptId's debugger.",
  15178. "$ref": "Runtime.UniqueDebuggerId"
  15179. }
  15180. ]
  15181. },
  15182. {
  15183. "id": "SecureContextType",
  15184. "description": "Indicates whether the frame is a secure context and why it is the case.",
  15185. "experimental": true,
  15186. "type": "string",
  15187. "enum": [
  15188. "Secure",
  15189. "SecureLocalhost",
  15190. "InsecureScheme",
  15191. "InsecureAncestor"
  15192. ]
  15193. },
  15194. {
  15195. "id": "CrossOriginIsolatedContextType",
  15196. "description": "Indicates whether the frame is cross-origin isolated and why it is the case.",
  15197. "experimental": true,
  15198. "type": "string",
  15199. "enum": [
  15200. "Isolated",
  15201. "NotIsolated",
  15202. "NotIsolatedFeatureDisabled"
  15203. ]
  15204. },
  15205. {
  15206. "id": "GatedAPIFeatures",
  15207. "experimental": true,
  15208. "type": "string",
  15209. "enum": [
  15210. "SharedArrayBuffers",
  15211. "SharedArrayBuffersTransferAllowed",
  15212. "PerformanceMeasureMemory",
  15213. "PerformanceProfile"
  15214. ]
  15215. },
  15216. {
  15217. "id": "PermissionsPolicyFeature",
  15218. "description": "All Permissions Policy features. This enum should match the one defined\nin third_party/blink/renderer/core/permissions_policy/permissions_policy_features.json5.",
  15219. "experimental": true,
  15220. "type": "string",
  15221. "enum": [
  15222. "accelerometer",
  15223. "ambient-light-sensor",
  15224. "attribution-reporting",
  15225. "autoplay",
  15226. "bluetooth",
  15227. "browsing-topics",
  15228. "camera",
  15229. "ch-dpr",
  15230. "ch-device-memory",
  15231. "ch-downlink",
  15232. "ch-ect",
  15233. "ch-prefers-color-scheme",
  15234. "ch-rtt",
  15235. "ch-save-data",
  15236. "ch-ua",
  15237. "ch-ua-arch",
  15238. "ch-ua-bitness",
  15239. "ch-ua-platform",
  15240. "ch-ua-model",
  15241. "ch-ua-mobile",
  15242. "ch-ua-full",
  15243. "ch-ua-full-version",
  15244. "ch-ua-full-version-list",
  15245. "ch-ua-platform-version",
  15246. "ch-ua-reduced",
  15247. "ch-ua-wow64",
  15248. "ch-viewport-height",
  15249. "ch-viewport-width",
  15250. "ch-width",
  15251. "clipboard-read",
  15252. "clipboard-write",
  15253. "cross-origin-isolated",
  15254. "direct-sockets",
  15255. "display-capture",
  15256. "document-domain",
  15257. "encrypted-media",
  15258. "execution-while-out-of-viewport",
  15259. "execution-while-not-rendered",
  15260. "federated-credentials",
  15261. "focus-without-user-activation",
  15262. "fullscreen",
  15263. "frobulate",
  15264. "gamepad",
  15265. "geolocation",
  15266. "gyroscope",
  15267. "hid",
  15268. "idle-detection",
  15269. "interest-cohort",
  15270. "join-ad-interest-group",
  15271. "keyboard-map",
  15272. "local-fonts",
  15273. "magnetometer",
  15274. "microphone",
  15275. "midi",
  15276. "otp-credentials",
  15277. "payment",
  15278. "picture-in-picture",
  15279. "publickey-credentials-get",
  15280. "run-ad-auction",
  15281. "screen-wake-lock",
  15282. "serial",
  15283. "shared-autofill",
  15284. "shared-storage",
  15285. "storage-access",
  15286. "sync-xhr",
  15287. "trust-token-redemption",
  15288. "unload",
  15289. "usb",
  15290. "vertical-scroll",
  15291. "web-share",
  15292. "window-placement",
  15293. "xr-spatial-tracking"
  15294. ]
  15295. },
  15296. {
  15297. "id": "PermissionsPolicyBlockReason",
  15298. "description": "Reason for a permissions policy feature to be disabled.",
  15299. "experimental": true,
  15300. "type": "string",
  15301. "enum": [
  15302. "Header",
  15303. "IframeAttribute",
  15304. "InFencedFrameTree",
  15305. "InIsolatedApp"
  15306. ]
  15307. },
  15308. {
  15309. "id": "PermissionsPolicyBlockLocator",
  15310. "experimental": true,
  15311. "type": "object",
  15312. "properties": [
  15313. {
  15314. "name": "frameId",
  15315. "$ref": "FrameId"
  15316. },
  15317. {
  15318. "name": "blockReason",
  15319. "$ref": "PermissionsPolicyBlockReason"
  15320. }
  15321. ]
  15322. },
  15323. {
  15324. "id": "PermissionsPolicyFeatureState",
  15325. "experimental": true,
  15326. "type": "object",
  15327. "properties": [
  15328. {
  15329. "name": "feature",
  15330. "$ref": "PermissionsPolicyFeature"
  15331. },
  15332. {
  15333. "name": "allowed",
  15334. "type": "boolean"
  15335. },
  15336. {
  15337. "name": "locator",
  15338. "optional": true,
  15339. "$ref": "PermissionsPolicyBlockLocator"
  15340. }
  15341. ]
  15342. },
  15343. {
  15344. "id": "OriginTrialTokenStatus",
  15345. "description": "Origin Trial(https://www.chromium.org/blink/origin-trials) support.\nStatus for an Origin Trial token.",
  15346. "experimental": true,
  15347. "type": "string",
  15348. "enum": [
  15349. "Success",
  15350. "NotSupported",
  15351. "Insecure",
  15352. "Expired",
  15353. "WrongOrigin",
  15354. "InvalidSignature",
  15355. "Malformed",
  15356. "WrongVersion",
  15357. "FeatureDisabled",
  15358. "TokenDisabled",
  15359. "FeatureDisabledForUser",
  15360. "UnknownTrial"
  15361. ]
  15362. },
  15363. {
  15364. "id": "OriginTrialStatus",
  15365. "description": "Status for an Origin Trial.",
  15366. "experimental": true,
  15367. "type": "string",
  15368. "enum": [
  15369. "Enabled",
  15370. "ValidTokenNotProvided",
  15371. "OSNotSupported",
  15372. "TrialNotAllowed"
  15373. ]
  15374. },
  15375. {
  15376. "id": "OriginTrialUsageRestriction",
  15377. "experimental": true,
  15378. "type": "string",
  15379. "enum": [
  15380. "None",
  15381. "Subset"
  15382. ]
  15383. },
  15384. {
  15385. "id": "OriginTrialToken",
  15386. "experimental": true,
  15387. "type": "object",
  15388. "properties": [
  15389. {
  15390. "name": "origin",
  15391. "type": "string"
  15392. },
  15393. {
  15394. "name": "matchSubDomains",
  15395. "type": "boolean"
  15396. },
  15397. {
  15398. "name": "trialName",
  15399. "type": "string"
  15400. },
  15401. {
  15402. "name": "expiryTime",
  15403. "$ref": "Network.TimeSinceEpoch"
  15404. },
  15405. {
  15406. "name": "isThirdParty",
  15407. "type": "boolean"
  15408. },
  15409. {
  15410. "name": "usageRestriction",
  15411. "$ref": "OriginTrialUsageRestriction"
  15412. }
  15413. ]
  15414. },
  15415. {
  15416. "id": "OriginTrialTokenWithStatus",
  15417. "experimental": true,
  15418. "type": "object",
  15419. "properties": [
  15420. {
  15421. "name": "rawTokenText",
  15422. "type": "string"
  15423. },
  15424. {
  15425. "name": "parsedToken",
  15426. "description": "`parsedToken` is present only when the token is extractable and\nparsable.",
  15427. "optional": true,
  15428. "$ref": "OriginTrialToken"
  15429. },
  15430. {
  15431. "name": "status",
  15432. "$ref": "OriginTrialTokenStatus"
  15433. }
  15434. ]
  15435. },
  15436. {
  15437. "id": "OriginTrial",
  15438. "experimental": true,
  15439. "type": "object",
  15440. "properties": [
  15441. {
  15442. "name": "trialName",
  15443. "type": "string"
  15444. },
  15445. {
  15446. "name": "status",
  15447. "$ref": "OriginTrialStatus"
  15448. },
  15449. {
  15450. "name": "tokensWithStatus",
  15451. "type": "array",
  15452. "items": {
  15453. "$ref": "OriginTrialTokenWithStatus"
  15454. }
  15455. }
  15456. ]
  15457. },
  15458. {
  15459. "id": "Frame",
  15460. "description": "Information about the Frame on the page.",
  15461. "type": "object",
  15462. "properties": [
  15463. {
  15464. "name": "id",
  15465. "description": "Frame unique identifier.",
  15466. "$ref": "FrameId"
  15467. },
  15468. {
  15469. "name": "parentId",
  15470. "description": "Parent frame identifier.",
  15471. "optional": true,
  15472. "$ref": "FrameId"
  15473. },
  15474. {
  15475. "name": "loaderId",
  15476. "description": "Identifier of the loader associated with this frame.",
  15477. "$ref": "Network.LoaderId"
  15478. },
  15479. {
  15480. "name": "name",
  15481. "description": "Frame's name as specified in the tag.",
  15482. "optional": true,
  15483. "type": "string"
  15484. },
  15485. {
  15486. "name": "url",
  15487. "description": "Frame document's URL without fragment.",
  15488. "type": "string"
  15489. },
  15490. {
  15491. "name": "urlFragment",
  15492. "description": "Frame document's URL fragment including the '#'.",
  15493. "experimental": true,
  15494. "optional": true,
  15495. "type": "string"
  15496. },
  15497. {
  15498. "name": "domainAndRegistry",
  15499. "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\"",
  15500. "experimental": true,
  15501. "type": "string"
  15502. },
  15503. {
  15504. "name": "securityOrigin",
  15505. "description": "Frame document's security origin.",
  15506. "type": "string"
  15507. },
  15508. {
  15509. "name": "mimeType",
  15510. "description": "Frame document's mimeType as determined by the browser.",
  15511. "type": "string"
  15512. },
  15513. {
  15514. "name": "unreachableUrl",
  15515. "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.",
  15516. "experimental": true,
  15517. "optional": true,
  15518. "type": "string"
  15519. },
  15520. {
  15521. "name": "adFrameStatus",
  15522. "description": "Indicates whether this frame was tagged as an ad and why.",
  15523. "experimental": true,
  15524. "optional": true,
  15525. "$ref": "AdFrameStatus"
  15526. },
  15527. {
  15528. "name": "secureContextType",
  15529. "description": "Indicates whether the main document is a secure context and explains why that is the case.",
  15530. "experimental": true,
  15531. "$ref": "SecureContextType"
  15532. },
  15533. {
  15534. "name": "crossOriginIsolatedContextType",
  15535. "description": "Indicates whether this is a cross origin isolated context.",
  15536. "experimental": true,
  15537. "$ref": "CrossOriginIsolatedContextType"
  15538. },
  15539. {
  15540. "name": "gatedAPIFeatures",
  15541. "description": "Indicated which gated APIs / features are available.",
  15542. "experimental": true,
  15543. "type": "array",
  15544. "items": {
  15545. "$ref": "GatedAPIFeatures"
  15546. }
  15547. }
  15548. ]
  15549. },
  15550. {
  15551. "id": "FrameResource",
  15552. "description": "Information about the Resource on the page.",
  15553. "experimental": true,
  15554. "type": "object",
  15555. "properties": [
  15556. {
  15557. "name": "url",
  15558. "description": "Resource URL.",
  15559. "type": "string"
  15560. },
  15561. {
  15562. "name": "type",
  15563. "description": "Type of this resource.",
  15564. "$ref": "Network.ResourceType"
  15565. },
  15566. {
  15567. "name": "mimeType",
  15568. "description": "Resource mimeType as determined by the browser.",
  15569. "type": "string"
  15570. },
  15571. {
  15572. "name": "lastModified",
  15573. "description": "last-modified timestamp as reported by server.",
  15574. "optional": true,
  15575. "$ref": "Network.TimeSinceEpoch"
  15576. },
  15577. {
  15578. "name": "contentSize",
  15579. "description": "Resource content size.",
  15580. "optional": true,
  15581. "type": "number"
  15582. },
  15583. {
  15584. "name": "failed",
  15585. "description": "True if the resource failed to load.",
  15586. "optional": true,
  15587. "type": "boolean"
  15588. },
  15589. {
  15590. "name": "canceled",
  15591. "description": "True if the resource was canceled during loading.",
  15592. "optional": true,
  15593. "type": "boolean"
  15594. }
  15595. ]
  15596. },
  15597. {
  15598. "id": "FrameResourceTree",
  15599. "description": "Information about the Frame hierarchy along with their cached resources.",
  15600. "experimental": true,
  15601. "type": "object",
  15602. "properties": [
  15603. {
  15604. "name": "frame",
  15605. "description": "Frame information for this tree item.",
  15606. "$ref": "Frame"
  15607. },
  15608. {
  15609. "name": "childFrames",
  15610. "description": "Child frames.",
  15611. "optional": true,
  15612. "type": "array",
  15613. "items": {
  15614. "$ref": "FrameResourceTree"
  15615. }
  15616. },
  15617. {
  15618. "name": "resources",
  15619. "description": "Information about frame resources.",
  15620. "type": "array",
  15621. "items": {
  15622. "$ref": "FrameResource"
  15623. }
  15624. }
  15625. ]
  15626. },
  15627. {
  15628. "id": "FrameTree",
  15629. "description": "Information about the Frame hierarchy.",
  15630. "type": "object",
  15631. "properties": [
  15632. {
  15633. "name": "frame",
  15634. "description": "Frame information for this tree item.",
  15635. "$ref": "Frame"
  15636. },
  15637. {
  15638. "name": "childFrames",
  15639. "description": "Child frames.",
  15640. "optional": true,
  15641. "type": "array",
  15642. "items": {
  15643. "$ref": "FrameTree"
  15644. }
  15645. }
  15646. ]
  15647. },
  15648. {
  15649. "id": "ScriptIdentifier",
  15650. "description": "Unique script identifier.",
  15651. "type": "string"
  15652. },
  15653. {
  15654. "id": "TransitionType",
  15655. "description": "Transition type.",
  15656. "type": "string",
  15657. "enum": [
  15658. "link",
  15659. "typed",
  15660. "address_bar",
  15661. "auto_bookmark",
  15662. "auto_subframe",
  15663. "manual_subframe",
  15664. "generated",
  15665. "auto_toplevel",
  15666. "form_submit",
  15667. "reload",
  15668. "keyword",
  15669. "keyword_generated",
  15670. "other"
  15671. ]
  15672. },
  15673. {
  15674. "id": "NavigationEntry",
  15675. "description": "Navigation history entry.",
  15676. "type": "object",
  15677. "properties": [
  15678. {
  15679. "name": "id",
  15680. "description": "Unique id of the navigation history entry.",
  15681. "type": "integer"
  15682. },
  15683. {
  15684. "name": "url",
  15685. "description": "URL of the navigation history entry.",
  15686. "type": "string"
  15687. },
  15688. {
  15689. "name": "userTypedURL",
  15690. "description": "URL that the user typed in the url bar.",
  15691. "type": "string"
  15692. },
  15693. {
  15694. "name": "title",
  15695. "description": "Title of the navigation history entry.",
  15696. "type": "string"
  15697. },
  15698. {
  15699. "name": "transitionType",
  15700. "description": "Transition type.",
  15701. "$ref": "TransitionType"
  15702. }
  15703. ]
  15704. },
  15705. {
  15706. "id": "ScreencastFrameMetadata",
  15707. "description": "Screencast frame metadata.",
  15708. "experimental": true,
  15709. "type": "object",
  15710. "properties": [
  15711. {
  15712. "name": "offsetTop",
  15713. "description": "Top offset in DIP.",
  15714. "type": "number"
  15715. },
  15716. {
  15717. "name": "pageScaleFactor",
  15718. "description": "Page scale factor.",
  15719. "type": "number"
  15720. },
  15721. {
  15722. "name": "deviceWidth",
  15723. "description": "Device screen width in DIP.",
  15724. "type": "number"
  15725. },
  15726. {
  15727. "name": "deviceHeight",
  15728. "description": "Device screen height in DIP.",
  15729. "type": "number"
  15730. },
  15731. {
  15732. "name": "scrollOffsetX",
  15733. "description": "Position of horizontal scroll in CSS pixels.",
  15734. "type": "number"
  15735. },
  15736. {
  15737. "name": "scrollOffsetY",
  15738. "description": "Position of vertical scroll in CSS pixels.",
  15739. "type": "number"
  15740. },
  15741. {
  15742. "name": "timestamp",
  15743. "description": "Frame swap timestamp.",
  15744. "optional": true,
  15745. "$ref": "Network.TimeSinceEpoch"
  15746. }
  15747. ]
  15748. },
  15749. {
  15750. "id": "DialogType",
  15751. "description": "Javascript dialog type.",
  15752. "type": "string",
  15753. "enum": [
  15754. "alert",
  15755. "confirm",
  15756. "prompt",
  15757. "beforeunload"
  15758. ]
  15759. },
  15760. {
  15761. "id": "AppManifestError",
  15762. "description": "Error while paring app manifest.",
  15763. "type": "object",
  15764. "properties": [
  15765. {
  15766. "name": "message",
  15767. "description": "Error message.",
  15768. "type": "string"
  15769. },
  15770. {
  15771. "name": "critical",
  15772. "description": "If criticial, this is a non-recoverable parse error.",
  15773. "type": "integer"
  15774. },
  15775. {
  15776. "name": "line",
  15777. "description": "Error line.",
  15778. "type": "integer"
  15779. },
  15780. {
  15781. "name": "column",
  15782. "description": "Error column.",
  15783. "type": "integer"
  15784. }
  15785. ]
  15786. },
  15787. {
  15788. "id": "AppManifestParsedProperties",
  15789. "description": "Parsed app manifest properties.",
  15790. "experimental": true,
  15791. "type": "object",
  15792. "properties": [
  15793. {
  15794. "name": "scope",
  15795. "description": "Computed scope value",
  15796. "type": "string"
  15797. }
  15798. ]
  15799. },
  15800. {
  15801. "id": "LayoutViewport",
  15802. "description": "Layout viewport position and dimensions.",
  15803. "type": "object",
  15804. "properties": [
  15805. {
  15806. "name": "pageX",
  15807. "description": "Horizontal offset relative to the document (CSS pixels).",
  15808. "type": "integer"
  15809. },
  15810. {
  15811. "name": "pageY",
  15812. "description": "Vertical offset relative to the document (CSS pixels).",
  15813. "type": "integer"
  15814. },
  15815. {
  15816. "name": "clientWidth",
  15817. "description": "Width (CSS pixels), excludes scrollbar if present.",
  15818. "type": "integer"
  15819. },
  15820. {
  15821. "name": "clientHeight",
  15822. "description": "Height (CSS pixels), excludes scrollbar if present.",
  15823. "type": "integer"
  15824. }
  15825. ]
  15826. },
  15827. {
  15828. "id": "VisualViewport",
  15829. "description": "Visual viewport position, dimensions, and scale.",
  15830. "type": "object",
  15831. "properties": [
  15832. {
  15833. "name": "offsetX",
  15834. "description": "Horizontal offset relative to the layout viewport (CSS pixels).",
  15835. "type": "number"
  15836. },
  15837. {
  15838. "name": "offsetY",
  15839. "description": "Vertical offset relative to the layout viewport (CSS pixels).",
  15840. "type": "number"
  15841. },
  15842. {
  15843. "name": "pageX",
  15844. "description": "Horizontal offset relative to the document (CSS pixels).",
  15845. "type": "number"
  15846. },
  15847. {
  15848. "name": "pageY",
  15849. "description": "Vertical offset relative to the document (CSS pixels).",
  15850. "type": "number"
  15851. },
  15852. {
  15853. "name": "clientWidth",
  15854. "description": "Width (CSS pixels), excludes scrollbar if present.",
  15855. "type": "number"
  15856. },
  15857. {
  15858. "name": "clientHeight",
  15859. "description": "Height (CSS pixels), excludes scrollbar if present.",
  15860. "type": "number"
  15861. },
  15862. {
  15863. "name": "scale",
  15864. "description": "Scale relative to the ideal viewport (size at width=device-width).",
  15865. "type": "number"
  15866. },
  15867. {
  15868. "name": "zoom",
  15869. "description": "Page zoom factor (CSS to device independent pixels ratio).",
  15870. "optional": true,
  15871. "type": "number"
  15872. }
  15873. ]
  15874. },
  15875. {
  15876. "id": "Viewport",
  15877. "description": "Viewport for capturing screenshot.",
  15878. "type": "object",
  15879. "properties": [
  15880. {
  15881. "name": "x",
  15882. "description": "X offset in device independent pixels (dip).",
  15883. "type": "number"
  15884. },
  15885. {
  15886. "name": "y",
  15887. "description": "Y offset in device independent pixels (dip).",
  15888. "type": "number"
  15889. },
  15890. {
  15891. "name": "width",
  15892. "description": "Rectangle width in device independent pixels (dip).",
  15893. "type": "number"
  15894. },
  15895. {
  15896. "name": "height",
  15897. "description": "Rectangle height in device independent pixels (dip).",
  15898. "type": "number"
  15899. },
  15900. {
  15901. "name": "scale",
  15902. "description": "Page scale factor.",
  15903. "type": "number"
  15904. }
  15905. ]
  15906. },
  15907. {
  15908. "id": "FontFamilies",
  15909. "description": "Generic font families collection.",
  15910. "experimental": true,
  15911. "type": "object",
  15912. "properties": [
  15913. {
  15914. "name": "standard",
  15915. "description": "The standard font-family.",
  15916. "optional": true,
  15917. "type": "string"
  15918. },
  15919. {
  15920. "name": "fixed",
  15921. "description": "The fixed font-family.",
  15922. "optional": true,
  15923. "type": "string"
  15924. },
  15925. {
  15926. "name": "serif",
  15927. "description": "The serif font-family.",
  15928. "optional": true,
  15929. "type": "string"
  15930. },
  15931. {
  15932. "name": "sansSerif",
  15933. "description": "The sansSerif font-family.",
  15934. "optional": true,
  15935. "type": "string"
  15936. },
  15937. {
  15938. "name": "cursive",
  15939. "description": "The cursive font-family.",
  15940. "optional": true,
  15941. "type": "string"
  15942. },
  15943. {
  15944. "name": "fantasy",
  15945. "description": "The fantasy font-family.",
  15946. "optional": true,
  15947. "type": "string"
  15948. },
  15949. {
  15950. "name": "math",
  15951. "description": "The math font-family.",
  15952. "optional": true,
  15953. "type": "string"
  15954. }
  15955. ]
  15956. },
  15957. {
  15958. "id": "ScriptFontFamilies",
  15959. "description": "Font families collection for a script.",
  15960. "experimental": true,
  15961. "type": "object",
  15962. "properties": [
  15963. {
  15964. "name": "script",
  15965. "description": "Name of the script which these font families are defined for.",
  15966. "type": "string"
  15967. },
  15968. {
  15969. "name": "fontFamilies",
  15970. "description": "Generic font families collection for the script.",
  15971. "$ref": "FontFamilies"
  15972. }
  15973. ]
  15974. },
  15975. {
  15976. "id": "FontSizes",
  15977. "description": "Default font sizes.",
  15978. "experimental": true,
  15979. "type": "object",
  15980. "properties": [
  15981. {
  15982. "name": "standard",
  15983. "description": "Default standard font size.",
  15984. "optional": true,
  15985. "type": "integer"
  15986. },
  15987. {
  15988. "name": "fixed",
  15989. "description": "Default fixed font size.",
  15990. "optional": true,
  15991. "type": "integer"
  15992. }
  15993. ]
  15994. },
  15995. {
  15996. "id": "ClientNavigationReason",
  15997. "experimental": true,
  15998. "type": "string",
  15999. "enum": [
  16000. "formSubmissionGet",
  16001. "formSubmissionPost",
  16002. "httpHeaderRefresh",
  16003. "scriptInitiated",
  16004. "metaTagRefresh",
  16005. "pageBlockInterstitial",
  16006. "reload",
  16007. "anchorClick"
  16008. ]
  16009. },
  16010. {
  16011. "id": "ClientNavigationDisposition",
  16012. "experimental": true,
  16013. "type": "string",
  16014. "enum": [
  16015. "currentTab",
  16016. "newTab",
  16017. "newWindow",
  16018. "download"
  16019. ]
  16020. },
  16021. {
  16022. "id": "InstallabilityErrorArgument",
  16023. "experimental": true,
  16024. "type": "object",
  16025. "properties": [
  16026. {
  16027. "name": "name",
  16028. "description": "Argument name (e.g. name:'minimum-icon-size-in-pixels').",
  16029. "type": "string"
  16030. },
  16031. {
  16032. "name": "value",
  16033. "description": "Argument value (e.g. value:'64').",
  16034. "type": "string"
  16035. }
  16036. ]
  16037. },
  16038. {
  16039. "id": "InstallabilityError",
  16040. "description": "The installability error",
  16041. "experimental": true,
  16042. "type": "object",
  16043. "properties": [
  16044. {
  16045. "name": "errorId",
  16046. "description": "The error id (e.g. 'manifest-missing-suitable-icon').",
  16047. "type": "string"
  16048. },
  16049. {
  16050. "name": "errorArguments",
  16051. "description": "The list of error arguments (e.g. {name:'minimum-icon-size-in-pixels', value:'64'}).",
  16052. "type": "array",
  16053. "items": {
  16054. "$ref": "InstallabilityErrorArgument"
  16055. }
  16056. }
  16057. ]
  16058. },
  16059. {
  16060. "id": "ReferrerPolicy",
  16061. "description": "The referring-policy used for the navigation.",
  16062. "experimental": true,
  16063. "type": "string",
  16064. "enum": [
  16065. "noReferrer",
  16066. "noReferrerWhenDowngrade",
  16067. "origin",
  16068. "originWhenCrossOrigin",
  16069. "sameOrigin",
  16070. "strictOrigin",
  16071. "strictOriginWhenCrossOrigin",
  16072. "unsafeUrl"
  16073. ]
  16074. },
  16075. {
  16076. "id": "CompilationCacheParams",
  16077. "description": "Per-script compilation cache parameters for `Page.produceCompilationCache`",
  16078. "experimental": true,
  16079. "type": "object",
  16080. "properties": [
  16081. {
  16082. "name": "url",
  16083. "description": "The URL of the script to produce a compilation cache entry for.",
  16084. "type": "string"
  16085. },
  16086. {
  16087. "name": "eager",
  16088. "description": "A hint to the backend whether eager compilation is recommended.\n(the actual compilation mode used is upon backend discretion).",
  16089. "optional": true,
  16090. "type": "boolean"
  16091. }
  16092. ]
  16093. },
  16094. {
  16095. "id": "NavigationType",
  16096. "description": "The type of a frameNavigated event.",
  16097. "experimental": true,
  16098. "type": "string",
  16099. "enum": [
  16100. "Navigation",
  16101. "BackForwardCacheRestore"
  16102. ]
  16103. },
  16104. {
  16105. "id": "BackForwardCacheNotRestoredReason",
  16106. "description": "List of not restored reasons for back-forward cache.",
  16107. "experimental": true,
  16108. "type": "string",
  16109. "enum": [
  16110. "NotPrimaryMainFrame",
  16111. "BackForwardCacheDisabled",
  16112. "RelatedActiveContentsExist",
  16113. "HTTPStatusNotOK",
  16114. "SchemeNotHTTPOrHTTPS",
  16115. "Loading",
  16116. "WasGrantedMediaAccess",
  16117. "DisableForRenderFrameHostCalled",
  16118. "DomainNotAllowed",
  16119. "HTTPMethodNotGET",
  16120. "SubframeIsNavigating",
  16121. "Timeout",
  16122. "CacheLimit",
  16123. "JavaScriptExecution",
  16124. "RendererProcessKilled",
  16125. "RendererProcessCrashed",
  16126. "SchedulerTrackedFeatureUsed",
  16127. "ConflictingBrowsingInstance",
  16128. "CacheFlushed",
  16129. "ServiceWorkerVersionActivation",
  16130. "SessionRestored",
  16131. "ServiceWorkerPostMessage",
  16132. "EnteredBackForwardCacheBeforeServiceWorkerHostAdded",
  16133. "RenderFrameHostReused_SameSite",
  16134. "RenderFrameHostReused_CrossSite",
  16135. "ServiceWorkerClaim",
  16136. "IgnoreEventAndEvict",
  16137. "HaveInnerContents",
  16138. "TimeoutPuttingInCache",
  16139. "BackForwardCacheDisabledByLowMemory",
  16140. "BackForwardCacheDisabledByCommandLine",
  16141. "NetworkRequestDatapipeDrainedAsBytesConsumer",
  16142. "NetworkRequestRedirected",
  16143. "NetworkRequestTimeout",
  16144. "NetworkExceedsBufferLimit",
  16145. "NavigationCancelledWhileRestoring",
  16146. "NotMostRecentNavigationEntry",
  16147. "BackForwardCacheDisabledForPrerender",
  16148. "UserAgentOverrideDiffers",
  16149. "ForegroundCacheLimit",
  16150. "BrowsingInstanceNotSwapped",
  16151. "BackForwardCacheDisabledForDelegate",
  16152. "UnloadHandlerExistsInMainFrame",
  16153. "UnloadHandlerExistsInSubFrame",
  16154. "ServiceWorkerUnregistration",
  16155. "CacheControlNoStore",
  16156. "CacheControlNoStoreCookieModified",
  16157. "CacheControlNoStoreHTTPOnlyCookieModified",
  16158. "NoResponseHead",
  16159. "Unknown",
  16160. "ActivationNavigationsDisallowedForBug1234857",
  16161. "ErrorDocument",
  16162. "FencedFramesEmbedder",
  16163. "WebSocket",
  16164. "WebTransport",
  16165. "WebRTC",
  16166. "MainResourceHasCacheControlNoStore",
  16167. "MainResourceHasCacheControlNoCache",
  16168. "SubresourceHasCacheControlNoStore",
  16169. "SubresourceHasCacheControlNoCache",
  16170. "ContainsPlugins",
  16171. "DocumentLoaded",
  16172. "DedicatedWorkerOrWorklet",
  16173. "OutstandingNetworkRequestOthers",
  16174. "OutstandingIndexedDBTransaction",
  16175. "RequestedNotificationsPermission",
  16176. "RequestedMIDIPermission",
  16177. "RequestedAudioCapturePermission",
  16178. "RequestedVideoCapturePermission",
  16179. "RequestedBackForwardCacheBlockedSensors",
  16180. "RequestedBackgroundWorkPermission",
  16181. "BroadcastChannel",
  16182. "IndexedDBConnection",
  16183. "WebXR",
  16184. "SharedWorker",
  16185. "WebLocks",
  16186. "WebHID",
  16187. "WebShare",
  16188. "RequestedStorageAccessGrant",
  16189. "WebNfc",
  16190. "OutstandingNetworkRequestFetch",
  16191. "OutstandingNetworkRequestXHR",
  16192. "AppBanner",
  16193. "Printing",
  16194. "WebDatabase",
  16195. "PictureInPicture",
  16196. "Portal",
  16197. "SpeechRecognizer",
  16198. "IdleManager",
  16199. "PaymentManager",
  16200. "SpeechSynthesis",
  16201. "KeyboardLock",
  16202. "WebOTPService",
  16203. "OutstandingNetworkRequestDirectSocket",
  16204. "InjectedJavascript",
  16205. "InjectedStyleSheet",
  16206. "Dummy",
  16207. "ContentSecurityHandler",
  16208. "ContentWebAuthenticationAPI",
  16209. "ContentFileChooser",
  16210. "ContentSerial",
  16211. "ContentFileSystemAccess",
  16212. "ContentMediaDevicesDispatcherHost",
  16213. "ContentWebBluetooth",
  16214. "ContentWebUSB",
  16215. "ContentMediaSessionService",
  16216. "ContentScreenReader",
  16217. "EmbedderPopupBlockerTabHelper",
  16218. "EmbedderSafeBrowsingTriggeredPopupBlocker",
  16219. "EmbedderSafeBrowsingThreatDetails",
  16220. "EmbedderAppBannerManager",
  16221. "EmbedderDomDistillerViewerSource",
  16222. "EmbedderDomDistillerSelfDeletingRequestDelegate",
  16223. "EmbedderOomInterventionTabHelper",
  16224. "EmbedderOfflinePage",
  16225. "EmbedderChromePasswordManagerClientBindCredentialManager",
  16226. "EmbedderPermissionRequestManager",
  16227. "EmbedderModalDialog",
  16228. "EmbedderExtensions",
  16229. "EmbedderExtensionMessaging",
  16230. "EmbedderExtensionMessagingForOpenPort",
  16231. "EmbedderExtensionSentMessageToCachedFrame"
  16232. ]
  16233. },
  16234. {
  16235. "id": "BackForwardCacheNotRestoredReasonType",
  16236. "description": "Types of not restored reasons for back-forward cache.",
  16237. "experimental": true,
  16238. "type": "string",
  16239. "enum": [
  16240. "SupportPending",
  16241. "PageSupportNeeded",
  16242. "Circumstantial"
  16243. ]
  16244. },
  16245. {
  16246. "id": "BackForwardCacheNotRestoredExplanation",
  16247. "experimental": true,
  16248. "type": "object",
  16249. "properties": [
  16250. {
  16251. "name": "type",
  16252. "description": "Type of the reason",
  16253. "$ref": "BackForwardCacheNotRestoredReasonType"
  16254. },
  16255. {
  16256. "name": "reason",
  16257. "description": "Not restored reason",
  16258. "$ref": "BackForwardCacheNotRestoredReason"
  16259. },
  16260. {
  16261. "name": "context",
  16262. "description": "Context associated with the reason. The meaning of this context is\ndependent on the reason:\n- EmbedderExtensionSentMessageToCachedFrame: the extension ID.",
  16263. "optional": true,
  16264. "type": "string"
  16265. }
  16266. ]
  16267. },
  16268. {
  16269. "id": "BackForwardCacheNotRestoredExplanationTree",
  16270. "experimental": true,
  16271. "type": "object",
  16272. "properties": [
  16273. {
  16274. "name": "url",
  16275. "description": "URL of each frame",
  16276. "type": "string"
  16277. },
  16278. {
  16279. "name": "explanations",
  16280. "description": "Not restored reasons of each frame",
  16281. "type": "array",
  16282. "items": {
  16283. "$ref": "BackForwardCacheNotRestoredExplanation"
  16284. }
  16285. },
  16286. {
  16287. "name": "children",
  16288. "description": "Array of children frame",
  16289. "type": "array",
  16290. "items": {
  16291. "$ref": "BackForwardCacheNotRestoredExplanationTree"
  16292. }
  16293. }
  16294. ]
  16295. },
  16296. {
  16297. "id": "PrerenderFinalStatus",
  16298. "description": "List of FinalStatus reasons for Prerender2.",
  16299. "type": "string",
  16300. "enum": [
  16301. "Activated",
  16302. "Destroyed",
  16303. "LowEndDevice",
  16304. "CrossOriginRedirect",
  16305. "CrossOriginNavigation",
  16306. "InvalidSchemeRedirect",
  16307. "InvalidSchemeNavigation",
  16308. "InProgressNavigation",
  16309. "NavigationRequestBlockedByCsp",
  16310. "MainFrameNavigation",
  16311. "MojoBinderPolicy",
  16312. "RendererProcessCrashed",
  16313. "RendererProcessKilled",
  16314. "Download",
  16315. "TriggerDestroyed",
  16316. "NavigationNotCommitted",
  16317. "NavigationBadHttpStatus",
  16318. "ClientCertRequested",
  16319. "NavigationRequestNetworkError",
  16320. "MaxNumOfRunningPrerendersExceeded",
  16321. "CancelAllHostsForTesting",
  16322. "DidFailLoad",
  16323. "Stop",
  16324. "SslCertificateError",
  16325. "LoginAuthRequested",
  16326. "UaChangeRequiresReload",
  16327. "BlockedByClient",
  16328. "AudioOutputDeviceRequested",
  16329. "MixedContent",
  16330. "TriggerBackgrounded",
  16331. "EmbedderTriggeredAndSameOriginRedirected",
  16332. "EmbedderTriggeredAndCrossOriginRedirected",
  16333. "MemoryLimitExceeded",
  16334. "FailToGetMemoryUsage",
  16335. "DataSaverEnabled",
  16336. "HasEffectiveUrl"
  16337. ]
  16338. }
  16339. ],
  16340. "commands": [
  16341. {
  16342. "name": "addScriptToEvaluateOnLoad",
  16343. "description": "Deprecated, please use addScriptToEvaluateOnNewDocument instead.",
  16344. "experimental": true,
  16345. "deprecated": true,
  16346. "parameters": [
  16347. {
  16348. "name": "scriptSource",
  16349. "type": "string"
  16350. }
  16351. ],
  16352. "returns": [
  16353. {
  16354. "name": "identifier",
  16355. "description": "Identifier of the added script.",
  16356. "$ref": "ScriptIdentifier"
  16357. }
  16358. ]
  16359. },
  16360. {
  16361. "name": "addScriptToEvaluateOnNewDocument",
  16362. "description": "Evaluates given script in every frame upon creation (before loading frame's scripts).",
  16363. "parameters": [
  16364. {
  16365. "name": "source",
  16366. "type": "string"
  16367. },
  16368. {
  16369. "name": "worldName",
  16370. "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.",
  16371. "experimental": true,
  16372. "optional": true,
  16373. "type": "string"
  16374. },
  16375. {
  16376. "name": "includeCommandLineAPI",
  16377. "description": "Specifies whether command line API should be available to the script, defaults\nto false.",
  16378. "experimental": true,
  16379. "optional": true,
  16380. "type": "boolean"
  16381. }
  16382. ],
  16383. "returns": [
  16384. {
  16385. "name": "identifier",
  16386. "description": "Identifier of the added script.",
  16387. "$ref": "ScriptIdentifier"
  16388. }
  16389. ]
  16390. },
  16391. {
  16392. "name": "bringToFront",
  16393. "description": "Brings page to front (activates tab)."
  16394. },
  16395. {
  16396. "name": "captureScreenshot",
  16397. "description": "Capture page screenshot.",
  16398. "parameters": [
  16399. {
  16400. "name": "format",
  16401. "description": "Image compression format (defaults to png).",
  16402. "optional": true,
  16403. "type": "string",
  16404. "enum": [
  16405. "jpeg",
  16406. "png",
  16407. "webp"
  16408. ]
  16409. },
  16410. {
  16411. "name": "quality",
  16412. "description": "Compression quality from range [0..100] (jpeg only).",
  16413. "optional": true,
  16414. "type": "integer"
  16415. },
  16416. {
  16417. "name": "clip",
  16418. "description": "Capture the screenshot of a given region only.",
  16419. "optional": true,
  16420. "$ref": "Viewport"
  16421. },
  16422. {
  16423. "name": "fromSurface",
  16424. "description": "Capture the screenshot from the surface, rather than the view. Defaults to true.",
  16425. "experimental": true,
  16426. "optional": true,
  16427. "type": "boolean"
  16428. },
  16429. {
  16430. "name": "captureBeyondViewport",
  16431. "description": "Capture the screenshot beyond the viewport. Defaults to false.",
  16432. "experimental": true,
  16433. "optional": true,
  16434. "type": "boolean"
  16435. }
  16436. ],
  16437. "returns": [
  16438. {
  16439. "name": "data",
  16440. "description": "Base64-encoded image data. (Encoded as a base64 string when passed over JSON)",
  16441. "type": "string"
  16442. }
  16443. ]
  16444. },
  16445. {
  16446. "name": "captureSnapshot",
  16447. "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.",
  16448. "experimental": true,
  16449. "parameters": [
  16450. {
  16451. "name": "format",
  16452. "description": "Format (defaults to mhtml).",
  16453. "optional": true,
  16454. "type": "string",
  16455. "enum": [
  16456. "mhtml"
  16457. ]
  16458. }
  16459. ],
  16460. "returns": [
  16461. {
  16462. "name": "data",
  16463. "description": "Serialized page data.",
  16464. "type": "string"
  16465. }
  16466. ]
  16467. },
  16468. {
  16469. "name": "clearDeviceMetricsOverride",
  16470. "description": "Clears the overridden device metrics.",
  16471. "experimental": true,
  16472. "deprecated": true,
  16473. "redirect": "Emulation"
  16474. },
  16475. {
  16476. "name": "clearDeviceOrientationOverride",
  16477. "description": "Clears the overridden Device Orientation.",
  16478. "experimental": true,
  16479. "deprecated": true,
  16480. "redirect": "DeviceOrientation"
  16481. },
  16482. {
  16483. "name": "clearGeolocationOverride",
  16484. "description": "Clears the overridden Geolocation Position and Error.",
  16485. "deprecated": true,
  16486. "redirect": "Emulation"
  16487. },
  16488. {
  16489. "name": "createIsolatedWorld",
  16490. "description": "Creates an isolated world for the given frame.",
  16491. "parameters": [
  16492. {
  16493. "name": "frameId",
  16494. "description": "Id of the frame in which the isolated world should be created.",
  16495. "$ref": "FrameId"
  16496. },
  16497. {
  16498. "name": "worldName",
  16499. "description": "An optional name which is reported in the Execution Context.",
  16500. "optional": true,
  16501. "type": "string"
  16502. },
  16503. {
  16504. "name": "grantUniveralAccess",
  16505. "description": "Whether or not universal access should be granted to the isolated world. This is a powerful\noption, use with caution.",
  16506. "optional": true,
  16507. "type": "boolean"
  16508. }
  16509. ],
  16510. "returns": [
  16511. {
  16512. "name": "executionContextId",
  16513. "description": "Execution context of the isolated world.",
  16514. "$ref": "Runtime.ExecutionContextId"
  16515. }
  16516. ]
  16517. },
  16518. {
  16519. "name": "deleteCookie",
  16520. "description": "Deletes browser cookie with given name, domain and path.",
  16521. "experimental": true,
  16522. "deprecated": true,
  16523. "redirect": "Network",
  16524. "parameters": [
  16525. {
  16526. "name": "cookieName",
  16527. "description": "Name of the cookie to remove.",
  16528. "type": "string"
  16529. },
  16530. {
  16531. "name": "url",
  16532. "description": "URL to match cooke domain and path.",
  16533. "type": "string"
  16534. }
  16535. ]
  16536. },
  16537. {
  16538. "name": "disable",
  16539. "description": "Disables page domain notifications."
  16540. },
  16541. {
  16542. "name": "enable",
  16543. "description": "Enables page domain notifications."
  16544. },
  16545. {
  16546. "name": "getAppManifest",
  16547. "returns": [
  16548. {
  16549. "name": "url",
  16550. "description": "Manifest location.",
  16551. "type": "string"
  16552. },
  16553. {
  16554. "name": "errors",
  16555. "type": "array",
  16556. "items": {
  16557. "$ref": "AppManifestError"
  16558. }
  16559. },
  16560. {
  16561. "name": "data",
  16562. "description": "Manifest content.",
  16563. "optional": true,
  16564. "type": "string"
  16565. },
  16566. {
  16567. "name": "parsed",
  16568. "description": "Parsed manifest properties",
  16569. "experimental": true,
  16570. "optional": true,
  16571. "$ref": "AppManifestParsedProperties"
  16572. }
  16573. ]
  16574. },
  16575. {
  16576. "name": "getInstallabilityErrors",
  16577. "experimental": true,
  16578. "returns": [
  16579. {
  16580. "name": "installabilityErrors",
  16581. "type": "array",
  16582. "items": {
  16583. "$ref": "InstallabilityError"
  16584. }
  16585. }
  16586. ]
  16587. },
  16588. {
  16589. "name": "getManifestIcons",
  16590. "experimental": true,
  16591. "returns": [
  16592. {
  16593. "name": "primaryIcon",
  16594. "optional": true,
  16595. "type": "string"
  16596. }
  16597. ]
  16598. },
  16599. {
  16600. "name": "getAppId",
  16601. "description": "Returns the unique (PWA) app id.\nOnly returns values if the feature flag 'WebAppEnableManifestId' is enabled",
  16602. "experimental": true,
  16603. "returns": [
  16604. {
  16605. "name": "appId",
  16606. "description": "App id, either from manifest's id attribute or computed from start_url",
  16607. "optional": true,
  16608. "type": "string"
  16609. },
  16610. {
  16611. "name": "recommendedId",
  16612. "description": "Recommendation for manifest's id attribute to match current id computed from start_url",
  16613. "optional": true,
  16614. "type": "string"
  16615. }
  16616. ]
  16617. },
  16618. {
  16619. "name": "getCookies",
  16620. "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie\ninformation in the `cookies` field.",
  16621. "experimental": true,
  16622. "deprecated": true,
  16623. "redirect": "Network",
  16624. "returns": [
  16625. {
  16626. "name": "cookies",
  16627. "description": "Array of cookie objects.",
  16628. "type": "array",
  16629. "items": {
  16630. "$ref": "Network.Cookie"
  16631. }
  16632. }
  16633. ]
  16634. },
  16635. {
  16636. "name": "getFrameTree",
  16637. "description": "Returns present frame tree structure.",
  16638. "returns": [
  16639. {
  16640. "name": "frameTree",
  16641. "description": "Present frame tree structure.",
  16642. "$ref": "FrameTree"
  16643. }
  16644. ]
  16645. },
  16646. {
  16647. "name": "getLayoutMetrics",
  16648. "description": "Returns metrics relating to the layouting of the page, such as viewport bounds/scale.",
  16649. "returns": [
  16650. {
  16651. "name": "layoutViewport",
  16652. "description": "Deprecated metrics relating to the layout viewport. Is in device pixels. Use `cssLayoutViewport` instead.",
  16653. "deprecated": true,
  16654. "$ref": "LayoutViewport"
  16655. },
  16656. {
  16657. "name": "visualViewport",
  16658. "description": "Deprecated metrics relating to the visual viewport. Is in device pixels. Use `cssVisualViewport` instead.",
  16659. "deprecated": true,
  16660. "$ref": "VisualViewport"
  16661. },
  16662. {
  16663. "name": "contentSize",
  16664. "description": "Deprecated size of scrollable area. Is in DP. Use `cssContentSize` instead.",
  16665. "deprecated": true,
  16666. "$ref": "DOM.Rect"
  16667. },
  16668. {
  16669. "name": "cssLayoutViewport",
  16670. "description": "Metrics relating to the layout viewport in CSS pixels.",
  16671. "$ref": "LayoutViewport"
  16672. },
  16673. {
  16674. "name": "cssVisualViewport",
  16675. "description": "Metrics relating to the visual viewport in CSS pixels.",
  16676. "$ref": "VisualViewport"
  16677. },
  16678. {
  16679. "name": "cssContentSize",
  16680. "description": "Size of scrollable area in CSS pixels.",
  16681. "$ref": "DOM.Rect"
  16682. }
  16683. ]
  16684. },
  16685. {
  16686. "name": "getNavigationHistory",
  16687. "description": "Returns navigation history for the current page.",
  16688. "returns": [
  16689. {
  16690. "name": "currentIndex",
  16691. "description": "Index of the current navigation history entry.",
  16692. "type": "integer"
  16693. },
  16694. {
  16695. "name": "entries",
  16696. "description": "Array of navigation history entries.",
  16697. "type": "array",
  16698. "items": {
  16699. "$ref": "NavigationEntry"
  16700. }
  16701. }
  16702. ]
  16703. },
  16704. {
  16705. "name": "resetNavigationHistory",
  16706. "description": "Resets navigation history for the current page."
  16707. },
  16708. {
  16709. "name": "getResourceContent",
  16710. "description": "Returns content of the given resource.",
  16711. "experimental": true,
  16712. "parameters": [
  16713. {
  16714. "name": "frameId",
  16715. "description": "Frame id to get resource for.",
  16716. "$ref": "FrameId"
  16717. },
  16718. {
  16719. "name": "url",
  16720. "description": "URL of the resource to get content for.",
  16721. "type": "string"
  16722. }
  16723. ],
  16724. "returns": [
  16725. {
  16726. "name": "content",
  16727. "description": "Resource content.",
  16728. "type": "string"
  16729. },
  16730. {
  16731. "name": "base64Encoded",
  16732. "description": "True, if content was served as base64.",
  16733. "type": "boolean"
  16734. }
  16735. ]
  16736. },
  16737. {
  16738. "name": "getResourceTree",
  16739. "description": "Returns present frame / resource tree structure.",
  16740. "experimental": true,
  16741. "returns": [
  16742. {
  16743. "name": "frameTree",
  16744. "description": "Present frame / resource tree structure.",
  16745. "$ref": "FrameResourceTree"
  16746. }
  16747. ]
  16748. },
  16749. {
  16750. "name": "handleJavaScriptDialog",
  16751. "description": "Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).",
  16752. "parameters": [
  16753. {
  16754. "name": "accept",
  16755. "description": "Whether to accept or dismiss the dialog.",
  16756. "type": "boolean"
  16757. },
  16758. {
  16759. "name": "promptText",
  16760. "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt\ndialog.",
  16761. "optional": true,
  16762. "type": "string"
  16763. }
  16764. ]
  16765. },
  16766. {
  16767. "name": "navigate",
  16768. "description": "Navigates current page to the given URL.",
  16769. "parameters": [
  16770. {
  16771. "name": "url",
  16772. "description": "URL to navigate the page to.",
  16773. "type": "string"
  16774. },
  16775. {
  16776. "name": "referrer",
  16777. "description": "Referrer URL.",
  16778. "optional": true,
  16779. "type": "string"
  16780. },
  16781. {
  16782. "name": "transitionType",
  16783. "description": "Intended transition type.",
  16784. "optional": true,
  16785. "$ref": "TransitionType"
  16786. },
  16787. {
  16788. "name": "frameId",
  16789. "description": "Frame id to navigate, if not specified navigates the top frame.",
  16790. "optional": true,
  16791. "$ref": "FrameId"
  16792. },
  16793. {
  16794. "name": "referrerPolicy",
  16795. "description": "Referrer-policy used for the navigation.",
  16796. "experimental": true,
  16797. "optional": true,
  16798. "$ref": "ReferrerPolicy"
  16799. }
  16800. ],
  16801. "returns": [
  16802. {
  16803. "name": "frameId",
  16804. "description": "Frame id that has navigated (or failed to navigate)",
  16805. "$ref": "FrameId"
  16806. },
  16807. {
  16808. "name": "loaderId",
  16809. "description": "Loader identifier. This is omitted in case of same-document navigation,\nas the previously committed loaderId would not change.",
  16810. "optional": true,
  16811. "$ref": "Network.LoaderId"
  16812. },
  16813. {
  16814. "name": "errorText",
  16815. "description": "User friendly error message, present if and only if navigation has failed.",
  16816. "optional": true,
  16817. "type": "string"
  16818. }
  16819. ]
  16820. },
  16821. {
  16822. "name": "navigateToHistoryEntry",
  16823. "description": "Navigates current page to the given history entry.",
  16824. "parameters": [
  16825. {
  16826. "name": "entryId",
  16827. "description": "Unique id of the entry to navigate to.",
  16828. "type": "integer"
  16829. }
  16830. ]
  16831. },
  16832. {
  16833. "name": "printToPDF",
  16834. "description": "Print page as PDF.",
  16835. "parameters": [
  16836. {
  16837. "name": "landscape",
  16838. "description": "Paper orientation. Defaults to false.",
  16839. "optional": true,
  16840. "type": "boolean"
  16841. },
  16842. {
  16843. "name": "displayHeaderFooter",
  16844. "description": "Display header and footer. Defaults to false.",
  16845. "optional": true,
  16846. "type": "boolean"
  16847. },
  16848. {
  16849. "name": "printBackground",
  16850. "description": "Print background graphics. Defaults to false.",
  16851. "optional": true,
  16852. "type": "boolean"
  16853. },
  16854. {
  16855. "name": "scale",
  16856. "description": "Scale of the webpage rendering. Defaults to 1.",
  16857. "optional": true,
  16858. "type": "number"
  16859. },
  16860. {
  16861. "name": "paperWidth",
  16862. "description": "Paper width in inches. Defaults to 8.5 inches.",
  16863. "optional": true,
  16864. "type": "number"
  16865. },
  16866. {
  16867. "name": "paperHeight",
  16868. "description": "Paper height in inches. Defaults to 11 inches.",
  16869. "optional": true,
  16870. "type": "number"
  16871. },
  16872. {
  16873. "name": "marginTop",
  16874. "description": "Top margin in inches. Defaults to 1cm (~0.4 inches).",
  16875. "optional": true,
  16876. "type": "number"
  16877. },
  16878. {
  16879. "name": "marginBottom",
  16880. "description": "Bottom margin in inches. Defaults to 1cm (~0.4 inches).",
  16881. "optional": true,
  16882. "type": "number"
  16883. },
  16884. {
  16885. "name": "marginLeft",
  16886. "description": "Left margin in inches. Defaults to 1cm (~0.4 inches).",
  16887. "optional": true,
  16888. "type": "number"
  16889. },
  16890. {
  16891. "name": "marginRight",
  16892. "description": "Right margin in inches. Defaults to 1cm (~0.4 inches).",
  16893. "optional": true,
  16894. "type": "number"
  16895. },
  16896. {
  16897. "name": "pageRanges",
  16898. "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.",
  16899. "optional": true,
  16900. "type": "string"
  16901. },
  16902. {
  16903. "name": "headerTemplate",
  16904. "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.",
  16905. "optional": true,
  16906. "type": "string"
  16907. },
  16908. {
  16909. "name": "footerTemplate",
  16910. "description": "HTML template for the print footer. Should use the same format as the `headerTemplate`.",
  16911. "optional": true,
  16912. "type": "string"
  16913. },
  16914. {
  16915. "name": "preferCSSPageSize",
  16916. "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.",
  16917. "optional": true,
  16918. "type": "boolean"
  16919. },
  16920. {
  16921. "name": "transferMode",
  16922. "description": "return as stream",
  16923. "experimental": true,
  16924. "optional": true,
  16925. "type": "string",
  16926. "enum": [
  16927. "ReturnAsBase64",
  16928. "ReturnAsStream"
  16929. ]
  16930. }
  16931. ],
  16932. "returns": [
  16933. {
  16934. "name": "data",
  16935. "description": "Base64-encoded pdf data. Empty if |returnAsStream| is specified. (Encoded as a base64 string when passed over JSON)",
  16936. "type": "string"
  16937. },
  16938. {
  16939. "name": "stream",
  16940. "description": "A handle of the stream that holds resulting PDF data.",
  16941. "experimental": true,
  16942. "optional": true,
  16943. "$ref": "IO.StreamHandle"
  16944. }
  16945. ]
  16946. },
  16947. {
  16948. "name": "reload",
  16949. "description": "Reloads given page optionally ignoring the cache.",
  16950. "parameters": [
  16951. {
  16952. "name": "ignoreCache",
  16953. "description": "If true, browser cache is ignored (as if the user pressed Shift+refresh).",
  16954. "optional": true,
  16955. "type": "boolean"
  16956. },
  16957. {
  16958. "name": "scriptToEvaluateOnLoad",
  16959. "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.",
  16960. "optional": true,
  16961. "type": "string"
  16962. }
  16963. ]
  16964. },
  16965. {
  16966. "name": "removeScriptToEvaluateOnLoad",
  16967. "description": "Deprecated, please use removeScriptToEvaluateOnNewDocument instead.",
  16968. "experimental": true,
  16969. "deprecated": true,
  16970. "parameters": [
  16971. {
  16972. "name": "identifier",
  16973. "$ref": "ScriptIdentifier"
  16974. }
  16975. ]
  16976. },
  16977. {
  16978. "name": "removeScriptToEvaluateOnNewDocument",
  16979. "description": "Removes given script from the list.",
  16980. "parameters": [
  16981. {
  16982. "name": "identifier",
  16983. "$ref": "ScriptIdentifier"
  16984. }
  16985. ]
  16986. },
  16987. {
  16988. "name": "screencastFrameAck",
  16989. "description": "Acknowledges that a screencast frame has been received by the frontend.",
  16990. "experimental": true,
  16991. "parameters": [
  16992. {
  16993. "name": "sessionId",
  16994. "description": "Frame number.",
  16995. "type": "integer"
  16996. }
  16997. ]
  16998. },
  16999. {
  17000. "name": "searchInResource",
  17001. "description": "Searches for given string in resource content.",
  17002. "experimental": true,
  17003. "parameters": [
  17004. {
  17005. "name": "frameId",
  17006. "description": "Frame id for resource to search in.",
  17007. "$ref": "FrameId"
  17008. },
  17009. {
  17010. "name": "url",
  17011. "description": "URL of the resource to search in.",
  17012. "type": "string"
  17013. },
  17014. {
  17015. "name": "query",
  17016. "description": "String to search for.",
  17017. "type": "string"
  17018. },
  17019. {
  17020. "name": "caseSensitive",
  17021. "description": "If true, search is case sensitive.",
  17022. "optional": true,
  17023. "type": "boolean"
  17024. },
  17025. {
  17026. "name": "isRegex",
  17027. "description": "If true, treats string parameter as regex.",
  17028. "optional": true,
  17029. "type": "boolean"
  17030. }
  17031. ],
  17032. "returns": [
  17033. {
  17034. "name": "result",
  17035. "description": "List of search matches.",
  17036. "type": "array",
  17037. "items": {
  17038. "$ref": "Debugger.SearchMatch"
  17039. }
  17040. }
  17041. ]
  17042. },
  17043. {
  17044. "name": "setAdBlockingEnabled",
  17045. "description": "Enable Chrome's experimental ad filter on all sites.",
  17046. "experimental": true,
  17047. "parameters": [
  17048. {
  17049. "name": "enabled",
  17050. "description": "Whether to block ads.",
  17051. "type": "boolean"
  17052. }
  17053. ]
  17054. },
  17055. {
  17056. "name": "setBypassCSP",
  17057. "description": "Enable page Content Security Policy by-passing.",
  17058. "experimental": true,
  17059. "parameters": [
  17060. {
  17061. "name": "enabled",
  17062. "description": "Whether to bypass page CSP.",
  17063. "type": "boolean"
  17064. }
  17065. ]
  17066. },
  17067. {
  17068. "name": "getPermissionsPolicyState",
  17069. "description": "Get Permissions Policy state on given frame.",
  17070. "experimental": true,
  17071. "parameters": [
  17072. {
  17073. "name": "frameId",
  17074. "$ref": "FrameId"
  17075. }
  17076. ],
  17077. "returns": [
  17078. {
  17079. "name": "states",
  17080. "type": "array",
  17081. "items": {
  17082. "$ref": "PermissionsPolicyFeatureState"
  17083. }
  17084. }
  17085. ]
  17086. },
  17087. {
  17088. "name": "getOriginTrials",
  17089. "description": "Get Origin Trials on given frame.",
  17090. "experimental": true,
  17091. "parameters": [
  17092. {
  17093. "name": "frameId",
  17094. "$ref": "FrameId"
  17095. }
  17096. ],
  17097. "returns": [
  17098. {
  17099. "name": "originTrials",
  17100. "type": "array",
  17101. "items": {
  17102. "$ref": "OriginTrial"
  17103. }
  17104. }
  17105. ]
  17106. },
  17107. {
  17108. "name": "setDeviceMetricsOverride",
  17109. "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).",
  17110. "experimental": true,
  17111. "deprecated": true,
  17112. "redirect": "Emulation",
  17113. "parameters": [
  17114. {
  17115. "name": "width",
  17116. "description": "Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
  17117. "type": "integer"
  17118. },
  17119. {
  17120. "name": "height",
  17121. "description": "Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.",
  17122. "type": "integer"
  17123. },
  17124. {
  17125. "name": "deviceScaleFactor",
  17126. "description": "Overriding device scale factor value. 0 disables the override.",
  17127. "type": "number"
  17128. },
  17129. {
  17130. "name": "mobile",
  17131. "description": "Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text\nautosizing and more.",
  17132. "type": "boolean"
  17133. },
  17134. {
  17135. "name": "scale",
  17136. "description": "Scale to apply to resulting view image.",
  17137. "optional": true,
  17138. "type": "number"
  17139. },
  17140. {
  17141. "name": "screenWidth",
  17142. "description": "Overriding screen width value in pixels (minimum 0, maximum 10000000).",
  17143. "optional": true,
  17144. "type": "integer"
  17145. },
  17146. {
  17147. "name": "screenHeight",
  17148. "description": "Overriding screen height value in pixels (minimum 0, maximum 10000000).",
  17149. "optional": true,
  17150. "type": "integer"
  17151. },
  17152. {
  17153. "name": "positionX",
  17154. "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000).",
  17155. "optional": true,
  17156. "type": "integer"
  17157. },
  17158. {
  17159. "name": "positionY",
  17160. "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000).",
  17161. "optional": true,
  17162. "type": "integer"
  17163. },
  17164. {
  17165. "name": "dontSetVisibleSize",
  17166. "description": "Do not set visible view size, rely upon explicit setVisibleSize call.",
  17167. "optional": true,
  17168. "type": "boolean"
  17169. },
  17170. {
  17171. "name": "screenOrientation",
  17172. "description": "Screen orientation override.",
  17173. "optional": true,
  17174. "$ref": "Emulation.ScreenOrientation"
  17175. },
  17176. {
  17177. "name": "viewport",
  17178. "description": "The viewport dimensions and scale. If not set, the override is cleared.",
  17179. "optional": true,
  17180. "$ref": "Viewport"
  17181. }
  17182. ]
  17183. },
  17184. {
  17185. "name": "setDeviceOrientationOverride",
  17186. "description": "Overrides the Device Orientation.",
  17187. "experimental": true,
  17188. "deprecated": true,
  17189. "redirect": "DeviceOrientation",
  17190. "parameters": [
  17191. {
  17192. "name": "alpha",
  17193. "description": "Mock alpha",
  17194. "type": "number"
  17195. },
  17196. {
  17197. "name": "beta",
  17198. "description": "Mock beta",
  17199. "type": "number"
  17200. },
  17201. {
  17202. "name": "gamma",
  17203. "description": "Mock gamma",
  17204. "type": "number"
  17205. }
  17206. ]
  17207. },
  17208. {
  17209. "name": "setFontFamilies",
  17210. "description": "Set generic font families.",
  17211. "experimental": true,
  17212. "parameters": [
  17213. {
  17214. "name": "fontFamilies",
  17215. "description": "Specifies font families to set. If a font family is not specified, it won't be changed.",
  17216. "$ref": "FontFamilies"
  17217. },
  17218. {
  17219. "name": "forScripts",
  17220. "description": "Specifies font families to set for individual scripts.",
  17221. "optional": true,
  17222. "type": "array",
  17223. "items": {
  17224. "$ref": "ScriptFontFamilies"
  17225. }
  17226. }
  17227. ]
  17228. },
  17229. {
  17230. "name": "setFontSizes",
  17231. "description": "Set default font sizes.",
  17232. "experimental": true,
  17233. "parameters": [
  17234. {
  17235. "name": "fontSizes",
  17236. "description": "Specifies font sizes to set. If a font size is not specified, it won't be changed.",
  17237. "$ref": "FontSizes"
  17238. }
  17239. ]
  17240. },
  17241. {
  17242. "name": "setDocumentContent",
  17243. "description": "Sets given markup as the document's HTML.",
  17244. "parameters": [
  17245. {
  17246. "name": "frameId",
  17247. "description": "Frame id to set HTML for.",
  17248. "$ref": "FrameId"
  17249. },
  17250. {
  17251. "name": "html",
  17252. "description": "HTML content to set.",
  17253. "type": "string"
  17254. }
  17255. ]
  17256. },
  17257. {
  17258. "name": "setDownloadBehavior",
  17259. "description": "Set the behavior when downloading a file.",
  17260. "experimental": true,
  17261. "deprecated": true,
  17262. "parameters": [
  17263. {
  17264. "name": "behavior",
  17265. "description": "Whether to allow all or deny all download requests, or use default Chrome behavior if\navailable (otherwise deny).",
  17266. "type": "string",
  17267. "enum": [
  17268. "deny",
  17269. "allow",
  17270. "default"
  17271. ]
  17272. },
  17273. {
  17274. "name": "downloadPath",
  17275. "description": "The default path to save downloaded files to. This is required if behavior is set to 'allow'",
  17276. "optional": true,
  17277. "type": "string"
  17278. }
  17279. ]
  17280. },
  17281. {
  17282. "name": "setGeolocationOverride",
  17283. "description": "Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position\nunavailable.",
  17284. "deprecated": true,
  17285. "redirect": "Emulation",
  17286. "parameters": [
  17287. {
  17288. "name": "latitude",
  17289. "description": "Mock latitude",
  17290. "optional": true,
  17291. "type": "number"
  17292. },
  17293. {
  17294. "name": "longitude",
  17295. "description": "Mock longitude",
  17296. "optional": true,
  17297. "type": "number"
  17298. },
  17299. {
  17300. "name": "accuracy",
  17301. "description": "Mock accuracy",
  17302. "optional": true,
  17303. "type": "number"
  17304. }
  17305. ]
  17306. },
  17307. {
  17308. "name": "setLifecycleEventsEnabled",
  17309. "description": "Controls whether page will emit lifecycle events.",
  17310. "experimental": true,
  17311. "parameters": [
  17312. {
  17313. "name": "enabled",
  17314. "description": "If true, starts emitting lifecycle events.",
  17315. "type": "boolean"
  17316. }
  17317. ]
  17318. },
  17319. {
  17320. "name": "setTouchEmulationEnabled",
  17321. "description": "Toggles mouse event-based touch event emulation.",
  17322. "experimental": true,
  17323. "deprecated": true,
  17324. "redirect": "Emulation",
  17325. "parameters": [
  17326. {
  17327. "name": "enabled",
  17328. "description": "Whether the touch event emulation should be enabled.",
  17329. "type": "boolean"
  17330. },
  17331. {
  17332. "name": "configuration",
  17333. "description": "Touch/gesture events configuration. Default: current platform.",
  17334. "optional": true,
  17335. "type": "string",
  17336. "enum": [
  17337. "mobile",
  17338. "desktop"
  17339. ]
  17340. }
  17341. ]
  17342. },
  17343. {
  17344. "name": "startScreencast",
  17345. "description": "Starts sending each frame using the `screencastFrame` event.",
  17346. "experimental": true,
  17347. "parameters": [
  17348. {
  17349. "name": "format",
  17350. "description": "Image compression format.",
  17351. "optional": true,
  17352. "type": "string",
  17353. "enum": [
  17354. "jpeg",
  17355. "png"
  17356. ]
  17357. },
  17358. {
  17359. "name": "quality",
  17360. "description": "Compression quality from range [0..100].",
  17361. "optional": true,
  17362. "type": "integer"
  17363. },
  17364. {
  17365. "name": "maxWidth",
  17366. "description": "Maximum screenshot width.",
  17367. "optional": true,
  17368. "type": "integer"
  17369. },
  17370. {
  17371. "name": "maxHeight",
  17372. "description": "Maximum screenshot height.",
  17373. "optional": true,
  17374. "type": "integer"
  17375. },
  17376. {
  17377. "name": "everyNthFrame",
  17378. "description": "Send every n-th frame.",
  17379. "optional": true,
  17380. "type": "integer"
  17381. }
  17382. ]
  17383. },
  17384. {
  17385. "name": "stopLoading",
  17386. "description": "Force the page stop all navigations and pending resource fetches."
  17387. },
  17388. {
  17389. "name": "crash",
  17390. "description": "Crashes renderer on the IO thread, generates minidumps.",
  17391. "experimental": true
  17392. },
  17393. {
  17394. "name": "close",
  17395. "description": "Tries to close page, running its beforeunload hooks, if any.",
  17396. "experimental": true
  17397. },
  17398. {
  17399. "name": "setWebLifecycleState",
  17400. "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/",
  17401. "experimental": true,
  17402. "parameters": [
  17403. {
  17404. "name": "state",
  17405. "description": "Target lifecycle state",
  17406. "type": "string",
  17407. "enum": [
  17408. "frozen",
  17409. "active"
  17410. ]
  17411. }
  17412. ]
  17413. },
  17414. {
  17415. "name": "stopScreencast",
  17416. "description": "Stops sending each frame in the `screencastFrame`.",
  17417. "experimental": true
  17418. },
  17419. {
  17420. "name": "produceCompilationCache",
  17421. "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`.",
  17422. "experimental": true,
  17423. "parameters": [
  17424. {
  17425. "name": "scripts",
  17426. "type": "array",
  17427. "items": {
  17428. "$ref": "CompilationCacheParams"
  17429. }
  17430. }
  17431. ]
  17432. },
  17433. {
  17434. "name": "addCompilationCache",
  17435. "description": "Seeds compilation cache for given url. Compilation cache does not survive\ncross-process navigation.",
  17436. "experimental": true,
  17437. "parameters": [
  17438. {
  17439. "name": "url",
  17440. "type": "string"
  17441. },
  17442. {
  17443. "name": "data",
  17444. "description": "Base64-encoded data (Encoded as a base64 string when passed over JSON)",
  17445. "type": "string"
  17446. }
  17447. ]
  17448. },
  17449. {
  17450. "name": "clearCompilationCache",
  17451. "description": "Clears seeded compilation cache.",
  17452. "experimental": true
  17453. },
  17454. {
  17455. "name": "setSPCTransactionMode",
  17456. "description": "Sets the Secure Payment Confirmation transaction mode.\nhttps://w3c.github.io/secure-payment-confirmation/#sctn-automation-set-spc-transaction-mode",
  17457. "experimental": true,
  17458. "parameters": [
  17459. {
  17460. "name": "mode",
  17461. "type": "string",
  17462. "enum": [
  17463. "none",
  17464. "autoaccept",
  17465. "autoreject"
  17466. ]
  17467. }
  17468. ]
  17469. },
  17470. {
  17471. "name": "generateTestReport",
  17472. "description": "Generates a report for testing.",
  17473. "experimental": true,
  17474. "parameters": [
  17475. {
  17476. "name": "message",
  17477. "description": "Message to be displayed in the report.",
  17478. "type": "string"
  17479. },
  17480. {
  17481. "name": "group",
  17482. "description": "Specifies the endpoint group to deliver the report to.",
  17483. "optional": true,
  17484. "type": "string"
  17485. }
  17486. ]
  17487. },
  17488. {
  17489. "name": "waitForDebugger",
  17490. "description": "Pauses page execution. Can be resumed using generic Runtime.runIfWaitingForDebugger.",
  17491. "experimental": true
  17492. },
  17493. {
  17494. "name": "setInterceptFileChooserDialog",
  17495. "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.",
  17496. "experimental": true,
  17497. "parameters": [
  17498. {
  17499. "name": "enabled",
  17500. "type": "boolean"
  17501. }
  17502. ]
  17503. }
  17504. ],
  17505. "events": [
  17506. {
  17507. "name": "domContentEventFired",
  17508. "parameters": [
  17509. {
  17510. "name": "timestamp",
  17511. "$ref": "Network.MonotonicTime"
  17512. }
  17513. ]
  17514. },
  17515. {
  17516. "name": "fileChooserOpened",
  17517. "description": "Emitted only when `page.interceptFileChooser` is enabled.",
  17518. "parameters": [
  17519. {
  17520. "name": "frameId",
  17521. "description": "Id of the frame containing input node.",
  17522. "experimental": true,
  17523. "$ref": "FrameId"
  17524. },
  17525. {
  17526. "name": "mode",
  17527. "description": "Input mode.",
  17528. "type": "string",
  17529. "enum": [
  17530. "selectSingle",
  17531. "selectMultiple"
  17532. ]
  17533. },
  17534. {
  17535. "name": "backendNodeId",
  17536. "description": "Input node id. Only present for file choosers opened via an <input type=\"file\"> element.",
  17537. "experimental": true,
  17538. "optional": true,
  17539. "$ref": "DOM.BackendNodeId"
  17540. }
  17541. ]
  17542. },
  17543. {
  17544. "name": "frameAttached",
  17545. "description": "Fired when frame has been attached to its parent.",
  17546. "parameters": [
  17547. {
  17548. "name": "frameId",
  17549. "description": "Id of the frame that has been attached.",
  17550. "$ref": "FrameId"
  17551. },
  17552. {
  17553. "name": "parentFrameId",
  17554. "description": "Parent frame identifier.",
  17555. "$ref": "FrameId"
  17556. },
  17557. {
  17558. "name": "stack",
  17559. "description": "JavaScript stack trace of when frame was attached, only set if frame initiated from script.",
  17560. "optional": true,
  17561. "$ref": "Runtime.StackTrace"
  17562. },
  17563. {
  17564. "name": "adScriptId",
  17565. "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.",
  17566. "experimental": true,
  17567. "optional": true,
  17568. "$ref": "AdScriptId"
  17569. }
  17570. ]
  17571. },
  17572. {
  17573. "name": "frameClearedScheduledNavigation",
  17574. "description": "Fired when frame no longer has a scheduled navigation.",
  17575. "deprecated": true,
  17576. "parameters": [
  17577. {
  17578. "name": "frameId",
  17579. "description": "Id of the frame that has cleared its scheduled navigation.",
  17580. "$ref": "FrameId"
  17581. }
  17582. ]
  17583. },
  17584. {
  17585. "name": "frameDetached",
  17586. "description": "Fired when frame has been detached from its parent.",
  17587. "parameters": [
  17588. {
  17589. "name": "frameId",
  17590. "description": "Id of the frame that has been detached.",
  17591. "$ref": "FrameId"
  17592. },
  17593. {
  17594. "name": "reason",
  17595. "experimental": true,
  17596. "type": "string",
  17597. "enum": [
  17598. "remove",
  17599. "swap"
  17600. ]
  17601. }
  17602. ]
  17603. },
  17604. {
  17605. "name": "frameNavigated",
  17606. "description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
  17607. "parameters": [
  17608. {
  17609. "name": "frame",
  17610. "description": "Frame object.",
  17611. "$ref": "Frame"
  17612. },
  17613. {
  17614. "name": "type",
  17615. "experimental": true,
  17616. "$ref": "NavigationType"
  17617. }
  17618. ]
  17619. },
  17620. {
  17621. "name": "documentOpened",
  17622. "description": "Fired when opening document to write to.",
  17623. "experimental": true,
  17624. "parameters": [
  17625. {
  17626. "name": "frame",
  17627. "description": "Frame object.",
  17628. "$ref": "Frame"
  17629. }
  17630. ]
  17631. },
  17632. {
  17633. "name": "frameResized",
  17634. "experimental": true
  17635. },
  17636. {
  17637. "name": "frameRequestedNavigation",
  17638. "description": "Fired when a renderer-initiated navigation is requested.\nNavigation may still be cancelled after the event is issued.",
  17639. "experimental": true,
  17640. "parameters": [
  17641. {
  17642. "name": "frameId",
  17643. "description": "Id of the frame that is being navigated.",
  17644. "$ref": "FrameId"
  17645. },
  17646. {
  17647. "name": "reason",
  17648. "description": "The reason for the navigation.",
  17649. "$ref": "ClientNavigationReason"
  17650. },
  17651. {
  17652. "name": "url",
  17653. "description": "The destination URL for the requested navigation.",
  17654. "type": "string"
  17655. },
  17656. {
  17657. "name": "disposition",
  17658. "description": "The disposition for the navigation.",
  17659. "$ref": "ClientNavigationDisposition"
  17660. }
  17661. ]
  17662. },
  17663. {
  17664. "name": "frameScheduledNavigation",
  17665. "description": "Fired when frame schedules a potential navigation.",
  17666. "deprecated": true,
  17667. "parameters": [
  17668. {
  17669. "name": "frameId",
  17670. "description": "Id of the frame that has scheduled a navigation.",
  17671. "$ref": "FrameId"
  17672. },
  17673. {
  17674. "name": "delay",
  17675. "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not\nguaranteed to start.",
  17676. "type": "number"
  17677. },
  17678. {
  17679. "name": "reason",
  17680. "description": "The reason for the navigation.",
  17681. "$ref": "ClientNavigationReason"
  17682. },
  17683. {
  17684. "name": "url",
  17685. "description": "The destination URL for the scheduled navigation.",
  17686. "type": "string"
  17687. }
  17688. ]
  17689. },
  17690. {
  17691. "name": "frameStartedLoading",
  17692. "description": "Fired when frame has started loading.",
  17693. "experimental": true,
  17694. "parameters": [
  17695. {
  17696. "name": "frameId",
  17697. "description": "Id of the frame that has started loading.",
  17698. "$ref": "FrameId"
  17699. }
  17700. ]
  17701. },
  17702. {
  17703. "name": "frameStoppedLoading",
  17704. "description": "Fired when frame has stopped loading.",
  17705. "experimental": true,
  17706. "parameters": [
  17707. {
  17708. "name": "frameId",
  17709. "description": "Id of the frame that has stopped loading.",
  17710. "$ref": "FrameId"
  17711. }
  17712. ]
  17713. },
  17714. {
  17715. "name": "downloadWillBegin",
  17716. "description": "Fired when page is about to start a download.\nDeprecated. Use Browser.downloadWillBegin instead.",
  17717. "experimental": true,
  17718. "deprecated": true,
  17719. "parameters": [
  17720. {
  17721. "name": "frameId",
  17722. "description": "Id of the frame that caused download to begin.",
  17723. "$ref": "FrameId"
  17724. },
  17725. {
  17726. "name": "guid",
  17727. "description": "Global unique identifier of the download.",
  17728. "type": "string"
  17729. },
  17730. {
  17731. "name": "url",
  17732. "description": "URL of the resource being downloaded.",
  17733. "type": "string"
  17734. },
  17735. {
  17736. "name": "suggestedFilename",
  17737. "description": "Suggested file name of the resource (the actual name of the file saved on disk may differ).",
  17738. "type": "string"
  17739. }
  17740. ]
  17741. },
  17742. {
  17743. "name": "downloadProgress",
  17744. "description": "Fired when download makes progress. Last call has |done| == true.\nDeprecated. Use Browser.downloadProgress instead.",
  17745. "experimental": true,
  17746. "deprecated": true,
  17747. "parameters": [
  17748. {
  17749. "name": "guid",
  17750. "description": "Global unique identifier of the download.",
  17751. "type": "string"
  17752. },
  17753. {
  17754. "name": "totalBytes",
  17755. "description": "Total expected bytes to download.",
  17756. "type": "number"
  17757. },
  17758. {
  17759. "name": "receivedBytes",
  17760. "description": "Total bytes received.",
  17761. "type": "number"
  17762. },
  17763. {
  17764. "name": "state",
  17765. "description": "Download status.",
  17766. "type": "string",
  17767. "enum": [
  17768. "inProgress",
  17769. "completed",
  17770. "canceled"
  17771. ]
  17772. }
  17773. ]
  17774. },
  17775. {
  17776. "name": "interstitialHidden",
  17777. "description": "Fired when interstitial page was hidden"
  17778. },
  17779. {
  17780. "name": "interstitialShown",
  17781. "description": "Fired when interstitial page was shown"
  17782. },
  17783. {
  17784. "name": "javascriptDialogClosed",
  17785. "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) has been\nclosed.",
  17786. "parameters": [
  17787. {
  17788. "name": "result",
  17789. "description": "Whether dialog was confirmed.",
  17790. "type": "boolean"
  17791. },
  17792. {
  17793. "name": "userInput",
  17794. "description": "User input in case of prompt.",
  17795. "type": "string"
  17796. }
  17797. ]
  17798. },
  17799. {
  17800. "name": "javascriptDialogOpening",
  17801. "description": "Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to\nopen.",
  17802. "parameters": [
  17803. {
  17804. "name": "url",
  17805. "description": "Frame url.",
  17806. "type": "string"
  17807. },
  17808. {
  17809. "name": "message",
  17810. "description": "Message that will be displayed by the dialog.",
  17811. "type": "string"
  17812. },
  17813. {
  17814. "name": "type",
  17815. "description": "Dialog type.",
  17816. "$ref": "DialogType"
  17817. },
  17818. {
  17819. "name": "hasBrowserHandler",
  17820. "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.",
  17821. "type": "boolean"
  17822. },
  17823. {
  17824. "name": "defaultPrompt",
  17825. "description": "Default dialog prompt.",
  17826. "optional": true,
  17827. "type": "string"
  17828. }
  17829. ]
  17830. },
  17831. {
  17832. "name": "lifecycleEvent",
  17833. "description": "Fired for top level page lifecycle events such as navigation, load, paint, etc.",
  17834. "parameters": [
  17835. {
  17836. "name": "frameId",
  17837. "description": "Id of the frame.",
  17838. "$ref": "FrameId"
  17839. },
  17840. {
  17841. "name": "loaderId",
  17842. "description": "Loader identifier. Empty string if the request is fetched from worker.",
  17843. "$ref": "Network.LoaderId"
  17844. },
  17845. {
  17846. "name": "name",
  17847. "type": "string"
  17848. },
  17849. {
  17850. "name": "timestamp",
  17851. "$ref": "Network.MonotonicTime"
  17852. }
  17853. ]
  17854. },
  17855. {
  17856. "name": "backForwardCacheNotUsed",
  17857. "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.",
  17858. "experimental": true,
  17859. "parameters": [
  17860. {
  17861. "name": "loaderId",
  17862. "description": "The loader id for the associated navgation.",
  17863. "$ref": "Network.LoaderId"
  17864. },
  17865. {
  17866. "name": "frameId",
  17867. "description": "The frame id of the associated frame.",
  17868. "$ref": "FrameId"
  17869. },
  17870. {
  17871. "name": "notRestoredExplanations",
  17872. "description": "Array of reasons why the page could not be cached. This must not be empty.",
  17873. "type": "array",
  17874. "items": {
  17875. "$ref": "BackForwardCacheNotRestoredExplanation"
  17876. }
  17877. },
  17878. {
  17879. "name": "notRestoredExplanationsTree",
  17880. "description": "Tree structure of reasons why the page could not be cached for each frame.",
  17881. "optional": true,
  17882. "$ref": "BackForwardCacheNotRestoredExplanationTree"
  17883. }
  17884. ]
  17885. },
  17886. {
  17887. "name": "prerenderAttemptCompleted",
  17888. "description": "Fired when a prerender attempt is completed.",
  17889. "experimental": true,
  17890. "parameters": [
  17891. {
  17892. "name": "initiatingFrameId",
  17893. "description": "The frame id of the frame initiating prerendering.",
  17894. "$ref": "FrameId"
  17895. },
  17896. {
  17897. "name": "prerenderingUrl",
  17898. "type": "string"
  17899. },
  17900. {
  17901. "name": "finalStatus",
  17902. "$ref": "PrerenderFinalStatus"
  17903. },
  17904. {
  17905. "name": "reasonDetails",
  17906. "description": "This is used to give users more information about the cancellation details,\nand this will be formatted for display.",
  17907. "optional": true,
  17908. "type": "string"
  17909. }
  17910. ]
  17911. },
  17912. {
  17913. "name": "loadEventFired",
  17914. "parameters": [
  17915. {
  17916. "name": "timestamp",
  17917. "$ref": "Network.MonotonicTime"
  17918. }
  17919. ]
  17920. },
  17921. {
  17922. "name": "navigatedWithinDocument",
  17923. "description": "Fired when same-document navigation happens, e.g. due to history API usage or anchor navigation.",
  17924. "experimental": true,
  17925. "parameters": [
  17926. {
  17927. "name": "frameId",
  17928. "description": "Id of the frame.",
  17929. "$ref": "FrameId"
  17930. },
  17931. {
  17932. "name": "url",
  17933. "description": "Frame's new url.",
  17934. "type": "string"
  17935. }
  17936. ]
  17937. },
  17938. {
  17939. "name": "screencastFrame",
  17940. "description": "Compressed image data requested by the `startScreencast`.",
  17941. "experimental": true,
  17942. "parameters": [
  17943. {
  17944. "name": "data",
  17945. "description": "Base64-encoded compressed image. (Encoded as a base64 string when passed over JSON)",
  17946. "type": "string"
  17947. },
  17948. {
  17949. "name": "metadata",
  17950. "description": "Screencast frame metadata.",
  17951. "$ref": "ScreencastFrameMetadata"
  17952. },
  17953. {
  17954. "name": "sessionId",
  17955. "description": "Frame number.",
  17956. "type": "integer"
  17957. }
  17958. ]
  17959. },
  17960. {
  17961. "name": "screencastVisibilityChanged",
  17962. "description": "Fired when the page with currently enabled screencast was shown or hidden `.",
  17963. "experimental": true,
  17964. "parameters": [
  17965. {
  17966. "name": "visible",
  17967. "description": "True if the page is visible.",
  17968. "type": "boolean"
  17969. }
  17970. ]
  17971. },
  17972. {
  17973. "name": "windowOpen",
  17974. "description": "Fired when a new window is going to be opened, via window.open(), link click, form submission,\netc.",
  17975. "parameters": [
  17976. {
  17977. "name": "url",
  17978. "description": "The URL for the new window.",
  17979. "type": "string"
  17980. },
  17981. {
  17982. "name": "windowName",
  17983. "description": "Window name.",
  17984. "type": "string"
  17985. },
  17986. {
  17987. "name": "windowFeatures",
  17988. "description": "An array of enabled window features.",
  17989. "type": "array",
  17990. "items": {
  17991. "type": "string"
  17992. }
  17993. },
  17994. {
  17995. "name": "userGesture",
  17996. "description": "Whether or not it was triggered by user gesture.",
  17997. "type": "boolean"
  17998. }
  17999. ]
  18000. },
  18001. {
  18002. "name": "compilationCacheProduced",
  18003. "description": "Issued for every compilation cache generated. Is only available\nif Page.setGenerateCompilationCache is enabled.",
  18004. "experimental": true,
  18005. "parameters": [
  18006. {
  18007. "name": "url",
  18008. "type": "string"
  18009. },
  18010. {
  18011. "name": "data",
  18012. "description": "Base64-encoded data (Encoded as a base64 string when passed over JSON)",
  18013. "type": "string"
  18014. }
  18015. ]
  18016. }
  18017. ]
  18018. },
  18019. {
  18020. "domain": "Performance",
  18021. "types": [
  18022. {
  18023. "id": "Metric",
  18024. "description": "Run-time execution metric.",
  18025. "type": "object",
  18026. "properties": [
  18027. {
  18028. "name": "name",
  18029. "description": "Metric name.",
  18030. "type": "string"
  18031. },
  18032. {
  18033. "name": "value",
  18034. "description": "Metric value.",
  18035. "type": "number"
  18036. }
  18037. ]
  18038. }
  18039. ],
  18040. "commands": [
  18041. {
  18042. "name": "disable",
  18043. "description": "Disable collecting and reporting metrics."
  18044. },
  18045. {
  18046. "name": "enable",
  18047. "description": "Enable collecting and reporting metrics.",
  18048. "parameters": [
  18049. {
  18050. "name": "timeDomain",
  18051. "description": "Time domain to use for collecting and reporting duration metrics.",
  18052. "optional": true,
  18053. "type": "string",
  18054. "enum": [
  18055. "timeTicks",
  18056. "threadTicks"
  18057. ]
  18058. }
  18059. ]
  18060. },
  18061. {
  18062. "name": "setTimeDomain",
  18063. "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.",
  18064. "experimental": true,
  18065. "deprecated": true,
  18066. "parameters": [
  18067. {
  18068. "name": "timeDomain",
  18069. "description": "Time domain",
  18070. "type": "string",
  18071. "enum": [
  18072. "timeTicks",
  18073. "threadTicks"
  18074. ]
  18075. }
  18076. ]
  18077. },
  18078. {
  18079. "name": "getMetrics",
  18080. "description": "Retrieve current values of run-time metrics.",
  18081. "returns": [
  18082. {
  18083. "name": "metrics",
  18084. "description": "Current values for run-time metrics.",
  18085. "type": "array",
  18086. "items": {
  18087. "$ref": "Metric"
  18088. }
  18089. }
  18090. ]
  18091. }
  18092. ],
  18093. "events": [
  18094. {
  18095. "name": "metrics",
  18096. "description": "Current values of the metrics.",
  18097. "parameters": [
  18098. {
  18099. "name": "metrics",
  18100. "description": "Current values of the metrics.",
  18101. "type": "array",
  18102. "items": {
  18103. "$ref": "Metric"
  18104. }
  18105. },
  18106. {
  18107. "name": "title",
  18108. "description": "Timestamp title.",
  18109. "type": "string"
  18110. }
  18111. ]
  18112. }
  18113. ]
  18114. },
  18115. {
  18116. "domain": "PerformanceTimeline",
  18117. "description": "Reporting of performance timeline events, as specified in\nhttps://w3c.github.io/performance-timeline/#dom-performanceobserver.",
  18118. "experimental": true,
  18119. "dependencies": [
  18120. "DOM",
  18121. "Network"
  18122. ],
  18123. "types": [
  18124. {
  18125. "id": "LargestContentfulPaint",
  18126. "description": "See https://github.com/WICG/LargestContentfulPaint and largest_contentful_paint.idl",
  18127. "type": "object",
  18128. "properties": [
  18129. {
  18130. "name": "renderTime",
  18131. "$ref": "Network.TimeSinceEpoch"
  18132. },
  18133. {
  18134. "name": "loadTime",
  18135. "$ref": "Network.TimeSinceEpoch"
  18136. },
  18137. {
  18138. "name": "size",
  18139. "description": "The number of pixels being painted.",
  18140. "type": "number"
  18141. },
  18142. {
  18143. "name": "elementId",
  18144. "description": "The id attribute of the element, if available.",
  18145. "optional": true,
  18146. "type": "string"
  18147. },
  18148. {
  18149. "name": "url",
  18150. "description": "The URL of the image (may be trimmed).",
  18151. "optional": true,
  18152. "type": "string"
  18153. },
  18154. {
  18155. "name": "nodeId",
  18156. "optional": true,
  18157. "$ref": "DOM.BackendNodeId"
  18158. }
  18159. ]
  18160. },
  18161. {
  18162. "id": "LayoutShiftAttribution",
  18163. "type": "object",
  18164. "properties": [
  18165. {
  18166. "name": "previousRect",
  18167. "$ref": "DOM.Rect"
  18168. },
  18169. {
  18170. "name": "currentRect",
  18171. "$ref": "DOM.Rect"
  18172. },
  18173. {
  18174. "name": "nodeId",
  18175. "optional": true,
  18176. "$ref": "DOM.BackendNodeId"
  18177. }
  18178. ]
  18179. },
  18180. {
  18181. "id": "LayoutShift",
  18182. "description": "See https://wicg.github.io/layout-instability/#sec-layout-shift and layout_shift.idl",
  18183. "type": "object",
  18184. "properties": [
  18185. {
  18186. "name": "value",
  18187. "description": "Score increment produced by this event.",
  18188. "type": "number"
  18189. },
  18190. {
  18191. "name": "hadRecentInput",
  18192. "type": "boolean"
  18193. },
  18194. {
  18195. "name": "lastInputTime",
  18196. "$ref": "Network.TimeSinceEpoch"
  18197. },
  18198. {
  18199. "name": "sources",
  18200. "type": "array",
  18201. "items": {
  18202. "$ref": "LayoutShiftAttribution"
  18203. }
  18204. }
  18205. ]
  18206. },
  18207. {
  18208. "id": "TimelineEvent",
  18209. "type": "object",
  18210. "properties": [
  18211. {
  18212. "name": "frameId",
  18213. "description": "Identifies the frame that this event is related to. Empty for non-frame targets.",
  18214. "$ref": "Page.FrameId"
  18215. },
  18216. {
  18217. "name": "type",
  18218. "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.",
  18219. "type": "string"
  18220. },
  18221. {
  18222. "name": "name",
  18223. "description": "Name may be empty depending on the type.",
  18224. "type": "string"
  18225. },
  18226. {
  18227. "name": "time",
  18228. "description": "Time in seconds since Epoch, monotonically increasing within document lifetime.",
  18229. "$ref": "Network.TimeSinceEpoch"
  18230. },
  18231. {
  18232. "name": "duration",
  18233. "description": "Event duration, if applicable.",
  18234. "optional": true,
  18235. "type": "number"
  18236. },
  18237. {
  18238. "name": "lcpDetails",
  18239. "optional": true,
  18240. "$ref": "LargestContentfulPaint"
  18241. },
  18242. {
  18243. "name": "layoutShiftDetails",
  18244. "optional": true,
  18245. "$ref": "LayoutShift"
  18246. }
  18247. ]
  18248. }
  18249. ],
  18250. "commands": [
  18251. {
  18252. "name": "enable",
  18253. "description": "Previously buffered events would be reported before method returns.\nSee also: timelineEventAdded",
  18254. "parameters": [
  18255. {
  18256. "name": "eventTypes",
  18257. "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.",
  18258. "type": "array",
  18259. "items": {
  18260. "type": "string"
  18261. }
  18262. }
  18263. ]
  18264. }
  18265. ],
  18266. "events": [
  18267. {
  18268. "name": "timelineEventAdded",
  18269. "description": "Sent when a performance timeline event is added. See reportPerformanceTimeline method.",
  18270. "parameters": [
  18271. {
  18272. "name": "event",
  18273. "$ref": "TimelineEvent"
  18274. }
  18275. ]
  18276. }
  18277. ]
  18278. },
  18279. {
  18280. "domain": "Security",
  18281. "description": "Security",
  18282. "types": [
  18283. {
  18284. "id": "CertificateId",
  18285. "description": "An internal certificate ID value.",
  18286. "type": "integer"
  18287. },
  18288. {
  18289. "id": "MixedContentType",
  18290. "description": "A description of mixed content (HTTP resources on HTTPS pages), as defined by\nhttps://www.w3.org/TR/mixed-content/#categories",
  18291. "type": "string",
  18292. "enum": [
  18293. "blockable",
  18294. "optionally-blockable",
  18295. "none"
  18296. ]
  18297. },
  18298. {
  18299. "id": "SecurityState",
  18300. "description": "The security level of a page or resource.",
  18301. "type": "string",
  18302. "enum": [
  18303. "unknown",
  18304. "neutral",
  18305. "insecure",
  18306. "secure",
  18307. "info",
  18308. "insecure-broken"
  18309. ]
  18310. },
  18311. {
  18312. "id": "CertificateSecurityState",
  18313. "description": "Details about the security state of the page certificate.",
  18314. "experimental": true,
  18315. "type": "object",
  18316. "properties": [
  18317. {
  18318. "name": "protocol",
  18319. "description": "Protocol name (e.g. \"TLS 1.2\" or \"QUIC\").",
  18320. "type": "string"
  18321. },
  18322. {
  18323. "name": "keyExchange",
  18324. "description": "Key Exchange used by the connection, or the empty string if not applicable.",
  18325. "type": "string"
  18326. },
  18327. {
  18328. "name": "keyExchangeGroup",
  18329. "description": "(EC)DH group used by the connection, if applicable.",
  18330. "optional": true,
  18331. "type": "string"
  18332. },
  18333. {
  18334. "name": "cipher",
  18335. "description": "Cipher name.",
  18336. "type": "string"
  18337. },
  18338. {
  18339. "name": "mac",
  18340. "description": "TLS MAC. Note that AEAD ciphers do not have separate MACs.",
  18341. "optional": true,
  18342. "type": "string"
  18343. },
  18344. {
  18345. "name": "certificate",
  18346. "description": "Page certificate.",
  18347. "type": "array",
  18348. "items": {
  18349. "type": "string"
  18350. }
  18351. },
  18352. {
  18353. "name": "subjectName",
  18354. "description": "Certificate subject name.",
  18355. "type": "string"
  18356. },
  18357. {
  18358. "name": "issuer",
  18359. "description": "Name of the issuing CA.",
  18360. "type": "string"
  18361. },
  18362. {
  18363. "name": "validFrom",
  18364. "description": "Certificate valid from date.",
  18365. "$ref": "Network.TimeSinceEpoch"
  18366. },
  18367. {
  18368. "name": "validTo",
  18369. "description": "Certificate valid to (expiration) date",
  18370. "$ref": "Network.TimeSinceEpoch"
  18371. },
  18372. {
  18373. "name": "certificateNetworkError",
  18374. "description": "The highest priority network error code, if the certificate has an error.",
  18375. "optional": true,
  18376. "type": "string"
  18377. },
  18378. {
  18379. "name": "certificateHasWeakSignature",
  18380. "description": "True if the certificate uses a weak signature aglorithm.",
  18381. "type": "boolean"
  18382. },
  18383. {
  18384. "name": "certificateHasSha1Signature",
  18385. "description": "True if the certificate has a SHA1 signature in the chain.",
  18386. "type": "boolean"
  18387. },
  18388. {
  18389. "name": "modernSSL",
  18390. "description": "True if modern SSL",
  18391. "type": "boolean"
  18392. },
  18393. {
  18394. "name": "obsoleteSslProtocol",
  18395. "description": "True if the connection is using an obsolete SSL protocol.",
  18396. "type": "boolean"
  18397. },
  18398. {
  18399. "name": "obsoleteSslKeyExchange",
  18400. "description": "True if the connection is using an obsolete SSL key exchange.",
  18401. "type": "boolean"
  18402. },
  18403. {
  18404. "name": "obsoleteSslCipher",
  18405. "description": "True if the connection is using an obsolete SSL cipher.",
  18406. "type": "boolean"
  18407. },
  18408. {
  18409. "name": "obsoleteSslSignature",
  18410. "description": "True if the connection is using an obsolete SSL signature.",
  18411. "type": "boolean"
  18412. }
  18413. ]
  18414. },
  18415. {
  18416. "id": "SafetyTipStatus",
  18417. "experimental": true,
  18418. "type": "string",
  18419. "enum": [
  18420. "badReputation",
  18421. "lookalike"
  18422. ]
  18423. },
  18424. {
  18425. "id": "SafetyTipInfo",
  18426. "experimental": true,
  18427. "type": "object",
  18428. "properties": [
  18429. {
  18430. "name": "safetyTipStatus",
  18431. "description": "Describes whether the page triggers any safety tips or reputation warnings. Default is unknown.",
  18432. "$ref": "SafetyTipStatus"
  18433. },
  18434. {
  18435. "name": "safeUrl",
  18436. "description": "The URL the safety tip suggested (\"Did you mean?\"). Only filled in for lookalike matches.",
  18437. "optional": true,
  18438. "type": "string"
  18439. }
  18440. ]
  18441. },
  18442. {
  18443. "id": "VisibleSecurityState",
  18444. "description": "Security state information about the page.",
  18445. "experimental": true,
  18446. "type": "object",
  18447. "properties": [
  18448. {
  18449. "name": "securityState",
  18450. "description": "The security level of the page.",
  18451. "$ref": "SecurityState"
  18452. },
  18453. {
  18454. "name": "certificateSecurityState",
  18455. "description": "Security state details about the page certificate.",
  18456. "optional": true,
  18457. "$ref": "CertificateSecurityState"
  18458. },
  18459. {
  18460. "name": "safetyTipInfo",
  18461. "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.",
  18462. "optional": true,
  18463. "$ref": "SafetyTipInfo"
  18464. },
  18465. {
  18466. "name": "securityStateIssueIds",
  18467. "description": "Array of security state issues ids.",
  18468. "type": "array",
  18469. "items": {
  18470. "type": "string"
  18471. }
  18472. }
  18473. ]
  18474. },
  18475. {
  18476. "id": "SecurityStateExplanation",
  18477. "description": "An explanation of an factor contributing to the security state.",
  18478. "type": "object",
  18479. "properties": [
  18480. {
  18481. "name": "securityState",
  18482. "description": "Security state representing the severity of the factor being explained.",
  18483. "$ref": "SecurityState"
  18484. },
  18485. {
  18486. "name": "title",
  18487. "description": "Title describing the type of factor.",
  18488. "type": "string"
  18489. },
  18490. {
  18491. "name": "summary",
  18492. "description": "Short phrase describing the type of factor.",
  18493. "type": "string"
  18494. },
  18495. {
  18496. "name": "description",
  18497. "description": "Full text explanation of the factor.",
  18498. "type": "string"
  18499. },
  18500. {
  18501. "name": "mixedContentType",
  18502. "description": "The type of mixed content described by the explanation.",
  18503. "$ref": "MixedContentType"
  18504. },
  18505. {
  18506. "name": "certificate",
  18507. "description": "Page certificate.",
  18508. "type": "array",
  18509. "items": {
  18510. "type": "string"
  18511. }
  18512. },
  18513. {
  18514. "name": "recommendations",
  18515. "description": "Recommendations to fix any issues.",
  18516. "optional": true,
  18517. "type": "array",
  18518. "items": {
  18519. "type": "string"
  18520. }
  18521. }
  18522. ]
  18523. },
  18524. {
  18525. "id": "InsecureContentStatus",
  18526. "description": "Information about insecure content on the page.",
  18527. "deprecated": true,
  18528. "type": "object",
  18529. "properties": [
  18530. {
  18531. "name": "ranMixedContent",
  18532. "description": "Always false.",
  18533. "type": "boolean"
  18534. },
  18535. {
  18536. "name": "displayedMixedContent",
  18537. "description": "Always false.",
  18538. "type": "boolean"
  18539. },
  18540. {
  18541. "name": "containedMixedForm",
  18542. "description": "Always false.",
  18543. "type": "boolean"
  18544. },
  18545. {
  18546. "name": "ranContentWithCertErrors",
  18547. "description": "Always false.",
  18548. "type": "boolean"
  18549. },
  18550. {
  18551. "name": "displayedContentWithCertErrors",
  18552. "description": "Always false.",
  18553. "type": "boolean"
  18554. },
  18555. {
  18556. "name": "ranInsecureContentStyle",
  18557. "description": "Always set to unknown.",
  18558. "$ref": "SecurityState"
  18559. },
  18560. {
  18561. "name": "displayedInsecureContentStyle",
  18562. "description": "Always set to unknown.",
  18563. "$ref": "SecurityState"
  18564. }
  18565. ]
  18566. },
  18567. {
  18568. "id": "CertificateErrorAction",
  18569. "description": "The action to take when a certificate error occurs. continue will continue processing the\nrequest and cancel will cancel the request.",
  18570. "type": "string",
  18571. "enum": [
  18572. "continue",
  18573. "cancel"
  18574. ]
  18575. }
  18576. ],
  18577. "commands": [
  18578. {
  18579. "name": "disable",
  18580. "description": "Disables tracking security state changes."
  18581. },
  18582. {
  18583. "name": "enable",
  18584. "description": "Enables tracking security state changes."
  18585. },
  18586. {
  18587. "name": "setIgnoreCertificateErrors",
  18588. "description": "Enable/disable whether all certificate errors should be ignored.",
  18589. "experimental": true,
  18590. "parameters": [
  18591. {
  18592. "name": "ignore",
  18593. "description": "If true, all certificate errors will be ignored.",
  18594. "type": "boolean"
  18595. }
  18596. ]
  18597. },
  18598. {
  18599. "name": "handleCertificateError",
  18600. "description": "Handles a certificate error that fired a certificateError event.",
  18601. "deprecated": true,
  18602. "parameters": [
  18603. {
  18604. "name": "eventId",
  18605. "description": "The ID of the event.",
  18606. "type": "integer"
  18607. },
  18608. {
  18609. "name": "action",
  18610. "description": "The action to take on the certificate error.",
  18611. "$ref": "CertificateErrorAction"
  18612. }
  18613. ]
  18614. },
  18615. {
  18616. "name": "setOverrideCertificateErrors",
  18617. "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.",
  18618. "deprecated": true,
  18619. "parameters": [
  18620. {
  18621. "name": "override",
  18622. "description": "If true, certificate errors will be overridden.",
  18623. "type": "boolean"
  18624. }
  18625. ]
  18626. }
  18627. ],
  18628. "events": [
  18629. {
  18630. "name": "certificateError",
  18631. "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.",
  18632. "deprecated": true,
  18633. "parameters": [
  18634. {
  18635. "name": "eventId",
  18636. "description": "The ID of the event.",
  18637. "type": "integer"
  18638. },
  18639. {
  18640. "name": "errorType",
  18641. "description": "The type of the error.",
  18642. "type": "string"
  18643. },
  18644. {
  18645. "name": "requestURL",
  18646. "description": "The url that was requested.",
  18647. "type": "string"
  18648. }
  18649. ]
  18650. },
  18651. {
  18652. "name": "visibleSecurityStateChanged",
  18653. "description": "The security state of the page changed.",
  18654. "experimental": true,
  18655. "parameters": [
  18656. {
  18657. "name": "visibleSecurityState",
  18658. "description": "Security state information about the page.",
  18659. "$ref": "VisibleSecurityState"
  18660. }
  18661. ]
  18662. },
  18663. {
  18664. "name": "securityStateChanged",
  18665. "description": "The security state of the page changed. No longer being sent.",
  18666. "deprecated": true,
  18667. "parameters": [
  18668. {
  18669. "name": "securityState",
  18670. "description": "Security state.",
  18671. "$ref": "SecurityState"
  18672. },
  18673. {
  18674. "name": "schemeIsCryptographic",
  18675. "description": "True if the page was loaded over cryptographic transport such as HTTPS.",
  18676. "deprecated": true,
  18677. "type": "boolean"
  18678. },
  18679. {
  18680. "name": "explanations",
  18681. "description": "Previously a list of explanations for the security state. Now always\nempty.",
  18682. "deprecated": true,
  18683. "type": "array",
  18684. "items": {
  18685. "$ref": "SecurityStateExplanation"
  18686. }
  18687. },
  18688. {
  18689. "name": "insecureContentStatus",
  18690. "description": "Information about insecure content on the page.",
  18691. "deprecated": true,
  18692. "$ref": "InsecureContentStatus"
  18693. },
  18694. {
  18695. "name": "summary",
  18696. "description": "Overrides user-visible description of the state. Always omitted.",
  18697. "deprecated": true,
  18698. "optional": true,
  18699. "type": "string"
  18700. }
  18701. ]
  18702. }
  18703. ]
  18704. },
  18705. {
  18706. "domain": "ServiceWorker",
  18707. "experimental": true,
  18708. "dependencies": [
  18709. "Target"
  18710. ],
  18711. "types": [
  18712. {
  18713. "id": "RegistrationID",
  18714. "type": "string"
  18715. },
  18716. {
  18717. "id": "ServiceWorkerRegistration",
  18718. "description": "ServiceWorker registration.",
  18719. "type": "object",
  18720. "properties": [
  18721. {
  18722. "name": "registrationId",
  18723. "$ref": "RegistrationID"
  18724. },
  18725. {
  18726. "name": "scopeURL",
  18727. "type": "string"
  18728. },
  18729. {
  18730. "name": "isDeleted",
  18731. "type": "boolean"
  18732. }
  18733. ]
  18734. },
  18735. {
  18736. "id": "ServiceWorkerVersionRunningStatus",
  18737. "type": "string",
  18738. "enum": [
  18739. "stopped",
  18740. "starting",
  18741. "running",
  18742. "stopping"
  18743. ]
  18744. },
  18745. {
  18746. "id": "ServiceWorkerVersionStatus",
  18747. "type": "string",
  18748. "enum": [
  18749. "new",
  18750. "installing",
  18751. "installed",
  18752. "activating",
  18753. "activated",
  18754. "redundant"
  18755. ]
  18756. },
  18757. {
  18758. "id": "ServiceWorkerVersion",
  18759. "description": "ServiceWorker version.",
  18760. "type": "object",
  18761. "properties": [
  18762. {
  18763. "name": "versionId",
  18764. "type": "string"
  18765. },
  18766. {
  18767. "name": "registrationId",
  18768. "$ref": "RegistrationID"
  18769. },
  18770. {
  18771. "name": "scriptURL",
  18772. "type": "string"
  18773. },
  18774. {
  18775. "name": "runningStatus",
  18776. "$ref": "ServiceWorkerVersionRunningStatus"
  18777. },
  18778. {
  18779. "name": "status",
  18780. "$ref": "ServiceWorkerVersionStatus"
  18781. },
  18782. {
  18783. "name": "scriptLastModified",
  18784. "description": "The Last-Modified header value of the main script.",
  18785. "optional": true,
  18786. "type": "number"
  18787. },
  18788. {
  18789. "name": "scriptResponseTime",
  18790. "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.",
  18791. "optional": true,
  18792. "type": "number"
  18793. },
  18794. {
  18795. "name": "controlledClients",
  18796. "optional": true,
  18797. "type": "array",
  18798. "items": {
  18799. "$ref": "Target.TargetID"
  18800. }
  18801. },
  18802. {
  18803. "name": "targetId",
  18804. "optional": true,
  18805. "$ref": "Target.TargetID"
  18806. }
  18807. ]
  18808. },
  18809. {
  18810. "id": "ServiceWorkerErrorMessage",
  18811. "description": "ServiceWorker error message.",
  18812. "type": "object",
  18813. "properties": [
  18814. {
  18815. "name": "errorMessage",
  18816. "type": "string"
  18817. },
  18818. {
  18819. "name": "registrationId",
  18820. "$ref": "RegistrationID"
  18821. },
  18822. {
  18823. "name": "versionId",
  18824. "type": "string"
  18825. },
  18826. {
  18827. "name": "sourceURL",
  18828. "type": "string"
  18829. },
  18830. {
  18831. "name": "lineNumber",
  18832. "type": "integer"
  18833. },
  18834. {
  18835. "name": "columnNumber",
  18836. "type": "integer"
  18837. }
  18838. ]
  18839. }
  18840. ],
  18841. "commands": [
  18842. {
  18843. "name": "deliverPushMessage",
  18844. "parameters": [
  18845. {
  18846. "name": "origin",
  18847. "type": "string"
  18848. },
  18849. {
  18850. "name": "registrationId",
  18851. "$ref": "RegistrationID"
  18852. },
  18853. {
  18854. "name": "data",
  18855. "type": "string"
  18856. }
  18857. ]
  18858. },
  18859. {
  18860. "name": "disable"
  18861. },
  18862. {
  18863. "name": "dispatchSyncEvent",
  18864. "parameters": [
  18865. {
  18866. "name": "origin",
  18867. "type": "string"
  18868. },
  18869. {
  18870. "name": "registrationId",
  18871. "$ref": "RegistrationID"
  18872. },
  18873. {
  18874. "name": "tag",
  18875. "type": "string"
  18876. },
  18877. {
  18878. "name": "lastChance",
  18879. "type": "boolean"
  18880. }
  18881. ]
  18882. },
  18883. {
  18884. "name": "dispatchPeriodicSyncEvent",
  18885. "parameters": [
  18886. {
  18887. "name": "origin",
  18888. "type": "string"
  18889. },
  18890. {
  18891. "name": "registrationId",
  18892. "$ref": "RegistrationID"
  18893. },
  18894. {
  18895. "name": "tag",
  18896. "type": "string"
  18897. }
  18898. ]
  18899. },
  18900. {
  18901. "name": "enable"
  18902. },
  18903. {
  18904. "name": "inspectWorker",
  18905. "parameters": [
  18906. {
  18907. "name": "versionId",
  18908. "type": "string"
  18909. }
  18910. ]
  18911. },
  18912. {
  18913. "name": "setForceUpdateOnPageLoad",
  18914. "parameters": [
  18915. {
  18916. "name": "forceUpdateOnPageLoad",
  18917. "type": "boolean"
  18918. }
  18919. ]
  18920. },
  18921. {
  18922. "name": "skipWaiting",
  18923. "parameters": [
  18924. {
  18925. "name": "scopeURL",
  18926. "type": "string"
  18927. }
  18928. ]
  18929. },
  18930. {
  18931. "name": "startWorker",
  18932. "parameters": [
  18933. {
  18934. "name": "scopeURL",
  18935. "type": "string"
  18936. }
  18937. ]
  18938. },
  18939. {
  18940. "name": "stopAllWorkers"
  18941. },
  18942. {
  18943. "name": "stopWorker",
  18944. "parameters": [
  18945. {
  18946. "name": "versionId",
  18947. "type": "string"
  18948. }
  18949. ]
  18950. },
  18951. {
  18952. "name": "unregister",
  18953. "parameters": [
  18954. {
  18955. "name": "scopeURL",
  18956. "type": "string"
  18957. }
  18958. ]
  18959. },
  18960. {
  18961. "name": "updateRegistration",
  18962. "parameters": [
  18963. {
  18964. "name": "scopeURL",
  18965. "type": "string"
  18966. }
  18967. ]
  18968. }
  18969. ],
  18970. "events": [
  18971. {
  18972. "name": "workerErrorReported",
  18973. "parameters": [
  18974. {
  18975. "name": "errorMessage",
  18976. "$ref": "ServiceWorkerErrorMessage"
  18977. }
  18978. ]
  18979. },
  18980. {
  18981. "name": "workerRegistrationUpdated",
  18982. "parameters": [
  18983. {
  18984. "name": "registrations",
  18985. "type": "array",
  18986. "items": {
  18987. "$ref": "ServiceWorkerRegistration"
  18988. }
  18989. }
  18990. ]
  18991. },
  18992. {
  18993. "name": "workerVersionUpdated",
  18994. "parameters": [
  18995. {
  18996. "name": "versions",
  18997. "type": "array",
  18998. "items": {
  18999. "$ref": "ServiceWorkerVersion"
  19000. }
  19001. }
  19002. ]
  19003. }
  19004. ]
  19005. },
  19006. {
  19007. "domain": "Storage",
  19008. "experimental": true,
  19009. "dependencies": [
  19010. "Browser",
  19011. "Network"
  19012. ],
  19013. "types": [
  19014. {
  19015. "id": "SerializedStorageKey",
  19016. "type": "string"
  19017. },
  19018. {
  19019. "id": "StorageType",
  19020. "description": "Enum of possible storage types.",
  19021. "type": "string",
  19022. "enum": [
  19023. "appcache",
  19024. "cookies",
  19025. "file_systems",
  19026. "indexeddb",
  19027. "local_storage",
  19028. "shader_cache",
  19029. "websql",
  19030. "service_workers",
  19031. "cache_storage",
  19032. "interest_groups",
  19033. "all",
  19034. "other"
  19035. ]
  19036. },
  19037. {
  19038. "id": "UsageForType",
  19039. "description": "Usage for a storage type.",
  19040. "type": "object",
  19041. "properties": [
  19042. {
  19043. "name": "storageType",
  19044. "description": "Name of storage type.",
  19045. "$ref": "StorageType"
  19046. },
  19047. {
  19048. "name": "usage",
  19049. "description": "Storage usage (bytes).",
  19050. "type": "number"
  19051. }
  19052. ]
  19053. },
  19054. {
  19055. "id": "TrustTokens",
  19056. "description": "Pair of issuer origin and number of available (signed, but not used) Trust\nTokens from that issuer.",
  19057. "experimental": true,
  19058. "type": "object",
  19059. "properties": [
  19060. {
  19061. "name": "issuerOrigin",
  19062. "type": "string"
  19063. },
  19064. {
  19065. "name": "count",
  19066. "type": "number"
  19067. }
  19068. ]
  19069. },
  19070. {
  19071. "id": "InterestGroupAccessType",
  19072. "description": "Enum of interest group access types.",
  19073. "type": "string",
  19074. "enum": [
  19075. "join",
  19076. "leave",
  19077. "update",
  19078. "bid",
  19079. "win"
  19080. ]
  19081. },
  19082. {
  19083. "id": "InterestGroupAd",
  19084. "description": "Ad advertising element inside an interest group.",
  19085. "type": "object",
  19086. "properties": [
  19087. {
  19088. "name": "renderUrl",
  19089. "type": "string"
  19090. },
  19091. {
  19092. "name": "metadata",
  19093. "optional": true,
  19094. "type": "string"
  19095. }
  19096. ]
  19097. },
  19098. {
  19099. "id": "InterestGroupDetails",
  19100. "description": "The full details of an interest group.",
  19101. "type": "object",
  19102. "properties": [
  19103. {
  19104. "name": "ownerOrigin",
  19105. "type": "string"
  19106. },
  19107. {
  19108. "name": "name",
  19109. "type": "string"
  19110. },
  19111. {
  19112. "name": "expirationTime",
  19113. "$ref": "Network.TimeSinceEpoch"
  19114. },
  19115. {
  19116. "name": "joiningOrigin",
  19117. "type": "string"
  19118. },
  19119. {
  19120. "name": "biddingUrl",
  19121. "optional": true,
  19122. "type": "string"
  19123. },
  19124. {
  19125. "name": "biddingWasmHelperUrl",
  19126. "optional": true,
  19127. "type": "string"
  19128. },
  19129. {
  19130. "name": "updateUrl",
  19131. "optional": true,
  19132. "type": "string"
  19133. },
  19134. {
  19135. "name": "trustedBiddingSignalsUrl",
  19136. "optional": true,
  19137. "type": "string"
  19138. },
  19139. {
  19140. "name": "trustedBiddingSignalsKeys",
  19141. "type": "array",
  19142. "items": {
  19143. "type": "string"
  19144. }
  19145. },
  19146. {
  19147. "name": "userBiddingSignals",
  19148. "optional": true,
  19149. "type": "string"
  19150. },
  19151. {
  19152. "name": "ads",
  19153. "type": "array",
  19154. "items": {
  19155. "$ref": "InterestGroupAd"
  19156. }
  19157. },
  19158. {
  19159. "name": "adComponents",
  19160. "type": "array",
  19161. "items": {
  19162. "$ref": "InterestGroupAd"
  19163. }
  19164. }
  19165. ]
  19166. }
  19167. ],
  19168. "commands": [
  19169. {
  19170. "name": "getStorageKeyForFrame",
  19171. "description": "Returns a storage key given a frame id.",
  19172. "parameters": [
  19173. {
  19174. "name": "frameId",
  19175. "$ref": "Page.FrameId"
  19176. }
  19177. ],
  19178. "returns": [
  19179. {
  19180. "name": "storageKey",
  19181. "$ref": "SerializedStorageKey"
  19182. }
  19183. ]
  19184. },
  19185. {
  19186. "name": "clearDataForOrigin",
  19187. "description": "Clears storage for origin.",
  19188. "parameters": [
  19189. {
  19190. "name": "origin",
  19191. "description": "Security origin.",
  19192. "type": "string"
  19193. },
  19194. {
  19195. "name": "storageTypes",
  19196. "description": "Comma separated list of StorageType to clear.",
  19197. "type": "string"
  19198. }
  19199. ]
  19200. },
  19201. {
  19202. "name": "clearDataForStorageKey",
  19203. "description": "Clears storage for storage key.",
  19204. "parameters": [
  19205. {
  19206. "name": "storageKey",
  19207. "description": "Storage key.",
  19208. "type": "string"
  19209. },
  19210. {
  19211. "name": "storageTypes",
  19212. "description": "Comma separated list of StorageType to clear.",
  19213. "type": "string"
  19214. }
  19215. ]
  19216. },
  19217. {
  19218. "name": "getCookies",
  19219. "description": "Returns all browser cookies.",
  19220. "parameters": [
  19221. {
  19222. "name": "browserContextId",
  19223. "description": "Browser context to use when called on the browser endpoint.",
  19224. "optional": true,
  19225. "$ref": "Browser.BrowserContextID"
  19226. }
  19227. ],
  19228. "returns": [
  19229. {
  19230. "name": "cookies",
  19231. "description": "Array of cookie objects.",
  19232. "type": "array",
  19233. "items": {
  19234. "$ref": "Network.Cookie"
  19235. }
  19236. }
  19237. ]
  19238. },
  19239. {
  19240. "name": "setCookies",
  19241. "description": "Sets given cookies.",
  19242. "parameters": [
  19243. {
  19244. "name": "cookies",
  19245. "description": "Cookies to be set.",
  19246. "type": "array",
  19247. "items": {
  19248. "$ref": "Network.CookieParam"
  19249. }
  19250. },
  19251. {
  19252. "name": "browserContextId",
  19253. "description": "Browser context to use when called on the browser endpoint.",
  19254. "optional": true,
  19255. "$ref": "Browser.BrowserContextID"
  19256. }
  19257. ]
  19258. },
  19259. {
  19260. "name": "clearCookies",
  19261. "description": "Clears cookies.",
  19262. "parameters": [
  19263. {
  19264. "name": "browserContextId",
  19265. "description": "Browser context to use when called on the browser endpoint.",
  19266. "optional": true,
  19267. "$ref": "Browser.BrowserContextID"
  19268. }
  19269. ]
  19270. },
  19271. {
  19272. "name": "getUsageAndQuota",
  19273. "description": "Returns usage and quota in bytes.",
  19274. "parameters": [
  19275. {
  19276. "name": "origin",
  19277. "description": "Security origin.",
  19278. "type": "string"
  19279. }
  19280. ],
  19281. "returns": [
  19282. {
  19283. "name": "usage",
  19284. "description": "Storage usage (bytes).",
  19285. "type": "number"
  19286. },
  19287. {
  19288. "name": "quota",
  19289. "description": "Storage quota (bytes).",
  19290. "type": "number"
  19291. },
  19292. {
  19293. "name": "overrideActive",
  19294. "description": "Whether or not the origin has an active storage quota override",
  19295. "type": "boolean"
  19296. },
  19297. {
  19298. "name": "usageBreakdown",
  19299. "description": "Storage usage per type (bytes).",
  19300. "type": "array",
  19301. "items": {
  19302. "$ref": "UsageForType"
  19303. }
  19304. }
  19305. ]
  19306. },
  19307. {
  19308. "name": "overrideQuotaForOrigin",
  19309. "description": "Override quota for the specified origin",
  19310. "experimental": true,
  19311. "parameters": [
  19312. {
  19313. "name": "origin",
  19314. "description": "Security origin.",
  19315. "type": "string"
  19316. },
  19317. {
  19318. "name": "quotaSize",
  19319. "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).",
  19320. "optional": true,
  19321. "type": "number"
  19322. }
  19323. ]
  19324. },
  19325. {
  19326. "name": "trackCacheStorageForOrigin",
  19327. "description": "Registers origin to be notified when an update occurs to its cache storage list.",
  19328. "parameters": [
  19329. {
  19330. "name": "origin",
  19331. "description": "Security origin.",
  19332. "type": "string"
  19333. }
  19334. ]
  19335. },
  19336. {
  19337. "name": "trackIndexedDBForOrigin",
  19338. "description": "Registers origin to be notified when an update occurs to its IndexedDB.",
  19339. "parameters": [
  19340. {
  19341. "name": "origin",
  19342. "description": "Security origin.",
  19343. "type": "string"
  19344. }
  19345. ]
  19346. },
  19347. {
  19348. "name": "trackIndexedDBForStorageKey",
  19349. "description": "Registers storage key to be notified when an update occurs to its IndexedDB.",
  19350. "parameters": [
  19351. {
  19352. "name": "storageKey",
  19353. "description": "Storage key.",
  19354. "type": "string"
  19355. }
  19356. ]
  19357. },
  19358. {
  19359. "name": "untrackCacheStorageForOrigin",
  19360. "description": "Unregisters origin from receiving notifications for cache storage.",
  19361. "parameters": [
  19362. {
  19363. "name": "origin",
  19364. "description": "Security origin.",
  19365. "type": "string"
  19366. }
  19367. ]
  19368. },
  19369. {
  19370. "name": "untrackIndexedDBForOrigin",
  19371. "description": "Unregisters origin from receiving notifications for IndexedDB.",
  19372. "parameters": [
  19373. {
  19374. "name": "origin",
  19375. "description": "Security origin.",
  19376. "type": "string"
  19377. }
  19378. ]
  19379. },
  19380. {
  19381. "name": "untrackIndexedDBForStorageKey",
  19382. "description": "Unregisters storage key from receiving notifications for IndexedDB.",
  19383. "parameters": [
  19384. {
  19385. "name": "storageKey",
  19386. "description": "Storage key.",
  19387. "type": "string"
  19388. }
  19389. ]
  19390. },
  19391. {
  19392. "name": "getTrustTokens",
  19393. "description": "Returns the number of stored Trust Tokens per issuer for the\ncurrent browsing context.",
  19394. "experimental": true,
  19395. "returns": [
  19396. {
  19397. "name": "tokens",
  19398. "type": "array",
  19399. "items": {
  19400. "$ref": "TrustTokens"
  19401. }
  19402. }
  19403. ]
  19404. },
  19405. {
  19406. "name": "clearTrustTokens",
  19407. "description": "Removes all Trust Tokens issued by the provided issuerOrigin.\nLeaves other stored data, including the issuer's Redemption Records, intact.",
  19408. "experimental": true,
  19409. "parameters": [
  19410. {
  19411. "name": "issuerOrigin",
  19412. "type": "string"
  19413. }
  19414. ],
  19415. "returns": [
  19416. {
  19417. "name": "didDeleteTokens",
  19418. "description": "True if any tokens were deleted, false otherwise.",
  19419. "type": "boolean"
  19420. }
  19421. ]
  19422. },
  19423. {
  19424. "name": "getInterestGroupDetails",
  19425. "description": "Gets details for a named interest group.",
  19426. "experimental": true,
  19427. "parameters": [
  19428. {
  19429. "name": "ownerOrigin",
  19430. "type": "string"
  19431. },
  19432. {
  19433. "name": "name",
  19434. "type": "string"
  19435. }
  19436. ],
  19437. "returns": [
  19438. {
  19439. "name": "details",
  19440. "$ref": "InterestGroupDetails"
  19441. }
  19442. ]
  19443. },
  19444. {
  19445. "name": "setInterestGroupTracking",
  19446. "description": "Enables/Disables issuing of interestGroupAccessed events.",
  19447. "experimental": true,
  19448. "parameters": [
  19449. {
  19450. "name": "enable",
  19451. "type": "boolean"
  19452. }
  19453. ]
  19454. }
  19455. ],
  19456. "events": [
  19457. {
  19458. "name": "cacheStorageContentUpdated",
  19459. "description": "A cache's contents have been modified.",
  19460. "parameters": [
  19461. {
  19462. "name": "origin",
  19463. "description": "Origin to update.",
  19464. "type": "string"
  19465. },
  19466. {
  19467. "name": "cacheName",
  19468. "description": "Name of cache in origin.",
  19469. "type": "string"
  19470. }
  19471. ]
  19472. },
  19473. {
  19474. "name": "cacheStorageListUpdated",
  19475. "description": "A cache has been added/deleted.",
  19476. "parameters": [
  19477. {
  19478. "name": "origin",
  19479. "description": "Origin to update.",
  19480. "type": "string"
  19481. }
  19482. ]
  19483. },
  19484. {
  19485. "name": "indexedDBContentUpdated",
  19486. "description": "The origin's IndexedDB object store has been modified.",
  19487. "parameters": [
  19488. {
  19489. "name": "origin",
  19490. "description": "Origin to update.",
  19491. "type": "string"
  19492. },
  19493. {
  19494. "name": "storageKey",
  19495. "description": "Storage key to update.",
  19496. "type": "string"
  19497. },
  19498. {
  19499. "name": "databaseName",
  19500. "description": "Database to update.",
  19501. "type": "string"
  19502. },
  19503. {
  19504. "name": "objectStoreName",
  19505. "description": "ObjectStore to update.",
  19506. "type": "string"
  19507. }
  19508. ]
  19509. },
  19510. {
  19511. "name": "indexedDBListUpdated",
  19512. "description": "The origin's IndexedDB database list has been modified.",
  19513. "parameters": [
  19514. {
  19515. "name": "origin",
  19516. "description": "Origin to update.",
  19517. "type": "string"
  19518. },
  19519. {
  19520. "name": "storageKey",
  19521. "description": "Storage key to update.",
  19522. "type": "string"
  19523. }
  19524. ]
  19525. },
  19526. {
  19527. "name": "interestGroupAccessed",
  19528. "description": "One of the interest groups was accessed by the associated page.",
  19529. "parameters": [
  19530. {
  19531. "name": "accessTime",
  19532. "$ref": "Network.TimeSinceEpoch"
  19533. },
  19534. {
  19535. "name": "type",
  19536. "$ref": "InterestGroupAccessType"
  19537. },
  19538. {
  19539. "name": "ownerOrigin",
  19540. "type": "string"
  19541. },
  19542. {
  19543. "name": "name",
  19544. "type": "string"
  19545. }
  19546. ]
  19547. }
  19548. ]
  19549. },
  19550. {
  19551. "domain": "SystemInfo",
  19552. "description": "The SystemInfo domain defines methods and events for querying low-level system information.",
  19553. "experimental": true,
  19554. "types": [
  19555. {
  19556. "id": "GPUDevice",
  19557. "description": "Describes a single graphics processor (GPU).",
  19558. "type": "object",
  19559. "properties": [
  19560. {
  19561. "name": "vendorId",
  19562. "description": "PCI ID of the GPU vendor, if available; 0 otherwise.",
  19563. "type": "number"
  19564. },
  19565. {
  19566. "name": "deviceId",
  19567. "description": "PCI ID of the GPU device, if available; 0 otherwise.",
  19568. "type": "number"
  19569. },
  19570. {
  19571. "name": "subSysId",
  19572. "description": "Sub sys ID of the GPU, only available on Windows.",
  19573. "optional": true,
  19574. "type": "number"
  19575. },
  19576. {
  19577. "name": "revision",
  19578. "description": "Revision of the GPU, only available on Windows.",
  19579. "optional": true,
  19580. "type": "number"
  19581. },
  19582. {
  19583. "name": "vendorString",
  19584. "description": "String description of the GPU vendor, if the PCI ID is not available.",
  19585. "type": "string"
  19586. },
  19587. {
  19588. "name": "deviceString",
  19589. "description": "String description of the GPU device, if the PCI ID is not available.",
  19590. "type": "string"
  19591. },
  19592. {
  19593. "name": "driverVendor",
  19594. "description": "String description of the GPU driver vendor.",
  19595. "type": "string"
  19596. },
  19597. {
  19598. "name": "driverVersion",
  19599. "description": "String description of the GPU driver version.",
  19600. "type": "string"
  19601. }
  19602. ]
  19603. },
  19604. {
  19605. "id": "Size",
  19606. "description": "Describes the width and height dimensions of an entity.",
  19607. "type": "object",
  19608. "properties": [
  19609. {
  19610. "name": "width",
  19611. "description": "Width in pixels.",
  19612. "type": "integer"
  19613. },
  19614. {
  19615. "name": "height",
  19616. "description": "Height in pixels.",
  19617. "type": "integer"
  19618. }
  19619. ]
  19620. },
  19621. {
  19622. "id": "VideoDecodeAcceleratorCapability",
  19623. "description": "Describes a supported video decoding profile with its associated minimum and\nmaximum resolutions.",
  19624. "type": "object",
  19625. "properties": [
  19626. {
  19627. "name": "profile",
  19628. "description": "Video codec profile that is supported, e.g. VP9 Profile 2.",
  19629. "type": "string"
  19630. },
  19631. {
  19632. "name": "maxResolution",
  19633. "description": "Maximum video dimensions in pixels supported for this |profile|.",
  19634. "$ref": "Size"
  19635. },
  19636. {
  19637. "name": "minResolution",
  19638. "description": "Minimum video dimensions in pixels supported for this |profile|.",
  19639. "$ref": "Size"
  19640. }
  19641. ]
  19642. },
  19643. {
  19644. "id": "VideoEncodeAcceleratorCapability",
  19645. "description": "Describes a supported video encoding profile with its associated maximum\nresolution and maximum framerate.",
  19646. "type": "object",
  19647. "properties": [
  19648. {
  19649. "name": "profile",
  19650. "description": "Video codec profile that is supported, e.g H264 Main.",
  19651. "type": "string"
  19652. },
  19653. {
  19654. "name": "maxResolution",
  19655. "description": "Maximum video dimensions in pixels supported for this |profile|.",
  19656. "$ref": "Size"
  19657. },
  19658. {
  19659. "name": "maxFramerateNumerator",
  19660. "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.",
  19661. "type": "integer"
  19662. },
  19663. {
  19664. "name": "maxFramerateDenominator",
  19665. "type": "integer"
  19666. }
  19667. ]
  19668. },
  19669. {
  19670. "id": "SubsamplingFormat",
  19671. "description": "YUV subsampling type of the pixels of a given image.",
  19672. "type": "string",
  19673. "enum": [
  19674. "yuv420",
  19675. "yuv422",
  19676. "yuv444"
  19677. ]
  19678. },
  19679. {
  19680. "id": "ImageType",
  19681. "description": "Image format of a given image.",
  19682. "type": "string",
  19683. "enum": [
  19684. "jpeg",
  19685. "webp",
  19686. "unknown"
  19687. ]
  19688. },
  19689. {
  19690. "id": "ImageDecodeAcceleratorCapability",
  19691. "description": "Describes a supported image decoding profile with its associated minimum and\nmaximum resolutions and subsampling.",
  19692. "type": "object",
  19693. "properties": [
  19694. {
  19695. "name": "imageType",
  19696. "description": "Image coded, e.g. Jpeg.",
  19697. "$ref": "ImageType"
  19698. },
  19699. {
  19700. "name": "maxDimensions",
  19701. "description": "Maximum supported dimensions of the image in pixels.",
  19702. "$ref": "Size"
  19703. },
  19704. {
  19705. "name": "minDimensions",
  19706. "description": "Minimum supported dimensions of the image in pixels.",
  19707. "$ref": "Size"
  19708. },
  19709. {
  19710. "name": "subsamplings",
  19711. "description": "Optional array of supported subsampling formats, e.g. 4:2:0, if known.",
  19712. "type": "array",
  19713. "items": {
  19714. "$ref": "SubsamplingFormat"
  19715. }
  19716. }
  19717. ]
  19718. },
  19719. {
  19720. "id": "GPUInfo",
  19721. "description": "Provides information about the GPU(s) on the system.",
  19722. "type": "object",
  19723. "properties": [
  19724. {
  19725. "name": "devices",
  19726. "description": "The graphics devices on the system. Element 0 is the primary GPU.",
  19727. "type": "array",
  19728. "items": {
  19729. "$ref": "GPUDevice"
  19730. }
  19731. },
  19732. {
  19733. "name": "auxAttributes",
  19734. "description": "An optional dictionary of additional GPU related attributes.",
  19735. "optional": true,
  19736. "type": "object"
  19737. },
  19738. {
  19739. "name": "featureStatus",
  19740. "description": "An optional dictionary of graphics features and their status.",
  19741. "optional": true,
  19742. "type": "object"
  19743. },
  19744. {
  19745. "name": "driverBugWorkarounds",
  19746. "description": "An optional array of GPU driver bug workarounds.",
  19747. "type": "array",
  19748. "items": {
  19749. "type": "string"
  19750. }
  19751. },
  19752. {
  19753. "name": "videoDecoding",
  19754. "description": "Supported accelerated video decoding capabilities.",
  19755. "type": "array",
  19756. "items": {
  19757. "$ref": "VideoDecodeAcceleratorCapability"
  19758. }
  19759. },
  19760. {
  19761. "name": "videoEncoding",
  19762. "description": "Supported accelerated video encoding capabilities.",
  19763. "type": "array",
  19764. "items": {
  19765. "$ref": "VideoEncodeAcceleratorCapability"
  19766. }
  19767. },
  19768. {
  19769. "name": "imageDecoding",
  19770. "description": "Supported accelerated image decoding capabilities.",
  19771. "type": "array",
  19772. "items": {
  19773. "$ref": "ImageDecodeAcceleratorCapability"
  19774. }
  19775. }
  19776. ]
  19777. },
  19778. {
  19779. "id": "ProcessInfo",
  19780. "description": "Represents process info.",
  19781. "type": "object",
  19782. "properties": [
  19783. {
  19784. "name": "type",
  19785. "description": "Specifies process type.",
  19786. "type": "string"
  19787. },
  19788. {
  19789. "name": "id",
  19790. "description": "Specifies process id.",
  19791. "type": "integer"
  19792. },
  19793. {
  19794. "name": "cpuTime",
  19795. "description": "Specifies cumulative CPU usage in seconds across all threads of the\nprocess since the process start.",
  19796. "type": "number"
  19797. }
  19798. ]
  19799. }
  19800. ],
  19801. "commands": [
  19802. {
  19803. "name": "getInfo",
  19804. "description": "Returns information about the system.",
  19805. "returns": [
  19806. {
  19807. "name": "gpu",
  19808. "description": "Information about the GPUs on the system.",
  19809. "$ref": "GPUInfo"
  19810. },
  19811. {
  19812. "name": "modelName",
  19813. "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.",
  19814. "type": "string"
  19815. },
  19816. {
  19817. "name": "modelVersion",
  19818. "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.",
  19819. "type": "string"
  19820. },
  19821. {
  19822. "name": "commandLine",
  19823. "description": "The command line string used to launch the browser. Will be the empty string if not\nsupported.",
  19824. "type": "string"
  19825. }
  19826. ]
  19827. },
  19828. {
  19829. "name": "getProcessInfo",
  19830. "description": "Returns information about all running processes.",
  19831. "returns": [
  19832. {
  19833. "name": "processInfo",
  19834. "description": "An array of process info blocks.",
  19835. "type": "array",
  19836. "items": {
  19837. "$ref": "ProcessInfo"
  19838. }
  19839. }
  19840. ]
  19841. }
  19842. ]
  19843. },
  19844. {
  19845. "domain": "Target",
  19846. "description": "Supports additional targets discovery and allows to attach to them.",
  19847. "types": [
  19848. {
  19849. "id": "TargetID",
  19850. "type": "string"
  19851. },
  19852. {
  19853. "id": "SessionID",
  19854. "description": "Unique identifier of attached debugging session.",
  19855. "type": "string"
  19856. },
  19857. {
  19858. "id": "TargetInfo",
  19859. "type": "object",
  19860. "properties": [
  19861. {
  19862. "name": "targetId",
  19863. "$ref": "TargetID"
  19864. },
  19865. {
  19866. "name": "type",
  19867. "type": "string"
  19868. },
  19869. {
  19870. "name": "title",
  19871. "type": "string"
  19872. },
  19873. {
  19874. "name": "url",
  19875. "type": "string"
  19876. },
  19877. {
  19878. "name": "attached",
  19879. "description": "Whether the target has an attached client.",
  19880. "type": "boolean"
  19881. },
  19882. {
  19883. "name": "openerId",
  19884. "description": "Opener target Id",
  19885. "optional": true,
  19886. "$ref": "TargetID"
  19887. },
  19888. {
  19889. "name": "canAccessOpener",
  19890. "description": "Whether the target has access to the originating window.",
  19891. "experimental": true,
  19892. "type": "boolean"
  19893. },
  19894. {
  19895. "name": "openerFrameId",
  19896. "description": "Frame id of originating window (is only set if target has an opener).",
  19897. "experimental": true,
  19898. "optional": true,
  19899. "$ref": "Page.FrameId"
  19900. },
  19901. {
  19902. "name": "browserContextId",
  19903. "experimental": true,
  19904. "optional": true,
  19905. "$ref": "Browser.BrowserContextID"
  19906. }
  19907. ]
  19908. },
  19909. {
  19910. "id": "FilterEntry",
  19911. "description": "A filter used by target query/discovery/auto-attach operations.",
  19912. "experimental": true,
  19913. "type": "object",
  19914. "properties": [
  19915. {
  19916. "name": "exclude",
  19917. "description": "If set, causes exclusion of mathcing targets from the list.",
  19918. "optional": true,
  19919. "type": "boolean"
  19920. },
  19921. {
  19922. "name": "type",
  19923. "description": "If not present, matches any type.",
  19924. "optional": true,
  19925. "type": "string"
  19926. }
  19927. ]
  19928. },
  19929. {
  19930. "id": "TargetFilter",
  19931. "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`).",
  19932. "experimental": true,
  19933. "type": "array",
  19934. "items": {
  19935. "$ref": "FilterEntry"
  19936. }
  19937. },
  19938. {
  19939. "id": "RemoteLocation",
  19940. "experimental": true,
  19941. "type": "object",
  19942. "properties": [
  19943. {
  19944. "name": "host",
  19945. "type": "string"
  19946. },
  19947. {
  19948. "name": "port",
  19949. "type": "integer"
  19950. }
  19951. ]
  19952. }
  19953. ],
  19954. "commands": [
  19955. {
  19956. "name": "activateTarget",
  19957. "description": "Activates (focuses) the target.",
  19958. "parameters": [
  19959. {
  19960. "name": "targetId",
  19961. "$ref": "TargetID"
  19962. }
  19963. ]
  19964. },
  19965. {
  19966. "name": "attachToTarget",
  19967. "description": "Attaches to the target with given id.",
  19968. "parameters": [
  19969. {
  19970. "name": "targetId",
  19971. "$ref": "TargetID"
  19972. },
  19973. {
  19974. "name": "flatten",
  19975. "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.",
  19976. "optional": true,
  19977. "type": "boolean"
  19978. }
  19979. ],
  19980. "returns": [
  19981. {
  19982. "name": "sessionId",
  19983. "description": "Id assigned to the session.",
  19984. "$ref": "SessionID"
  19985. }
  19986. ]
  19987. },
  19988. {
  19989. "name": "attachToBrowserTarget",
  19990. "description": "Attaches to the browser target, only uses flat sessionId mode.",
  19991. "experimental": true,
  19992. "returns": [
  19993. {
  19994. "name": "sessionId",
  19995. "description": "Id assigned to the session.",
  19996. "$ref": "SessionID"
  19997. }
  19998. ]
  19999. },
  20000. {
  20001. "name": "closeTarget",
  20002. "description": "Closes the target. If the target is a page that gets closed too.",
  20003. "parameters": [
  20004. {
  20005. "name": "targetId",
  20006. "$ref": "TargetID"
  20007. }
  20008. ],
  20009. "returns": [
  20010. {
  20011. "name": "success",
  20012. "description": "Always set to true. If an error occurs, the response indicates protocol error.",
  20013. "deprecated": true,
  20014. "type": "boolean"
  20015. }
  20016. ]
  20017. },
  20018. {
  20019. "name": "exposeDevToolsProtocol",
  20020. "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.",
  20021. "experimental": true,
  20022. "parameters": [
  20023. {
  20024. "name": "targetId",
  20025. "$ref": "TargetID"
  20026. },
  20027. {
  20028. "name": "bindingName",
  20029. "description": "Binding name, 'cdp' if not specified.",
  20030. "optional": true,
  20031. "type": "string"
  20032. }
  20033. ]
  20034. },
  20035. {
  20036. "name": "createBrowserContext",
  20037. "description": "Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than\none.",
  20038. "experimental": true,
  20039. "parameters": [
  20040. {
  20041. "name": "disposeOnDetach",
  20042. "description": "If specified, disposes this context when debugging session disconnects.",
  20043. "optional": true,
  20044. "type": "boolean"
  20045. },
  20046. {
  20047. "name": "proxyServer",
  20048. "description": "Proxy server, similar to the one passed to --proxy-server",
  20049. "optional": true,
  20050. "type": "string"
  20051. },
  20052. {
  20053. "name": "proxyBypassList",
  20054. "description": "Proxy bypass list, similar to the one passed to --proxy-bypass-list",
  20055. "optional": true,
  20056. "type": "string"
  20057. },
  20058. {
  20059. "name": "originsWithUniversalNetworkAccess",
  20060. "description": "An optional list of origins to grant unlimited cross-origin access to.\nParts of the URL other than those constituting origin are ignored.",
  20061. "optional": true,
  20062. "type": "array",
  20063. "items": {
  20064. "type": "string"
  20065. }
  20066. }
  20067. ],
  20068. "returns": [
  20069. {
  20070. "name": "browserContextId",
  20071. "description": "The id of the context created.",
  20072. "$ref": "Browser.BrowserContextID"
  20073. }
  20074. ]
  20075. },
  20076. {
  20077. "name": "getBrowserContexts",
  20078. "description": "Returns all browser contexts created with `Target.createBrowserContext` method.",
  20079. "experimental": true,
  20080. "returns": [
  20081. {
  20082. "name": "browserContextIds",
  20083. "description": "An array of browser context ids.",
  20084. "type": "array",
  20085. "items": {
  20086. "$ref": "Browser.BrowserContextID"
  20087. }
  20088. }
  20089. ]
  20090. },
  20091. {
  20092. "name": "createTarget",
  20093. "description": "Creates a new page.",
  20094. "parameters": [
  20095. {
  20096. "name": "url",
  20097. "description": "The initial URL the page will be navigated to. An empty string indicates about:blank.",
  20098. "type": "string"
  20099. },
  20100. {
  20101. "name": "width",
  20102. "description": "Frame width in DIP (headless chrome only).",
  20103. "optional": true,
  20104. "type": "integer"
  20105. },
  20106. {
  20107. "name": "height",
  20108. "description": "Frame height in DIP (headless chrome only).",
  20109. "optional": true,
  20110. "type": "integer"
  20111. },
  20112. {
  20113. "name": "browserContextId",
  20114. "description": "The browser context to create the page in.",
  20115. "experimental": true,
  20116. "optional": true,
  20117. "$ref": "Browser.BrowserContextID"
  20118. },
  20119. {
  20120. "name": "enableBeginFrameControl",
  20121. "description": "Whether BeginFrames for this target will be controlled via DevTools (headless chrome only,\nnot supported on MacOS yet, false by default).",
  20122. "experimental": true,
  20123. "optional": true,
  20124. "type": "boolean"
  20125. },
  20126. {
  20127. "name": "newWindow",
  20128. "description": "Whether to create a new Window or Tab (chrome-only, false by default).",
  20129. "optional": true,
  20130. "type": "boolean"
  20131. },
  20132. {
  20133. "name": "background",
  20134. "description": "Whether to create the target in background or foreground (chrome-only,\nfalse by default).",
  20135. "optional": true,
  20136. "type": "boolean"
  20137. }
  20138. ],
  20139. "returns": [
  20140. {
  20141. "name": "targetId",
  20142. "description": "The id of the page opened.",
  20143. "$ref": "TargetID"
  20144. }
  20145. ]
  20146. },
  20147. {
  20148. "name": "detachFromTarget",
  20149. "description": "Detaches session with given id.",
  20150. "parameters": [
  20151. {
  20152. "name": "sessionId",
  20153. "description": "Session to detach.",
  20154. "optional": true,
  20155. "$ref": "SessionID"
  20156. },
  20157. {
  20158. "name": "targetId",
  20159. "description": "Deprecated.",
  20160. "deprecated": true,
  20161. "optional": true,
  20162. "$ref": "TargetID"
  20163. }
  20164. ]
  20165. },
  20166. {
  20167. "name": "disposeBrowserContext",
  20168. "description": "Deletes a BrowserContext. All the belonging pages will be closed without calling their\nbeforeunload hooks.",
  20169. "experimental": true,
  20170. "parameters": [
  20171. {
  20172. "name": "browserContextId",
  20173. "$ref": "Browser.BrowserContextID"
  20174. }
  20175. ]
  20176. },
  20177. {
  20178. "name": "getTargetInfo",
  20179. "description": "Returns information about a target.",
  20180. "experimental": true,
  20181. "parameters": [
  20182. {
  20183. "name": "targetId",
  20184. "optional": true,
  20185. "$ref": "TargetID"
  20186. }
  20187. ],
  20188. "returns": [
  20189. {
  20190. "name": "targetInfo",
  20191. "$ref": "TargetInfo"
  20192. }
  20193. ]
  20194. },
  20195. {
  20196. "name": "getTargets",
  20197. "description": "Retrieves a list of available targets.",
  20198. "parameters": [
  20199. {
  20200. "name": "filter",
  20201. "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.",
  20202. "experimental": true,
  20203. "optional": true,
  20204. "$ref": "TargetFilter"
  20205. }
  20206. ],
  20207. "returns": [
  20208. {
  20209. "name": "targetInfos",
  20210. "description": "The list of targets.",
  20211. "type": "array",
  20212. "items": {
  20213. "$ref": "TargetInfo"
  20214. }
  20215. }
  20216. ]
  20217. },
  20218. {
  20219. "name": "sendMessageToTarget",
  20220. "description": "Sends protocol message over session with given id.\nConsider using flat mode instead; see commands attachToTarget, setAutoAttach,\nand crbug.com/991325.",
  20221. "deprecated": true,
  20222. "parameters": [
  20223. {
  20224. "name": "message",
  20225. "type": "string"
  20226. },
  20227. {
  20228. "name": "sessionId",
  20229. "description": "Identifier of the session.",
  20230. "optional": true,
  20231. "$ref": "SessionID"
  20232. },
  20233. {
  20234. "name": "targetId",
  20235. "description": "Deprecated.",
  20236. "deprecated": true,
  20237. "optional": true,
  20238. "$ref": "TargetID"
  20239. }
  20240. ]
  20241. },
  20242. {
  20243. "name": "setAutoAttach",
  20244. "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.",
  20245. "experimental": true,
  20246. "parameters": [
  20247. {
  20248. "name": "autoAttach",
  20249. "description": "Whether to auto-attach to related targets.",
  20250. "type": "boolean"
  20251. },
  20252. {
  20253. "name": "waitForDebuggerOnStart",
  20254. "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
  20255. "type": "boolean"
  20256. },
  20257. {
  20258. "name": "flatten",
  20259. "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.",
  20260. "optional": true,
  20261. "type": "boolean"
  20262. },
  20263. {
  20264. "name": "filter",
  20265. "description": "Only targets matching filter will be attached.",
  20266. "experimental": true,
  20267. "optional": true,
  20268. "$ref": "TargetFilter"
  20269. }
  20270. ]
  20271. },
  20272. {
  20273. "name": "autoAttachRelated",
  20274. "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.",
  20275. "experimental": true,
  20276. "parameters": [
  20277. {
  20278. "name": "targetId",
  20279. "$ref": "TargetID"
  20280. },
  20281. {
  20282. "name": "waitForDebuggerOnStart",
  20283. "description": "Whether to pause new targets when attaching to them. Use `Runtime.runIfWaitingForDebugger`\nto run paused targets.",
  20284. "type": "boolean"
  20285. },
  20286. {
  20287. "name": "filter",
  20288. "description": "Only targets matching filter will be attached.",
  20289. "experimental": true,
  20290. "optional": true,
  20291. "$ref": "TargetFilter"
  20292. }
  20293. ]
  20294. },
  20295. {
  20296. "name": "setDiscoverTargets",
  20297. "description": "Controls whether to discover available targets and notify via\n`targetCreated/targetInfoChanged/targetDestroyed` events.",
  20298. "parameters": [
  20299. {
  20300. "name": "discover",
  20301. "description": "Whether to discover available targets.",
  20302. "type": "boolean"
  20303. },
  20304. {
  20305. "name": "filter",
  20306. "description": "Only targets matching filter will be attached. If `discover` is false,\n`filter` must be omitted or empty.",
  20307. "experimental": true,
  20308. "optional": true,
  20309. "$ref": "TargetFilter"
  20310. }
  20311. ]
  20312. },
  20313. {
  20314. "name": "setRemoteLocations",
  20315. "description": "Enables target discovery for the specified locations, when `setDiscoverTargets` was set to\n`true`.",
  20316. "experimental": true,
  20317. "parameters": [
  20318. {
  20319. "name": "locations",
  20320. "description": "List of remote locations.",
  20321. "type": "array",
  20322. "items": {
  20323. "$ref": "RemoteLocation"
  20324. }
  20325. }
  20326. ]
  20327. }
  20328. ],
  20329. "events": [
  20330. {
  20331. "name": "attachedToTarget",
  20332. "description": "Issued when attached to target because of auto-attach or `attachToTarget` command.",
  20333. "experimental": true,
  20334. "parameters": [
  20335. {
  20336. "name": "sessionId",
  20337. "description": "Identifier assigned to the session used to send/receive messages.",
  20338. "$ref": "SessionID"
  20339. },
  20340. {
  20341. "name": "targetInfo",
  20342. "$ref": "TargetInfo"
  20343. },
  20344. {
  20345. "name": "waitingForDebugger",
  20346. "type": "boolean"
  20347. }
  20348. ]
  20349. },
  20350. {
  20351. "name": "detachedFromTarget",
  20352. "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.",
  20353. "experimental": true,
  20354. "parameters": [
  20355. {
  20356. "name": "sessionId",
  20357. "description": "Detached session identifier.",
  20358. "$ref": "SessionID"
  20359. },
  20360. {
  20361. "name": "targetId",
  20362. "description": "Deprecated.",
  20363. "deprecated": true,
  20364. "optional": true,
  20365. "$ref": "TargetID"
  20366. }
  20367. ]
  20368. },
  20369. {
  20370. "name": "receivedMessageFromTarget",
  20371. "description": "Notifies about a new protocol message received from the session (as reported in\n`attachedToTarget` event).",
  20372. "parameters": [
  20373. {
  20374. "name": "sessionId",
  20375. "description": "Identifier of a session which sends a message.",
  20376. "$ref": "SessionID"
  20377. },
  20378. {
  20379. "name": "message",
  20380. "type": "string"
  20381. },
  20382. {
  20383. "name": "targetId",
  20384. "description": "Deprecated.",
  20385. "deprecated": true,
  20386. "optional": true,
  20387. "$ref": "TargetID"
  20388. }
  20389. ]
  20390. },
  20391. {
  20392. "name": "targetCreated",
  20393. "description": "Issued when a possible inspection target is created.",
  20394. "parameters": [
  20395. {
  20396. "name": "targetInfo",
  20397. "$ref": "TargetInfo"
  20398. }
  20399. ]
  20400. },
  20401. {
  20402. "name": "targetDestroyed",
  20403. "description": "Issued when a target is destroyed.",
  20404. "parameters": [
  20405. {
  20406. "name": "targetId",
  20407. "$ref": "TargetID"
  20408. }
  20409. ]
  20410. },
  20411. {
  20412. "name": "targetCrashed",
  20413. "description": "Issued when a target has crashed.",
  20414. "parameters": [
  20415. {
  20416. "name": "targetId",
  20417. "$ref": "TargetID"
  20418. },
  20419. {
  20420. "name": "status",
  20421. "description": "Termination status type.",
  20422. "type": "string"
  20423. },
  20424. {
  20425. "name": "errorCode",
  20426. "description": "Termination error code.",
  20427. "type": "integer"
  20428. }
  20429. ]
  20430. },
  20431. {
  20432. "name": "targetInfoChanged",
  20433. "description": "Issued when some information about a target has changed. This only happens between\n`targetCreated` and `targetDestroyed`.",
  20434. "parameters": [
  20435. {
  20436. "name": "targetInfo",
  20437. "$ref": "TargetInfo"
  20438. }
  20439. ]
  20440. }
  20441. ]
  20442. },
  20443. {
  20444. "domain": "Tethering",
  20445. "description": "The Tethering domain defines methods and events for browser port binding.",
  20446. "experimental": true,
  20447. "commands": [
  20448. {
  20449. "name": "bind",
  20450. "description": "Request browser port binding.",
  20451. "parameters": [
  20452. {
  20453. "name": "port",
  20454. "description": "Port number to bind.",
  20455. "type": "integer"
  20456. }
  20457. ]
  20458. },
  20459. {
  20460. "name": "unbind",
  20461. "description": "Request browser port unbinding.",
  20462. "parameters": [
  20463. {
  20464. "name": "port",
  20465. "description": "Port number to unbind.",
  20466. "type": "integer"
  20467. }
  20468. ]
  20469. }
  20470. ],
  20471. "events": [
  20472. {
  20473. "name": "accepted",
  20474. "description": "Informs that port was successfully bound and got a specified connection id.",
  20475. "parameters": [
  20476. {
  20477. "name": "port",
  20478. "description": "Port number that was successfully bound.",
  20479. "type": "integer"
  20480. },
  20481. {
  20482. "name": "connectionId",
  20483. "description": "Connection id to be used.",
  20484. "type": "string"
  20485. }
  20486. ]
  20487. }
  20488. ]
  20489. },
  20490. {
  20491. "domain": "Tracing",
  20492. "experimental": true,
  20493. "dependencies": [
  20494. "IO"
  20495. ],
  20496. "types": [
  20497. {
  20498. "id": "MemoryDumpConfig",
  20499. "description": "Configuration for memory dump. Used only when \"memory-infra\" category is enabled.",
  20500. "type": "object"
  20501. },
  20502. {
  20503. "id": "TraceConfig",
  20504. "type": "object",
  20505. "properties": [
  20506. {
  20507. "name": "recordMode",
  20508. "description": "Controls how the trace buffer stores data.",
  20509. "optional": true,
  20510. "type": "string",
  20511. "enum": [
  20512. "recordUntilFull",
  20513. "recordContinuously",
  20514. "recordAsMuchAsPossible",
  20515. "echoToConsole"
  20516. ]
  20517. },
  20518. {
  20519. "name": "traceBufferSizeInKb",
  20520. "description": "Size of the trace buffer in kilobytes. If not specified or zero is passed, a default value\nof 200 MB would be used.",
  20521. "optional": true,
  20522. "type": "number"
  20523. },
  20524. {
  20525. "name": "enableSampling",
  20526. "description": "Turns on JavaScript stack sampling.",
  20527. "optional": true,
  20528. "type": "boolean"
  20529. },
  20530. {
  20531. "name": "enableSystrace",
  20532. "description": "Turns on system tracing.",
  20533. "optional": true,
  20534. "type": "boolean"
  20535. },
  20536. {
  20537. "name": "enableArgumentFilter",
  20538. "description": "Turns on argument filter.",
  20539. "optional": true,
  20540. "type": "boolean"
  20541. },
  20542. {
  20543. "name": "includedCategories",
  20544. "description": "Included category filters.",
  20545. "optional": true,
  20546. "type": "array",
  20547. "items": {
  20548. "type": "string"
  20549. }
  20550. },
  20551. {
  20552. "name": "excludedCategories",
  20553. "description": "Excluded category filters.",
  20554. "optional": true,
  20555. "type": "array",
  20556. "items": {
  20557. "type": "string"
  20558. }
  20559. },
  20560. {
  20561. "name": "syntheticDelays",
  20562. "description": "Configuration to synthesize the delays in tracing.",
  20563. "optional": true,
  20564. "type": "array",
  20565. "items": {
  20566. "type": "string"
  20567. }
  20568. },
  20569. {
  20570. "name": "memoryDumpConfig",
  20571. "description": "Configuration for memory dump triggers. Used only when \"memory-infra\" category is enabled.",
  20572. "optional": true,
  20573. "$ref": "MemoryDumpConfig"
  20574. }
  20575. ]
  20576. },
  20577. {
  20578. "id": "StreamFormat",
  20579. "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.",
  20580. "type": "string",
  20581. "enum": [
  20582. "json",
  20583. "proto"
  20584. ]
  20585. },
  20586. {
  20587. "id": "StreamCompression",
  20588. "description": "Compression type to use for traces returned via streams.",
  20589. "type": "string",
  20590. "enum": [
  20591. "none",
  20592. "gzip"
  20593. ]
  20594. },
  20595. {
  20596. "id": "MemoryDumpLevelOfDetail",
  20597. "description": "Details exposed when memory request explicitly declared.\nKeep consistent with memory_dump_request_args.h and\nmemory_instrumentation.mojom",
  20598. "type": "string",
  20599. "enum": [
  20600. "background",
  20601. "light",
  20602. "detailed"
  20603. ]
  20604. },
  20605. {
  20606. "id": "TracingBackend",
  20607. "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`.",
  20608. "type": "string",
  20609. "enum": [
  20610. "auto",
  20611. "chrome",
  20612. "system"
  20613. ]
  20614. }
  20615. ],
  20616. "commands": [
  20617. {
  20618. "name": "end",
  20619. "description": "Stop trace events collection."
  20620. },
  20621. {
  20622. "name": "getCategories",
  20623. "description": "Gets supported tracing categories.",
  20624. "returns": [
  20625. {
  20626. "name": "categories",
  20627. "description": "A list of supported tracing categories.",
  20628. "type": "array",
  20629. "items": {
  20630. "type": "string"
  20631. }
  20632. }
  20633. ]
  20634. },
  20635. {
  20636. "name": "recordClockSyncMarker",
  20637. "description": "Record a clock sync marker in the trace.",
  20638. "parameters": [
  20639. {
  20640. "name": "syncId",
  20641. "description": "The ID of this clock sync marker",
  20642. "type": "string"
  20643. }
  20644. ]
  20645. },
  20646. {
  20647. "name": "requestMemoryDump",
  20648. "description": "Request a global memory dump.",
  20649. "parameters": [
  20650. {
  20651. "name": "deterministic",
  20652. "description": "Enables more deterministic results by forcing garbage collection",
  20653. "optional": true,
  20654. "type": "boolean"
  20655. },
  20656. {
  20657. "name": "levelOfDetail",
  20658. "description": "Specifies level of details in memory dump. Defaults to \"detailed\".",
  20659. "optional": true,
  20660. "$ref": "MemoryDumpLevelOfDetail"
  20661. }
  20662. ],
  20663. "returns": [
  20664. {
  20665. "name": "dumpGuid",
  20666. "description": "GUID of the resulting global memory dump.",
  20667. "type": "string"
  20668. },
  20669. {
  20670. "name": "success",
  20671. "description": "True iff the global memory dump succeeded.",
  20672. "type": "boolean"
  20673. }
  20674. ]
  20675. },
  20676. {
  20677. "name": "start",
  20678. "description": "Start trace events collection.",
  20679. "parameters": [
  20680. {
  20681. "name": "categories",
  20682. "description": "Category/tag filter",
  20683. "deprecated": true,
  20684. "optional": true,
  20685. "type": "string"
  20686. },
  20687. {
  20688. "name": "options",
  20689. "description": "Tracing options",
  20690. "deprecated": true,
  20691. "optional": true,
  20692. "type": "string"
  20693. },
  20694. {
  20695. "name": "bufferUsageReportingInterval",
  20696. "description": "If set, the agent will issue bufferUsage events at this interval, specified in milliseconds",
  20697. "optional": true,
  20698. "type": "number"
  20699. },
  20700. {
  20701. "name": "transferMode",
  20702. "description": "Whether to report trace events as series of dataCollected events or to save trace to a\nstream (defaults to `ReportEvents`).",
  20703. "optional": true,
  20704. "type": "string",
  20705. "enum": [
  20706. "ReportEvents",
  20707. "ReturnAsStream"
  20708. ]
  20709. },
  20710. {
  20711. "name": "streamFormat",
  20712. "description": "Trace data format to use. This only applies when using `ReturnAsStream`\ntransfer mode (defaults to `json`).",
  20713. "optional": true,
  20714. "$ref": "StreamFormat"
  20715. },
  20716. {
  20717. "name": "streamCompression",
  20718. "description": "Compression format to use. This only applies when using `ReturnAsStream`\ntransfer mode (defaults to `none`)",
  20719. "optional": true,
  20720. "$ref": "StreamCompression"
  20721. },
  20722. {
  20723. "name": "traceConfig",
  20724. "optional": true,
  20725. "$ref": "TraceConfig"
  20726. },
  20727. {
  20728. "name": "perfettoConfig",
  20729. "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)",
  20730. "optional": true,
  20731. "type": "string"
  20732. },
  20733. {
  20734. "name": "tracingBackend",
  20735. "description": "Backend type (defaults to `auto`)",
  20736. "optional": true,
  20737. "$ref": "TracingBackend"
  20738. }
  20739. ]
  20740. }
  20741. ],
  20742. "events": [
  20743. {
  20744. "name": "bufferUsage",
  20745. "parameters": [
  20746. {
  20747. "name": "percentFull",
  20748. "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its\ntotal size.",
  20749. "optional": true,
  20750. "type": "number"
  20751. },
  20752. {
  20753. "name": "eventCount",
  20754. "description": "An approximate number of events in the trace log.",
  20755. "optional": true,
  20756. "type": "number"
  20757. },
  20758. {
  20759. "name": "value",
  20760. "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its\ntotal size.",
  20761. "optional": true,
  20762. "type": "number"
  20763. }
  20764. ]
  20765. },
  20766. {
  20767. "name": "dataCollected",
  20768. "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be\nsend as a sequence of dataCollected events followed by tracingComplete event.",
  20769. "parameters": [
  20770. {
  20771. "name": "value",
  20772. "type": "array",
  20773. "items": {
  20774. "type": "object"
  20775. }
  20776. }
  20777. ]
  20778. },
  20779. {
  20780. "name": "tracingComplete",
  20781. "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were\ndelivered via dataCollected events.",
  20782. "parameters": [
  20783. {
  20784. "name": "dataLossOccurred",
  20785. "description": "Indicates whether some trace data is known to have been lost, e.g. because the trace ring\nbuffer wrapped around.",
  20786. "type": "boolean"
  20787. },
  20788. {
  20789. "name": "stream",
  20790. "description": "A handle of the stream that holds resulting trace data.",
  20791. "optional": true,
  20792. "$ref": "IO.StreamHandle"
  20793. },
  20794. {
  20795. "name": "traceFormat",
  20796. "description": "Trace data format of returned stream.",
  20797. "optional": true,
  20798. "$ref": "StreamFormat"
  20799. },
  20800. {
  20801. "name": "streamCompression",
  20802. "description": "Compression format of returned stream.",
  20803. "optional": true,
  20804. "$ref": "StreamCompression"
  20805. }
  20806. ]
  20807. }
  20808. ]
  20809. },
  20810. {
  20811. "domain": "Fetch",
  20812. "description": "A domain for letting clients substitute browser's network layer with client code.",
  20813. "dependencies": [
  20814. "Network",
  20815. "IO",
  20816. "Page"
  20817. ],
  20818. "types": [
  20819. {
  20820. "id": "RequestId",
  20821. "description": "Unique request identifier.",
  20822. "type": "string"
  20823. },
  20824. {
  20825. "id": "RequestStage",
  20826. "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).",
  20827. "type": "string",
  20828. "enum": [
  20829. "Request",
  20830. "Response"
  20831. ]
  20832. },
  20833. {
  20834. "id": "RequestPattern",
  20835. "type": "object",
  20836. "properties": [
  20837. {
  20838. "name": "urlPattern",
  20839. "description": "Wildcards (`'*'` -> zero or more, `'?'` -> exactly one) are allowed. Escape character is\nbackslash. Omitting is equivalent to `\"*\"`.",
  20840. "optional": true,
  20841. "type": "string"
  20842. },
  20843. {
  20844. "name": "resourceType",
  20845. "description": "If set, only requests for matching resource types will be intercepted.",
  20846. "optional": true,
  20847. "$ref": "Network.ResourceType"
  20848. },
  20849. {
  20850. "name": "requestStage",
  20851. "description": "Stage at which to begin intercepting requests. Default is Request.",
  20852. "optional": true,
  20853. "$ref": "RequestStage"
  20854. }
  20855. ]
  20856. },
  20857. {
  20858. "id": "HeaderEntry",
  20859. "description": "Response HTTP header entry",
  20860. "type": "object",
  20861. "properties": [
  20862. {
  20863. "name": "name",
  20864. "type": "string"
  20865. },
  20866. {
  20867. "name": "value",
  20868. "type": "string"
  20869. }
  20870. ]
  20871. },
  20872. {
  20873. "id": "AuthChallenge",
  20874. "description": "Authorization challenge for HTTP status code 401 or 407.",
  20875. "type": "object",
  20876. "properties": [
  20877. {
  20878. "name": "source",
  20879. "description": "Source of the authentication challenge.",
  20880. "optional": true,
  20881. "type": "string",
  20882. "enum": [
  20883. "Server",
  20884. "Proxy"
  20885. ]
  20886. },
  20887. {
  20888. "name": "origin",
  20889. "description": "Origin of the challenger.",
  20890. "type": "string"
  20891. },
  20892. {
  20893. "name": "scheme",
  20894. "description": "The authentication scheme used, such as basic or digest",
  20895. "type": "string"
  20896. },
  20897. {
  20898. "name": "realm",
  20899. "description": "The realm of the challenge. May be empty.",
  20900. "type": "string"
  20901. }
  20902. ]
  20903. },
  20904. {
  20905. "id": "AuthChallengeResponse",
  20906. "description": "Response to an AuthChallenge.",
  20907. "type": "object",
  20908. "properties": [
  20909. {
  20910. "name": "response",
  20911. "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.",
  20912. "type": "string",
  20913. "enum": [
  20914. "Default",
  20915. "CancelAuth",
  20916. "ProvideCredentials"
  20917. ]
  20918. },
  20919. {
  20920. "name": "username",
  20921. "description": "The username to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
  20922. "optional": true,
  20923. "type": "string"
  20924. },
  20925. {
  20926. "name": "password",
  20927. "description": "The password to provide, possibly empty. Should only be set if response is\nProvideCredentials.",
  20928. "optional": true,
  20929. "type": "string"
  20930. }
  20931. ]
  20932. }
  20933. ],
  20934. "commands": [
  20935. {
  20936. "name": "disable",
  20937. "description": "Disables the fetch domain."
  20938. },
  20939. {
  20940. "name": "enable",
  20941. "description": "Enables issuing of requestPaused events. A request will be paused until client\ncalls one of failRequest, fulfillRequest or continueRequest/continueWithAuth.",
  20942. "parameters": [
  20943. {
  20944. "name": "patterns",
  20945. "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.",
  20946. "optional": true,
  20947. "type": "array",
  20948. "items": {
  20949. "$ref": "RequestPattern"
  20950. }
  20951. },
  20952. {
  20953. "name": "handleAuthRequests",
  20954. "description": "If true, authRequired events will be issued and requests will be paused\nexpecting a call to continueWithAuth.",
  20955. "optional": true,
  20956. "type": "boolean"
  20957. }
  20958. ]
  20959. },
  20960. {
  20961. "name": "failRequest",
  20962. "description": "Causes the request to fail with specified reason.",
  20963. "parameters": [
  20964. {
  20965. "name": "requestId",
  20966. "description": "An id the client received in requestPaused event.",
  20967. "$ref": "RequestId"
  20968. },
  20969. {
  20970. "name": "errorReason",
  20971. "description": "Causes the request to fail with the given reason.",
  20972. "$ref": "Network.ErrorReason"
  20973. }
  20974. ]
  20975. },
  20976. {
  20977. "name": "fulfillRequest",
  20978. "description": "Provides response to the request.",
  20979. "parameters": [
  20980. {
  20981. "name": "requestId",
  20982. "description": "An id the client received in requestPaused event.",
  20983. "$ref": "RequestId"
  20984. },
  20985. {
  20986. "name": "responseCode",
  20987. "description": "An HTTP response code.",
  20988. "type": "integer"
  20989. },
  20990. {
  20991. "name": "responseHeaders",
  20992. "description": "Response headers.",
  20993. "optional": true,
  20994. "type": "array",
  20995. "items": {
  20996. "$ref": "HeaderEntry"
  20997. }
  20998. },
  20999. {
  21000. "name": "binaryResponseHeaders",
  21001. "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)",
  21002. "optional": true,
  21003. "type": "string"
  21004. },
  21005. {
  21006. "name": "body",
  21007. "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)",
  21008. "optional": true,
  21009. "type": "string"
  21010. },
  21011. {
  21012. "name": "responsePhrase",
  21013. "description": "A textual representation of responseCode.\nIf absent, a standard phrase matching responseCode is used.",
  21014. "optional": true,
  21015. "type": "string"
  21016. }
  21017. ]
  21018. },
  21019. {
  21020. "name": "continueRequest",
  21021. "description": "Continues the request, optionally modifying some of its parameters.",
  21022. "parameters": [
  21023. {
  21024. "name": "requestId",
  21025. "description": "An id the client received in requestPaused event.",
  21026. "$ref": "RequestId"
  21027. },
  21028. {
  21029. "name": "url",
  21030. "description": "If set, the request url will be modified in a way that's not observable by page.",
  21031. "optional": true,
  21032. "type": "string"
  21033. },
  21034. {
  21035. "name": "method",
  21036. "description": "If set, the request method is overridden.",
  21037. "optional": true,
  21038. "type": "string"
  21039. },
  21040. {
  21041. "name": "postData",
  21042. "description": "If set, overrides the post data in the request. (Encoded as a base64 string when passed over JSON)",
  21043. "optional": true,
  21044. "type": "string"
  21045. },
  21046. {
  21047. "name": "headers",
  21048. "description": "If set, overrides the request headers.",
  21049. "optional": true,
  21050. "type": "array",
  21051. "items": {
  21052. "$ref": "HeaderEntry"
  21053. }
  21054. },
  21055. {
  21056. "name": "interceptResponse",
  21057. "description": "If set, overrides response interception behavior for this request.",
  21058. "experimental": true,
  21059. "optional": true,
  21060. "type": "boolean"
  21061. }
  21062. ]
  21063. },
  21064. {
  21065. "name": "continueWithAuth",
  21066. "description": "Continues a request supplying authChallengeResponse following authRequired event.",
  21067. "parameters": [
  21068. {
  21069. "name": "requestId",
  21070. "description": "An id the client received in authRequired event.",
  21071. "$ref": "RequestId"
  21072. },
  21073. {
  21074. "name": "authChallengeResponse",
  21075. "description": "Response to with an authChallenge.",
  21076. "$ref": "AuthChallengeResponse"
  21077. }
  21078. ]
  21079. },
  21080. {
  21081. "name": "continueResponse",
  21082. "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.",
  21083. "experimental": true,
  21084. "parameters": [
  21085. {
  21086. "name": "requestId",
  21087. "description": "An id the client received in requestPaused event.",
  21088. "$ref": "RequestId"
  21089. },
  21090. {
  21091. "name": "responseCode",
  21092. "description": "An HTTP response code. If absent, original response code will be used.",
  21093. "optional": true,
  21094. "type": "integer"
  21095. },
  21096. {
  21097. "name": "responsePhrase",
  21098. "description": "A textual representation of responseCode.\nIf absent, a standard phrase matching responseCode is used.",
  21099. "optional": true,
  21100. "type": "string"
  21101. },
  21102. {
  21103. "name": "responseHeaders",
  21104. "description": "Response headers. If absent, original response headers will be used.",
  21105. "optional": true,
  21106. "type": "array",
  21107. "items": {
  21108. "$ref": "HeaderEntry"
  21109. }
  21110. },
  21111. {
  21112. "name": "binaryResponseHeaders",
  21113. "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)",
  21114. "optional": true,
  21115. "type": "string"
  21116. }
  21117. ]
  21118. },
  21119. {
  21120. "name": "getResponseBody",
  21121. "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.",
  21122. "parameters": [
  21123. {
  21124. "name": "requestId",
  21125. "description": "Identifier for the intercepted request to get body for.",
  21126. "$ref": "RequestId"
  21127. }
  21128. ],
  21129. "returns": [
  21130. {
  21131. "name": "body",
  21132. "description": "Response body.",
  21133. "type": "string"
  21134. },
  21135. {
  21136. "name": "base64Encoded",
  21137. "description": "True, if content was sent as base64.",
  21138. "type": "boolean"
  21139. }
  21140. ]
  21141. },
  21142. {
  21143. "name": "takeResponseBodyAsStream",
  21144. "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.",
  21145. "parameters": [
  21146. {
  21147. "name": "requestId",
  21148. "$ref": "RequestId"
  21149. }
  21150. ],
  21151. "returns": [
  21152. {
  21153. "name": "stream",
  21154. "$ref": "IO.StreamHandle"
  21155. }
  21156. ]
  21157. }
  21158. ],
  21159. "events": [
  21160. {
  21161. "name": "requestPaused",
  21162. "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.",
  21163. "parameters": [
  21164. {
  21165. "name": "requestId",
  21166. "description": "Each request the page makes will have a unique id.",
  21167. "$ref": "RequestId"
  21168. },
  21169. {
  21170. "name": "request",
  21171. "description": "The details of the request.",
  21172. "$ref": "Network.Request"
  21173. },
  21174. {
  21175. "name": "frameId",
  21176. "description": "The id of the frame that initiated the request.",
  21177. "$ref": "Page.FrameId"
  21178. },
  21179. {
  21180. "name": "resourceType",
  21181. "description": "How the requested resource will be used.",
  21182. "$ref": "Network.ResourceType"
  21183. },
  21184. {
  21185. "name": "responseErrorReason",
  21186. "description": "Response error if intercepted at response stage.",
  21187. "optional": true,
  21188. "$ref": "Network.ErrorReason"
  21189. },
  21190. {
  21191. "name": "responseStatusCode",
  21192. "description": "Response code if intercepted at response stage.",
  21193. "optional": true,
  21194. "type": "integer"
  21195. },
  21196. {
  21197. "name": "responseStatusText",
  21198. "description": "Response status text if intercepted at response stage.",
  21199. "optional": true,
  21200. "type": "string"
  21201. },
  21202. {
  21203. "name": "responseHeaders",
  21204. "description": "Response headers if intercepted at the response stage.",
  21205. "optional": true,
  21206. "type": "array",
  21207. "items": {
  21208. "$ref": "HeaderEntry"
  21209. }
  21210. },
  21211. {
  21212. "name": "networkId",
  21213. "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.",
  21214. "optional": true,
  21215. "$ref": "RequestId"
  21216. }
  21217. ]
  21218. },
  21219. {
  21220. "name": "authRequired",
  21221. "description": "Issued when the domain is enabled with handleAuthRequests set to true.\nThe request is paused until client responds with continueWithAuth.",
  21222. "parameters": [
  21223. {
  21224. "name": "requestId",
  21225. "description": "Each request the page makes will have a unique id.",
  21226. "$ref": "RequestId"
  21227. },
  21228. {
  21229. "name": "request",
  21230. "description": "The details of the request.",
  21231. "$ref": "Network.Request"
  21232. },
  21233. {
  21234. "name": "frameId",
  21235. "description": "The id of the frame that initiated the request.",
  21236. "$ref": "Page.FrameId"
  21237. },
  21238. {
  21239. "name": "resourceType",
  21240. "description": "How the requested resource will be used.",
  21241. "$ref": "Network.ResourceType"
  21242. },
  21243. {
  21244. "name": "authChallenge",
  21245. "description": "Details of the Authorization Challenge encountered.\nIf this is set, client should respond with continueRequest that\ncontains AuthChallengeResponse.",
  21246. "$ref": "AuthChallenge"
  21247. }
  21248. ]
  21249. }
  21250. ]
  21251. },
  21252. {
  21253. "domain": "WebAudio",
  21254. "description": "This domain allows inspection of Web Audio API.\nhttps://webaudio.github.io/web-audio-api/",
  21255. "experimental": true,
  21256. "types": [
  21257. {
  21258. "id": "GraphObjectId",
  21259. "description": "An unique ID for a graph object (AudioContext, AudioNode, AudioParam) in Web Audio API",
  21260. "type": "string"
  21261. },
  21262. {
  21263. "id": "ContextType",
  21264. "description": "Enum of BaseAudioContext types",
  21265. "type": "string",
  21266. "enum": [
  21267. "realtime",
  21268. "offline"
  21269. ]
  21270. },
  21271. {
  21272. "id": "ContextState",
  21273. "description": "Enum of AudioContextState from the spec",
  21274. "type": "string",
  21275. "enum": [
  21276. "suspended",
  21277. "running",
  21278. "closed"
  21279. ]
  21280. },
  21281. {
  21282. "id": "NodeType",
  21283. "description": "Enum of AudioNode types",
  21284. "type": "string"
  21285. },
  21286. {
  21287. "id": "ChannelCountMode",
  21288. "description": "Enum of AudioNode::ChannelCountMode from the spec",
  21289. "type": "string",
  21290. "enum": [
  21291. "clamped-max",
  21292. "explicit",
  21293. "max"
  21294. ]
  21295. },
  21296. {
  21297. "id": "ChannelInterpretation",
  21298. "description": "Enum of AudioNode::ChannelInterpretation from the spec",
  21299. "type": "string",
  21300. "enum": [
  21301. "discrete",
  21302. "speakers"
  21303. ]
  21304. },
  21305. {
  21306. "id": "ParamType",
  21307. "description": "Enum of AudioParam types",
  21308. "type": "string"
  21309. },
  21310. {
  21311. "id": "AutomationRate",
  21312. "description": "Enum of AudioParam::AutomationRate from the spec",
  21313. "type": "string",
  21314. "enum": [
  21315. "a-rate",
  21316. "k-rate"
  21317. ]
  21318. },
  21319. {
  21320. "id": "ContextRealtimeData",
  21321. "description": "Fields in AudioContext that change in real-time.",
  21322. "type": "object",
  21323. "properties": [
  21324. {
  21325. "name": "currentTime",
  21326. "description": "The current context time in second in BaseAudioContext.",
  21327. "type": "number"
  21328. },
  21329. {
  21330. "name": "renderCapacity",
  21331. "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.",
  21332. "type": "number"
  21333. },
  21334. {
  21335. "name": "callbackIntervalMean",
  21336. "description": "A running mean of callback interval.",
  21337. "type": "number"
  21338. },
  21339. {
  21340. "name": "callbackIntervalVariance",
  21341. "description": "A running variance of callback interval.",
  21342. "type": "number"
  21343. }
  21344. ]
  21345. },
  21346. {
  21347. "id": "BaseAudioContext",
  21348. "description": "Protocol object for BaseAudioContext",
  21349. "type": "object",
  21350. "properties": [
  21351. {
  21352. "name": "contextId",
  21353. "$ref": "GraphObjectId"
  21354. },
  21355. {
  21356. "name": "contextType",
  21357. "$ref": "ContextType"
  21358. },
  21359. {
  21360. "name": "contextState",
  21361. "$ref": "ContextState"
  21362. },
  21363. {
  21364. "name": "realtimeData",
  21365. "optional": true,
  21366. "$ref": "ContextRealtimeData"
  21367. },
  21368. {
  21369. "name": "callbackBufferSize",
  21370. "description": "Platform-dependent callback buffer size.",
  21371. "type": "number"
  21372. },
  21373. {
  21374. "name": "maxOutputChannelCount",
  21375. "description": "Number of output channels supported by audio hardware in use.",
  21376. "type": "number"
  21377. },
  21378. {
  21379. "name": "sampleRate",
  21380. "description": "Context sample rate.",
  21381. "type": "number"
  21382. }
  21383. ]
  21384. },
  21385. {
  21386. "id": "AudioListener",
  21387. "description": "Protocol object for AudioListener",
  21388. "type": "object",
  21389. "properties": [
  21390. {
  21391. "name": "listenerId",
  21392. "$ref": "GraphObjectId"
  21393. },
  21394. {
  21395. "name": "contextId",
  21396. "$ref": "GraphObjectId"
  21397. }
  21398. ]
  21399. },
  21400. {
  21401. "id": "AudioNode",
  21402. "description": "Protocol object for AudioNode",
  21403. "type": "object",
  21404. "properties": [
  21405. {
  21406. "name": "nodeId",
  21407. "$ref": "GraphObjectId"
  21408. },
  21409. {
  21410. "name": "contextId",
  21411. "$ref": "GraphObjectId"
  21412. },
  21413. {
  21414. "name": "nodeType",
  21415. "$ref": "NodeType"
  21416. },
  21417. {
  21418. "name": "numberOfInputs",
  21419. "type": "number"
  21420. },
  21421. {
  21422. "name": "numberOfOutputs",
  21423. "type": "number"
  21424. },
  21425. {
  21426. "name": "channelCount",
  21427. "type": "number"
  21428. },
  21429. {
  21430. "name": "channelCountMode",
  21431. "$ref": "ChannelCountMode"
  21432. },
  21433. {
  21434. "name": "channelInterpretation",
  21435. "$ref": "ChannelInterpretation"
  21436. }
  21437. ]
  21438. },
  21439. {
  21440. "id": "AudioParam",
  21441. "description": "Protocol object for AudioParam",
  21442. "type": "object",
  21443. "properties": [
  21444. {
  21445. "name": "paramId",
  21446. "$ref": "GraphObjectId"
  21447. },
  21448. {
  21449. "name": "nodeId",
  21450. "$ref": "GraphObjectId"
  21451. },
  21452. {
  21453. "name": "contextId",
  21454. "$ref": "GraphObjectId"
  21455. },
  21456. {
  21457. "name": "paramType",
  21458. "$ref": "ParamType"
  21459. },
  21460. {
  21461. "name": "rate",
  21462. "$ref": "AutomationRate"
  21463. },
  21464. {
  21465. "name": "defaultValue",
  21466. "type": "number"
  21467. },
  21468. {
  21469. "name": "minValue",
  21470. "type": "number"
  21471. },
  21472. {
  21473. "name": "maxValue",
  21474. "type": "number"
  21475. }
  21476. ]
  21477. }
  21478. ],
  21479. "commands": [
  21480. {
  21481. "name": "enable",
  21482. "description": "Enables the WebAudio domain and starts sending context lifetime events."
  21483. },
  21484. {
  21485. "name": "disable",
  21486. "description": "Disables the WebAudio domain."
  21487. },
  21488. {
  21489. "name": "getRealtimeData",
  21490. "description": "Fetch the realtime data from the registered contexts.",
  21491. "parameters": [
  21492. {
  21493. "name": "contextId",
  21494. "$ref": "GraphObjectId"
  21495. }
  21496. ],
  21497. "returns": [
  21498. {
  21499. "name": "realtimeData",
  21500. "$ref": "ContextRealtimeData"
  21501. }
  21502. ]
  21503. }
  21504. ],
  21505. "events": [
  21506. {
  21507. "name": "contextCreated",
  21508. "description": "Notifies that a new BaseAudioContext has been created.",
  21509. "parameters": [
  21510. {
  21511. "name": "context",
  21512. "$ref": "BaseAudioContext"
  21513. }
  21514. ]
  21515. },
  21516. {
  21517. "name": "contextWillBeDestroyed",
  21518. "description": "Notifies that an existing BaseAudioContext will be destroyed.",
  21519. "parameters": [
  21520. {
  21521. "name": "contextId",
  21522. "$ref": "GraphObjectId"
  21523. }
  21524. ]
  21525. },
  21526. {
  21527. "name": "contextChanged",
  21528. "description": "Notifies that existing BaseAudioContext has changed some properties (id stays the same)..",
  21529. "parameters": [
  21530. {
  21531. "name": "context",
  21532. "$ref": "BaseAudioContext"
  21533. }
  21534. ]
  21535. },
  21536. {
  21537. "name": "audioListenerCreated",
  21538. "description": "Notifies that the construction of an AudioListener has finished.",
  21539. "parameters": [
  21540. {
  21541. "name": "listener",
  21542. "$ref": "AudioListener"
  21543. }
  21544. ]
  21545. },
  21546. {
  21547. "name": "audioListenerWillBeDestroyed",
  21548. "description": "Notifies that a new AudioListener has been created.",
  21549. "parameters": [
  21550. {
  21551. "name": "contextId",
  21552. "$ref": "GraphObjectId"
  21553. },
  21554. {
  21555. "name": "listenerId",
  21556. "$ref": "GraphObjectId"
  21557. }
  21558. ]
  21559. },
  21560. {
  21561. "name": "audioNodeCreated",
  21562. "description": "Notifies that a new AudioNode has been created.",
  21563. "parameters": [
  21564. {
  21565. "name": "node",
  21566. "$ref": "AudioNode"
  21567. }
  21568. ]
  21569. },
  21570. {
  21571. "name": "audioNodeWillBeDestroyed",
  21572. "description": "Notifies that an existing AudioNode has been destroyed.",
  21573. "parameters": [
  21574. {
  21575. "name": "contextId",
  21576. "$ref": "GraphObjectId"
  21577. },
  21578. {
  21579. "name": "nodeId",
  21580. "$ref": "GraphObjectId"
  21581. }
  21582. ]
  21583. },
  21584. {
  21585. "name": "audioParamCreated",
  21586. "description": "Notifies that a new AudioParam has been created.",
  21587. "parameters": [
  21588. {
  21589. "name": "param",
  21590. "$ref": "AudioParam"
  21591. }
  21592. ]
  21593. },
  21594. {
  21595. "name": "audioParamWillBeDestroyed",
  21596. "description": "Notifies that an existing AudioParam has been destroyed.",
  21597. "parameters": [
  21598. {
  21599. "name": "contextId",
  21600. "$ref": "GraphObjectId"
  21601. },
  21602. {
  21603. "name": "nodeId",
  21604. "$ref": "GraphObjectId"
  21605. },
  21606. {
  21607. "name": "paramId",
  21608. "$ref": "GraphObjectId"
  21609. }
  21610. ]
  21611. },
  21612. {
  21613. "name": "nodesConnected",
  21614. "description": "Notifies that two AudioNodes are connected.",
  21615. "parameters": [
  21616. {
  21617. "name": "contextId",
  21618. "$ref": "GraphObjectId"
  21619. },
  21620. {
  21621. "name": "sourceId",
  21622. "$ref": "GraphObjectId"
  21623. },
  21624. {
  21625. "name": "destinationId",
  21626. "$ref": "GraphObjectId"
  21627. },
  21628. {
  21629. "name": "sourceOutputIndex",
  21630. "optional": true,
  21631. "type": "number"
  21632. },
  21633. {
  21634. "name": "destinationInputIndex",
  21635. "optional": true,
  21636. "type": "number"
  21637. }
  21638. ]
  21639. },
  21640. {
  21641. "name": "nodesDisconnected",
  21642. "description": "Notifies that AudioNodes are disconnected. The destination can be null, and it means all the outgoing connections from the source are disconnected.",
  21643. "parameters": [
  21644. {
  21645. "name": "contextId",
  21646. "$ref": "GraphObjectId"
  21647. },
  21648. {
  21649. "name": "sourceId",
  21650. "$ref": "GraphObjectId"
  21651. },
  21652. {
  21653. "name": "destinationId",
  21654. "$ref": "GraphObjectId"
  21655. },
  21656. {
  21657. "name": "sourceOutputIndex",
  21658. "optional": true,
  21659. "type": "number"
  21660. },
  21661. {
  21662. "name": "destinationInputIndex",
  21663. "optional": true,
  21664. "type": "number"
  21665. }
  21666. ]
  21667. },
  21668. {
  21669. "name": "nodeParamConnected",
  21670. "description": "Notifies that an AudioNode is connected to an AudioParam.",
  21671. "parameters": [
  21672. {
  21673. "name": "contextId",
  21674. "$ref": "GraphObjectId"
  21675. },
  21676. {
  21677. "name": "sourceId",
  21678. "$ref": "GraphObjectId"
  21679. },
  21680. {
  21681. "name": "destinationId",
  21682. "$ref": "GraphObjectId"
  21683. },
  21684. {
  21685. "name": "sourceOutputIndex",
  21686. "optional": true,
  21687. "type": "number"
  21688. }
  21689. ]
  21690. },
  21691. {
  21692. "name": "nodeParamDisconnected",
  21693. "description": "Notifies that an AudioNode is disconnected to an AudioParam.",
  21694. "parameters": [
  21695. {
  21696. "name": "contextId",
  21697. "$ref": "GraphObjectId"
  21698. },
  21699. {
  21700. "name": "sourceId",
  21701. "$ref": "GraphObjectId"
  21702. },
  21703. {
  21704. "name": "destinationId",
  21705. "$ref": "GraphObjectId"
  21706. },
  21707. {
  21708. "name": "sourceOutputIndex",
  21709. "optional": true,
  21710. "type": "number"
  21711. }
  21712. ]
  21713. }
  21714. ]
  21715. },
  21716. {
  21717. "domain": "WebAuthn",
  21718. "description": "This domain allows configuring virtual authenticators to test the WebAuthn\nAPI.",
  21719. "experimental": true,
  21720. "types": [
  21721. {
  21722. "id": "AuthenticatorId",
  21723. "type": "string"
  21724. },
  21725. {
  21726. "id": "AuthenticatorProtocol",
  21727. "type": "string",
  21728. "enum": [
  21729. "u2f",
  21730. "ctap2"
  21731. ]
  21732. },
  21733. {
  21734. "id": "Ctap2Version",
  21735. "type": "string",
  21736. "enum": [
  21737. "ctap2_0",
  21738. "ctap2_1"
  21739. ]
  21740. },
  21741. {
  21742. "id": "AuthenticatorTransport",
  21743. "type": "string",
  21744. "enum": [
  21745. "usb",
  21746. "nfc",
  21747. "ble",
  21748. "cable",
  21749. "internal"
  21750. ]
  21751. },
  21752. {
  21753. "id": "VirtualAuthenticatorOptions",
  21754. "type": "object",
  21755. "properties": [
  21756. {
  21757. "name": "protocol",
  21758. "$ref": "AuthenticatorProtocol"
  21759. },
  21760. {
  21761. "name": "ctap2Version",
  21762. "description": "Defaults to ctap2_0. Ignored if |protocol| == u2f.",
  21763. "optional": true,
  21764. "$ref": "Ctap2Version"
  21765. },
  21766. {
  21767. "name": "transport",
  21768. "$ref": "AuthenticatorTransport"
  21769. },
  21770. {
  21771. "name": "hasResidentKey",
  21772. "description": "Defaults to false.",
  21773. "optional": true,
  21774. "type": "boolean"
  21775. },
  21776. {
  21777. "name": "hasUserVerification",
  21778. "description": "Defaults to false.",
  21779. "optional": true,
  21780. "type": "boolean"
  21781. },
  21782. {
  21783. "name": "hasLargeBlob",
  21784. "description": "If set to true, the authenticator will support the largeBlob extension.\nhttps://w3c.github.io/webauthn#largeBlob\nDefaults to false.",
  21785. "optional": true,
  21786. "type": "boolean"
  21787. },
  21788. {
  21789. "name": "hasCredBlob",
  21790. "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.",
  21791. "optional": true,
  21792. "type": "boolean"
  21793. },
  21794. {
  21795. "name": "hasMinPinLength",
  21796. "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.",
  21797. "optional": true,
  21798. "type": "boolean"
  21799. },
  21800. {
  21801. "name": "automaticPresenceSimulation",
  21802. "description": "If set to true, tests of user presence will succeed immediately.\nOtherwise, they will not be resolved. Defaults to true.",
  21803. "optional": true,
  21804. "type": "boolean"
  21805. },
  21806. {
  21807. "name": "isUserVerified",
  21808. "description": "Sets whether User Verification succeeds or fails for an authenticator.\nDefaults to false.",
  21809. "optional": true,
  21810. "type": "boolean"
  21811. }
  21812. ]
  21813. },
  21814. {
  21815. "id": "Credential",
  21816. "type": "object",
  21817. "properties": [
  21818. {
  21819. "name": "credentialId",
  21820. "type": "string"
  21821. },
  21822. {
  21823. "name": "isResidentCredential",
  21824. "type": "boolean"
  21825. },
  21826. {
  21827. "name": "rpId",
  21828. "description": "Relying Party ID the credential is scoped to. Must be set when adding a\ncredential.",
  21829. "optional": true,
  21830. "type": "string"
  21831. },
  21832. {
  21833. "name": "privateKey",
  21834. "description": "The ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)",
  21835. "type": "string"
  21836. },
  21837. {
  21838. "name": "userHandle",
  21839. "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)",
  21840. "optional": true,
  21841. "type": "string"
  21842. },
  21843. {
  21844. "name": "signCount",
  21845. "description": "Signature counter. This is incremented by one for each successful\nassertion.\nSee https://w3c.github.io/webauthn/#signature-counter",
  21846. "type": "integer"
  21847. },
  21848. {
  21849. "name": "largeBlob",
  21850. "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)",
  21851. "optional": true,
  21852. "type": "string"
  21853. }
  21854. ]
  21855. }
  21856. ],
  21857. "commands": [
  21858. {
  21859. "name": "enable",
  21860. "description": "Enable the WebAuthn domain and start intercepting credential storage and\nretrieval with a virtual authenticator.",
  21861. "parameters": [
  21862. {
  21863. "name": "enableUI",
  21864. "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.",
  21865. "optional": true,
  21866. "type": "boolean"
  21867. }
  21868. ]
  21869. },
  21870. {
  21871. "name": "disable",
  21872. "description": "Disable the WebAuthn domain."
  21873. },
  21874. {
  21875. "name": "addVirtualAuthenticator",
  21876. "description": "Creates and adds a virtual authenticator.",
  21877. "parameters": [
  21878. {
  21879. "name": "options",
  21880. "$ref": "VirtualAuthenticatorOptions"
  21881. }
  21882. ],
  21883. "returns": [
  21884. {
  21885. "name": "authenticatorId",
  21886. "$ref": "AuthenticatorId"
  21887. }
  21888. ]
  21889. },
  21890. {
  21891. "name": "removeVirtualAuthenticator",
  21892. "description": "Removes the given authenticator.",
  21893. "parameters": [
  21894. {
  21895. "name": "authenticatorId",
  21896. "$ref": "AuthenticatorId"
  21897. }
  21898. ]
  21899. },
  21900. {
  21901. "name": "addCredential",
  21902. "description": "Adds the credential to the specified authenticator.",
  21903. "parameters": [
  21904. {
  21905. "name": "authenticatorId",
  21906. "$ref": "AuthenticatorId"
  21907. },
  21908. {
  21909. "name": "credential",
  21910. "$ref": "Credential"
  21911. }
  21912. ]
  21913. },
  21914. {
  21915. "name": "getCredential",
  21916. "description": "Returns a single credential stored in the given virtual authenticator that\nmatches the credential ID.",
  21917. "parameters": [
  21918. {
  21919. "name": "authenticatorId",
  21920. "$ref": "AuthenticatorId"
  21921. },
  21922. {
  21923. "name": "credentialId",
  21924. "type": "string"
  21925. }
  21926. ],
  21927. "returns": [
  21928. {
  21929. "name": "credential",
  21930. "$ref": "Credential"
  21931. }
  21932. ]
  21933. },
  21934. {
  21935. "name": "getCredentials",
  21936. "description": "Returns all the credentials stored in the given virtual authenticator.",
  21937. "parameters": [
  21938. {
  21939. "name": "authenticatorId",
  21940. "$ref": "AuthenticatorId"
  21941. }
  21942. ],
  21943. "returns": [
  21944. {
  21945. "name": "credentials",
  21946. "type": "array",
  21947. "items": {
  21948. "$ref": "Credential"
  21949. }
  21950. }
  21951. ]
  21952. },
  21953. {
  21954. "name": "removeCredential",
  21955. "description": "Removes a credential from the authenticator.",
  21956. "parameters": [
  21957. {
  21958. "name": "authenticatorId",
  21959. "$ref": "AuthenticatorId"
  21960. },
  21961. {
  21962. "name": "credentialId",
  21963. "type": "string"
  21964. }
  21965. ]
  21966. },
  21967. {
  21968. "name": "clearCredentials",
  21969. "description": "Clears all the credentials from the specified device.",
  21970. "parameters": [
  21971. {
  21972. "name": "authenticatorId",
  21973. "$ref": "AuthenticatorId"
  21974. }
  21975. ]
  21976. },
  21977. {
  21978. "name": "setUserVerified",
  21979. "description": "Sets whether User Verification succeeds or fails for an authenticator.\nThe default is true.",
  21980. "parameters": [
  21981. {
  21982. "name": "authenticatorId",
  21983. "$ref": "AuthenticatorId"
  21984. },
  21985. {
  21986. "name": "isUserVerified",
  21987. "type": "boolean"
  21988. }
  21989. ]
  21990. },
  21991. {
  21992. "name": "setAutomaticPresenceSimulation",
  21993. "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.",
  21994. "parameters": [
  21995. {
  21996. "name": "authenticatorId",
  21997. "$ref": "AuthenticatorId"
  21998. },
  21999. {
  22000. "name": "enabled",
  22001. "type": "boolean"
  22002. }
  22003. ]
  22004. }
  22005. ]
  22006. },
  22007. {
  22008. "domain": "Media",
  22009. "description": "This domain allows detailed inspection of media elements",
  22010. "experimental": true,
  22011. "types": [
  22012. {
  22013. "id": "PlayerId",
  22014. "description": "Players will get an ID that is unique within the agent context.",
  22015. "type": "string"
  22016. },
  22017. {
  22018. "id": "Timestamp",
  22019. "type": "number"
  22020. },
  22021. {
  22022. "id": "PlayerMessage",
  22023. "description": "Have one type per entry in MediaLogRecord::Type\nCorresponds to kMessage",
  22024. "type": "object",
  22025. "properties": [
  22026. {
  22027. "name": "level",
  22028. "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.",
  22029. "type": "string",
  22030. "enum": [
  22031. "error",
  22032. "warning",
  22033. "info",
  22034. "debug"
  22035. ]
  22036. },
  22037. {
  22038. "name": "message",
  22039. "type": "string"
  22040. }
  22041. ]
  22042. },
  22043. {
  22044. "id": "PlayerProperty",
  22045. "description": "Corresponds to kMediaPropertyChange",
  22046. "type": "object",
  22047. "properties": [
  22048. {
  22049. "name": "name",
  22050. "type": "string"
  22051. },
  22052. {
  22053. "name": "value",
  22054. "type": "string"
  22055. }
  22056. ]
  22057. },
  22058. {
  22059. "id": "PlayerEvent",
  22060. "description": "Corresponds to kMediaEventTriggered",
  22061. "type": "object",
  22062. "properties": [
  22063. {
  22064. "name": "timestamp",
  22065. "$ref": "Timestamp"
  22066. },
  22067. {
  22068. "name": "value",
  22069. "type": "string"
  22070. }
  22071. ]
  22072. },
  22073. {
  22074. "id": "PlayerErrorSourceLocation",
  22075. "description": "Represents logged source line numbers reported in an error.\nNOTE: file and line are from chromium c++ implementation code, not js.",
  22076. "type": "object",
  22077. "properties": [
  22078. {
  22079. "name": "file",
  22080. "type": "string"
  22081. },
  22082. {
  22083. "name": "line",
  22084. "type": "integer"
  22085. }
  22086. ]
  22087. },
  22088. {
  22089. "id": "PlayerError",
  22090. "description": "Corresponds to kMediaError",
  22091. "type": "object",
  22092. "properties": [
  22093. {
  22094. "name": "errorType",
  22095. "type": "string"
  22096. },
  22097. {
  22098. "name": "code",
  22099. "description": "Code is the numeric enum entry for a specific set of error codes, such\nas PipelineStatusCodes in media/base/pipeline_status.h",
  22100. "type": "integer"
  22101. },
  22102. {
  22103. "name": "stack",
  22104. "description": "A trace of where this error was caused / where it passed through.",
  22105. "type": "array",
  22106. "items": {
  22107. "$ref": "PlayerErrorSourceLocation"
  22108. }
  22109. },
  22110. {
  22111. "name": "cause",
  22112. "description": "Errors potentially have a root cause error, ie, a DecoderError might be\ncaused by an WindowsError",
  22113. "type": "array",
  22114. "items": {
  22115. "$ref": "PlayerError"
  22116. }
  22117. },
  22118. {
  22119. "name": "data",
  22120. "description": "Extra data attached to an error, such as an HRESULT, Video Codec, etc.",
  22121. "type": "object"
  22122. }
  22123. ]
  22124. }
  22125. ],
  22126. "events": [
  22127. {
  22128. "name": "playerPropertiesChanged",
  22129. "description": "This can be called multiple times, and can be used to set / override /\nremove player properties. A null propValue indicates removal.",
  22130. "parameters": [
  22131. {
  22132. "name": "playerId",
  22133. "$ref": "PlayerId"
  22134. },
  22135. {
  22136. "name": "properties",
  22137. "type": "array",
  22138. "items": {
  22139. "$ref": "PlayerProperty"
  22140. }
  22141. }
  22142. ]
  22143. },
  22144. {
  22145. "name": "playerEventsAdded",
  22146. "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.",
  22147. "parameters": [
  22148. {
  22149. "name": "playerId",
  22150. "$ref": "PlayerId"
  22151. },
  22152. {
  22153. "name": "events",
  22154. "type": "array",
  22155. "items": {
  22156. "$ref": "PlayerEvent"
  22157. }
  22158. }
  22159. ]
  22160. },
  22161. {
  22162. "name": "playerMessagesLogged",
  22163. "description": "Send a list of any messages that need to be delivered.",
  22164. "parameters": [
  22165. {
  22166. "name": "playerId",
  22167. "$ref": "PlayerId"
  22168. },
  22169. {
  22170. "name": "messages",
  22171. "type": "array",
  22172. "items": {
  22173. "$ref": "PlayerMessage"
  22174. }
  22175. }
  22176. ]
  22177. },
  22178. {
  22179. "name": "playerErrorsRaised",
  22180. "description": "Send a list of any errors that need to be delivered.",
  22181. "parameters": [
  22182. {
  22183. "name": "playerId",
  22184. "$ref": "PlayerId"
  22185. },
  22186. {
  22187. "name": "errors",
  22188. "type": "array",
  22189. "items": {
  22190. "$ref": "PlayerError"
  22191. }
  22192. }
  22193. ]
  22194. },
  22195. {
  22196. "name": "playersCreated",
  22197. "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.",
  22198. "parameters": [
  22199. {
  22200. "name": "players",
  22201. "type": "array",
  22202. "items": {
  22203. "$ref": "PlayerId"
  22204. }
  22205. }
  22206. ]
  22207. }
  22208. ],
  22209. "commands": [
  22210. {
  22211. "name": "enable",
  22212. "description": "Enables the Media domain"
  22213. },
  22214. {
  22215. "name": "disable",
  22216. "description": "Disables the Media domain."
  22217. }
  22218. ]
  22219. }
  22220. ]
  22221. }