1. Go to about:blank 2. Open the devtools at the 'elements' page 3. Add a new style with the 'plus' button on the right. 4. For the style target, type '#foo' 5. Press enter 6. Try to add rules to the style - double clicking in/around the body of the style does not add a new rule. As far as I can tell, there is no way to add a new rule. - pressing 'esc' no longer causes the console to disappear. Upstreaming http://code.google.com/p/chromium/issues/detail?id=101256
Created attachment 112184 [details] [PATCH] Suggested fix
Comment on attachment 112184 [details] [PATCH] Suggested fix View in context: https://bugs.webkit.org/attachment.cgi?id=112184&action=review > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1358 > + get isBlank() make it a function please. > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1387 > + if (this.isBlank) Could you move this check to the top and make it a guard? Also putting a FIXME suggesting re-creating object would be great. > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1395 > + if (this.isBlank) Please convert to the guard.
Created attachment 112188 [details] [PATCH] Comments addressed Impossible to convert isBlank into function - requires defining same-named method on all style sections.
Committed r98243: <http://trac.webkit.org/changeset/98243>