Bug 111299 - Web Inspector: Adding new rules broken if a <style> tag is added to document dynamically
Summary: Web Inspector: Adding new rules broken if a <style> tag is added to document ...
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-03-04 02:48 PST by Alexander Pavlov (apavlov)
Modified: 2013-03-04 05:36 PST (History)
8 users (show)

See Also:


Attachments
Patch (6.48 KB, patch)
2013-03-04 03:18 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-03-04 02:48:19 PST
Steps to reproduce the problem:
1. Open attached testcase in Chrome.
2. Open developer tools (press Ctrl-Shift-I).
3. Switch to the Elements tab and select the body element.
4. Under Styles press the + (New Style Rule) button.
5. Press Tab (go to entering a CSS property), enter "background", press Tab again (go to entering the value), enter "red" and press Enter.

What is the expected behavior?
The new style rule is added and the page background gets colored red.

What went wrong?
The new style rule simply disappears, page appearance doesn't change.

Upstreaming https://code.google.com/p/chromium/issues/detail?id=178109
Comment 1 Alexander Pavlov (apavlov) 2013-03-04 03:18:03 PST
Created attachment 191191 [details]
Patch
Comment 2 Alexander Pavlov (apavlov) 2013-03-04 05:36:49 PST
Committed r144622: <http://trac.webkit.org/changeset/144622>