Frost put the Flyers back in front 2-1 at 5:57 of the third period when he banked the puck off Dostal from below the goal line after driving to the net.
Farabee scored into an empty net at 17:40 for the 3-1 final. After serving a penalty for too many men on the ice, he left the box, stole the puck from Olen Zellweger and converted on a breakaway.
"I think we've come a long way," Strome said. "I hate taking moral victories and trying to find positives, but I feel like in this situation we kind of have to do that, and we have to try and find positives because when you get negative, you get down on yourselves and it's even harder to score goals."
Flyers rookie forward Matvei Michkov did not play in the third period and finished with a season-low 9:01 of ice time. Michkov had 27 points (11 goals, 16 assists) through his first 27 games but does not have a point in his past seven.
"It's just been a struggle, energy," Philadelphia coach John Tortorella said. "The skating, energy, it's just not there. You could see him struggling before the break. If I have to take him out I will, or bench him during a period. It was my call."
NOTES: Ducks forward Cutter Gauthier played against the Flyers for the first time since he was traded to Anaheim by Philadelphia on Jan. 8 for defenseman Jamie Drysdale, who faced the Ducks for the first time since the trade. Gauthier, the No. 5 pick by the Flyers in the 2022 NHL Draft, had three giveaways and took a hooking penalty in the first period. He played 13:19. Drysdale, selected No. 6 by the Ducks in the 2020 NHL Draft, had two blocked shots and two hits in 17:03. ... Scott Laughton assisted on Frost's goal to give him an eight-game point streak against Anaheim (one goal, eight assists). ... Frost has six points (three goals, three assists) in his past seven games against the Ducks. ... Flyers forward Travis Konecny played his 600th NHL game, finishing with one shot on goal in 20:17. ... Anaheim goalie John Gibson was unavailable because of an illness. Calle Clang was recalled from San Diego of the American Hockey League and backed up Dostal.