Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Issue 2586193002: Revert of Fix webview preloading in zygote. (Closed)

Created:
4 years ago by Tobias Sargeant
Modified:
4 years ago
CC:
chromium-reviews, android-webview-reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Fix webview preloading in zygote. (patchset #1 id:1 of https://codereview.chromium.org/2583913002/ ) Reason for revert: Realised after the fact that we can't set the process type because the zygote may spawn renderers for Chrome. Original issue's description: > Fix webview preloading in zygote. > > We weren't setting the process type, which is fetched via JNI during > JNI_OnLoad. Set it by constructing the LibraryLoader singleton, but > don't actually call any methods of LibraryLoader, which need to be on > the right thread, have a Context, have a CommandLine initialised, and > other setup we can't (or at least, don't currently) do in the zygote. > > BUG= > > Committed: https://crrev.com/db6be0f685e774c56eef7d03a8ab19736023d8bb > Cr-Commit-Position: refs/heads/master@{#439213} TBR=rsesek@chromium.org,sgurun@chromium.org,torne@chromium.org # Not skipping CQ checks because original CL landed more than 1 days ago. BUG= Committed: https://crrev.com/8c4ee96c29f43c4169d3427961e6755fa945d97b Cr-Commit-Position: refs/heads/master@{#439446}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -5 lines) Patch
M android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Tobias Sargeant
Created Revert of Fix webview preloading in zygote.
4 years ago (2016-12-19 09:40:45 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2586193002/1
4 years ago (2016-12-19 09:41:01 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 10:13:33 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/8c4ee96c29f43c4169d3427961e6755fa945d97b Cr-Commit-Position: refs/heads/master@{#439446}
4 years ago (2016-12-19 10:15:46 UTC) #8
Robert Sesek
What are the implications of having a WebView renderer preloaded as a Chrome one, and ...
4 years ago (2016-12-19 15:56:08 UTC) #9
Tobias Sargeant
On 2016/12/19 15:56:08, Robert Sesek wrote: > What are the implications of having a WebView ...
4 years ago (2016-12-19 18:41:19 UTC) #10
Robert Sesek
4 years ago (2016-12-19 21:22:22 UTC) #11
Message was sent while issue was closed.
On 2016/12/19 18:41:19, Tobias Sargeant wrote:
> On 2016/12/19 15:56:08, Robert Sesek wrote:
> > What are the implications of having a WebView renderer preloaded as a Chrome
> > one, and vice versa? The zygote could end up forking either type, depending
on
> > what the current WebView provider is.
> 
> At the end of OnJNIOnLoadInit we call content::SetContentMainDelegate with an
> appropriate object. So for Monochrome we need to choose correctly what
> MainDelegate to instantiate and set based upon who the caller is. Currently
it's
> based on what that LibraryProcesType is. Torne's CL probably broke starting
> chrome from monochrome. Is there any way to know whether we're going to need a
> chrome or a webview renderer?
> 
> Could we rely on the calling package being the same as the package the zygote
> has loaded to determine this? And is it possible to get that information?

This is called in the zygote to preload the .so for all child processes. That
means it could end up forking WebView children or, if Monochrome is the current
provider, Chrome children.

Powered by Google App Engine
This is Rietveld 408576698