New issue
Advanced search Search tips

Issue 822564 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 16
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Support to suspend/resume active tasks of blink in the content layer

Project Member Reported by gyuyoung...@chromium.org, Mar 16 2018

Issue description

There have been many platforms based on the content module, and they have been ported to embedded devices such as TV, digital signage, smartphone, speaker, etc. And one of the platforms is a WebRuntime. The WebRuntime needs to handle the status of web applications by themselves for some use cases. For example, we need to suspend a web application when it goes from foreground to background, receive a call or an emergency message, and so on. Besides, to use less battery is very important for embedded devices. If we can support this feature, IMHO, it will also help to save the battery resource in the content embedders like the WebRuntime platform.

FYI, WebKit has been supporting this feature
  -  https://trac.webkit.org/browser/webkit/trunk/Source/WebKit/UIProcess/WebPageProxy.h#L722
 
Status: Started (was: Untriaged)
Description: Show this description
Project Member

Comment 4 by bugdroid1@chromium.org, Apr 2 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/80143f5e5ce842efb959be6013768d330fa18e0b

commit 80143f5e5ce842efb959be6013768d330fa18e0b
Author: Gyuyoung Kim <gyuyoung.kim@lge.com>
Date: Mon Apr 02 02:40:25 2018

Support to suspend/resume active page tasks of blink in the content layer

This CL introduces new APIs to suspend/resume the active tasks on the page
of blink. Android webview, devtools, or other projects which use the content
module needs to be able to suspend current active tasks including active javascript,
active timers, defer loadings, and so on. This CL supports to suspend/resume through
the APIs when they want to pause current active tasks. This feature will help us to
save CPU resources, and so on. Besides WebKit2 has been supporting this APIs for
applications which uses WebKitWebView.

TEST: WebContentsImplBrowserTest.PausePageScheduledTasks

Bug:  822564 
Change-Id: Icec0390c2dffd676a6079dd9e148feb8a3e859e1
Reviewed-on: https://chromium-review.googlesource.com/952642
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung.kim@lge.com>
Cr-Commit-Position: refs/heads/master@{#547403}
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/browser/web_contents/web_contents_impl.cc
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/browser/web_contents/web_contents_impl.h
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/browser/web_contents/web_contents_impl_browsertest.cc
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/common/page_messages.h
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/public/browser/web_contents.h
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/renderer/render_view_impl.cc
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/renderer/render_view_impl.h
[add] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/content/test/data/pause_schedule_task.html
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/third_party/WebKit/Source/core/exported/WebViewImpl.cpp
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/third_party/WebKit/Source/core/exported/WebViewImpl.h
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/third_party/WebKit/Source/core/page/Page.h
[modify] https://crrev.com/80143f5e5ce842efb959be6013768d330fa18e0b/third_party/WebKit/public/web/WebView.h

Cc: gyuyoung...@lge.com
Cc: -gyuyoung...@lge.com
Owner: gyuyoung...@lge.com
Status: Fixed (was: Started)
I forgot to close this bug.

Sign in to add a comment