From 9d97a0315e5a6a475195004be558f527f6e61c35 Mon Sep 17 00:00:00 2001 From: echoorchid Date: Wed, 11 Jan 2023 15:24:51 +0800 Subject: [PATCH] update webdebug to static global setting Signed-off-by: echoorchid --- .../entry/src/main/ets/MainAbility/pages/web.ets | 1 - .../entry/src/main/ets/test/web.test.ets | 5 ++--- .../entry/src/main/ets/MainAbility/pages/web.ets | 1 - .../entry/src/main/ets/MainAbility/pages/web.ets | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/web.ets index aeb1de723..474402dab 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/MainAbility/pages/web.ets @@ -45,7 +45,6 @@ struct WebComponent { .userAgent("Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36") // .fileFromUrlAccess(true) .initialScale(2) - .webDebuggingAccess(true) .onPrompt((event) => { console.info('onPrompt url: ', event.url); console.info('onPrompt message: ', event.message); diff --git a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/web.test.ets b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/web.test.ets index c135bf9a0..9c81590f4 100644 --- a/arkui/ace_ets_component_apilack/entry/src/main/ets/test/web.test.ets +++ b/arkui/ace_ets_component_apilack/entry/src/main/ets/test/web.test.ets @@ -150,11 +150,10 @@ export default function webGetTitleJsunit() { console.info('webGetTitle testwebGetTitle0009 START'); await Utils.sleep(2000); let strJson = getInspectorByKey('getTitleText'); - console.info("[testwebGetTitle0009] component webDebuggingAccess strJson:" + strJson); + console.info("[testwebGetTitle0009] component strJson:" + strJson); let obj = JSON.parse(strJson); expect(obj.$type).assertEqual('Web'); - expect(obj.$attrs.webDebuggingAccess).assertEqual(undefined); - console.info("[testwebGetTitle0009] webDebuggingAccess value :" + obj.$attrs.webDebuggingAccess); + console.info("[testwebGetTitle0009] type value :" + obj.$type); done(); }); }) diff --git a/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/web.ets index c0fb69ef1..e45e0f816 100644 --- a/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_component_attrlack/entry/src/main/ets/MainAbility/pages/web.ets @@ -39,7 +39,6 @@ struct WebEditText { .blur(2) // .fileFromUrlAccess(true) .initialScale(2) - .webDebuggingAccess(true) .onRenderExited((event) => { console.info('onRenderExited getAcceptType: ', event.renderExitReason); }) diff --git a/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets b/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets index e41915a0b..733738bd5 100644 --- a/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets +++ b/arkui/ace_ets_web_dev_three/entry/src/main/ets/MainAbility/pages/web.ets @@ -412,7 +412,6 @@ struct Index { }) } Web({src:"www.example.com",controller:this.controller}) - .webDebuggingAccess(true) .mediaPlayGestureAccess(true) .javaScriptAccess(true) .zoomAccess(this.text) -- GitLab