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

Issue 1214793002: Fix a memory leak in the app banner prompt layout tests. (Closed)

Created:
5 years, 6 months ago by dominickn
Modified:
5 years, 5 months ago
CC:
blink-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix a memory leak in the app banner prompt layout tests. Calling prompt() in a closure after the userChoice promise appears to create a circular reference and a memory leak. Lifting the event variable to global scope prevents another leak. BUG=504675 R=mlamouri@chromium.org

Patch Set 1 #

Patch Set 2 : Removing ScriptPromise as a member of BeforeInstallPromptEvent #

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -18 lines) Patch
M LayoutTests/LeakExpectations View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M LayoutTests/app_banner/app-banner-event-prompt.html View 1 3 chunks +13 lines, -9 lines 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/app_banner/BeforeInstallPromptEvent.cpp View 1 1 chunk +7 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (3 generated)
dominickn
5 years, 6 months ago (2015-06-26 18:44:33 UTC) #1
mlamouri (slow - plz ping)
Could you explain what created the circular dependency?
5 years, 5 months ago (2015-06-29 14:12:53 UTC) #2
dominickn
On 2015/06/29 14:12:53, Mounir Lamouri wrote: > Could you explain what created the circular dependency? ...
5 years, 5 months ago (2015-06-30 04:34:30 UTC) #3
mlamouri (slow - plz ping)
On 2015/06/30 at 04:34:30, dominickn wrote: > On 2015/06/29 14:12:53, Mounir Lamouri wrote: > > ...
5 years, 5 months ago (2015-06-30 10:06:56 UTC) #4
dominickn
On 2015/06/30 10:06:56, Mounir Lamouri wrote: > I'm a bit concerned by the changes in ...
5 years, 5 months ago (2015-07-02 01:34:21 UTC) #5
mlamouri (slow - plz ping)
On 2015/07/02 at 01:34:21, dominickn wrote: > On 2015/06/30 10:06:56, Mounir Lamouri wrote: > > ...
5 years, 5 months ago (2015-07-05 17:04:57 UTC) #6
dominickn
On 2015/07/05 17:04:57, Mounir Lamouri wrote: > On 2015/07/02 at 01:34:21, dominickn wrote: > > ...
5 years, 5 months ago (2015-07-06 09:12:19 UTC) #7
mlamouri (slow - plz ping)
+tasak@, do you have any idea how to safely have ScriptPromiseProperty work with CallbackPromiseAdapter? ie. ...
5 years, 5 months ago (2015-07-06 10:29:33 UTC) #9
dominickn
On 2015/07/06 10:29:33, Mounir Lamouri wrote: > +tasak@, do you have any idea how to ...
5 years, 5 months ago (2015-07-10 06:07:35 UTC) #10
tasak
+haraken
5 years, 5 months ago (2015-07-10 06:34:35 UTC) #12
haraken
+yhirano for ScriptPromise
5 years, 5 months ago (2015-07-10 06:40:10 UTC) #14
yhirano
I do not understand the spec, but perhaps what you want may be ScriptPromiseProperty. https://docs.google.com/document/d/1WphFrSM18-m6b4RFaBxwLL_zNlpOdCtEbuRclQ-S_ts
5 years, 5 months ago (2015-07-10 06:51:41 UTC) #15
yhirano
On 2015/07/10 06:51:41, yhirano wrote: > I do not understand the spec, but perhaps what ...
5 years, 5 months ago (2015-07-10 07:47:44 UTC) #16
dominickn
On 2015/07/10 06:51:41, yhirano wrote: > I do not understand the spec, but perhaps what ...
5 years, 5 months ago (2015-07-10 07:49:00 UTC) #17
dominickn
Just following up here - is there any more advice on using CallbackPromiseAdapter with ScriptPromiseProperty?
5 years, 5 months ago (2015-07-14 05:53:27 UTC) #18
yhirano
>#18 Just in case you didn't notice: As I said at #16 you can define ...
5 years, 5 months ago (2015-07-14 06:01:56 UTC) #19
yhirano
By the way, I'm planning WebCallbacks / CallbackPromiseAdapter refactoring. Their interface may change. http://code.google.com/p/chromium/issues/detail?id=493531
5 years, 5 months ago (2015-07-14 09:11:24 UTC) #20
dominickn
5 years, 5 months ago (2015-07-23 04:10:37 UTC) #21
Continuing this in a new CL, where I've refactored the implementation to use
ScriptPromiseProperty: https://codereview.chromium.org/1247283004/

Powered by Google App Engine
This is Rietveld 408576698