Closed
Bug 1045970
Opened 10 years ago
Closed 10 years ago
TabChild::RecvUpdateDimensions trigger PresShell::ResizeReflowOverride all the time in B2G::reftest
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: u459114, Assigned: u459114)
References
Details
In reftest, widget/window size keep still. Supposedly, we should only receive TabChild::RecvUpdateDimensions once in a whole test run. File this bug to dig out why reftest content receive this message from chrome all the time in B2G::reftest run
Comment 1•10 years ago
|
||
(In reply to C.J. Ku[:cjku] from comment #0) > In reftest, widget/window size keep still. Supposedly, we should only > receive TabChild::RecvUpdateDimensions once in a whole test run. File this > bug to dig out why reftest content receive this message from chrome all the > time in B2G::reftest run Are you sure it's TabChild::RecvUpdateDimensions that triggered he resize reflow? Per bug 997101 comment 58 before-first-paint is sent for each reftest, maybe it's the reason.
I am sure... that you are right.. TabChild::Observe explicit triggers resize once http://dxr.mozilla.org/mozilla-central/source/dom/ipc/TabChild.cpp?from=TabChild.cpp&case=true#795 And indirect tirgger resize again http://dxr.mozilla.org/mozilla-central/source/dom/ipc/TabChild.cpp?from=TabChild.cpp&case=true#805 http://dxr.mozilla.org/mozilla-central/source/dom/ipc/TabChild.cpp?from=TabChild.cpp&case=true#805 And thanks for your info.
OK, then, everything make sense to me. reftest-content sets fullZoom in onload event handler http://dxr.mozilla.org/mozilla-central/source/layout/tools/reftest/reftest-content.js?from=reftest-content.js&case=true#592 Which may come later then first-paint, so we may receive two SetCSSViewport before or after SetFullZoom. Close this one.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
Comment 4•10 years ago
|
||
(In reply to C.J. Ku[:cjku] from comment #3) > OK, then, everything make sense to me. > > reftest-content sets fullZoom in onload event handler > http://dxr.mozilla.org/mozilla-central/source/layout/tools/reftest/reftest- > content.js?from=reftest-content.js&case=true#592 > > Which may come later then first-paint, so we may receive two SetCSSViewport > before or after SetFullZoom. > > Close this one. Thanks. The redundant SetCSSViewport is indeed a performance problem and we should fixed if we could know why the reftest failed in bug 997101.
You need to log in
before you can comment on or make changes to this bug.
Description
•