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

Issue 1890343003: aw: Use functor callback for lifetime management (Closed)

Created:
4 years, 8 months ago by boliu
Modified:
4 years, 8 months ago
Reviewers:
Tobias Sargeant, Torne
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

aw: Use functor released callback for lifetime management This is a smaller CL for merging to m51 branch. Has similar caveats to r386831 so not restating them here. This CL does these things: * Expose the new callback from android on the callDrawGlFunction function. * Use the callback only as a strong reference to keep view CleanupReferences alive. The actual callback is a no-op for now. * AwGLFunctor will always hold a the NativeGLDelegate and ContainerView This is important in case destroy comes after detach. * AwContents.DestroyRunnable only holds the DestroyRunnable of AwGLFunctor instead of AwGLFunctor itself to prevent GC leaks. BUG=597167 TBR=tobiasjs@chromium.org Committed: https://crrev.com/c748c90944d0a21be20b4a0d8844e51bc828f659 Cr-Commit-Position: refs/heads/master@{#387926}

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : more clean up, maybe fix gc test? #

Patch Set 4 : set rtm to null? #

Patch Set 5 : fix UAF for realz #

Messages

Total messages: 23 (7 generated)
boliu
I wrote this, then realized that the attach/detach stuff is actually ok for now and ...
4 years, 8 months ago (2016-04-16 00:08:31 UTC) #2
boliu
tbr-ing tobiasjs, who has already looked over this
4 years, 8 months ago (2016-04-18 15:47:41 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1890343003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1890343003/80001
4 years, 8 months ago (2016-04-18 15:48:05 UTC) #7
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-18 16:29:55 UTC) #9
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/c748c90944d0a21be20b4a0d8844e51bc828f659 Cr-Commit-Position: refs/heads/master@{#387926}
4 years, 8 months ago (2016-04-18 16:31:13 UTC) #11
Torne
This seems to have broken running current ToT webview on N. Looks like this landed ...
4 years, 8 months ago (2016-04-19 14:03:01 UTC) #13
Torne
This seems to have broken running current ToT webview on N. Looks like this landed ...
4 years, 8 months ago (2016-04-19 14:03:04 UTC) #14
boliu
On 2016/04/19 14:03:04, Torne wrote: > This seems to have broken running current ToT webview ...
4 years, 8 months ago (2016-04-19 14:03:52 UTC) #15
Torne
On 2016/04/19 14:03:52, boliu wrote: > On 2016/04/19 14:03:04, Torne wrote: > > This seems ...
4 years, 8 months ago (2016-04-19 14:06:48 UTC) #16
boliu
On 2016/04/19 14:03:52, boliu wrote: > On 2016/04/19 14:03:04, Torne wrote: > > This seems ...
4 years, 8 months ago (2016-04-19 14:07:21 UTC) #17
Torne
On 2016/04/19 14:07:21, boliu wrote: > On 2016/04/19 14:03:52, boliu wrote: > > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 14:08:33 UTC) #18
boliu
On 2016/04/19 14:08:33, Torne wrote: > On 2016/04/19 14:07:21, boliu wrote: > > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 14:10:11 UTC) #19
boliu
On 2016/04/19 14:10:11, boliu wrote: > On 2016/04/19 14:08:33, Torne wrote: > > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 14:12:56 UTC) #20
Torne
On 2016/04/19 14:12:56, boliu wrote: > On 2016/04/19 14:10:11, boliu wrote: > > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 14:14:36 UTC) #21
boliu
On 2016/04/19 14:14:36, Torne wrote: > On 2016/04/19 14:12:56, boliu wrote: > > On 2016/04/19 ...
4 years, 8 months ago (2016-04-19 14:19:39 UTC) #22
Torne
4 years, 8 months ago (2016-04-20 11:57:38 UTC) #23
Message was sent while issue was closed.
On 2016/04/19 14:19:39, boliu wrote:
> On 2016/04/19 14:14:36, Torne wrote:
> > On 2016/04/19 14:12:56, boliu wrote:
> > > On 2016/04/19 14:10:11, boliu wrote:
> > > > On 2016/04/19 14:08:33, Torne wrote:
> > > > > On 2016/04/19 14:07:21, boliu wrote:
> > > > > > On 2016/04/19 14:03:52, boliu wrote:
> > > > > > > On 2016/04/19 14:03:04, Torne wrote:
> > > > > > > > This seems to have broken running current ToT webview on N.
Looks
> > like
> > > > > this
> > > > > > > > landed before the corresponding framework change? :/
> > > > > > > 
> > > > > > > Hmm, what framework change, all implementations in
> > > WebViewDelegateFactory
> > > > > are
> > > > > > > no-op or throws..?
> > > > > > 
> > > > > > Oh.. you are right. For now, you can get around that by setting
> > > > > > DrawGLFunctor.sSupportFunctorReleasedCallback false
> > > > > 
> > > > > I just reverted this change for now and now it's fine, but this
probably
> > > > wasn't
> > > > > a good idea to land as-is then :)
> > > > 
> > > > I'll revert the N bit before we roll frameworks jar downtream. The N
test
> > bot
> > > > didn't blow up because.. it doesn't run tests on the real webview. Meh
x2
> > > 
> > > http://codereview.chromium.org authentication expired, and I'm still home
> o_o.
> > I'll
> > > just fix downstream then :p
> > 
> > I don't think this has anything to do with rolling the framework jar. I
> haven't
> > done that, and it's still broken for me.
> 
> Right now the implementation says "this api is available on N, so go ahead and
> call it", but in fact, it's not available and just throws as you found not.
I'm
> waiting on changing the throw to an actual call waiting on a framework jar
roll,
> but that's waiting on my android CL getting a +2.

Ah, understood. Thanks :)

Powered by Google App Engine
This is Rietveld 408576698