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

Issue 865313002: Prevent a possible crash on omnibox navigation. (Closed)

Created:
5 years, 11 months ago by Peter Kasting
Modified:
5 years, 11 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent a possible crash on omnibox navigation. If the user enters a word that triggers the alternate nav infobar (i.e. is a search by default but also happens to be an intranet hostname), and the omnibox navigation synchronously triggers the extension system to navigate a background page, the background page navigation could be mistaken for the omnibox navigation, leading to a crash when trying to show the infobar. This could also goof up shortcut backend statistics, in theory, if the background page navigation succeeded but the omnibox navigation did not. This CL also adds a different CHECK to verify that the navigations that we do pay attention to are the ones we want. I'll convert this to a DCHECK in a couple of weeks if it doesn't turn up anything in the field. BUG=363105 TEST=none Committed: https://crrev.com/8215378f588fa67251c277e326437188efda1dcc Cr-Commit-Position: refs/heads/master@{#312950}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Also check for failed main frame loads #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -16 lines) Patch
M chrome/browser/ui/omnibox/omnibox_navigation_observer.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/omnibox/omnibox_navigation_observer.cc View 1 3 chunks +40 lines, -16 lines 1 comment Download

Messages

Total messages: 17 (5 generated)
Peter Kasting
5 years, 11 months ago (2015-01-22 19:45:56 UTC) #2
Vitaly Buka (NO REVIEWS)
lgtm either way https://codereview.chromium.org/865313002/diff/1/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc File chrome/browser/ui/omnibox/omnibox_navigation_observer.cc (right): https://codereview.chromium.org/865313002/diff/1/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc#newcode98 chrome/browser/ui/omnibox/omnibox_navigation_observer.cc:98: if (!InfoBarService::FromWebContents(web_contents)) Using InfoBarservice for unwanted ...
5 years, 11 months ago (2015-01-22 21:59:09 UTC) #3
Peter Kasting
https://codereview.chromium.org/865313002/diff/1/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc File chrome/browser/ui/omnibox/omnibox_navigation_observer.cc (right): https://codereview.chromium.org/865313002/diff/1/chrome/browser/ui/omnibox/omnibox_navigation_observer.cc#newcode98 chrome/browser/ui/omnibox/omnibox_navigation_observer.cc:98: if (!InfoBarService::FromWebContents(web_contents)) On 2015/01/22 21:59:09, Vitaly Buka wrote: > ...
5 years, 11 months ago (2015-01-22 22:02:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865313002/1
5 years, 11 months ago (2015-01-22 22:03:31 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/17330) Try jobs failed on following ...
5 years, 11 months ago (2015-01-22 23:16:05 UTC) #8
Peter Kasting
Charlie, can you glance quickly at this patch? I primarily want to be sure that ...
5 years, 11 months ago (2015-01-23 02:15:12 UTC) #10
Charlie Reis
On 2015/01/23 02:15:12, Peter Kasting wrote: > Charlie, can you glance quickly at this patch? ...
5 years, 11 months ago (2015-01-23 06:34:28 UTC) #11
Peter Kasting
On 2015/01/23 06:34:28, Charlie Reis (slow until 1-29) wrote: > On 2015/01/23 02:15:12, Peter Kasting ...
5 years, 11 months ago (2015-01-23 07:14:16 UTC) #12
Peter Kasting
On 2015/01/23 07:14:16, Peter Kasting wrote: > So, in this case, if the user hits ...
5 years, 11 months ago (2015-01-23 21:41:50 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/865313002/20001
5 years, 11 months ago (2015-01-23 21:42:39 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 11 months ago (2015-01-23 22:36:38 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 22:37:41 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/8215378f588fa67251c277e326437188efda1dcc
Cr-Commit-Position: refs/heads/master@{#312950}

Powered by Google App Engine
This is Rietveld 408576698