From c903b04c7ae416a95d2f5461a99602419c337da7 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 11 Jun 2021 09:35:48 -0700 Subject: [PATCH] feat(webkit): bump to 1499 (#7001) --- browsers.json | 2 +- src/server/webkit/protocol.ts | 54 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/browsers.json b/browsers.json index e47e6ff4cf..46ee9dfc31 100644 --- a/browsers.json +++ b/browsers.json @@ -18,7 +18,7 @@ }, { "name": "webkit", - "revision": "1492", + "revision": "1499", "installByDefault": true, "revisionOverrides": { "mac10.14": "1446" diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.ts index 35e8afe899..891567db8a 100644 --- a/src/server/webkit/protocol.ts +++ b/src/server/webkit/protocol.ts @@ -6935,6 +6935,26 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the */ sameSite?: CookieSameSitePolicy; } + /** + * Name-value pair + */ + export interface NameValue { + name: string; + value: string; + } + /** + * Origin object + */ + export interface OriginStorage { + /** + * Origin. + */ + origin: string; + /** + * Storage entries. + */ + items: NameValue[]; + } /** * Geolocation */ @@ -7163,6 +7183,36 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the } export type deleteAllCookiesReturnValue = { } + /** + * Returns all local storage data in the given browser context. + */ + export type getLocalStorageDataParameters = { + /** + * Browser context id. + */ + browserContextId?: ContextID; + } + export type getLocalStorageDataReturnValue = { + /** + * Local storage data. + */ + origins: OriginStorage[]; + } + /** + * Populates local storage data in the given browser context. + */ + export type setLocalStorageDataParameters = { + /** + * Browser context id. + */ + browserContextId?: ContextID; + /** + * Local storage data. + */ + origins: OriginStorage[]; + } + export type setLocalStorageDataReturnValue = { + } /** * Overrides the geolocation position or error. */ @@ -8933,6 +8983,8 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Playwright.getAllCookies": Playwright.getAllCookiesParameters; "Playwright.setCookies": Playwright.setCookiesParameters; "Playwright.deleteAllCookies": Playwright.deleteAllCookiesParameters; + "Playwright.getLocalStorageData": Playwright.getLocalStorageDataParameters; + "Playwright.setLocalStorageData": Playwright.setLocalStorageDataParameters; "Playwright.setGeolocationOverride": Playwright.setGeolocationOverrideParameters; "Playwright.setLanguages": Playwright.setLanguagesParameters; "Playwright.setDownloadBehavior": Playwright.setDownloadBehaviorParameters; @@ -9226,6 +9278,8 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "Playwright.getAllCookies": Playwright.getAllCookiesReturnValue; "Playwright.setCookies": Playwright.setCookiesReturnValue; "Playwright.deleteAllCookies": Playwright.deleteAllCookiesReturnValue; + "Playwright.getLocalStorageData": Playwright.getLocalStorageDataReturnValue; + "Playwright.setLocalStorageData": Playwright.setLocalStorageDataReturnValue; "Playwright.setGeolocationOverride": Playwright.setGeolocationOverrideReturnValue; "Playwright.setLanguages": Playwright.setLanguagesReturnValue; "Playwright.setDownloadBehavior": Playwright.setDownloadBehaviorReturnValue;