未验证 提交 414744a2 编写于 作者: O openharmony_ci 提交者: Gitee

!7189 【web子系统】webDebuggingAccess属性改为静态全局配置

Merge pull request !7189 from echoorchid/master
......@@ -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);
......
......@@ -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();
});
})
......
......@@ -39,7 +39,6 @@ struct WebEditText {
.blur(2)
// .fileFromUrlAccess(true)
.initialScale(2)
.webDebuggingAccess(true)
.onRenderExited((event) => {
console.info('onRenderExited getAcceptType: ', event.renderExitReason);
})
......
......@@ -412,7 +412,6 @@ struct Index {
})
}
Web({src:"www.example.com",controller:this.controller})
.webDebuggingAccess(true)
.mediaPlayGestureAccess(true)
.javaScriptAccess(true)
.zoomAccess(this.text)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册