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

Issue 569153005: Relanding this with fixes for the unit test failures which required addition of some more plumbing … (Closed)

Created:
6 years, 3 months ago by ananta
Modified:
6 years, 3 months ago
Reviewers:
sky
CC:
chromium-reviews, darin-cc_chromium.org, jam, tfarina, mkwst+moarreviews-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Relanding https://codereview.chromium.org/564553002/ with fixes for the unit test failures which required addition of some more plumbing in the form of dummy IO and file blocking threads. The IO thread is needed to ensure that the RenderWidgetHelper instances get freed corectly. When we switch tabs in chrome, the tab being switched away from gets hidden/shown/hidden. This occurs in the NativeViewHostAura::NativeViewDetaching code path where we first remove the clipping window which is the intermediate parent of the web contents view. The clipping window is hidden which causes the RWHVA::Hide function to get called which initiates the hiding sequence. Then the web contents view is reparented to the main view which is still visible. Now the RWHVA::Show function is called which initiates the show sequence. Eventually the main view is hidden, which then initiates the hide sequence. Addressed this with the following changes. 1. WebView::AttachWebContents and WebView::DetachWebContents now show and hide the webcontents native view. The WebContents is shown and hidden as before in WebContentsNativeViewAura::OnWindowVisibilityChanged. 2. Removed the WebContentsNativeViewAura::OnWindowParentChanged function. This function was present to show and hide the webcontents if the window was visible. This should not be needed with the change in #1 above. 3. Added a new file webview_unittest.cc. This contains the unittest WebViewUnitTest.TestWebViewAttachDetachWebContents This is run as part of unit_tests.exe. BUG=412989 R=sky Committed: https://crrev.com/c3c0d91ae658c660f01705cd691b783e7f10d3f4 Cr-Commit-Position: refs/heads/master@{#295151}

Patch Set 1 #

Patch Set 2 : Removed include #

Patch Set 3 : More leak fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -15 lines) Patch
M chrome/chrome_tests_unit.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.h View 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M ui/views/controls/webview/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/views/controls/webview/webview.cc View 3 chunks +12 lines, -0 lines 0 comments Download
M ui/views/controls/webview/webview.gyp View 1 chunk +1 line, -0 lines 0 comments Download
A ui/views/controls/webview/webview_unittest.cc View 1 2 1 chunk +177 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
ananta
6 years, 3 months ago (2014-09-16 15:01:34 UTC) #1
sky
Can you make the reupload with the original patch so I can easily see what ...
6 years, 3 months ago (2014-09-16 16:39:15 UTC) #2
ananta
On 2014/09/16 16:39:15, sky wrote: > Can you make the reupload with the original patch ...
6 years, 3 months ago (2014-09-16 17:32:49 UTC) #3
sky
LGTM
6 years, 3 months ago (2014-09-16 19:47:19 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/569153005/40001
6 years, 3 months ago (2014-09-16 21:07:11 UTC) #6
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 6d810427cfaa0dd85727df45d7cd9aac6e1e5cca
6 years, 3 months ago (2014-09-16 21:49:07 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 21:49:58 UTC) #8
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c3c0d91ae658c660f01705cd691b783e7f10d3f4
Cr-Commit-Position: refs/heads/master@{#295151}

Powered by Google App Engine
This is Rietveld 408576698