1| Change Type | Old Version | New Version | d.ts File | 2| ---- | ------ | ------ | -------- | 3|Deleted|Class name: SecureDnsMode;<br>Method or attribute name: Off = 0|NA|@ohos.web.webview.d.ts| 4|Deleted|Class name: SecureDnsMode;<br>Method or attribute name: Auto = 1|NA|@ohos.web.webview.d.ts| 5|Deleted|Class name: SecureDnsMode;<br>Method or attribute name: SecureOnly = 2|NA|@ohos.web.webview.d.ts| 6|Added|NA|Class name: WebviewController;<br>Method or attribute name: setCustomUserAgent(userAgent: string): void;|@ohos.web.webview.d.ts| 7|Added|NA|Class name: WebviewController;<br>Method or attribute name: getCustomUserAgent(): string;|@ohos.web.webview.d.ts| 8|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| 9|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| 10|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| 11|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| 12|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| 13|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| 14|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| 15|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| 16|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| 17|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| 18|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| 19|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| 20|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| 21|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| 22|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| 23|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| 24|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| 25|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| 26|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| 27|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| 28|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| 29|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| 30|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| 31|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| 32|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| 33|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| 34