WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 65918
Web Inspector: [REGRESSION] Editor lost after committing a CSS property value for inline style
https://bugs.webkit.org/show_bug.cgi?id=65918
Summary
Web Inspector: [REGRESSION] Editor lost after committing a CSS property value...
Alexander Pavlov (apavlov)
Reported
2011-08-09 06:47:07 PDT
1. Bring up Web Inspector for any element 2. Start editing new/existing CSS property value in the Styles pane (Elements panel) 3. Press Enter or Tab to commit the property. What is the expected output? A new property editor appears What do you see instead? Oftentimes, no property editor appears. This works fine for non-inline styles and seems to be a regression introduced in
http://trac.webkit.org/changeset/91070
(essentially, a race condition mostly seen with large stylesheets and/or Debug builds). Upstreaming
http://code.google.com/p/chromium/issues/detail?id=91822
Attachments
[PATCH] Suggested fix
(7.71 KB, patch)
2011-08-09 09:19 PDT
,
Alexander Pavlov (apavlov)
no flags
Details
Formatted Diff
Diff
[PATCH] Comments addressed
(7.54 KB, patch)
2011-08-10 05:17 PDT
,
Alexander Pavlov (apavlov)
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Alexander Pavlov (apavlov)
Comment 1
2011-08-09 09:19:00 PDT
Created
attachment 103366
[details]
[PATCH] Suggested fix
Pavel Feldman
Comment 2
2011-08-10 03:08:55 PDT
Comment on
attachment 103366
[details]
[PATCH] Suggested fix View in context:
https://bugs.webkit.org/attachment.cgi?id=103366&action=review
Looks promising!
> Source/WebCore/inspector/front-end/StylesSidebarPane.js:936 > + update: function(full, callback)
Is this change needed?
> Source/WebCore/inspector/front-end/StylesSidebarPane.js:1623 > + _updateAll: function(userCallback)
What does updateAll actually do?
> Source/WebCore/inspector/front-end/StylesSidebarPane.js:2100 > + --parentPane._userOperation;
You should keep userOperation's logging + invent a new flag for this "transitioning between the values".
Alexander Pavlov (apavlov)
Comment 3
2011-08-10 05:04:21 PDT
(In reply to
comment #2
)
> (From update of
attachment 103366
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=103366&action=review
> > Looks promising! > > > Source/WebCore/inspector/front-end/StylesSidebarPane.js:936 > > + update: function(full, callback) > > Is this change needed?
Good point, rewrote the call site.
> > Source/WebCore/inspector/front-end/StylesSidebarPane.js:1623 > > + _updateAll: function(userCallback) > > What does updateAll actually do?
It attempts to update the biggest possible scope accessible from this tree element (i.e., the Styles pane (the parent section has the "pane" field set), the parent section (no "pane" field), or the element's title (no parent section)). After some experimenting, I failed to hit the second and the third cases, so I've cleaned them up and renamed the method to _updatePane().
> > Source/WebCore/inspector/front-end/StylesSidebarPane.js:2100 > > + --parentPane._userOperation; > > You should keep userOperation's logging + invent a new flag for this "transitioning between the values".
logging -> logic. I've managed to get rid of this counting merely by avoiding the flag modification in the !updateInterface case (since in the !updateInterface case the _isEditingStyle flag is true, and we are safe). Attaching an updated patch shortly.
Alexander Pavlov (apavlov)
Comment 4
2011-08-10 05:17:56 PDT
Created
attachment 103466
[details]
[PATCH] Comments addressed
Alexander Pavlov (apavlov)
Comment 5
2011-08-10 06:38:47 PDT
Committed
r92764
: <
http://trac.webkit.org/changeset/92764
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug