Bug 126765

Summary: Web Inspector: Exception in WebInspector.Color trying to concat a function
Product: WebKit Reporter: Timothy Hatcher <timothy>
Component: Web InspectorAssignee: Timothy Hatcher <timothy>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, graouts, joepeck, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Timothy Hatcher 2014-01-10 10:57:19 PST
Viewing source with the token "constructor" will cause an exception in WebInspector.Color because ("constructor" in WebInspector.Color.Nicknames) will be true.
Comment 1 Radar WebKit Bug Importer 2014-01-10 10:58:14 PST
<rdar://problem/15793773>
Comment 2 Timothy Hatcher 2014-01-10 11:00:01 PST
Created attachment 220863 [details]
Patch
Comment 3 Joseph Pecoraro 2014-01-10 11:10:14 PST
Comment on attachment 220863 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=220863&action=review

r=me

> Source/WebInspectorUI/ChangeLog:10
> +        (WebInspector.Color.fromString): Check hasOwnPrperty before using the nickname color array.

Typo: hasOwnPrperty
Comment 4 WebKit Commit Bot 2014-01-10 14:02:13 PST
Comment on attachment 220863 [details]
Patch

Clearing flags on attachment: 220863

Committed r161674: <http://trac.webkit.org/changeset/161674>
Comment 5 WebKit Commit Bot 2014-01-10 14:02:16 PST
All reviewed patches have been landed.  Closing bug.