<?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>185915</bug_id>
          
          <creation_ts>2018-05-23 07:42:23 -0700</creation_ts>
          <short_desc>[GTK] Suspicious warning in http/tests/xmlhttprequest/connection-error-sync.html</short_desc>
          <delta_ts>2018-05-24 00:40:22 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alicia Boya García">aboya</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>calvaris</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1426571</commentid>
    <comment_count>0</comment_count>
    <who name="Alicia Boya García">aboya</who>
    <bug_when>2018-05-23 07:42:23 -0700</bug_when>
    <thetext>The following test has started failing on GTK in r230852:r230858:

http/tests/xmlhttprequest/connection-error-sync.html

This is probably a consequence of https://trac.webkit.org/changeset/230857/webkit

The additional log we&apos;re getting is this:

--- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/xmlhttprequest/connection-error-sync-expected.txt
+++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/xmlhttprequest/connection-error-sync-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: line 22: XMLHttpRequest cannot load http://127.0.0.1:8000/xmlhttprequest/resources/infinite-loop.php due to access control checks.
 Test the behavior of a sync XMLHttpRequest that encounters an infinite redirection loop.
 
 Exception NetworkError; code=19; number=undefined (0); message=&apos; A network error occurred.&apos;


Is that message expected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426841</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-05-23 20:26:13 -0700</bug_when>
    <thetext>Well it&apos;s not a regression, according to Youenn&apos;s changelog:

&quot;There is a small change of behavior in the way we return an error.
Instead of returning a platformBadResponseError, we are now returning the error as computed by NetworkLoadChecker.
This allows getting some more error logging in the JS console.&quot;

But as for whether the test is expecting its resource load to be blocked, I&apos;m going to say no, that looks like a bug. It&apos;s frustrating that we don&apos;t know why the load was blocked. The same error occurs on tons of websites, but &quot;access control checks&quot; is a very vague reason. I remember talking to Alexey about this last year, we need better logging.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1426842</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2018-05-23 20:27:09 -0700</bug_when>
    <thetext>Well, the load should be blocked, but because it is an infinite loop, not due to an access control check... right? Maybe that&apos;s an implementation detail leaking?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>