Closed Bug 1443319 Opened 3 years ago Closed 3 years ago

Removing unnecessary generator on waitForAnimationTimelineRendering breaks browser_animation_timeline_rate_selector.js


(DevTools :: Inspector: Animations, defect, P2)



(Not tracked)



(Reporter: ochameau, Assigned: ystartsev)


(Blocks 1 open bug)



(1 file, 1 obsolete file)

With the following patch:
 $ ./mach mochitest devtools/client/animationinspector/test/browser_animation_timeline_rate_selector.js

fails with:
Select just one animated node and change its rate only
Selecting the node for '.animated'
Console message: [JavaScript Error: "A promise chain failed to handle a rejection. Did you forget to '.catch', or did you forget to 'return'?

Date: Mon Mar 05 2018 14:10:40 GMT-0800 (PST)
Full Message: Protocol error (noSuchActor): No such actor for ID: server1.conn0.child1/animationplayer53

This block Task.jsm removal from animation inspector folder as switching all generators to async also breaks this test with the same error.
Priority: -- → P2
Attachment #8956244 - Attachment is obsolete: true
Assignee: nobody → ystartsev
Comment on attachment 8964583 [details]
Bug 1443319 - Remove unnecessary generator on waitForAnimationTimelineRendering

It looks like you were working on an old version of mozilla-central.
The fix looks good if it still works after rebase.

Thanks for looking into that.

::: devtools/client/animationinspector/test/head.js:361
(Diff revision 1)
>    // Simulate the right events to select the option in the drop-down.
>    EventUtils.synthesizeMouseAtCenter(select, {type: "mousedown"}, win);
>    EventUtils.synthesizeMouseAtCenter(option, {type: "mouseup"}, win);
>    yield onUiUpdated;
> -  yield onRendered;
> +  yield waitForAnimationTimelineRendering(panel);

You would have to rebase as this method is now using await.
Does that still work on try after rebase?
Attachment #8964583 - Flags: review?(poirot.alex) → review+
Looks like this change is no longer necessary as it is already in central:
Closed: 3 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.