From 715718671e3494ae4c2e2b834f564547174f8491 Mon Sep 17 00:00:00 2001 From: liwei Date: Thu, 24 Jun 2021 18:07:43 +0800 Subject: [PATCH] [Tizen6.5 Migration]Skip logic of check firstrender in resume Resume() is invoked after window show, and window show is called in "ready-to-show", in "ready-to-show" event, firstrender has been set to true, so check firstrender logic can be skipped in resume. Reference Patch: https://review.tizen.org/gerrit/260240/ Change-Id: If8be2926596965e75fe2324a87f4a2ccd0de084f Signed-off-by: liwei --- wrt_app/src/web_application.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index 84be283..8a39aaa 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -34,7 +34,6 @@ export class WebApplication { backgroundSupport: boolean = wrt.getBackgroundSupport(); debugPort: number = 0; - firstRendered: boolean = false; contentSrc: string = ''; loadFinished: boolean = false; pendingCallbacks: Map = new Map(); @@ -184,7 +183,6 @@ export class WebApplication { if (this.showTimer) clearTimeout(this.showTimer); wrt.hideSplashScreen(0); - this.firstRendered = true; if (this.profileDelegate.isPreloading()) return; this.show(); @@ -307,10 +305,6 @@ export class WebApplication { this.suspended = false; addonManager.emit('lcResume', this.mainWindow.id); - if (!this.firstRendered) { - console.log('WebApplication : resume firstRendered is false'); - return; - } if (!this.backgroundRunnable()) this.windowList.forEach((window) => window.setEnabled(true)); this.windowList[this.windowList.length - 1].show(); -- 2.7.4