summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 18:41:31 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-19 18:41:31 +0000
commit2e39d2ebf7e388595bd7fe17d99e30e8a35a43fc (patch)
tree88d7dc914fed1e9303b05a5bc4f2a454c066872f /chrome/test
parent1933eb200c4bb16e4df535d779c98561f85c1e25 (diff)
downloadchromium_src-2e39d2ebf7e388595bd7fe17d99e30e8a35a43fc.zip
chromium_src-2e39d2ebf7e388595bd7fe17d99e30e8a35a43fc.tar.gz
chromium_src-2e39d2ebf7e388595bd7fe17d99e30e8a35a43fc.tar.bz2
Send over the HTTP status code in the ViewHostMsg_FrameNavigate message coming in from the renderer.
A failed HTTP navigation like a 404 response to a request is followed by two responses. The first one which is associated with the failed response. This does not send over any information about the failure to the browser and thus appears as a normal navigation.The second response is for the actual 404 page being loaded. For network errors the browser does get notified via RenderView::DidFailProvisionalLoadWithError. However due to a prototype mismatch the corresponding function in WebContents is never invoked. Added a new automation message AutomationMsg_NavigationFailed, which carries information about failed navigations to automation clients.The changes to the navigation controller include sending over the http status code and the URL to observers. The ExternalTabContainer also subscribes to the FAIL_PROVISIONAL_LOAD_WITH_ERROR notification, so it can inform clients about errors. We also ignore the next NAV_ENTRY_COMMITTED notification after an error due to the reasons mentioned above. Review URL: http://codereview.chromium.org/21495 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/automation/automation_messages_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h
index b2745b1..d5a244b 100644
--- a/chrome/test/automation/automation_messages_internal.h
+++ b/chrome/test/automation/automation_messages_internal.h
@@ -575,6 +575,15 @@ IPC_BEGIN_MESSAGES(Automation)
// None expected
IPC_MESSAGE_ROUTED2(AutomationMsg_DidNavigate, int, int)
+ // This message is an outgoing message from Chrome to an external host.
+ // It is a notification that a navigation failed
+ // Request:
+ // -int : The status code.
+ // -GURL: The URL we failed to navigate to.
+ // Response:
+ // None expected
+ IPC_MESSAGE_ROUTED2(AutomationMsg_NavigationFailed, int, GURL)
+
// This message requests the different security states of the page displayed
// in the specified tab.
// Request: