Bug 73573
Summary: | Typing in a text box doesn't work as expected after applying a non-matching css style rule | ||
---|---|---|---|
Product: | WebKit | Reporter: | famlam <fam.lam> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WORKSFORME | ||
Severity: | Major | CC: | ap, fam.lam, rniwa, tkent |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | All | ||
URL: | http://www.gocomics.com/peanuts-holiday-countdown |
famlam
(Doesn't happen in Chrome, fails in Safari 5.1.1 and 5.1.2 [didn't test other versions])
Reproduction steps
1. go to http://www.gocomics.com/peanuts-holiday-countdown. Log in with user: adblocktest password: abcdef
2. Type in the comment field: abc,,,cba (don't copy-paste: type)
3. paste the following in the address bar to insert the style element:
javascript:var c=document.createElement("style");c.innerText='div[style]{}';document.documentElement.insertBefore(c,null);
4. Repeat step 2
Before:
The text shows up as expected
After:
The text shown in the textbox is "abc,cba"
Additional information:
- Adding the attribute 'type="text/css"' to the <style> element doesn't help
- The CSS selector doesn't match anything on the page. (and if it would, it doesn't add any rules, it's just {} )
OS: Windows 7 (but also confirmed on OS X 10.5.8)
Extensions: none
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I cannot reproduce this with recent WebKit. Could you please test with a nightly build from <http://nightly.webkit.org/>?
Chances are that this has been fixed already, and Chrome just picked the fix earlier. In fact, this bug sounds familiar, but I cannot find it in Bugzilla at the moment.
famlam
Indeed, in r101559 on Windows (7 SP1) I cannot reproduce it on this site. Thanks!
(I wasn't able to test this in the two newer Windows builds as they fail to load the page).
Ryosuke Niwa
Great.