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

Issue 14272003: <webview>: Focusing <webview> should propagate to BrowserPlugin. (Closed)

Created:
7 years, 8 months ago by Fady Samuel
Modified:
7 years, 8 months ago
Reviewers:
miket_OOO, lazyboy
CC:
chromium-reviews, Aaron Boodman, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

<webview>: Focusing <webview> should propagate to BrowserPlugin. This patch does two things: 1. It gives <webview> a tabIndex if it doesn't already have one so that it can participate in tab order and keyboard focus. 2. When <webview> gets keyboard focus then we pass the focus to BrowserPlugin. When <webview> loses keyboard focus then BrowserPlugin loses focus. BUG=231633 Test=WebViewTest.Focus Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195294

Patch Set 1 #

Patch Set 2 : Removed unnecessary console.log #

Total comments: 4

Patch Set 3 : Added bug + addressed comments #

Patch Set 4 : Moved to web_view_interactive_browsertest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -0 lines) Patch
M chrome/browser/extensions/web_view_interactive_browsertest.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view.js View 1 2 1 chunk +17 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/focus/embedder.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/focus/embedder.js View 1 chunk +110 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/platform_apps/web_view/focus/guest.html View 1 chunk +44 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/focus/manifest.json View 1 2 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/platform_apps/web_view/focus/test.js View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Fady Samuel
7 years, 8 months ago (2013-04-15 21:36:44 UTC) #1
lazyboy
lgtm https://chromiumcodereview.appspot.com/14272003/diff/3001/chrome/renderer/resources/extensions/web_view.js File chrome/renderer/resources/extensions/web_view.js (right): https://chromiumcodereview.appspot.com/14272003/diff/3001/chrome/renderer/resources/extensions/web_view.js#newcode69 chrome/renderer/resources/extensions/web_view.js:69: this.node_.setAttribute('tabIndex', 0); This feels too hacky though, and ...
7 years, 8 months ago (2013-04-15 21:46:58 UTC) #2
miket_OOO
https://codereview.chromium.org/14272003/diff/3001/chrome/test/data/extensions/platform_apps/web_view/focus/manifest.json File chrome/test/data/extensions/platform_apps/web_view/focus/manifest.json (right): https://codereview.chromium.org/14272003/diff/3001/chrome/test/data/extensions/platform_apps/web_view/focus/manifest.json#newcode2 chrome/test/data/extensions/platform_apps/web_view/focus/manifest.json:2: "name": "Platform App Test: <webview> Focus", For this new ...
7 years, 8 months ago (2013-04-15 22:00:51 UTC) #3
Fady Samuel
Thanks, CQ'ing. https://codereview.chromium.org/14272003/diff/3001/chrome/renderer/resources/extensions/web_view.js File chrome/renderer/resources/extensions/web_view.js (right): https://codereview.chromium.org/14272003/diff/3001/chrome/renderer/resources/extensions/web_view.js#newcode69 chrome/renderer/resources/extensions/web_view.js:69: this.node_.setAttribute('tabIndex', 0); On 2013/04/15 21:46:58, lazyboy wrote: ...
7 years, 8 months ago (2013-04-15 22:15:28 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/14272003/3002
7 years, 8 months ago (2013-04-18 00:14:46 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=32789
7 years, 8 months ago (2013-04-18 03:34:50 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/14272003/3002
7 years, 8 months ago (2013-04-18 15:25:48 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_aura for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_aura&number=33073
7 years, 8 months ago (2013-04-18 17:23:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/14272003/32001
7 years, 8 months ago (2013-04-19 15:14:09 UTC) #9
commit-bot: I haz the power
Presubmit check for 14272003-32001 failed and returned exit status 1. INFO:root:Found 7 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-19 15:14:14 UTC) #10
miket_OOO
lgtm
7 years, 8 months ago (2013-04-19 16:56:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/14272003/32001
7 years, 8 months ago (2013-04-19 18:00:48 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-04-19 21:29:05 UTC) #13
Message was sent while issue was closed.
Change committed as 195294

Powered by Google App Engine
This is Rietveld 408576698