Closed Bug 478092 Opened 15 years ago Closed 15 years ago

when loading page, some images have white horizontal lines through them

Categories

(Firefox for Android Graveyard :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: taras.mozilla)

References

Details

Attachments

(1 file)

if you browse to www.spreadfirefox.com, you will see an image of some fine young mozilla models wearing firefox shirts.  When this loads, you end up with white horizontal lines.

I have seen this on mac and linux desktop versions of fennec from alpha2->current trunk.  Running on the device, I don't see this (maemo only, had trouble loading on my windows mobile build).
I see this effect as well in my Tab Sidebar extension, which uses the MozAfterPaint event to draw the browser contents onto a canvas, much like Fennec, so I suspect the rect sent with the event doesn't cover the whole area of the image drawn as it is loading.
I see a white border around stuff drawn with drawWindow, This is especially evident on animated images.
I wonder whether this is related to bug 477236? Or perhaps bug 477519...
Sounds more like 477519. A testcase would be great...
I'm not entirely sure it is either, I see the white lines in the canvas when they aren't in the browser display. I'm also not sure how I would construct a testcase that includes a slow loading image since that seems to be what triggers this.
I think I found the reason for white lines. If i change the color in drawWindow
it becomes obvious.

      ctx.drawWindow(this._browser.contentWindow,
                     rect.left, rect.top,
                     rect.width, rect.height,
                     "red",
                     ctx.DRAWWINDOW_DO_NOT_FLUSH | ctx.DRAWWINDOW_DRAW_CARET);

Now every result of drawWindow is drawn with a red border!!!

also scroll offset fix in bug 477855 seems to fix the bonus problems introduced in fennec.
this is pretty much the same patch as in bug 477855, except it also deals with animated gif issues(ie mozafterpaint) in addition to viewportHandler fixes. I think this is a more appropriate bug for it.
Attachment #363232 - Flags: review?(pavlov)
Blocks: 477855
Attachment #363232 - Flags: review?(pavlov) → review+
http://hg.mozilla.org/mobile-browser/rev/f35ab2861209
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee: nobody → tglek
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: