Status: Unconfirmed
Owner: [email protected]
Labels: Type-Bug Pri-2 OS-All Area-Misc

New issue 5497 by [email protected]:  
document.execCommand("ClearAuthenticationCache") not supported
http://code.google.com/p/chromium/issues/detail?id=5497

No facility exists in Javascript to logout from a page protected by HTTP
authentication. IE7 provides ClearAuthenticationCache.

The problem is described in this thread for the Mozilla web browser:
See https://bugzilla.mozilla.org/show_bug.cgi?id=287957

There is a workable workaround for Mozilla, but I don't know of one for
Chrome or Safari.

Chrome Version       : 1.0.154.36

Other browsers tested:
   Add OK or FAIL after other browsers where you have tested this issue:
      Safari 3: FAIL
     Firefox 3: FAIL
          IE 7: PASS

What steps will reproduce the problem?

Create the following web page, and protect it using HTTP authentication, so
that a username and password is required.

<HTML>
<HEAD>
<script language="javascript" type="text/javascript">

function logmeout()
{
       document.execCommand("ClearAuthenticationCache");
}

</script>

</HEAD>
<BODY>
<button onclick="logmeout()" name="Exit">letmeout</button>
</BODY>
</HTML>

In Apache config, I'm using something like:
   AuthName "protected area"
   AuthType Basic
   require valid-user
etc.

To test:
   Load the page.
   Press the logout button.
   Press reload.

What is the expected result?
   Chrome should re-prompt for username and password.


What happens instead?
   Chrome remembers username and password. Only way to clear it is to close
the browser.





--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to