Bug 231059 - [GStreamer] fast/mediastream/video-rotation tests are failing due to missing TestController::takeViewPortSnapshot
Summary: [GStreamer] fast/mediastream/video-rotation tests are failing due to missing ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Philippe Normand
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-30 20:52 PDT by Lauro Moura
Modified: 2021-10-18 06:08 PDT (History)
16 users (show)

See Also:


Attachments
Patch (30.32 KB, patch)
2021-10-18 01:55 PDT, Philippe Normand
calvaris: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lauro Moura 2021-09-30 20:52:48 PDT
fast/mediastream/video-rotation.html
fast/mediastream/video-rotation-gpu-process-crash.html

Added in 242095@main and 242172@main respectively.

Test fails with an empty ErrorEvent raised trying to load a dataURL image from testRunner.takeViewPortSnapshot (new method, only implemented in Cocoa).
Comment 1 Philippe Normand 2021-10-06 04:51:42 PDT
Also, WKPageSetMockCameraOrientation is not implemented for non-cocoa ports...
Comment 2 Philippe Normand 2021-10-18 01:55:02 PDT
Created attachment 441572 [details]
Patch
Comment 3 Xabier Rodríguez Calvar 2021-10-18 02:31:52 PDT
Comment on attachment 441572 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=441572&action=review

> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:3013
> +        GST_DEBUG_OBJECT(pad.get(), "No sticky tag event, applying no rotation.");

This message is confusing, since it says you're not applying rotation but you're applying orientation in the end. Or maybe I'm misunderstanding...
Comment 4 Philippe Normand 2021-10-18 03:16:21 PDT
Comment on attachment 441572 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=441572&action=review

>> Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:3013
>> +        GST_DEBUG_OBJECT(pad.get(), "No sticky tag event, applying no rotation.");
> 
> This message is confusing, since it says you're not applying rotation but you're applying orientation in the end. Or maybe I'm misunderstanding...

Ah yes, bad consequence of the refactor, this was previously in !tagsEvent scope. Nice catch!
Comment 5 Philippe Normand 2021-10-18 06:07:33 PDT
Committed r284368 (243153@main): <https://commits.webkit.org/243153@main>
Comment 6 Radar WebKit Bug Importer 2021-10-18 06:08:18 PDT
<rdar://problem/84367556>