Skip to content

Commit

Permalink
fix(core): fix LoadUntrustedContent crash
Browse files Browse the repository at this point in the history
(cherry picked from commit 5060c9d)
  • Loading branch information
churchill-zhang authored and zoomchan-cxj committed Jan 18, 2022
1 parent 31739fb commit 88fa2cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion android/sdk/gradle.properties
Expand Up @@ -87,7 +87,7 @@ INCLUDE_ABI_X86_64=false
# by the way, if set to 'auto'(default), it will be automatic selection of
# v8 component directory based on the current build type.
#
V8_COMPONENT=auto
V8_COMPONENT=third_party/v8/latest/official-release

#
# Whether to hide Hippy library symbols
Expand Down
1 change: 1 addition & 0 deletions core/src/modules/contextify_module.cc
Expand Up @@ -131,6 +131,7 @@ void ContextifyModule::LoadUntrustedContent(const CallbackInfo& info) {
size_t len = StringViewUtils::GetLength(uri);
file_name = StringViewUtils::SubStr(uri, pos + 1, len);
} else {
cur_dir = "";
file_name = uri;
}

Expand Down

0 comments on commit 88fa2cd

Please sign in to comment.