Closed
Bug 11262
Opened 26 years ago
Closed 26 years ago
[PP] default page not appearing until click
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
VERIFIED
FIXED
M10
People
(Reporter: Brade, Assigned: pierre)
Details
problem on Mac (not on Windows; Unix unknown)
in AppRunner, choose Editor from the Tools menu
notice that when the window comes up that the editing area is white
click in that space
notice that the default page appears
sujay: could verify this bug still exists on mac with today's build? If so,
does it occur on Linux? It does not occur on Windows. Simon, Joe, have you
heard anything about Mac that would be causing this?
Reporter | ||
Comment 2•26 years ago
|
||
yes, I see the problem with this morning's tree on Mac. Simon confirmed that he sees it also.µ
joe, could you look into this mac bug? if it is trivial, please try to get it in
for M9. otherwise it can wait for next milestone.
Comment 4•26 years ago
|
||
This is almost certainly not an editor bug; it's going to be somewhere in layout,
or perhaps Mac GFX.
Comment 5•26 years ago
|
||
this is now affecting browser, and the content below the main toolbar doesn't
paint until a repaint is forced or you resize the window. clicking in the blank
content area doesn't help.
Do we have any ideas? Is this still mac only? What's the status?
Comment 6•26 years ago
|
||
adding myself to cc list
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M9 → M10
Comment 7•26 years ago
|
||
i cannot get to this bug right now. i strongly suspect it has nothing to do with
editor stuff. if someone else wants to grab it, go for it. setting to m10 in
case no one volunteers...
Reporter | ||
Comment 8•26 years ago
|
||
add dcone to cc list since he may have some ideas.
Updated•26 years ago
|
Assignee: jfrancis → sfraser
Status: ASSIGNED → NEW
Target Milestone: M10 → M9
Comment 9•26 years ago
|
||
Lemme see if I can figure this out for M9.
Comment 10•26 years ago
|
||
This problem appears to be related to setting focus and handling activate events.
If the window comes up in the foreground, and handles an activate event,
then certain calls to SetFocus() are made, and the window content fails to
draw. If the window comes up in the background (e.g. when debugging), then no
activate event is handled, adn the window shows up fine.
Comment 11•26 years ago
|
||
So it turns out that this is caused by an editor hack, which tries to redraw the
content when we get focus (to redraw the selection and caret). The editor code
calls
viewmgr->UpdateView(view,nsnull,NS_VMREFRESH_IMMEDIATE);
but for some reason this isn't causing the correct drawing to happen.
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 12•26 years ago
|
||
I have a fix for this, which I think fixes an error in the Mac widget code.
nsWindow::Update() updates the dirty region of a window, and then calls
ValidRect() to validate the bounds of the widget (i.e. "window") that just
drew.
The problem is that updating the dirty region of the window only draws pixels in
the *exposed* parts of this widget (which might be none), and yet the call to
ValidRect() tells the OS that none of the pixels within the bounds of this widget
need to be redrawn.
I believe that the correct fix is to change the call to ValidRect(& macRect)
to ValidRgn(mWindowRegion). Will someone who knows more about the Mac widget
code please comment.
Updated•26 years ago
|
Whiteboard: is the fix ready to go?
Comment 13•26 years ago
|
||
saari, or pierre, could you take a look at this please?
Reporter | ||
Comment 14•26 years ago
|
||
I tried Simon's recommended fix and notice that it does fix this bug. However, I
see a problem (with the fix) that bringing up the image dialog (partially
obscuring the editor) doesn't update the toolbars when the dialog is dismissed (I
clicked cancel).
I think I like the new bug I've encountered better than the old since it's an
extra step away for users to find this one. %-/
Comment 15•26 years ago
|
||
OK, so that fix messes up toolbar drawing in general, so it's not right.
Updated•26 years ago
|
Assignee: sfraser → pierre
Status: ASSIGNED → NEW
Whiteboard: is the fix ready to go?
Target Milestone: M9 → M10
Comment 16•26 years ago
|
||
This is going to have to wait until pierre gets back. M10
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 17•26 years ago
|
||
It works now, most certainly thanks to the fix that beard did in Invalidate().
Comment 18•26 years ago
|
||
looks fixed now...verified in 9/2 build.
You need to log in
before you can comment on or make changes to this bug.
Description
•