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

Issue 670653005: Fix Flash fullscreen focus regressions, and add interactive_ui_tests. (Closed)

Created:
6 years, 2 months ago by miu
Modified:
6 years, 2 months ago
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
Project:
chromium
Visibility:
Public.

Description

Fix Flash fullscreen focus regressions, and add interactive_ui_tests. This revisits focus handling logic relating to Flash fullscreen in WebContentsImpl. Before this change, calls to WebContentsImpl::Focus() would directly call RenderWidgetHostView::Focus(), but this prevented WebContentsView and its delegate from "shadowing" these focus changes in the browser UI. In other words, on Windows/Linux/CrOS, the focus state for widgets in the ui::views toolkit were not necessarily synchronized with the render widget's focus state (see bug for details). 90% of this change adds regression testing for everything described above. The tests run a simulated fullscreened Flash widget, and then invoke user keyboard and mouse actions on the browser UI to confirm both the Flash widget and ui::views are in agreement and respond correctly to focus changes; also, including focus store/restore when switching tabs. BUG=403641 TEST=Repro steps in bug 403641; and also that focus remains with the omnibox or tab contents when switching back and forth to other tabs. New automated interactive_ui_tests. Committed: https://crrev.com/9e14e49082f175ceccaa93a3329a8816b905ae34 Cr-Commit-Position: refs/heads/master@{#301269}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : Addressed ppapi/* nits. #

Total comments: 2

Patch Set 4 : Dedupe code in WebContentsViewMac. #

Total comments: 4

Patch Set 5 : Remove consts in ObjC code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+547 lines, -26 lines) Patch
A chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc View 1 chunk +348 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/interactive_ui_tests.isolate View 4 chunks +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 2 chunks +13 lines, -20 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 chunk +4 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_view_mac.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_mac.mm View 1 2 3 4 2 chunks +16 lines, -5 lines 0 comments Download
M ppapi/ppapi_sources.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
A ppapi/tests/test_flash_fullscreen_for_browser_ui.h View 1 2 1 chunk +56 lines, -0 lines 0 comments Download
A ppapi/tests/test_flash_fullscreen_for_browser_ui.cc View 1 2 1 chunk +91 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
miu
Please review. raymes: ppapi/* sky: content/browser/* yzshen1: chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc
6 years, 2 months ago (2014-10-22 04:01:34 UTC) #3
sky
LGTM - but please get an owner for the mac changes. I'm not familiar with ...
6 years, 2 months ago (2014-10-22 15:10:58 UTC) #4
yzshen1
chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc LGTM (But I don't know the actual logic well.)
6 years, 2 months ago (2014-10-22 16:54:12 UTC) #5
miu
On 2014/10/22 16:54:12, yzshen1 wrote: > chrome/browser/ui/fullscreen/flash_fullscreen_interactive_browsertest.cc LGTM > > (But I don't know the ...
6 years, 2 months ago (2014-10-22 19:33:29 UTC) #6
miu
avi: Could you take a look at the Mac changes? (Just this file: content/browser/web_contents/web_contents_view_mac.mm)
6 years, 2 months ago (2014-10-22 19:34:54 UTC) #8
yzshen1
Sounds good. Thanks! And I don't think I should stay as an OWNER for this ...
6 years, 2 months ago (2014-10-22 19:37:48 UTC) #9
raymes
lgtm on the ppapi/* changes with a couple of nits. https://codereview.chromium.org/670653005/diff/1/ppapi/tests/test_flash_fullscreen_for_browser_ui.cc File ppapi/tests/test_flash_fullscreen_for_browser_ui.cc (right): https://codereview.chromium.org/670653005/diff/1/ppapi/tests/test_flash_fullscreen_for_browser_ui.cc#newcode22 ...
6 years, 2 months ago (2014-10-24 00:51:08 UTC) #10
miu
https://codereview.chromium.org/670653005/diff/1/ppapi/tests/test_flash_fullscreen_for_browser_ui.cc File ppapi/tests/test_flash_fullscreen_for_browser_ui.cc (right): https://codereview.chromium.org/670653005/diff/1/ppapi/tests/test_flash_fullscreen_for_browser_ui.cc#newcode22 ppapi/tests/test_flash_fullscreen_for_browser_ui.cc:22: // browser UI testing needs requires it to remain ...
6 years, 2 months ago (2014-10-24 21:20:09 UTC) #11
Avi (use Gerrit)
https://codereview.chromium.org/670653005/diff/40001/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/670653005/diff/40001/content/browser/web_contents/web_contents_view_mac.mm#newcode186 content/browser/web_contents/web_contents_view_mac.mm:186: const gfx::NativeView native_view = rwhv ? rwhv->GetNativeView() : nil; ...
6 years, 2 months ago (2014-10-24 21:28:52 UTC) #12
miu
https://codereview.chromium.org/670653005/diff/40001/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/670653005/diff/40001/content/browser/web_contents/web_contents_view_mac.mm#newcode186 content/browser/web_contents/web_contents_view_mac.mm:186: const gfx::NativeView native_view = rwhv ? rwhv->GetNativeView() : nil; ...
6 years, 2 months ago (2014-10-24 21:42:41 UTC) #13
Avi (use Gerrit)
https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm#newcode171 content/browser/web_contents/web_contents_view_mac.mm:171: NSWindow* const window = [native_view window]; Why add |const| ...
6 years, 2 months ago (2014-10-24 23:04:05 UTC) #14
miu
https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm File content/browser/web_contents/web_contents_view_mac.mm (right): https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm#newcode171 content/browser/web_contents/web_contents_view_mac.mm:171: NSWindow* const window = [native_view window]; On 2014/10/24 23:04:05, ...
6 years, 2 months ago (2014-10-25 00:04:33 UTC) #15
Avi (use Gerrit)
On 2014/10/25 00:04:33, miu wrote: > https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm > File content/browser/web_contents/web_contents_view_mac.mm (right): > > https://codereview.chromium.org/670653005/diff/60001/content/browser/web_contents/web_contents_view_mac.mm#newcode171 > ...
6 years, 2 months ago (2014-10-25 00:58:18 UTC) #16
miu
On 2014/10/25 00:58:18, Avi wrote: > LGTM if you remove the extra consts. Fair enough. ...
6 years, 2 months ago (2014-10-25 01:39:47 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/670653005/80001
6 years, 2 months ago (2014-10-25 01:42:44 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years, 2 months ago (2014-10-25 02:39:16 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-25 02:39:53 UTC) #22
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/9e14e49082f175ceccaa93a3329a8816b905ae34
Cr-Commit-Position: refs/heads/master@{#301269}

Powered by Google App Engine
This is Rietveld 408576698