Closed Bug 58043 Opened 24 years ago Closed 24 years ago

`Always use my fonts' uses my fonts in sidebar panel chrome

Categories

(Core :: Layout, defect, P3)

defect

Tracking

()

VERIFIED DUPLICATE of bug 58048
mozilla0.9

People

(Reporter: mpt, Assigned: attinasi)

Details

Build: 2000102420, Mac OS 9.0 To reproduce: * Open the Search sidebar panel. * Open the prefs dialog, and select `Always use my fonts' in the Fonts panel. * Click OK. What happens: * The `Search' and `Bookmark Search Results' button, the `Search Results' treehead, and search results (and bookmarks in the Bookmarks panel) are redrawn to use your chosen text/HTML fonts. What should happen: * Your chosen text/HTML fonts should have no effect on the fonts used in the chrome whatsoever.
The problem is that the sidebar is not really chrome, which is to say that the docShellType is not nsIDocShellTreeItem::typeChrome. This problem was known when we checked in the pref stylesheet changes. We'll need to see about getting the sidebar panels to mark themselves as chrome...
Status: NEW → ASSIGNED
OS: Mac System 8.6 → All
Hardware: Macintosh → All
Should they mark *themselves* as chrome? Because a normal web panel could do the same, then, not?
I'm not sure exactly what is going on, but it appears that the decision is made in nsHTMLFrameInnerFrame::CreateDocShell based upon the type attribute of the parentContent, whatever that is (http://lxr.mozilla.org/seamonkey/source/layout/html/document/src/nsFrameFrame.cpp#779 ). My guess is that some of the sidebar panels are using HTML content and some are not, but that is just a guess. I'll have to dig in and see what the root cause is so I can determine who needs to modify what. I'm almost positive that there is nothing I can do with respect to my changes, since I test the docShellType for chrome, and that is all I have to go on really. FYI: the colors are applied too, if 'always use my colors' is checked.
Note to self: need to find the sidebar owner and find out how we can flag sidebar content as 'chrome' even if it is HTML content...
Target Milestone: --- → mozilla0.9
A simpler way to do it would be to use system fonts and colors by default for widgets in HTML content, which you should be doing anyway.
That would solve much of the problem, however if you look at the 'search' panel, it has a body background that is taking on the default color as well, and that should not be happening. The part about the control colors (and fonts) is being handled by bug 58048.
Keywords: donttest
marking as a dup of 58403 since that is the primary complaint. *** This bug has been marked as a duplicate of 58403 ***
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
I think, that was the wrong bug. REOPENing.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Thanks Ben, the correct bug is bug 58048 *** This bug has been marked as a duplicate of 58048 ***
Status: REOPENED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → DUPLICATE
Verified dup.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.