mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 06:50:40 +00:00
commit
ea66d03026
@ -322,7 +322,8 @@ void JsRootSceneSession::VerifyCallerToken(SessionInfo& info)
|
||||
{
|
||||
auto callerSession = SceneSessionManager::GetInstance().GetSceneSession(info.callerPersistentId_);
|
||||
if (callerSession != nullptr) {
|
||||
bool isCalledRightlyByCallerId = info.callerToken_ == callerSession->GetAbilityToken();
|
||||
bool isCalledRightlyByCallerId = (info.callerToken_ == callerSession->GetAbilityToken()) &&
|
||||
info.bundleName_ == "";
|
||||
TLOGI(WmsLogTag::WMS_SCB,
|
||||
"root isCalledRightlyByCallerId result is: %{public}d", isCalledRightlyByCallerId);
|
||||
info.isCalledRightlyByCallerId_ = isCalledRightlyByCallerId;
|
||||
|
@ -2288,7 +2288,8 @@ void JsSceneSession::PendingSessionActivation(SessionInfo& info)
|
||||
|
||||
auto callerSession = SceneSessionManager::GetInstance().GetSceneSession(info.callerPersistentId_);
|
||||
if (callerSession != nullptr) {
|
||||
bool isCalledRightlyByCallerId = info.callerToken_ == callerSession->GetAbilityToken();
|
||||
bool isCalledRightlyByCallerId = (info.callerToken_ == callerSession->GetAbilityToken()) &&
|
||||
info.bundleName_ == "";
|
||||
TLOGI(WmsLogTag::WMS_SCB,
|
||||
"isCalledRightlyByCallerId result is: %{public}d", isCalledRightlyByCallerId);
|
||||
info.isCalledRightlyByCallerId_ = isCalledRightlyByCallerId;
|
||||
|
Loading…
Reference in New Issue
Block a user