Closed Bug 1487120 Opened 6 years ago Closed 6 years ago

Progress indicator on About menu doesn't animate

Categories

(Core :: Graphics: WebRender, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- disabled
firefox62 --- disabled
firefox63 --- disabled

People

(Reporter: chutten, Assigned: aosmond)

References

Details

(Keywords: regression)

Attachments

(2 files)

This was especially noticeable when I was experiencing a network bug that stalled DNS requests... but even now, if I Help>About Nightly on Windows or Linux, the progress spinner doesn't animate unless the content of the update progress string updates.

It seems as though it decides not to paint for some reason? May not be Update's fault then, maybe be some sort of webrendest thing.

Beta seems unaffected for now.
Hmm. Yeah, we don't really exercise any control over that animation, it's just an animated PNG sitting in a XUL <image> element. The text string next to it is updated on its own. So this does sound like a lower-level bug. Since you mentioned you've got webrender on, I'll move this over there, but I'm not certain if that's where the problem is or not.
Component: Application Update → Graphics: WebRender
Product: Toolkit → Core
Can you reproduce this with WebRender off?
Flags: needinfo?(chutten)
mozregression --good 2018-01-15 --bad 2018-04-01 --pref gfx.webrender.all:true dom.allow_XUL_XBL_for_file:true -a file:///home/darkspirit/Schreibtisch/wr/testcase.xul
> 8:58.51 INFO: Last good revision: 8d73f18bc1a2097f1271d9d3af554cd23bcc9324
> 8:58.51 INFO: First bad revision: c0200f9fc1abf1e34a0bb1acb5a9f57d38ca677b
> 8:58.51 INFO: Pushlog:
> https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=8d73f18bc1a2097f1271d9d3af554cd23bcc9324&tochange=c0200f9fc1abf1e34a0bb1acb5a9f57d38ca677b

> c0200f9fc1ab	Jeff Muizelaar — Bug 1439006. Allow multiple kinds of WebRenderUserData on a DisplayItem. r=mstange
Attached file testcase.xul
I saw this bug for a long time, but didn't thought about it. I can't reproduce without WebRender.
Flags: needinfo?(chutten)
Flags: needinfo?(jmuizelaar)
Priority: -- → P2
(In reply to Jan Andre Ikenmeyer [:darkspirit] from comment #4)
> Created attachment 9004952 [details]
> testcase.xul

This is basically https://searchfox.org/mozilla-central/rev/55da592d85c2baf8d8818010c41d9738c97013d2/browser/base/content/aboutDialog.xul, but I removed all ifdefs, some hboxes and changed <hbox id="checkingForUpdates" to be a div.
Hm, the progress indicator is just an APNG. We appear to get the nsImageBoxFrame::OnFrameUpdate as expected but it doesn't trigger an nsImageBoxFrame::CreateWebRenderCommands to resample the animation, so it appears still.
Assignee: nobody → aosmond
Appears XUL images don't invalidate properly for WebRender. Patch forth coming.
Status: NEW → ASSIGNED
Comment on attachment 9005190 [details] [diff] [review]
0001-Bug-1487120-Invalidate-nsImageBoxFrame-properly-for-.patch, v1

Review of attachment 9005190 [details] [diff] [review]:
-----------------------------------------------------------------

::: layout/xul/nsImageBoxFrame.cpp
@@ +902,5 @@
>      return NS_OK;
>    }
>  
> +  // XXX: Do we really want to check whether we have a
> +  // WebRenderUserDataProperty?

Check if WebRender has interacted with this frame. If it has
we need to let it know that things have changed.
Attachment #9005190 - Flags: review?(jmuizelaar) → review+
Pushed by aosmond@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/21fc9db28902
Invalidate nsImageBoxFrame properly for WebRender. r=jrmuizel
https://hg.mozilla.org/mozilla-central/rev/21fc9db28902
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: