Closed Bug 46662 Opened 25 years ago Closed 24 years ago

[review]Page layout sets font in window manager port -- BAD!

Categories

(Core :: Layout, defect, P3)

PowerPC
All
defect

Tracking

()

RESOLVED FIXED
mozilla0.9.8

People

(Reporter: mikepinkerton, Assigned: pierre)

References

()

Details

Attachments

(1 file)

Go to above url. See all the asserts about setting the window manager port font: ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 ###!!! ASSERTION: Setting window manager port font: '!CurrentPortIsWMPort()', file nsGfxUtils.h, line 114 These are bad and mean that we're trying to use the WM port to draw on, not our own. cc'ing other mac folks
nominating for beta3
Keywords: nsbeta3
Summary: Page layout sets font in window manager port -- BAD! → Page layout sets font in window manager port -- BAD!
I also see us drawing frequently on top of the windows of other applications, when we're in the background. This is extremely bad! Our GrafPort management is screwed up somewhere.
Over to rendering team..
Assignee: clayton → kmcclusk
waqar, could you take a look at this one?
Assignee: kmcclusk → waqar
Adding "NEEDINFO" until we have a better idea of what is going on
Whiteboard: [NEEDINFO]
Marking nsbeta3+
Whiteboard: [NEEDINFO] → [nsbeta3+]
I talked to sfraser, I understand what the problem is and I am working on the fix for it. Since it needs to go into beta3, the priority needs to be changed to P2?
Status: NEW → ASSIGNED
Changing from P3 to P2 based on Simon's comment: "I also see us drawing frequently on top of the windows of other applications, when we're in the background. This is extremely bad! Our GrafPort management is screwed up somewhere."
Priority: P3 → P2
Yeah, we dont have a GrafPort when we are staring up when we try to get fonts, so we use finders, we can just create some where off screen and use that.
pdt agrees p2.
Whiteboard: [nsbeta3+] → [nsbeta3+][pdtp2]
Target Milestone: --- → M18
I have narrowed down the problem to this: <html> <head> <title>Foo</title> </head> <body> <APPLET></APPLET> <b>Foo</b> <h6>Bar</h6> <h4>foobar</h4> </body> </html> If you take out APPLET tag, the problem goes away. Applet is causing our GrafPtr to get messed up. If you take out the APPLET tag the problem goes away. This could be that it prompts the user to download the Plugin finder plugin, that dialog might be causing the problem. For each of those B, H6 and H4 tag I get an assert.
I'm pretty sure I've seen Mozilla draw over finder windows when displaying www.mozilla.org, so I don't think this is just an issue with APPLET tags.
Are there any other test cases that I can look at?
Not holding PR3 for this, so marking nsbeta3-. If you think this is serious enough to fix after PR3, please nominate for rtm.
Whiteboard: [nsbeta3+][pdtp2] → [nsbeta3-][pdtp2]
Nominating for rtm, and marking [rtm need info].
Keywords: rtm
Whiteboard: [nsbeta3-][pdtp2] → [rtm need info][nsbeta3-][pdtp2]
Marking rtm-. Not a crasher.
OS: All
Whiteboard: [rtm need info][nsbeta3-][pdtp2] → [rtm-][nsbeta3-][pdtp2]
Keywords: donttest
Here's a patch: Index: mozilla/webshell/tests/viewer/nsMacMain.cpp =================================================================== RCS file: /cvsroot/mozilla/webshell/tests/viewer/nsMacMain.cpp,v retrieving revision 1.43 diff -b -u -2 -r1.43 nsMacMain.cpp --- nsMacMain.cpp 2000/09/13 23:55:23 1.43 +++ nsMacMain.cpp 2001/02/16 00:26:28 @@ -211,5 +211,4 @@ } - nsresult nsNativeBrowserWindow::InitNativeWindow() @@ -248,4 +247,10 @@ AppendResMenu(GetMenuHandle(menu_Apple), 'DRVR'); DrawMenuBar(); + + // set the port to the window here + WindowPtr wind = (WindowPtr)mWindow->GetNativeData(NS_NATIVE_DISPLAY); + if (wind) + SetPortWindowPort(wind); + return NS_OK; }
that patch looks fine to me except the tabbing/spaces seem to be inconsistent/off
changing milestone.
Target Milestone: M18 → Future
Don, can you apply the patch Simon created for viewer?
Assignee: waqar → dcone
Status: ASSIGNED → NEW
Target Milestone: Future → mozilla0.9.1
looks good to me r=peterl
Keywords: nsbeta3
Don, I'm taking this so I can help resurrect Viewer.
Assignee: dcone → attinasi
Wait. That patch I pasted above will fix the assertions in viewer, but not the URL that this bug was filed on. I thought we had a different bug for the viewer assertion...
Moving P2 and P3 bugs to 0.9.2
Target Milestone: mozilla0.9.1 → mozilla0.9.2
by mandate, moving non-crashers and non-datalossers to 0.9.3 (though I will try and get this in since it has a patch and I want to explore the Mac-specific stuff a bit ;)
Status: NEW → ASSIGNED
Target Milestone: mozilla0.9.2 → mozilla0.9.3
Target Milestone: mozilla0.9.3 → mozilla0.9.4
Target Milestone: mozilla0.9.4 → mozilla1.0
Removing adequated PDT grafitti.
Removing adequated PDT grafitti.
Whiteboard: [rtm-][nsbeta3-][pdtp2]
Target Milestone: mozilla1.0 → mozilla1.2
Taking off Marc's list
Assignee: attinasi → pierre
Status: ASSIGNED → NEW
I looked into this bug and bug 93217 again because of bug 105946... It doesn't assert anymore with the URL above, nor with the sample code from comment #11. Also I don't remember having seen the assertion in MozillaDebug for a long time. I'll attach a updated version of the patch for Viewer. peterl/sfraser: please r/sr
Severity: major → minor
Status: NEW → ASSIGNED
Priority: P2 → P3
Target Milestone: mozilla1.2 → mozilla0.9.7
Attached patch patch for viewerSplinter Review
Summary: Page layout sets font in window manager port -- BAD! → [review]Page layout sets font in window manager port -- BAD!
Comment on attachment 61058 [details] [diff] [review] patch for viewer r=brade
Attachment #61058 - Flags: review+
Comment on attachment 61058 [details] [diff] [review] patch for viewer sr=sfraser
Attachment #61058 - Flags: superreview+
fixed on the trunk
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Target Milestone: mozilla0.9.7 → mozilla0.9.8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: