RESOLVED FIXED 110224
Web Inspector: View.markAsRoot should never be invoked on attached view.
https://bugs.webkit.org/show_bug.cgi?id=110224
Summary Web Inspector: View.markAsRoot should never be invoked on attached view.
Eugene Klyuchnikov
Reported 2013-02-19 07:25:57 PST
TL;DR View.markAsRoot should never be invoked on attached view. This will cause CSS loading problems after "show". Let view A be inner view of C. A and B share the same CSS. C.show -> A loads CSS, counter = 1 B.show -> counter = 2 C.detach -> causes A.processWasHidden; counter = 1 A.markAsRoot A.show causes A.detach; A was marked as root, so it thinks that it is visible and calls A.processWasHidden -> counter = 0; after that we get A.processWillShow -> counter = 1 A.detach -> counter = 0 -> unload CSS But B is still shown. Epic fail.
Attachments
Patch (2.15 KB, patch)
2013-02-19 07:28 PST, Eugene Klyuchnikov
no flags
Eugene Klyuchnikov
Comment 1 2013-02-19 07:28:03 PST
Pavel Feldman
Comment 2 2013-02-19 07:35:01 PST
Comment on attachment 189087 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=189087&action=review > Source/WebCore/inspector/front-end/Drawer.js:89 > + this._view.detach(); Please add a test.
WebKit Review Bot
Comment 3 2013-02-20 01:22:52 PST
Comment on attachment 189087 [details] Patch Clearing flags on attachment: 189087 Committed r143437: <http://trac.webkit.org/changeset/143437>
WebKit Review Bot
Comment 4 2013-02-20 01:22:56 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.