Closed
Bug 967752
Opened 11 years ago
Closed 11 years ago
tresize talos regression on January 28th team seen on fx-team
Categories
(Firefox :: Address Bar, defect, P4)
Firefox
Address Bar
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: jmaher, Assigned: dao)
References
(Blocks 1 open bug)
Details
(Keywords: perf, regression, Whiteboard: [talos_regression][Australis:P3])
Attachments
(1 file, 1 obsolete file)
3.00 KB,
patch
|
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
As seen on graph server:
http://graphs.mozilla.org/graph.html#tests=[[254,132,33]]&sel=none&displayrange=30&datatype=running
and on datazilla:
https://datazilla.mozilla.org/?start=1390643891&stop=1391310782&product=Firefox&repository=Fx-Team-Non-PGO&test=tresize&page=tresize&graph_search=30d6d1f88b00&x86_64=false&project=talos
This appears to happen on linux, windows and mac
here is the checkin that caused the regression:
https://tbpl.mozilla.org/?tree=Fx-Team&rev=30d6d1f88b00
here is the code for the test:
http://hg.mozilla.org/build/talos/file/79702830f03d/talos/startup_test/tresize-test.html
and a description:
https://wiki.mozilla.org/Buildbot/Talos/Tests#tresize
This regression is seen on all branches and retriggers of the talos chrome suite shows that this patch from bug 962844 is the root cause.
Assignee | ||
Comment 1•11 years ago
|
||
I suppose it's possible that the navigation toolbar now overflows later in the test due to the reduced min-with of the location bar, which might affect the result. I wouldn't worry about that, as it's too dependent on the arbitrary numbers used in the test.
Or maybe there's a real regression due to the use of the "vw" CSS unit. That I think would be a Core/Layout bug.
Reporter | ||
Comment 2•11 years ago
|
||
who could we query from core/layout to look into this? Should we modify the test at all?
Assignee | ||
Comment 3•11 years ago
|
||
What's the easiest to run that test locally? I could start with trying to find out which of my guesses are correct (or whether there's some other strange thing going on).
Reporter | ||
Comment 4•11 years ago
|
||
many people have good luck following these instructions:
https://wiki.mozilla.org/Buildbot/Talos/Running#Running_locally_-_Source_Code
I would use:
talos -e <firefox> -a tresize --develop --results_url resize.out --datazilla-url resize.json
since this is a large change, comparing the output of resize.out between two different versions of <firefox> should be easy to spot.
Assignee | ||
Comment 6•11 years ago
|
||
I ended up using the try server to test my hypotheses. This appears to undo the regression:
https://hg.mozilla.org/try/rev/3dcb5f29b0bf
So it does look like the vw unit is pretty expensive...
Flags: needinfo?(dao)
Reporter | ||
Comment 7•11 years ago
|
||
thanks :dao!
Assignee | ||
Updated•11 years ago
|
Component: Location Bar → CSS Parsing and Computation
Product: Firefox → Core
Yes, use of viewport units is expensive since it requires us to recompute style when the viewport resizes. While there are things we could do to improve things, and chip away at the problem gradually, I'm not sure it's worth it. I think it's easier to optimize for responsive layout that's part of the layout system (e.g., flexbox, percentage sizes).
I don't think the bug on the regression belongs in Core; this is a feature that's inherently slower than what you're using before.
Priority: -- → P4
Should this bug move elsewhere?
Flags: needinfo?(dao)
Assignee | ||
Comment 10•11 years ago
|
||
I suppose we could avoid the perf problem by replacing this:
#identity-icon-labels {
max-width: 12vw;
}
with this:
#identity-icon-labels {
max-width: 18em;
}
@media (max-width: 700px) {
#identity-icon-labels {
max-width: 70px;
}
}
@media (max-width: 600px) {
#identity-icon-labels {
max-width: 60px;
}
}
@media (max-width: 500px) {
#identity-icon-labels {
max-width: 50px;
}
}
This feels like a hack, though. Then again, using vw was a hack in the first place. Ideally, we want #identity-icon-labels' max-width to be relative to its container's current width.
Flags: needinfo?(dao)
Does max-width: 12% (or whatever the right number is) not work?
Also, it might make sense to have a bug on making vw faster, but it shouldn't be this bug.
Component: CSS Parsing and Computation → Location Bar
Product: Core → Firefox
Assignee | ||
Comment 13•11 years ago
|
||
(In reply to David Baron [:dbaron] (needinfo? me) (UTC-8) from comment #11)
> Does max-width: 12% (or whatever the right number is) not work?
That's what I tried first. Doesn't appear to have any effect.
Assignee | ||
Comment 14•11 years ago
|
||
Ok, I got it to work (by trying random stuff without fully understanding how XUL layout works here).
Assignee: nobody → dao
Assignee | ||
Comment 15•11 years ago
|
||
I was wrong, I didn't get the relative max-width to work. What I saw was 12vw still taking effect...
Assignee | ||
Updated•11 years ago
|
Blocks: australis-merge
Assignee | ||
Comment 16•11 years ago
|
||
resorting to the workaround from comment 10
Attachment #8379856 -
Flags: review?(jaws)
Updated•11 years ago
|
Attachment #8379856 -
Flags: review?(jaws) → review+
Assignee | ||
Comment 17•11 years ago
|
||
Comment 18•11 years ago
|
||
had to back this out for mochitest-bc issues like https://tbpl.mozilla.org/php/getParsedLog.php?id=35213366&tree=Fx-Team windows only somehow
Assignee | ||
Comment 19•11 years ago
|
||
Attachment #8379856 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
status-firefox29:
--- → affected
Whiteboard: [talos_regression] → [talos_regression][Australis:P3]
Comment 20•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 30
Assignee | ||
Comment 21•11 years ago
|
||
Comment on attachment 8381971 [details] [diff] [review]
same patch with browser_windowopen_reflows.js updated
[Approval Request Comment]
Bug caused by (feature/regressing bug #): bug 962844
User impact if declined: pretty significant tresize regression, but unclear to what extent that's visible to users
Testing completed (on m-c, etc.): on m-c
Risk to taking this patch (and alternatives if risky): low
String or IDL/UUID changes made by this patch: none
Attachment #8381971 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
status-firefox30:
--- → fixed
Updated•11 years ago
|
Attachment #8381971 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 22•11 years ago
|
||
Comment 23•11 years ago
|
||
(In reply to Dão Gottwald [:dao] (on vacation from March 21 to 28) from comment #21)
> ... unclear to what extent that's visible to users
I'm not so sure what the verifyme was added for, given the above and the fact that this is covered automatically. Please let me know if there is anything specific that you want QA for here.
Flags: needinfo?(twalker)
Comment 24•11 years ago
|
||
Joel, from datazilla, the regression in early Feb has obviously been reduced. Can you verify that is true for both Fx29 and Fx30?
Flags: needinfo?(twalker) → needinfo?(jmaher)
Reporter | ||
Comment 25•11 years ago
|
||
I have verified this is not an issue on beta (29) and aurora (30). On inbound there is a slight issue, but it is really small, probably related to something else than the Jan 28th regression.
Flags: needinfo?(jmaher)
You need to log in
before you can comment on or make changes to this bug.
Description
•