[Webkit-unassigned] [Bug 32521] [Qt] LayoutTests/http/tests/xmlhttprequest/access-control-basic-denied-preflight-cache.html fails in manual test

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Dec 20 13:40:40 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=32521





--- Comment #7 from Robert Hogan <robert at roberthogan.net>  2009-12-20 13:40:40 PST ---
try {
        xhr.open("FOO",
"http://localhost:8000/xmlhttprequest/resources/access-control-basic-denied.cgi");
        xhr.send();
    } catch (e) {
        log("Got exception.");
    }

All DRTs, except Qt, return a simple 'PASS' for this test, but Qt throws an
exception and the result includes 'Got exception'.

The reason Qt throws an exception is the following code in  start() in
QtNetworkReplyHandler.cpp:

        case QNetworkAccessManager::UnknownOperation: {
            m_reply = 0;
            ResourceHandleClient* client = m_resourceHandle->client();
            if (client) {
                ResourceError error(url.host(), 400 /*bad request*/,
                                    url.toString(),
                                    QCoreApplication::translate("QWebPage",
"Bad HTTP request"));
                client->didFail(m_resourceHandle, error);
            }
            return;
        }
    }

The HTTP method used in the test ("FOO") causes the request to enter the above
clause and Qt to register an exception with client->didFail.

So Qt's behaviour is valid on its own terms and the test passes - Qt also
returns a 'PASS' in common with the other DRTs.

For this reason, propose to create platform-specific expected results for this
test and remove from the skipped list.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list