Bug 40041 09
This is really the real MR, rebased onto 81.1.1.
My goal is that each fixup commit is a small and logical change.
Closes #40044 (closed) #40041 (closed)
This supersedes !21 (closed), !23 (closed), and !24 (closed) (if those look good).