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

Issue 886603009: Cleanup power save blockers after a RenderView crashes. (Closed)

Created:
5 years, 10 months ago by DaleCurtis
Modified:
5 years, 10 months ago
Reviewers:
Charlie Reis, nasko
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup power save blockers after a RenderView crashes. Looks like RenderFrameDeleted() wasn't called if a RenderView crashes, which results in the WebContents having some lingering power save blockers and media player entries. BUG=455943 TEST=new unittest. DCHECK() no longer fires. Committed: https://crrev.com/8fc7b4dd54bd2779ce339abc9e0829e98c04c347 Cr-Commit-Position: refs/heads/master@{#314934}

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 3

Patch Set 3 : Nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M content/browser/web_contents/web_contents_impl.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_unittest.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
DaleCurtis
5 years, 10 months ago (2015-02-03 21:56:15 UTC) #2
Charlie Reis
Hmm, it sounds like we should fix the fact that RenderFrameDeleted isn't being called. Nasko ...
5 years, 10 months ago (2015-02-03 22:12:29 UTC) #4
DaleCurtis
On 2015/02/03 22:12:29, Charlie Reis wrote: > Hmm, it sounds like we should fix the ...
5 years, 10 months ago (2015-02-03 23:13:55 UTC) #5
Charlie Reis
On 2015/02/03 23:13:55, DaleCurtis wrote: > On 2015/02/03 22:12:29, Charlie Reis wrote: > > Hmm, ...
5 years, 10 months ago (2015-02-03 23:32:41 UTC) #6
DaleCurtis
PTAL.
5 years, 10 months ago (2015-02-06 00:01:59 UTC) #7
Charlie Reis
Thanks for the test! LGTM with nit, and a note to Nasko below. https://codereview.chromium.org/886603009/diff/20001/content/browser/web_contents/web_contents_impl.cc File ...
5 years, 10 months ago (2015-02-06 00:08:21 UTC) #8
DaleCurtis
Thanks for review! https://codereview.chromium.org/886603009/diff/20001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/886603009/diff/20001/content/browser/web_contents/web_contents_impl.cc#newcode3706 content/browser/web_contents/web_contents_impl.cc:3706: // RenderFrameDeleted(). See http://crbug.com/455943 On 2015/02/06 ...
5 years, 10 months ago (2015-02-06 00:10:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886603009/40001
5 years, 10 months ago (2015-02-06 00:11:49 UTC) #12
nasko
Does the media stack handle this properly, if RenderFrameDeleted is properly dispatched? I assume I ...
5 years, 10 months ago (2015-02-06 00:59:49 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 10 months ago (2015-02-06 01:06:04 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8fc7b4dd54bd2779ce339abc9e0829e98c04c347 Cr-Commit-Position: refs/heads/master@{#314934}
5 years, 10 months ago (2015-02-06 01:07:33 UTC) #15
DaleCurtis
5 years, 10 months ago (2015-02-06 01:39:18 UTC) #16
Message was sent while issue was closed.
On 2015/02/06 00:59:49, nasko wrote:
> Does the media stack handle this properly, if RenderFrameDeleted is properly
> dispatched? I assume I can remove the code in WebContentsImpl once I fix the
> other bug, correct?

Yes, the code to clear the blockers is already there:

https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/we...

Powered by Google App Engine
This is Rietveld 408576698