Bug 106770 - Web Inspector: [Styles] Color names parsed inside "background-image" values
Summary: Web Inspector: [Styles] Color names parsed inside "background-image" values
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-14 02:27 PST by Alexander Pavlov (apavlov)
Modified: 2013-01-14 04:38 PST (History)
8 users (show)

See Also:


Attachments
Patch (1.80 KB, patch)
2013-01-14 03:40 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2013-01-14 02:27:50 PST
"background-image" values can only be URIs (http://www.w3.org/TR/css3-background/#the-background-image), so colors are not allowed there.

Upstreaming https://code.google.com/p/chromium/issues/detail?id=169742
Comment 1 Alexander Pavlov (apavlov) 2013-01-14 02:32:29 PST
background-image values can also be gradients, so url(...) checks should be made before the color parsing.
Comment 2 Alexander Pavlov (apavlov) 2013-01-14 03:40:59 PST
Created attachment 182541 [details]
Patch
Comment 3 Pavel Feldman 2013-01-14 03:59:51 PST
Comment on attachment 182541 [details]
Patch

A test?
Comment 4 Alexander Pavlov (apavlov) 2013-01-14 04:36:53 PST
(In reply to comment #3)
> (From update of attachment 182541 [details])
> A test?

Landing with a test added.
Comment 5 Alexander Pavlov (apavlov) 2013-01-14 04:38:00 PST
Committed r139607: <http://trac.webkit.org/changeset/139607>