Commit 865bd094 authored by palmer's avatar palmer Committed by Commit bot

Android: Disallow iframes from requesting to auto-log-in.

Other embedded content, such as plug-ins, is also prevented from incurring
auto-log-in requests.

BUG=334230
TEST=You still get the auto-log-in infobar when the requesting site is the
top-level frame, but never otherwise.

Review URL: https://codereview.chromium.org/131483010

Cr-Commit-Position: refs/heads/master@{#299928}
parent e6c54a4a
......@@ -642,8 +642,10 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted(
// See if the response contains the X-Auto-Login header. If so, this was
// a request for a login page, and the server is allowing the browser to
// suggest auto-login, if available.
AutoLoginPrompter::ShowInfoBarIfPossible(request, info->GetChildID(),
info->GetRouteID());
if (info->IsMainFrame()) {
AutoLoginPrompter::ShowInfoBarIfPossible(request, info->GetChildID(),
info->GetRouteID());
}
#endif
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment