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

Issue 2711223003: [tab_capture] Change LOG(DFATAL) to LOG(WARNING) if fail to find new parents for offscreen tab. (Closed)

Created:
3 years, 10 months ago by zhaobin
Modified:
3 years, 9 months ago
Reviewers:
imcheng, miu
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, extensions-reviews_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[tab_capture] Change LOG(DFATAL) to LOG(WARNING) if fail to find new parents for offscreen tab. To implement reconnect() for 1-UA mode, we are going to leave offscreen tab open when render frame resets. Hit this LOG(DFATAL) if close browser window without terminating offscreen presentation. Offscreen tab has no root window. When tab starts, FindNewParent() will attach it to the root window of an active window. When the active window closes, OnWindowRemovingFromRootWindow() gets called and tries to FindNewParent(). If the active window is the only browser window, FindNewParent() cannot find any root window for offscreen tab and hit LOG(DFATAL). It seems ok for offscreen tab to have no root window when browser closes. Offscreen tab will gets destroyed later with extension page. BUG=688233 Review-Url: https://codereview.chromium.org/2711223003 Cr-Commit-Position: refs/heads/master@{#453352} Committed: https://chromium.googlesource.com/chromium/src/+/a9e252f533a932033cd64afb3948f8393e2ae1f0

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc View 1 chunk +2 lines, -2 lines 2 comments Download

Messages

Total messages: 11 (4 generated)
zhaobin
3 years, 10 months ago (2017-02-24 19:37:46 UTC) #2
miu
https://codereview.chromium.org/2711223003/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc File chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc (right): https://codereview.chromium.org/2711223003/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc#newcode107 chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc:107: root_window->AddChild(content_window_); Some work has been done in content::DelegatedFrameHost, where ...
3 years, 10 months ago (2017-02-24 22:51:55 UTC) #3
zhaobin
https://codereview.chromium.org/2711223003/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc File chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc (right): https://codereview.chromium.org/2711223003/diff/1/chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc#newcode107 chrome/browser/extensions/api/tab_capture/tab_capture_registry.cc:107: root_window->AddChild(content_window_); On 2017/02/24 22:51:55, miu wrote: > Some work ...
3 years, 10 months ago (2017-02-25 00:30:44 UTC) #4
miu
On 2017/02/25 00:30:44, zhaobin wrote: > browser_tests passed if comment out this LOC. But when ...
3 years, 10 months ago (2017-02-25 03:49:56 UTC) #5
imcheng
lgtm
3 years, 9 months ago (2017-02-27 19:56:21 UTC) #6
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/2711223003/1
3 years, 9 months ago (2017-02-27 21:13:37 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 22:06:14 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/a9e252f533a932033cd64afb3948...

Powered by Google App Engine
This is Rietveld 408576698