<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>8291</bug_id>
          
          <creation_ts>2006-04-10 01:47:25 -0700</creation_ts>
          <short_desc>XMLHttpRequest needs to be extended before it can provide an alternative interface to the browser&apos;s dialog for HTTP auth</short_desc>
          <delta_ts>2022-07-06 13:48:19 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>XML</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>10489</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Adam Ratcliffe">adam</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>bugs-webkit</cc>
    
    <cc>gavin.sharp</cc>
    
    <cc>ian</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38861</commentid>
    <comment_count>0</comment_count>
    <who name="Adam Ratcliffe">adam</who>
    <bug_when>2006-04-10 01:47:25 -0700</bug_when>
    <thetext>A limitation of XHR is that it&apos;s not possible to control whether the browser&apos;s HTTP auth dialog is shown when invalid credentials are sent with the XHR request. This limits its usefulness in providing an alternative interface to the browser&apos;s dialog for HTTP auth.

This issue has been discussed in the Mozilla community and alternatives suggested but so far not implemented, see:

https://bugzilla.mozilla.org/show_bug.cgi?id=282547
https://bugzilla.mozilla.org/show_bug.cgi?id=221943

A simple solution would be for the open() method to accept a callback for handling an authentication failure.  If open() was called without a reference to a callback function, or the callback function returned FALSE the HTTP auth dialog could be displayed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38863</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-04-10 02:42:34 -0700</bug_when>
    <thetext>Additionally, I think that our current implementation is inconsistent and/or broken (only shows the dialog for async requests, but doesn&apos;t seem to actually use the typed in credentials).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45239</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2006-06-10 05:21:54 -0700</bug_when>
    <thetext>(In reply to comment #1)
&gt; Additionally, I think that our current implementation is inconsistent and/or
&gt; broken (only shows the dialog for async requests,

This is bug 8342.

&gt; but doesn&apos;t seem to actually use the typed in credentials).

Looks like an NSURLConnection bug, rdar://4581439. It is probably possible to work around it in WebKit (by removing credentials from the URL passed to Foundation and handling them manually) , but I&apos;m not sure if it&apos;s worth it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1881091</commentid>
    <comment_count>3</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-06 13:48:19 -0700</bug_when>
    <thetext>(In reply to Alexey Proskuryakov from comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Additionally, I think that our current implementation is inconsistent and/or
&gt; &gt; broken (only shows the dialog for async requests,
&gt; 
&gt; This is bug 8342.
&gt; 
&gt; &gt; but doesn&apos;t seem to actually use the typed in credentials).
&gt; 
&gt; Looks like an NSURLConnection bug, rdar://4581439. It is probably possible
&gt; to work around it in WebKit (by removing credentials from the URL passed to
&gt; Foundation and handling them manually) , but I&apos;m not sure if it&apos;s worth it.

The NSURLConnection bug was fixed in OS X 10.5.3 (and newer)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>