Page Style (alternative style sheets) menu population can delay about:home from painting
Categories
(Firefox :: Menus, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
Details
(Whiteboard: [fxperf:p1])
Attachments
(3 files)
Here's a profile:
Here's the relevant bit:
We're... getting a pageshow off of an SVG? And that's causing PageStyleChild.jsm to load at a pretty bad time when it's clear that the disk is pretty busy.
Do we ever need PageStyleChild.jsm for our internal pages? I doubt it. We barely need for normal pages. Does the matches syntax allow us to blacklist about: pages?
Assignee | ||
Comment 1•6 years ago
|
||
Even better, just have the actor match https://* and http://*.
Comment 2•6 years ago
|
||
Backlog for the menus component, but that shouldn't affect the fxperf prioritization, which should probably be higher if this is trivial to fix.
Comment 3•6 years ago
|
||
Interesting.. In addition to the suggestion here, it looks like PageStyleChild.jsm gathers the info synchronously with the pageshow event [1], but it really should send it off an idle callback, or at least a spin of the event loop.
There's one catch with using matches: on the actors, which is that it implies using allFrames=true. It's not gonna break anything since the handleEvent in PageStyleChild filters non-toplevel events, but it'll run more often. I don't think this will be a problem though.. but perhaps the idle callback suggestion is enough to fix the problem?
Updated•6 years ago
|
Assignee | ||
Comment 4•6 years ago
|
||
This avoids instantiating them for internal pages, like about:home.
Assignee | ||
Comment 5•6 years ago
|
||
Depends on D22520
Assignee | ||
Updated•6 years ago
|
Comment 7•6 years ago
|
||
Backed out 2 changesets (Bug 1529762) for failures in browser_page_style.js CLOSED TREE
Failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=232512182&repo=autoland&lineNumber=8130
Backout: https://hg.mozilla.org/integration/autoland/rev/101887de976288348feae904140b343a1ee2eec4
Assignee | ||
Comment 8•6 years ago
|
||
The PageStyleChild now only attaches to normal web pages.
Depends on D22521
Assignee | ||
Updated•6 years ago
|
Comment 10•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/cd0a4ead024e
https://hg.mozilla.org/mozilla-central/rev/92aa678ac36b
https://hg.mozilla.org/mozilla-central/rev/8ac8ed5ac772
Comment 11•6 years ago
|
||
== Change summary for alert #19832 (as of Fri, 08 Mar 2019 22:12:40 GMT) ==
Improvements:
0% Base Content JS osx-10-10 opt stylo 4,013,984.00 -> 4,000,452.00
For up to date results, see: https://treeherder.mozilla.org/perf.html#/alerts?id=19832
Comment 12•6 years ago
|
||
[adding Alternative Style Sheets to bug summary for searchability purposes, since this is about https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets ]
Description
•