1| Change Type | Old Version | New Version | d.ts File |
2| ---- | ------ | ------ | -------- |
3|Added|NA|Class name: SecureDnsMode;<br>Method or attribute name: OFF = 0|@ohos.web.webview.d.ts|
4|Added|NA|Class name: SecureDnsMode;<br>Method or attribute name: AUTO = 1|@ohos.web.webview.d.ts|
5|Added|NA|Class name: SecureDnsMode;<br>Method or attribute name: SECURE_ONLY = 2|@ohos.web.webview.d.ts|
6|Added|NA|Class name: WebMessageType;<br>Method or attribute name: NOT_SUPPORT|@ohos.web.webview.d.ts|
7|Added|NA|Class name: JsMessageType;<br>Method or attribute name: NOT_SUPPORT|@ohos.web.webview.d.ts|
8|Added|NA|Class name: WebMessageType;<br>Method or attribute name: STRING|@ohos.web.webview.d.ts|
9|Added|NA|Class name: JsMessageType;<br>Method or attribute name: STRING|@ohos.web.webview.d.ts|
10|Added|NA|Class name: WebMessageType;<br>Method or attribute name: NUMBER|@ohos.web.webview.d.ts|
11|Added|NA|Class name: JsMessageType;<br>Method or attribute name: NUMBER|@ohos.web.webview.d.ts|
12|Added|NA|Class name: WebMessageType;<br>Method or attribute name: BOOLEAN|@ohos.web.webview.d.ts|
13|Added|NA|Class name: JsMessageType;<br>Method or attribute name: BOOLEAN|@ohos.web.webview.d.ts|
14|Added|NA|Class name: WebMessageType;<br>Method or attribute name: ARRAY_BUFFER|@ohos.web.webview.d.ts|
15|Added|NA|Class name: JsMessageType;<br>Method or attribute name: ARRAY_BUFFER|@ohos.web.webview.d.ts|
16|Added|NA|Class name: WebMessageType;<br>Method or attribute name: ARRAY|@ohos.web.webview.d.ts|
17|Added|NA|Class name: JsMessageType;<br>Method or attribute name: ARRAY|@ohos.web.webview.d.ts|
18|Added|NA|Class name: WebMessageType;<br>Method or attribute name: ERROR|@ohos.web.webview.d.ts|
19|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getType(): WebMessageType;|@ohos.web.webview.d.ts|
20|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getString(): string;|@ohos.web.webview.d.ts|
21|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getString(): string;|@ohos.web.webview.d.ts|
22|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getNumber(): number;|@ohos.web.webview.d.ts|
23|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getNumber(): number;|@ohos.web.webview.d.ts|
24|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getBoolean(): boolean;|@ohos.web.webview.d.ts|
25|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getBoolean(): boolean;|@ohos.web.webview.d.ts|
26|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getArrayBuffer(): ArrayBuffer;|@ohos.web.webview.d.ts|
27|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getArrayBuffer(): ArrayBuffer;|@ohos.web.webview.d.ts|
28|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getArray(): Array\<string \| number \| boolean>;|@ohos.web.webview.d.ts|
29|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getArray(): Array\<string \| number \| boolean>;|@ohos.web.webview.d.ts|
30|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: getError(): Error;|@ohos.web.webview.d.ts|
31|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setType(type: WebMessageType): void;|@ohos.web.webview.d.ts|
32|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setString(message: string): void;|@ohos.web.webview.d.ts|
33|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setNumber(message: number): void;|@ohos.web.webview.d.ts|
34|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setBoolean(message: boolean): void;|@ohos.web.webview.d.ts|
35|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setArrayBuffer(message: ArrayBuffer): void;|@ohos.web.webview.d.ts|
36|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setArray(message: Array\<string \| number \| boolean>): void;|@ohos.web.webview.d.ts|
37|Added|NA|Class name: WebMessageExt;<br>Method or attribute name: setError(message: Error): void;|@ohos.web.webview.d.ts|
38|Added|NA|Class name: WebMessagePort;<br>Method or attribute name: isExtentionType?: boolean;|@ohos.web.webview.d.ts|
39|Added|NA|Class name: WebMessagePort;<br>Method or attribute name: postMessageEventExt(message: WebMessageExt): void;|@ohos.web.webview.d.ts|
40|Added|NA|Class name: WebMessagePort;<br>Method or attribute name: onMessageEventExt(callback: (result: WebMessageExt) => void): void;|@ohos.web.webview.d.ts|
41|Added|NA|Class name: JsMessageExt;<br>Method or attribute name: getType(): JsMessageType;|@ohos.web.webview.d.ts|
42|Added|NA|Class name: WebviewController;<br>Method or attribute name: static setHttpDns(secureDnsMode: SecureDnsMode, secureDnsConfig: string): void;|@ohos.web.webview.d.ts|
43|Added|NA|Class name: WebviewController;<br>Method or attribute name: runJavaScriptExt(script: string): Promise\<JsMessageExt>;|@ohos.web.webview.d.ts|
44|Added|NA|Class name: WebviewController;<br>Method or attribute name: runJavaScriptExt(script: string, callback: AsyncCallback\<JsMessageExt>): void;|@ohos.web.webview.d.ts|
45|Added|NA|Class name: WebviewController;<br>Method or attribute name: getCertificate(): Promise\<Array\<cert.X509Cert>>;|@ohos.web.webview.d.ts|
46|Added|NA|Class name: WebviewController;<br>Method or attribute name: getCertificate(callback: AsyncCallback\<Array\<cert.X509Cert>>): void;|@ohos.web.webview.d.ts|
47|Added|NA|Class name: WebviewController;<br>Method or attribute name: setAudioMuted(mute: boolean): void;|@ohos.web.webview.d.ts|
48|Added|NA|Class name: WebviewController;<br>Method or attribute name: prefetchPage(url: string, additionalHeaders?: Array\<WebHeader>): void;|@ohos.web.webview.d.ts|
49|Added|NA|Class name: WebviewController;<br>Method or attribute name: static prepareForPageLoad(url: string, preconnectable: boolean, numSockets: number): void;|@ohos.web.webview.d.ts|
50|Added|NA|Class name: WebviewController;<br>Method or attribute name: setCustomUserAgent(userAgent: string): void;|@ohos.web.webview.d.ts|
51|Added|NA|Class name: WebviewController;<br>Method or attribute name: getCustomUserAgent(): string;|@ohos.web.webview.d.ts|
52|Deprecated version changed|Class name: WebAttribute;<br>Method or attribute name: password(password: boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: password(password: boolean): WebAttribute;<br>New version information: 10<br>Substitute API: |web.d.ts|
53|Deprecated version changed|Class name: WebAttribute;<br>Method or attribute name: tableData(tableData: boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: tableData(tableData: boolean): WebAttribute;<br>New version information: 10<br>Substitute API: |web.d.ts|
54|Deprecated version changed|Class name: WebAttribute;<br>Method or attribute name: wideViewModeAccess(wideViewModeAccess: boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: wideViewModeAccess(wideViewModeAccess: boolean): WebAttribute;<br>New version information: 10<br>Substitute API: |web.d.ts|
55|Deprecated version changed|Class name: WebAttribute;<br>Method or attribute name: userAgent(userAgent: string): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: userAgent(userAgent: string): WebAttribute;<br>New version information: 10<br>Substitute API: ohos.web.webview.webview.WebviewController#setCustomUserAgent|web.d.ts|
56|Deprecated version changed|Class name: WebAttribute;<br>Method or attribute name: onUrlLoadIntercept(callback: (event?: { data: string \| WebResourceRequest }) => boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: onUrlLoadIntercept(callback: (event?: { data: string \| WebResourceRequest }) => boolean): WebAttribute;<br>New version information: 10<br>Substitute API: ohos.web.WebAttribute#onLoadIntercept|web.d.ts|
57|Error code added|Class name: WebStorage;<br>Method or attribute name: static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>): void;<br>Old version information: |Class name: WebStorage;<br>Method or attribute name: static getOrigins(callback: AsyncCallback\<Array\<WebStorageOrigin>>): void;<br>New version information: 401, 17100012|@ohos.web.webview.d.ts|
58|Error code added|Class name: WebStorage;<br>Method or attribute name: static getOriginQuota(origin: string, callback: AsyncCallback\<number>): void;<br>Old version information: |Class name: WebStorage;<br>Method or attribute name: static getOriginQuota(origin: string, callback: AsyncCallback\<number>): void;<br>New version information: 401, 17100011|@ohos.web.webview.d.ts|
59|Error code added|Class name: WebStorage;<br>Method or attribute name: static getOriginUsage(origin: string, callback: AsyncCallback\<number>): void;<br>Old version information: |Class name: WebStorage;<br>Method or attribute name: static getOriginUsage(origin: string, callback: AsyncCallback\<number>): void;<br>New version information: 401, 17100011|@ohos.web.webview.d.ts|
60|Error code added|Class name: GeolocationPermissions;<br>Method or attribute name: static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void;<br>Old version information: |Class name: GeolocationPermissions;<br>Method or attribute name: static getAccessibleGeolocation(origin: string, callback: AsyncCallback\<boolean>): void;<br>New version information: 401, 17100011|@ohos.web.webview.d.ts|
61|Error code added|Class name: GeolocationPermissions;<br>Method or attribute name: static getStoredGeolocation(callback: AsyncCallback\<Array\<string>>): void;<br>Old version information: |Class name: GeolocationPermissions;<br>Method or attribute name: static getStoredGeolocation(callback: AsyncCallback\<Array\<string>>): void;<br>New version information: 401|@ohos.web.webview.d.ts|
62|Error code added|Class name: WebCookieManager;<br>Method or attribute name: static saveCookieAsync(callback: AsyncCallback\<void>): void;<br>Old version information: |Class name: WebCookieManager;<br>Method or attribute name: static saveCookieAsync(callback: AsyncCallback\<void>): void;<br>New version information: 401|@ohos.web.webview.d.ts|
63|Error code added|Class name: WebviewController;<br>Method or attribute name: storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\<string>): void;<br>Old version information: |Class name: WebviewController;<br>Method or attribute name: storeWebArchive(baseName: string, autoName: boolean, callback: AsyncCallback\<string>): void;<br>New version information: 401, 17100001, 17100003|@ohos.web.webview.d.ts|
64|Error code added|Class name: WebviewController;<br>Method or attribute name: runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>Old version information: |Class name: WebviewController;<br>Method or attribute name: runJavaScript(script: string, callback: AsyncCallback\<string>): void;<br>New version information: 401, 17100001|@ohos.web.webview.d.ts|
65|Error code added|Class name: WebviewController;<br>Method or attribute name: hasImage(callback: AsyncCallback\<boolean>): void;<br>Old version information: |Class name: WebviewController;<br>Method or attribute name: hasImage(callback: AsyncCallback\<boolean>): void;<br>New version information: 401, 17100001|@ohos.web.webview.d.ts|
66|Error code changed|Class name: WebviewController;<br>Method or attribute name: createWebMessagePorts(isExtentionType?: boolean): Array\<WebMessagePort>;<br>Old version information: 17100001|Class name: WebviewController;<br>Method or attribute name: createWebMessagePorts(isExtentionType?: boolean): Array\<WebMessagePort>;<br>New version information: 401, 17100001|@ohos.web.webview.d.ts|
67|Type changed|Class name: Header;<br>Method or attribute name: headerKey: string;<br>Old version information: |Class name: Header;<br>Method or attribute name: headerKey: string;<br>New version information: string|web.d.ts|
68|Type changed|Class name: Header;<br>Method or attribute name: headerValue: string;<br>Old version information: |Class name: Header;<br>Method or attribute name: headerValue: string;<br>New version information: string|web.d.ts|
69|Type changed|Class name: WebOptions;<br>Method or attribute name: src: string \| Resource;<br>Old version information: |Class name: WebOptions;<br>Method or attribute name: src: string \| Resource;<br>New version information: string \| Resource|web.d.ts|
70|Type changed|Class name: WebOptions;<br>Method or attribute name: controller: WebController \| WebviewController;<br>Old version information: (WebController \| WebviewController)|Class name: WebOptions;<br>Method or attribute name: controller: WebController \| WebviewController;<br>New version information: WebController \| WebviewController|web.d.ts|
71|Type changed|Class name: WebAttribute;<br>Method or attribute name: javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array\<string>,<br>    controller: WebController \| WebviewController }): WebAttribute;<br>Old version information: controller : WebController \| WebviewController|Class name: WebAttribute;<br>Method or attribute name: javaScriptProxy(javaScriptProxy: { object: object, name: string, methodList: Array\<string>,<br>    controller: WebController \| WebviewController }): WebAttribute;<br>New version information: |web.d.ts|
72|Function changed|Class name: WebviewController;<br>Method or attribute name: createWebMessagePorts(): Array\<WebMessagePort>;|Class name: WebviewController;<br>Method or attribute name: createWebMessagePorts(isExtentionType?: boolean): Array\<WebMessagePort>;|@ohos.web.webview.d.ts|
73|Cross-platform capability changed|Class name: webview;<br>Method or attribute name: declare webview<br>Old version information: |Class name: webview;<br>Method or attribute name: declare webview<br>New version information: crossplatform|@ohos.web.webview.d.ts|
74|Cross-platform capability changed|Class name: WebHeader;<br>Method or attribute name: interface WebHeader<br>Old version information: |Class name: WebHeader;<br>Method or attribute name: interface WebHeader<br>New version information: crossplatform|@ohos.web.webview.d.ts|
75|Cross-platform capability changed|Class name: WebHeader;<br>Method or attribute name: headerKey: string;<br>Old version information: |Class name: WebHeader;<br>Method or attribute name: headerKey: string;<br>New version information: crossplatform|@ohos.web.webview.d.ts|
76|Cross-platform capability changed|Class name: WebHeader;<br>Method or attribute name: headerValue: string;<br>Old version information: |Class name: WebHeader;<br>Method or attribute name: headerValue: string;<br>New version information: crossplatform|@ohos.web.webview.d.ts|
77|Cross-platform capability changed|Class name: WebviewController;<br>Method or attribute name: class WebviewController<br>Old version information: |Class name: WebviewController;<br>Method or attribute name: class WebviewController<br>New version information: crossplatform|@ohos.web.webview.d.ts|
78|Cross-platform capability changed|Class name: WebviewController;<br>Method or attribute name: loadUrl(url: string \| Resource, headers?: Array\<WebHeader>): void;<br>Old version information: |Class name: WebviewController;<br>Method or attribute name: loadUrl(url: string \| Resource, headers?: Array\<WebHeader>): void;<br>New version information: crossplatform|@ohos.web.webview.d.ts|
79|Cross-platform capability changed|Class name: WebResourceRequest;<br>Method or attribute name: declare class WebResourceRequest<br>Old version information: |Class name: WebResourceRequest;<br>Method or attribute name: declare class WebResourceRequest<br>New version information: crossplatform|web.d.ts|
80|Cross-platform capability changed|Class name: WebResourceRequest;<br>Method or attribute name: constructor();<br>Old version information: |Class name: WebResourceRequest;<br>Method or attribute name: constructor();<br>New version information: crossplatform|web.d.ts|
81|Cross-platform capability changed|Class name: WebResourceError;<br>Method or attribute name: constructor();<br>Old version information: |Class name: WebResourceError;<br>Method or attribute name: constructor();<br>New version information: crossplatform|web.d.ts|
82|Cross-platform capability changed|Class name: WebResourceRequest;<br>Method or attribute name: getRequestUrl(): string;<br>Old version information: |Class name: WebResourceRequest;<br>Method or attribute name: getRequestUrl(): string;<br>New version information: crossplatform|web.d.ts|
83|Cross-platform capability changed|Class name: WebResourceError;<br>Method or attribute name: declare class WebResourceError<br>Old version information: |Class name: WebResourceError;<br>Method or attribute name: declare class WebResourceError<br>New version information: crossplatform|web.d.ts|
84|Cross-platform capability changed|Class name: WebResourceError;<br>Method or attribute name: getErrorInfo(): string;<br>Old version information: |Class name: WebResourceError;<br>Method or attribute name: getErrorInfo(): string;<br>New version information: crossplatform|web.d.ts|
85|Cross-platform capability changed|Class name: WebResourceError;<br>Method or attribute name: getErrorCode(): number;<br>Old version information: |Class name: WebResourceError;<br>Method or attribute name: getErrorCode(): number;<br>New version information: crossplatform|web.d.ts|
86|Cross-platform capability changed|Class name: WebOptions;<br>Method or attribute name: declare interface WebOptions<br>Old version information: |Class name: WebOptions;<br>Method or attribute name: declare interface WebOptions<br>New version information: crossplatform|web.d.ts|
87|Cross-platform capability changed|Class name: WebOptions;<br>Method or attribute name: src: string \| Resource;<br>Old version information: |Class name: WebOptions;<br>Method or attribute name: src: string \| Resource;<br>New version information: crossplatform|web.d.ts|
88|Cross-platform capability changed|Class name: WebOptions;<br>Method or attribute name: controller: WebController \| WebviewController;<br>Old version information: |Class name: WebOptions;<br>Method or attribute name: controller: WebController \| WebviewController;<br>New version information: crossplatform|web.d.ts|
89|Cross-platform capability changed|Class name: WebInterface;<br>Method or attribute name: interface WebInterface<br>Old version information: |Class name: WebInterface;<br>Method or attribute name: interface WebInterface<br>New version information: crossplatform|web.d.ts|
90|Cross-platform capability changed|Class name: WebInterface;<br>Method or attribute name: (value: WebOptions): WebAttribute;<br>Old version information: |Class name: WebInterface;<br>Method or attribute name: (value: WebOptions): WebAttribute;<br>New version information: crossplatform|web.d.ts|
91|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: declare class WebAttribute<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: declare class WebAttribute<br>New version information: crossplatform|web.d.ts|
92|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: javaScriptAccess(javaScriptAccess: boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: javaScriptAccess(javaScriptAccess: boolean): WebAttribute;<br>New version information: crossplatform|web.d.ts|
93|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: zoomAccess(zoomAccess: boolean): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: zoomAccess(zoomAccess: boolean): WebAttribute;<br>New version information: crossplatform|web.d.ts|
94|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: onPageEnd(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: onPageEnd(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>New version information: crossplatform|web.d.ts|
95|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: onPageBegin(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: onPageBegin(callback: (event?: {<br>    /**<br>     * The url of page.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    url: string<br>  }) => void): WebAttribute;<br>New version information: crossplatform|web.d.ts|
96|Cross-platform capability changed|Class name: WebAttribute;<br>Method or attribute name: onErrorReceive(callback: (event?: {<br>    /**<br>     * The url of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    request: WebResourceRequest,<br>    /**<br>     * The information of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    error: WebResourceError<br>  }) => void): WebAttribute;<br>Old version information: |Class name: WebAttribute;<br>Method or attribute name: onErrorReceive(callback: (event?: {<br>    /**<br>     * The url of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    request: WebResourceRequest,<br>    /**<br>     * The information of error event.<br>     *<br>     * @syscap SystemCapability.Web.Webview.Core<br>     * @crossplatform<br>     * @since 10<br>     */<br>    error: WebResourceError<br>  }) => void): WebAttribute;<br>New version information: crossplatform|web.d.ts|
97