• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Web Subsystem
2
3The table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.web.webview | WebCookieManager       | static deleteSessionCookie(): void;                                                                                                                                     | Added|
10| ohos.web.webview | WebCookieManager       | static deleteEntireCookie(): void;                                                                                                                                      | Added|
11| ohos.web.webview | WebCookieManager       | static existCookie(): boolean;                                                                                                                                          | Added|
12| ohos.web.webview | WebCookieManager       | static putAcceptThirdPartyCookieEnabled(accept: boolean): void;                                                                                                         | Added|
13| ohos.web.webview | WebCookieManager       | static isThirdPartyCookieAllowed(): boolean;                                                                                                                            | Added|
14| ohos.web.webview | WebCookieManager       | static putAcceptCookieEnabled(accept: boolean): void;                                                                                                                   | Added|
15| ohos.web.webview | WebCookieManager       | static isCookieAllowed(): boolean;                                                                                                                                      | Added|
16| ohos.web.webview | WebCookieManager       | static saveCookieAsync(): Promise\<boolean>;<br>static saveCookieAsync(callback: AsyncCallback\<boolean>): void;                                                       | Added|
17| ohos.web.webview | WebCookieManager       | static saveCookieSync(): boolean;                                                                                                                                       | Added|
18| ohos.web.webview | WebCookieManager       | static setCookie(url: string, value: string): boolean;                                                                                                                  | Added|
19| ohos.web.webview | WebCookieManager       | static getCookie(url: string): string;                                                                                                                                  | Added|
20| ohos.web.webview | GeolocationPermissions | static getStoredGeolocation() : Promise\<Array\<string>>;<br>static getStoredGeolocation(callback : AsyncCallback\<Array\<string>>): void;                             | Added|
21| ohos.web.webview | GeolocationPermissions | static getAccessibleGeolocation(origin: string): Promise\<boolean>;<br>static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void;       | Added|
22| ohos.web.webview | GeolocationPermissions | static deleteAllGeolocation(): void;                                                                                                                                    | Added|
23| ohos.web.webview | GeolocationPermissions | static deleteGeolocation(origin: string): void;                                                                                                                         | Added|
24| ohos.web.webview | GeolocationPermissions | static allowGeolocation(origin: string): void;                                                                                                                          | Added|
25| ohos.web.webview | WebAsyncController     | storeWebArchive(baseName: string, autoName: boolean): Promise\<string>;<br>storeWebArchive(baseName: string, autoName: boolean, callback : AsyncCallback\<string>): void; | Added|
26| ohos.web.webview | WebAsyncController     | constructor(controller: WebController);                                                                                                                                 | Added|
27| ohos.web.webview | WebDataBase            | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;                                                                  | Added|
28| ohos.web.webview | WebDataBase            | static getHttpAuthCredentials(host: string, realm: string): Array\<string>;                                                                                             | Added|
29| ohos.web.webview | WebDataBase            | static deleteHttpAuthCredentials(): void;                                                                                                                               | Added|
30| ohos.web.webview | WebDataBase            | static existHttpAuthCredentials(): boolean;                                                                                                                             | Added|
31| ohos.web.webview | WebStorage             | static getOriginUsage(origin : string) : Promise\<number> ;<br>static getOriginUsage(origin : string, callback : AsyncCallback\<number>) : void;                       | Added|
32| ohos.web.webview | WebStorage             | static getOriginQuota(origin : string) : Promise\<number>;<br>static getOriginQuota(origin : string, callback : AsyncCallback\<number>) : void;                        | Added|
33| ohos.web.webview | WebStorage             | static getOrigins() : Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>) : void;                             | Added|
34| ohos.web.webview | WebStorage             | static deleteOrigin(origin : string): void;                                                                                                                             | Added|
35| ohos.web.webview | WebStorage             | static deleteAllData() : void;                                                                                                                                          | Added|
36| ohos.web.webview | WebStorageOrigin       | quota: number;                                                                                                                                                          | Added|
37| ohos.web.webview | WebStorageOrigin       | usage: number;                                                                                                                                                          | Added|
38| ohos.web.webview | WebStorageOrigin       | origin: string;                                                                                                                                                         | Added|
39| ohos.web | WebDataBase      | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void;                                         | Deleted|
40| ohos.web | WebDataBase      | static getHttpAuthCredentials(host: string, realm: string): Array\<string>;                                                                    | Deleted|
41| ohos.web | WebDataBase      | static deleteHttpAuthCredentials(): void;                                                                                                      | Deleted|
42| ohos.web | WebDataBase      | static existHttpAuthCredentials(): boolean;                                                                                                    | Deleted|
43| ohos.web | WebStorage       | static getOriginUsage(origin : string) : Promise\<number> ;<br>static getOriginUsage(origin : string, callback : AsyncCallback\<number>) : void; | Deleted|
44| ohos.web | WebStorage       | static getOriginQuota(origin : string) : Promise\<number>;<br>static getOriginQuota(origin : string, callback : AsyncCallback\<number>) : void; | Deleted|
45| ohos.web | WebStorage       | static getOrigins() : Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>) : void;    | Deleted|
46| ohos.web | WebStorage       | static deleteOrigin(origin : string): void;                                                                                                    | Deleted|
47| ohos.web | WebStorage       | static deleteAllData() : void;                                                                                                                 | Deleted|
48| ohos.web | WebStorageOrigin | quota: number;                                                                                                                                 | Deleted|
49| ohos.web | WebStorageOrigin | usage: number;                                                                                                                                 | Deleted|
50| ohos.web | WebStorageOrigin | origin: string;                                                                                                                                | Deleted|
51