RESOLVED FIXED Bug 92848
Attempt to fix flakiness of color-suggestion-picker-appearance.html
https://bugs.webkit.org/show_bug.cgi?id=92848
Summary Attempt to fix flakiness of color-suggestion-picker-appearance.html
Keishi Hattori
Reported 2012-08-01 00:59:18 PDT
We observed console.log bleeding into the next test.
Attachments
Patch (3.46 KB, patch)
2012-08-01 01:12 PDT, Keishi Hattori
no flags
Keishi Hattori
Comment 1 2012-08-01 01:12:30 PDT
Kent Tamura
Comment 2 2012-08-01 01:20:18 PDT
Comment on attachment 155745 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=155745&action=review > Source/WebCore/ChangeLog:10 > + (ColorPicker.prototype._layout): We put the width and height into > + variables so we don't call window.onresize twice. Why window.onresize is called twice with the current code?
Keishi Hattori
Comment 3 2012-08-01 01:34:35 PDT
(In reply to comment #2) > (From update of attachment 155745 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=155745&action=review > > > Source/WebCore/ChangeLog:10 > > + (ColorPicker.prototype._layout): We put the width and height into > > + variables so we don't call window.onresize twice. > > Why window.onresize is called twice with the current code? My theory is that this._element.offsetHeight is causing a layout, which asks the window to resize immediately.
Kent Tamura
Comment 4 2012-08-01 01:43:18 PDT
Comment on attachment 155745 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=155745&action=review >>> Source/WebCore/ChangeLog:10 >>> + variables so we don't call window.onresize twice. >> >> Why window.onresize is called twice with the current code? > > My theory is that this._element.offsetHeight is causing a layout, which asks the window to resize immediately. I don't think so. Layout doesn't change the window size basically. Did you reproduce the problem locally, and confirmed the fix by this change?
Keishi Hattori
Comment 5 2012-08-01 03:31:22 PDT
(In reply to comment #4) > > My theory is that this._element.offsetHeight is causing a layout, which asks the window to resize immediately. > > I don't think so. Layout doesn't change the window size basically. > Did you reproduce the problem locally, and confirmed the fix by this change? Here is the stack trace. It seems to be true. WebCore::EventHandler::sendResizeEvent() WebCore::FrameView::performPostLayoutTasks() WebCore::FrameView::layout(bool) WebCore::RenderWidget::updateWidgetPosition() WebCore::RenderView::updateWidgetPositions() WebCore::FrameView::performPostLayoutTasks() WebCore::FrameView::layout(bool) WebCore::Document::updateLayout() WebCore::Document::updateLayout() WebCore::Document::updateLayoutIgnorePendingStylesheets() WebCore::Element::offsetHeight() ...
Kent Tamura
Comment 6 2012-08-01 04:35:25 PDT
So, did you reproduce the problem locally, and confirmed the fix?
Keishi Hattori
Comment 7 2012-08-01 04:36:18 PDT
(In reply to comment #6) > So, did you reproduce the problem locally, and confirmed the fix? Yes, I did.
Kent Tamura
Comment 8 2012-08-01 04:40:32 PDT
Comment on attachment 155745 [details] Patch ok
WebKit Review Bot
Comment 9 2012-08-01 05:03:27 PDT
Comment on attachment 155745 [details] Patch Clearing flags on attachment: 155745 Committed r124326: <http://trac.webkit.org/changeset/124326>
WebKit Review Bot
Comment 10 2012-08-01 05:03:30 PDT
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.