diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/login_prompt.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/login_prompt.cc b/chrome/browser/login_prompt.cc index 0061e9c..f8074e0 100644 --- a/chrome/browser/login_prompt.cc +++ b/chrome/browser/login_prompt.cc @@ -364,7 +364,10 @@ class LoginDialogTask : public Task { void Run() { TabContents* parent_contents = handler_->GetTabContentsForLogin(); if (!parent_contents) { - // The request was probably cancelled. + // The request may have been cancelled, or it may be for a renderer + // not hosted by a tab (e.g. an extension). Cancel just in case + // (cancelling twice is a no-op). + handler_->CancelAuth(); return; } |