Closed
Bug 415789
Opened 17 years ago
Closed 17 years ago
showing an embedded Browser without giving it content does not draw a blank background
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: grant_gayed, Assigned: roc)
Details
(Keywords: regression, Whiteboard: [reviewed patch in hand])
Attachments
(2 files)
72.11 KB,
image/jpeg
|
Details | |
2.36 KB,
patch
|
vlad
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041115
Build Identifier: Mozilla XULRunner 1.9b3pre - 2008020416
I see this on Linux and Windows, but not on OSX.
Our app embeds gecko for showing html content (it does not use gtkmozembed, but gtkmozembed can be used to show the problem). When the embedded gecko is initially shown it does not have any content, until a client sets a url on it. During this interval it should just appear as a blank control. Prior to 1.9 it did this, but as of 1.9 it no longer draws its background. This looks "broken" for any app written before 1.9 that embeds a gecko browser without initial content.
Reproducible: Always
Steps to Reproduce:
1. build xulrunner with --enable-tests
2. run the built TestGtkEmbed app
3. The embedded browser does not draw its background. If you move another shell on top of it and then bring the TestGtkEmbed app back to the top you'll see the other shell's content left over on it.
Actual Results:
I'll attach a screenshot in the next comment.
Reporter | ||
Comment 1•17 years ago
|
||
Updated•17 years ago
|
Assignee: nobody → roc
Status: UNCONFIRMED → NEW
Component: Embedding: GRE Core → Layout: View Rendering
Ever confirmed: true
Flags: blocking1.9?
Keywords: regression
QA Contact: gre → ian
Updated•17 years ago
|
Assignee: roc → dougt
Flags: blocking1.9? → blocking1.9+
Priority: -- → P2
Comment 2•17 years ago
|
||
I see the same thing. Loading about:blank seams to make it look "right". Grant, do you see the same behavior?
Reporter | ||
Comment 3•17 years ago
|
||
Yes, loading about:blank makes it look like it did pre-1.9.
Assignee | ||
Updated•17 years ago
|
Flags: blocking1.9+
Updated•17 years ago
|
Flags: tracking1.9+
Assignee | ||
Comment 4•17 years ago
|
||
This fixes it. GTK2 nsWindow::OnExposeEvent treates nsEventStatus_eIgnore result as cancelling the paint operation ... so nsWebBrowser needs to return something else to indicate it did paint.
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs review]
Comment on attachment 312826 [details] [diff] [review]
fix
Ah, my good friend nsEventStatus...
Attachment #312826 -
Flags: review?(vladimir) → review+
Assignee | ||
Updated•17 years ago
|
Whiteboard: [needs review] → [reviewed patch in hand]
Assignee | ||
Comment 6•17 years ago
|
||
checked in
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 7•17 years ago
|
||
Reopening. In the April 30th XULRunner nightly build this is fixed on Linux but not on Windows (2000).
Note that I don't compile XULRunner from source on Windows so I don't have TestGtkEmbed there. The test case that I still see this problem in is embedding XULRunner in the SWT Browser.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 8•17 years ago
|
||
To clarify comment 7, I would suspect that TestGtkEmbed still fails on Windows, I just have not seen it myself.
Reporter | ||
Comment 9•17 years ago
|
||
Sorry, that's obviously not true since TestGtkEmbed isn't for Windows. Does Windows have a similar demo app that could show this easily? Or some other means? If needed I can give steps for replicating this in the swt Browser, though I suspect you would prefer a lower-level case if possible.
Comment 10•17 years ago
|
||
This bug is about TestGtkEmbed. You are welcome to file a new/separate bug about the SWT browser issue.
Status: REOPENED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•