From a9edaa60e9bdfc5b49641a2f324df5ce6f7714f3 Mon Sep 17 00:00:00 2001 From: zhushengle Date: Thu, 26 Jun 2025 16:58:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ArkWeb=E4=BF=9D=E6=8C=81=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E4=B8=80=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushengle Change-Id: Ic0569820cd7ebba6888c5f06a0e7aad7acc28b91 --- api/@ohos.web.webview.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.web.webview.d.ts b/api/@ohos.web.webview.d.ts index 5a0fbb05be..36c1eaa899 100644 --- a/api/@ohos.web.webview.d.ts +++ b/api/@ohos.web.webview.d.ts @@ -6005,6 +6005,7 @@ declare namespace webview { * The WebviewController must be associated with a Web component. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6028,6 +6029,7 @@ declare namespace webview { * @returns { boolean } True if enable the Intelligent Tracking Prevention; else false. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6051,6 +6053,7 @@ declare namespace webview { * @param { Array } hostList - Hosts that bypass the Intelligent Tracking Prevention. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6074,6 +6077,7 @@ declare namespace webview { * @param { Array } hostList - Hosts needs to remove from bypass list. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6091,6 +6095,7 @@ declare namespace webview { /** * Clear bypassing hosts for Intelligent Tracking Prevention. * + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6307,6 +6312,7 @@ declare namespace webview { *
2. Parameter string is too long. 3.Parameter verification failed. * @throws { BusinessError } 17100001 - Init error. * The WebviewController must be associated with a Web component. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6326,6 +6332,7 @@ declare namespace webview { * Get whether Ads block is enabled. * * @returns { boolean } True if the ability of AdsBlock is enabled; else false. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -6345,6 +6352,7 @@ declare namespace webview { * Get whether Ads block is enabled for current Webpage. * * @returns { boolean } True if the ability of AdsBlock is enabled for current Webpage; else false. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -8912,6 +8920,7 @@ declare namespace webview { * @param {boolean} replace - (@code true)replace internal rules;(@code false) add to internal rules. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -8935,6 +8944,7 @@ declare namespace webview { * Ads Block will be disallowed for the web page. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -8964,6 +8974,7 @@ declare namespace webview { * Ads Block will be allowed for the web page. * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -8985,6 +8996,7 @@ declare namespace webview { * @param { Array } domainSuffixes - list of domain suffix needed be removed from disallow list * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -9006,6 +9018,7 @@ declare namespace webview { * @param { Array } domainSuffixes - list of domain suffix needed be removed from allow list * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified. *
2. Incorrect parameter types. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -9021,6 +9034,7 @@ declare namespace webview { */ /** * clear Ads Block Disallowed list. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} @@ -9036,6 +9050,7 @@ declare namespace webview { */ /** * clear Ads Block Allowed list. + * @throws { BusinessError } 801 - Capability not supported. * @syscap SystemCapability.Web.Webview.Core * @atomicservice * @since arkts {'1.1':'18', '1.2':'20'} -- Gitee