Changeset 147618 in webkit


Ignore:
Timestamp:
Apr 4, 2013 3:52:08 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] WebSocket errors should be logged to console
https://bugs.webkit.org/show_bug.cgi?id=113842

Patch by Seokju Kwon <Seokju Kwon> on 2013-04-04
Reviewed by Jocelyn Turcotte.

Source/WebCore:

Pass the reason of a failure to SocketStreamError instance
and notify it via SocketStreamHandleClient::didFailSocketStream().

Test : http/tests/inspector/console-websocket-error.html

  • platform/network/qt/SocketStreamError.h:

(WebCore::SocketStreamError::SocketStreamError):

  • platform/network/qt/SocketStreamHandleQt.cpp:

(WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
(WebCore::SocketStreamHandlePrivate::socketErrorCallback):

LayoutTests:

  • platform/qt/TestExpectations:
  • platform/qt/http/tests/inspector/console-websocket-error-expected.txt: Added.
Location:
trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r147616 r147618  
     12013-04-04  Seokju Kwon  <seokju.kwon@gmail.com>
     2
     3        [Qt] WebSocket errors should be logged to console
     4        https://bugs.webkit.org/show_bug.cgi?id=113842
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        * platform/qt/TestExpectations:
     9        * platform/qt/http/tests/inspector/console-websocket-error-expected.txt: Added.
     10
    1112013-04-04  Ádám Kallai  <kadam@inf.u-szeged.hu>
    212
  • trunk/LayoutTests/platform/qt/TestExpectations

    r147616 r147618  
    20602060fast/writing-mode/vertical-baseline-alignment.html
    20612061fast/writing-mode/vertical-font-fallback.html
    2062 http/tests/inspector/console-websocket-error.html
    20632062svg/as-image/animated-svg-repaints-completely-in-hidpi.html
    20642063transitions/default-timing-function.html
  • trunk/Source/WebCore/ChangeLog

    r147615 r147618  
     12013-04-04  Seokju Kwon  <seokju.kwon@gmail.com>
     2
     3        [Qt] WebSocket errors should be logged to console
     4        https://bugs.webkit.org/show_bug.cgi?id=113842
     5
     6        Reviewed by Jocelyn Turcotte.
     7
     8        Pass the reason of a failure to SocketStreamError instance
     9        and notify it via SocketStreamHandleClient::didFailSocketStream().
     10
     11        Test : http/tests/inspector/console-websocket-error.html
     12
     13        * platform/network/qt/SocketStreamError.h:
     14        (WebCore::SocketStreamError::SocketStreamError):
     15        * platform/network/qt/SocketStreamHandleQt.cpp:
     16        (WebCore::SocketStreamHandlePrivate::SocketStreamHandlePrivate):
     17        (WebCore::SocketStreamHandlePrivate::socketErrorCallback):
     18
    1192013-04-04  Ed Bartosh  <bartosh@gmail.com>
    220
  • trunk/Source/WebCore/platform/network/qt/SocketStreamError.h

    r95901 r147618  
    11/*
    22 * Copyright (C) 2009 Google Inc.  All rights reserved.
     3 * Copyright (C) 2013 Seokju Kwon (seokju.kwon@gmail.com)
    34 *
    45 * Redistribution and use in source and binary forms, with or without
     
    4344        {
    4445        }
    45 
     46        SocketStreamError(int errorCode, const QString& description)
     47            : SocketStreamErrorBase(errorCode, String(), description)
     48        {
     49        }
    4650    };
    4751
  • trunk/Source/WebCore/platform/network/qt/SocketStreamHandleQt.cpp

    r121020 r147618  
    3636#include "Logging.h"
    3737#include "NotImplemented.h"
     38#include "SocketStreamError.h"
    3839#include "SocketStreamHandleClient.h"
    3940#include "SocketStreamHandlePrivate.h"
     
    168169        SocketStreamHandle* streamHandle = m_streamHandle;
    169170        m_streamHandle = 0;
     171
     172        streamHandle->client()->didFailSocketStream(streamHandle, SocketStreamError(error, m_socket->errorString()));
     173
    170174        // This following call deletes _this_. Nothing should be after it.
    171175        streamHandle->client()->didCloseSocketStream(streamHandle);
Note: See TracChangeset for help on using the changeset viewer.