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

Issue 1210513002: ScriptContextSetTest should close the main frame before finishing the test (Closed)

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

Description

ScriptContextSetTest should close the main frame before finishing the test ScriptContextSetTest should close the main frame and the webview, and then collect garbage in Oilpan's heap before finishing the test. Otherwise, the resources retained by the main frame are reported as leaking on LSan builds. BUG=497658 Committed: https://crrev.com/1156707553435bdc1a7830186e38f0e5dc01f8f4 Cr-Commit-Position: refs/heads/master@{#336321}

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 8

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -9 lines) Patch
M extensions/extensions_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A extensions/renderer/scoped_web_frame.h View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A extensions/renderer/scoped_web_frame.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M extensions/renderer/script_context_set_unittest.cc View 1 2 3 2 chunks +5 lines, -9 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
haraken
PTAL This is blocking us from moving core/fetch/ to Oilpan (https://codereview.chromium.org/1124153003/).
5 years, 6 months ago (2015-06-24 11:45:34 UTC) #2
haraken
5 years, 6 months ago (2015-06-24 11:45:53 UTC) #4
not at google - send to devlin
lgtm but please see comment and if possible implement it. also please add a BUG ...
5 years, 6 months ago (2015-06-24 16:08:47 UTC) #5
haraken
Thanks for review! > also please add a BUG reference. > > https://codereview.chromium.org/1210513002/diff/1/extensions/renderer/script_context_set_unittest.cc > File ...
5 years, 6 months ago (2015-06-25 00:18:38 UTC) #6
not at google - send to devlin
Thanks. Only important thing would be to put them in separate .h and .cc files. ...
5 years, 6 months ago (2015-06-25 15:20:16 UTC) #7
haraken
Thanks for review! https://codereview.chromium.org/1210513002/diff/40001/extensions/renderer/scoped_web_frame.h File extensions/renderer/scoped_web_frame.h (right): https://codereview.chromium.org/1210513002/diff/40001/extensions/renderer/scoped_web_frame.h#newcode15 extensions/renderer/scoped_web_frame.h:15: class ScopedWebFrame { On 2015/06/25 15:20:16, ...
5 years, 6 months ago (2015-06-26 00:35:34 UTC) #8
haraken
Thanks for review!
5 years, 6 months ago (2015-06-26 00:35:38 UTC) #9
not at google - send to devlin
Looks like you didn't add the .cc file, but, lgtm in anticipation.
5 years, 6 months ago (2015-06-26 01:22:24 UTC) #10
haraken
On 2015/06/26 01:22:24, kalman wrote: > Looks like you didn't add the .cc file, but, ...
5 years, 6 months ago (2015-06-26 01:38:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1210513002/80001
5 years, 6 months ago (2015-06-26 01:39:07 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-26 02:03:19 UTC) #15
commit-bot: I haz the power
5 years, 6 months ago (2015-06-26 02:04:04 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1156707553435bdc1a7830186e38f0e5dc01f8f4
Cr-Commit-Position: refs/heads/master@{#336321}

Powered by Google App Engine
This is Rietveld 408576698