Support to suspend/resume active tasks of blink in the content layer |
|||||
Issue descriptionThere 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
,
Mar 16 2018
This issue work in progress - https://chromium-review.googlesource.com/c/chromium/src/+/952642 And I sent a mail to embedder-dev@chromium.org - https://groups.google.com/a/chromium.org/forum/#!topic/embedder-dev/KwFbPrfMJ64
,
Mar 16 2018
,
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
,
Apr 30 2018
I've fixed the flaky test result issue on these CLs. - https://chromium-review.googlesource.com/c/chromium/src/+/1011744 - https://chromium-review.googlesource.com/c/chromium/src/+/1031790
,
May 4 2018
,
Aug 17
,
Oct 16
I forgot to close this bug. |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by gyuyoung...@chromium.org
, Mar 16 2018