Changeset 141006 in webkit


Ignore:
Timestamp:
Jan 28, 2013 1:47:44 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[chromium] WebConsoleMessage is missing LevelDebug (chromium bug 172416)
https://bugs.webkit.org/show_bug.cgi?id=108004
http://code.google.com/p/chromium/issues/detail?id=172416

console.debug triggers a NOTREACHED() assertation in Chromium. This
is because WebCore::MessageLevel contains 5 levels, including debug,
where WebConsoleMessage::Level is missing a "debug" level. Add a
WebConsoleMessage::LevelDebug so that it can get passed up to the
renderer even if it doesn't make use of that now.

Requires another patch to chromium itself to fix chromium bug 172416
but this is a prerequisite.

Also add an enum compile time check to AssertMatchingEnums.cpp,

Patch by Kevin Day <kevinday@gmail.com> on 2013-01-28
Reviewed by Jochen Eisinger.

  • public/WebConsoleMessage.h:
  • src/AssertMatchingEnums.cpp:
  • src/WebFrameImpl.cpp:

(WebKit::WebFrameImpl::addMessageToConsole):

Location:
trunk/Source/WebKit/chromium
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r140994 r141006  
     12013-01-28  Kevin Day  <kevinday@gmail.com>
     2
     3        [chromium] WebConsoleMessage is missing LevelDebug (chromium bug 172416)
     4        https://bugs.webkit.org/show_bug.cgi?id=108004
     5        http://code.google.com/p/chromium/issues/detail?id=172416
     6
     7        console.debug triggers a NOTREACHED() assertation in Chromium. This
     8        is because WebCore::MessageLevel contains 5 levels, including debug,
     9        where WebConsoleMessage::Level is missing a "debug" level. Add a
     10        WebConsoleMessage::LevelDebug so that it can get passed up to the
     11        renderer even if it doesn't make use of that now.
     12
     13        Requires another patch to chromium itself to fix chromium bug 172416
     14        but this is a prerequisite.
     15
     16        Also add an enum compile time check to AssertMatchingEnums.cpp,
     17
     18        Reviewed by Jochen Eisinger.
     19
     20        * public/WebConsoleMessage.h:
     21        * src/AssertMatchingEnums.cpp:
     22        * src/WebFrameImpl.cpp:
     23        (WebKit::WebFrameImpl::addMessageToConsole):
     24
    1252013-01-28  Xianzhu Wang  <wangxianzhu@chromium.org>
    226
  • trunk/Source/WebKit/chromium/public/WebConsoleMessage.h

    r140621 r141006  
    4141        LevelLog,
    4242        LevelWarning,
    43         LevelError
     43        LevelError,
     44        LevelDebug
    4445    };
    4546
  • trunk/Source/WebKit/chromium/src/AssertMatchingEnums.cpp

    r140974 r141006  
    117117#include "WebView.h"
    118118#include <public/WebClipboard.h>
     119#include <public/WebConsoleMessage.h>
    119120#include <public/WebFileSystem.h>
    120121#include <public/WebFilterOperation.h>
     
    635636COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityHigh, ResourceLoadPriorityHigh);
    636637COMPILE_ASSERT_MATCHING_ENUM(WebURLRequest::PriorityVeryHigh, ResourceLoadPriorityVeryHigh);
     638
     639COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelTip, TipMessageLevel);
     640COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelLog, LogMessageLevel);
     641COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelWarning, WarningMessageLevel);
     642COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelError, ErrorMessageLevel);
     643COMPILE_ASSERT_MATCHING_ENUM(WebConsoleMessage::LevelDebug, DebugMessageLevel);
  • trunk/Source/WebKit/chromium/src/WebFrameImpl.cpp

    r140586 r141006  
    838838        webCoreMessageLevel = ErrorMessageLevel;
    839839        break;
     840    case WebConsoleMessage::LevelDebug:
     841        webCoreMessageLevel = DebugMessageLevel;
     842        break;
    840843    default:
    841844        ASSERT_NOT_REACHED();
Note: See TracChangeset for help on using the changeset viewer.