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

Issue 2748103005: Don't focus the omnibox when a subframe navigates on NTP. (Closed)

Created:
3 years, 9 months ago by alexmos
Modified:
3 years, 9 months ago
Reviewers:
Devlin, nasko
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, site-isolation-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't focus the omnibox when a subframe navigates on NTP. This fixes a bug where an NTP replacement page from an extension was losing focus to the omnibox when a subframe on that page committed a navigation. So if the user was typing into an <input> on the NTP replacement page while a subframe navigated, the focus was disruptively shifted to the omnibox in the middle of typing. This matters only in OOPIF modes, as focusing of the omnibox was done in RenderFrameHostManager::CommitPending, which is only used for cross-process commits. BUG=700124 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Review-Url: https://codereview.chromium.org/2748103005 Cr-Commit-Position: refs/heads/master@{#457222} Committed: https://chromium.googlesource.com/chromium/src/+/5e8b5e6aebcb564897e311ae4f4397eed3555457

Patch Set 1 #

Total comments: 2

Patch Set 2 : Nasko's nit #

Total comments: 2

Patch Set 3 : Devlin's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -4 lines) Patch
M chrome/browser/extensions/extension_override_apitest.cc View 1 2 2 chunks +41 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 2 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
alexmos
Nasko, could you please take a look at this fix? It's short and hopefully straightforward.
3 years, 9 months ago (2017-03-15 16:48:15 UTC) #9
nasko
LGTM with a nit. https://codereview.chromium.org/2748103005/diff/1/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): https://codereview.chromium.org/2748103005/diff/1/chrome/browser/extensions/extension_override_apitest.cc#newcode212 chrome/browser/extensions/extension_override_apitest.cc:212: ui_test_utils::NavigateToURL(browser(), GURL("chrome://newtab/")); kChromeUINewTabURL
3 years, 9 months ago (2017-03-15 17:14:24 UTC) #12
alexmos
Thanks, Nasko. Devlin, could you please review the test for OWNERS? https://codereview.chromium.org/2748103005/diff/1/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): ...
3 years, 9 months ago (2017-03-15 17:22:06 UTC) #16
Devlin
lgtm https://codereview.chromium.org/2748103005/diff/20001/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): https://codereview.chromium.org/2748103005/diff/20001/chrome/browser/extensions/extension_override_apitest.cc#newcode211 chrome/browser/extensions/extension_override_apitest.cc:211: ExtensionTestMessageListener listener(false); optional: If we know the expected ...
3 years, 9 months ago (2017-03-15 18:32:29 UTC) #19
alexmos
Thanks! https://codereview.chromium.org/2748103005/diff/20001/chrome/browser/extensions/extension_override_apitest.cc File chrome/browser/extensions/extension_override_apitest.cc (right): https://codereview.chromium.org/2748103005/diff/20001/chrome/browser/extensions/extension_override_apitest.cc#newcode211 chrome/browser/extensions/extension_override_apitest.cc:211: ExtensionTestMessageListener listener(false); On 2017/03/15 18:32:29, Devlin wrote: > ...
3 years, 9 months ago (2017-03-15 19:57:42 UTC) #20
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/2748103005/40001
3 years, 9 months ago (2017-03-15 19:58:14 UTC) #23
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 21:54:23 UTC) #26
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/5e8b5e6aebcb564897e311ae4f43...

Powered by Google App Engine
This is Rietveld 408576698