Bug 74291 - Web Inspector: [Styles] Modified selector text needs sanitization
Summary: Web Inspector: [Styles] Modified selector text needs sanitization
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: 2011-12-12 05:31 PST by Alexander Pavlov (apavlov)
Modified: 2011-12-12 07:24 PST (History)
10 users (show)

See Also:


Attachments
Patch (4.73 KB, patch)
2011-12-12 06:41 PST, Alexander Pavlov (apavlov)
yurys: 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) 2011-12-12 05:31:40 PST
According to the selectors grammar found in http://www.w3.org/TR/selectors/ (item 10), trailing spaces are not allowed in the selector text. Sanitization of user input is required.

Upstreaming http://code.google.com/p/chromium/issues/detail?id=106749
Comment 1 Alexander Pavlov (apavlov) 2011-12-12 06:41:07 PST
Created attachment 118780 [details]
Patch
Comment 2 Yury Semikhatsky 2011-12-12 07:20:00 PST
Comment on attachment 118780 [details]
Patch

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

> Source/WebCore/ChangeLog:5
> +

Could you put a short description here?
Comment 3 Alexander Pavlov (apavlov) 2011-12-12 07:24:55 PST
Committed r102581: <http://trac.webkit.org/changeset/102581>