From: liwei90727 Date: Tue, 10 Oct 2023 09:44:34 +0000 (+0800) Subject: Move last window to top when original window close X-Git-Tag: submit/tizen/20231013.160023^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62a4a601c2c05a1e4845d0c87bcf540a58d112ee;p=platform%2Fframework%2Fweb%2Fwrtjs.git Move last window to top when original window close App call window.open() to create more window, we will show last window, but if we call show(), visibility_status_ is true, then WRTNativeWindow:Show() will return directly, so use MoveTop() instead, then app focus will be set again, it's necessary in Aura window. Native Side: https://review.tizen.org/gerrit/299800/ Change-Id: I2f9dac220beadd501e895f65ba6cae36c956ccca Signed-off-by: liwei90727 --- diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 54e4aa35..2d1b72c6 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -72,7 +72,7 @@ export class WebApplication { this.windowList.splice(index, 1); if (!this.inQuit && index === this.windowList.length && this.windowList.length > 0) { let lastWindow = this.windowList[this.windowList.length - 1]; - lastWindow.show(); + lastWindow.moveTop(); this.profileDelegate.focus(lastWindow.webContents); } });