mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 23:21:05 +00:00
!34135 修改web fileAccess的默认值,从API 12开始
Merge pull request !34135 from jiangkuaixue/master
This commit is contained in:
commit
e9813d0bb4
@ -2106,7 +2106,6 @@ void WebPattern::OnModifyDone()
|
|||||||
static_cast<int32_t>(renderContext->GetBackgroundColor().value_or(Color::WHITE).GetValue())));
|
static_cast<int32_t>(renderContext->GetBackgroundColor().value_or(Color::WHITE).GetValue())));
|
||||||
delegate_->UpdateJavaScriptEnabled(GetJsEnabledValue(true));
|
delegate_->UpdateJavaScriptEnabled(GetJsEnabledValue(true));
|
||||||
delegate_->UpdateBlockNetworkImage(!GetOnLineImageAccessEnabledValue(true));
|
delegate_->UpdateBlockNetworkImage(!GetOnLineImageAccessEnabledValue(true));
|
||||||
delegate_->UpdateAllowFileAccess(GetFileAccessEnabledValue(true));
|
|
||||||
delegate_->UpdateLoadsImagesAutomatically(GetImageAccessEnabledValue(true));
|
delegate_->UpdateLoadsImagesAutomatically(GetImageAccessEnabledValue(true));
|
||||||
delegate_->UpdateMixedContentMode(GetMixedModeValue(MixedModeContent::MIXED_CONTENT_NEVER_ALLOW));
|
delegate_->UpdateMixedContentMode(GetMixedModeValue(MixedModeContent::MIXED_CONTENT_NEVER_ALLOW));
|
||||||
delegate_->UpdateSupportZoom(GetZoomAccessEnabledValue(true));
|
delegate_->UpdateSupportZoom(GetZoomAccessEnabledValue(true));
|
||||||
@ -2153,6 +2152,7 @@ void WebPattern::OnModifyDone()
|
|||||||
GetOverScrollModeValue(isApiGteTwelve ? OverScrollMode::ALWAYS : OverScrollMode::NEVER));
|
GetOverScrollModeValue(isApiGteTwelve ? OverScrollMode::ALWAYS : OverScrollMode::NEVER));
|
||||||
delegate_->UpdateCopyOptionMode(GetCopyOptionModeValue(static_cast<int32_t>(CopyOptions::Distributed)));
|
delegate_->UpdateCopyOptionMode(GetCopyOptionModeValue(static_cast<int32_t>(CopyOptions::Distributed)));
|
||||||
delegate_->UpdateTextAutosizing(GetTextAutosizingValue(true));
|
delegate_->UpdateTextAutosizing(GetTextAutosizingValue(true));
|
||||||
|
delegate_->UpdateAllowFileAccess(GetFileAccessEnabledValue(isApiGteTwelve ? false : true));
|
||||||
if (GetMetaViewport()) {
|
if (GetMetaViewport()) {
|
||||||
delegate_->UpdateMetaViewport(GetMetaViewport().value());
|
delegate_->UpdateMetaViewport(GetMetaViewport().value());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user