Bug 130921

Summary: Web Inspector: console.warn is showing as error instead of warning
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ggaren, graouts, joepeck, mark.lam, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2014-03-28 17:16:23 PDT
I regressed this when I moved console to JavaScriptCore. We are accidentally reporting console.warn as MessageLevel::Error instead of MessageLevel::Warning.

Take this opportunity to add a test, and update the fronted to use our enums instead of raw strings.
Comment 1 Radar WebKit Bug Importer 2014-03-28 17:18:43 PDT
<rdar://problem/16463548>
Comment 2 Joseph Pecoraro 2014-03-28 17:19:05 PDT
Created attachment 228098 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2014-03-28 17:31:05 PDT
Comment on attachment 228098 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 228098

Committed r166439: <http://trac.webkit.org/changeset/166439>
Comment 4 WebKit Commit Bot 2014-03-28 17:31:07 PDT
All reviewed patches have been landed.  Closing bug.