!34135 修改web fileAccess的默认值,从API 12开始

Merge pull request !34135 from jiangkuaixue/master
This commit is contained in:
openharmony_ci 2024-05-31 05:36:52 +00:00 committed by Gitee
commit e9813d0bb4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -2106,7 +2106,6 @@ void WebPattern::OnModifyDone()
static_cast<int32_t>(renderContext->GetBackgroundColor().value_or(Color::WHITE).GetValue())));
delegate_->UpdateJavaScriptEnabled(GetJsEnabledValue(true));
delegate_->UpdateBlockNetworkImage(!GetOnLineImageAccessEnabledValue(true));
delegate_->UpdateAllowFileAccess(GetFileAccessEnabledValue(true));
delegate_->UpdateLoadsImagesAutomatically(GetImageAccessEnabledValue(true));
delegate_->UpdateMixedContentMode(GetMixedModeValue(MixedModeContent::MIXED_CONTENT_NEVER_ALLOW));
delegate_->UpdateSupportZoom(GetZoomAccessEnabledValue(true));
@ -2153,6 +2152,7 @@ void WebPattern::OnModifyDone()
GetOverScrollModeValue(isApiGteTwelve ? OverScrollMode::ALWAYS : OverScrollMode::NEVER));
delegate_->UpdateCopyOptionMode(GetCopyOptionModeValue(static_cast<int32_t>(CopyOptions::Distributed)));
delegate_->UpdateTextAutosizing(GetTextAutosizingValue(true));
delegate_->UpdateAllowFileAccess(GetFileAccessEnabledValue(isApiGteTwelve ? false : true));
if (GetMetaViewport()) {
delegate_->UpdateMetaViewport(GetMetaViewport().value());
}