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