From eb42209f355e5e1f62a30455e44910b2b1fcc684 Mon Sep 17 00:00:00 2001 From: zhangxiao72 Date: Mon, 28 Feb 2022 09:27:01 +0800 Subject: [PATCH] =?UTF-8?q?web=20api=20=E9=80=82=E9=85=8D=E5=86=85?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ief3f5150f1004066d65b03630363a74b1004b926 Signed-off-by: zhangxiao72 --- api/@internal/component/ets/web.d.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 6c34f1228c..0a861bee49 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -30,24 +30,24 @@ declare enum MessageLevel { Warn } -declare enum MixedModeContent { +declare enum MixedMode { /** - * MIXED_CONTENT_ALWAYS_ALLOW level. + * Allows all sources. * @since 8 */ - MIXED_CONTENT_ALWAYS_ALLOW, + ALL, /** - * MIXED_CONTENT_NEVER_ALLOW level. + * Allows sources Compatibly. * @since 8 */ - MIXED_CONTENT_NEVER_ALLOW, + Compatible, /** - * MIXED_CONTENT_COMPATIBILITY_MODE level. + * Don't allow unsecure sources from a secure origin. * @since 8 */ - MIXED_CONTENT_COMPATIBILITY_MODE, + None, } declare enum HitTestType { @@ -450,7 +450,7 @@ declare class WebAttribute extends CommonMethod { * Whether to load HTTP and HTTPS content * @since 8 */ - mixedMode(mixedMode: MixedModeContent): WebAttribute; + mixedMode(mixedMode: MixedMode): WebAttribute; /** * Sets whether the WebView supports zooming using on-screen controls or gestures -- Gitee