Changeset 66801 in webkit


Ignore:
Timestamp:
Sep 5, 2010 7:28:20 AM (14 years ago)
Author:
robert@webkit.org
Message:

2010-09-05 Robert Hogan <robert@webkit.org>

Reviewed by Antonio Gomes.

[Qt] utf8 encoding of console() messages

Unskip:
http/tests/security/xssAuditor/embed-tag-null-char.html
http/tests/security/xssAuditor/object-embed-tag-null-char.html

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

  • platform/qt/Skipped:

2010-09-05 Robert Hogan <robert@webkit.org>

Reviewed by Antonio Gomes.

[Qt] utf8 encoding of console() messages

http/tests/security/xssAuditor/embed-tag-null-char.html
http/tests/security/xssAuditor/object-embed-tag-null-char.html

both fail because ChromeClientQt::addMessageToConsole() is
casting String to QString rather than String::utf8().data()

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

  • WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::addMessageToConsole):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r66798 r66801  
     12010-09-05  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] utf8 encoding of console() messages
     6
     7        Unskip:
     8        http/tests/security/xssAuditor/embed-tag-null-char.html
     9        http/tests/security/xssAuditor/object-embed-tag-null-char.html
     10
     11        https://bugs.webkit.org/show_bug.cgi?id=45240
     12
     13        * platform/qt/Skipped:
     14
    1152010-09-04  Steve Block  <steveblock@google.com>
    216
  • trunk/LayoutTests/platform/qt/Skipped

    r66760 r66801  
    181181# missing origin header
    182182http/tests/security/originHeader/origin-header-for-empty.html
    183 
    184 # Possibly related to https://bugs.webkit.org/show_bug.cgi?id=35263
    185 # are we utf-encoding a string twice over?
    186 http/tests/security/xssAuditor/embed-tag-null-char.html
    187 http/tests/security/xssAuditor/object-embed-tag-null-char.html
    188183
    189184# Disabled HTTP subdirs for now, needs investigation.
  • trunk/WebKit/qt/ChangeLog

    r66794 r66801  
     12010-09-05  Robert Hogan  <robert@webkit.org>
     2
     3        Reviewed by Antonio Gomes.
     4
     5        [Qt] utf8 encoding of console() messages
     6
     7        http/tests/security/xssAuditor/embed-tag-null-char.html
     8        http/tests/security/xssAuditor/object-embed-tag-null-char.html
     9
     10        both fail because ChromeClientQt::addMessageToConsole() is
     11        casting String to QString rather than String::utf8().data()
     12
     13        https://bugs.webkit.org/show_bug.cgi?id=45240
     14
     15        * WebCoreSupport/ChromeClientQt.cpp:
     16        (WebCore::ChromeClientQt::addMessageToConsole):
     17
    1182010-09-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    219
  • trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp

    r66597 r66801  
    266266                                         unsigned int lineNumber, const String& sourceID)
    267267{
    268     QString x = message;
     268    QString x = QString(message.utf8().data());
    269269    QString y = sourceID;
    270270    m_webPage->javaScriptConsoleMessage(x, lineNumber, y);
Note: See TracChangeset for help on using the changeset viewer.