1e41f4b71Sopenharmony_ci# JS API Changes of the Web Subsystem 2e41f4b71Sopenharmony_ci 3e41f4b71Sopenharmony_ciThe table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. 4e41f4b71Sopenharmony_ci 5e41f4b71Sopenharmony_ci## API Changes 6e41f4b71Sopenharmony_ci 7e41f4b71Sopenharmony_ci| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8e41f4b71Sopenharmony_ci|---|---|---|---| 9e41f4b71Sopenharmony_ci| ohos.web | WebDataBase | static saveHttpAuthCredentials(host: string, realm: string, username: string, password: string): void; | Added| 10e41f4b71Sopenharmony_ci| ohos.web | WebDataBase | static getHttpAuthCredentials(host: string, realm: string): Array\<string>; | Added| 11e41f4b71Sopenharmony_ci| ohos.web | WebDataBase | static deleteHttpAuthCredentials(): void; | Added| 12e41f4b71Sopenharmony_ci| ohos.web | WebDataBase | static existHttpAuthCredentials(): boolean; | Added| 13e41f4b71Sopenharmony_ci| ohos.web | WebStorage | static getOriginUsage(origin: string): Promise\<number> ;<br>static getOriginUsage(origin: string, callback: AsyncCallback\<number>): void; | Added| 14e41f4b71Sopenharmony_ci| ohos.web | WebStorage | static getOriginQuota(origin: string): Promise\<number>;<br>static getOriginQuota(origin: string, callback: AsyncCallback\<number>): void; | Added| 15e41f4b71Sopenharmony_ci| ohos.web | WebStorage | static getOrigins(): Promise\<Array\<WebStorageOrigin>>;<br>static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>): void; | Added| 16e41f4b71Sopenharmony_ci| ohos.web | WebStorage | static deleteOrigin(origin: string): void; | Added| 17e41f4b71Sopenharmony_ci| ohos.web | WebStorage | static deleteAllData(): void; | Added| 18e41f4b71Sopenharmony_ci| ohos.web | WebStorageOrigin | quota: number; | Added| 19e41f4b71Sopenharmony_ci| ohos.web | WebStorageOrigin | usage: number; | Added| 20e41f4b71Sopenharmony_ci| ohos.web | WebStorageOrigin | origin: string; | Added| 21e41f4b71Sopenharmony_ci| Web | WebAttribute | onInterceptRequest(callback: (event?: { request: WebResourceRequest}) => WebResourceResponse): WebAttribute; | Added| 22e41f4b71Sopenharmony_ci| Web | WebAttribute | onHttpAuthRequest(callback: (event?: { handler: HttpAuthHandler, host: string, realm: string }) => boolean): WebAttribute; | Added| 23e41f4b71Sopenharmony_ci| Web | WebAttribute | onScaleChange(callback: (event: {oldScale: number, newScale: number}) => void): WebAttribute; | Added| 24e41f4b71Sopenharmony_ci| Web | WebAttribute | onResourceLoad(callback: (event: {url: string}) => void): WebAttribute; | Added| 25e41f4b71Sopenharmony_ci| Web | WebAttribute | onPrompt(callback: (event?: {url: string, message: string, value: string, result: JsResult }) => boolean): WebAttribute; | Added| 26e41f4b71Sopenharmony_ci| Web | WebAttribute | initialScale(percent: number): WebAttribute; | Added| 27e41f4b71Sopenharmony_ci| Web | WebController | backOrForward(step: number): void; | Added| 28e41f4b71Sopenharmony_ci| Web | WebController | getPageHeight(): number; | Added| 29e41f4b71Sopenharmony_ci| Web | WebController | getTitle(): string; | Added| 30e41f4b71Sopenharmony_ci| Web | WebController | getDefaultUserAgent(): string; | Added| 31e41f4b71Sopenharmony_ci| Web | WebController | getWebId(): number; | Added| 32e41f4b71Sopenharmony_ci| Web | WebController | getHitTestValue(): HitTestValue; | Added| 33e41f4b71Sopenharmony_ci| Web | WebController | zoomOut(): boolean; | Added| 34e41f4b71Sopenharmony_ci| Web | WebController | zoomIn(): boolean; | Added| 35e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setResponseCode(code: number); | Added| 36e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setResponseHeader(header: Array\<Header>); | Added| 37e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setReasonMessage(reason: string); | Added| 38e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setResponseMimeType(mimeType: string); | Added| 39e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setResponseEncoding(encoding: string); | Added| 40e41f4b71Sopenharmony_ci| Web | WebResourceResponse | setResponseData(data: string); | Added| 41