From aa62afd7cd7d99a896f0e3b3ab4da77d03203d5c Mon Sep 17 00:00:00 2001 From: "creis@chromium.org" Date: Tue, 22 Apr 2014 19:22:46 +0000 Subject: Don't leave aborted URLs in the omnibox unless we're on the NTP. BUG=355537 TEST=See bug for repro steps. Review URL: https://codereview.chromium.org/245943002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@265325 0039d316-1c4b-4281-b951-d872f2087c98 --- content/public/browser/web_contents_delegate.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'content/public/browser/web_contents_delegate.h') diff --git a/content/public/browser/web_contents_delegate.h b/content/public/browser/web_contents_delegate.h index 0210314..d22d7c7 100644 --- a/content/public/browser/web_contents_delegate.h +++ b/content/public/browser/web_contents_delegate.h @@ -173,6 +173,11 @@ class CONTENT_EXPORT WebContentsDelegate { // Default is false. virtual bool ShouldSuppressDialogs(); + // Returns whether pending NavigationEntries for aborted browser-initiated + // navigations should be preserved (and thus returned from GetVisibleURL). + // Defaults to false. + virtual bool ShouldPreserveAbortedURLs(WebContents* source); + // Add a message to the console. Returning true indicates that the delegate // handled the message. If false is returned the default logging mechanism // will be used for the message. -- cgit v1.1