From: zhaosy Date: Wed, 28 May 2025 02:19:50 +0000 (+0800) Subject: Remove clear surface related code X-Git-Tag: accepted/tizen/unified/20250613.092059~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb332263892cc5045c615abdb7b9b43a2165ddfc;p=platform%2Fframework%2Fweb%2Fwrtjs.git Remove clear surface related code Clear surface is not supported from M108, so remove this unused code Refer to: https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/324851 Change-Id: I7482219ac19bffd329a57bcca3921bcbfb19e59c Signed-off-by: zhaosy --- diff --git a/wrt_app/common/web_application_delegate.ts b/wrt_app/common/web_application_delegate.ts index de83bbec..1d701ce8 100644 --- a/wrt_app/common/web_application_delegate.ts +++ b/wrt_app/common/web_application_delegate.ts @@ -27,7 +27,6 @@ export class WebApplicationDelegate { beforeQuit() { } canIgnoreSuspend() { return false; } clearCache() { } - clearSurface(webContents: any) { } focus(webContents: any) { } handleAppControlEvent(appControl: any) { return true; } handleProxyInfo(authInfo: any, callback: any) { return false; } diff --git a/wrt_app/src/tv/web_application_tv.ts b/wrt_app/src/tv/web_application_tv.ts index 52f80a61..83129550 100644 --- a/wrt_app/src/tv/web_application_tv.ts +++ b/wrt_app/src/tv/web_application_tv.ts @@ -215,10 +215,6 @@ Then you can get profile log from the initial loading.`; this.tv.cancelDialogs(this.webApplication.mainWindow.webContents); } - clearSurface(webContents: any) { - this.tv.clearSurface(webContents); - } - clearCache() { console.log('clearcache with low-memory'); this.webApplication.windowList.forEach((window) => { diff --git a/wrt_app/src/web_application.ts b/wrt_app/src/web_application.ts index f5449e08..f3ef235f 100644 --- a/wrt_app/src/web_application.ts +++ b/wrt_app/src/web_application.ts @@ -455,7 +455,6 @@ export class WebApplication { } private closeWindows() { - this.profileDelegate.clearSurface(this.mainWindow.webContents); this.windowList.slice().forEach((window) => { if (window != this.mainWindow) window.destroy();