Skip to content

Commit 8c814e1

Browse files
RDK-54100: [testRunner] Use "visible" activity state to hide parent view
Reason for change: Parent view is susspended during TC execution and is not able to handle timeouts Test Procedure: Run testRunner Priority: P1 Risks: None Signed-off-by: Andrzej Surdej <[email protected]>
1 parent 69b15e3 commit 8c814e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

WebKitBrowser/Testing/testrunner.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ void TestRunnerImpl::setParentVisibility(bool visible) {
158158
auto* backend = webkit_web_view_backend_get_wpe_backend(webkit_web_view_get_backend(m_parentView));
159159
assert(backend);
160160
if (visible) {
161+
// Setting the activity state to "visible" alone doesn’t bring the view back to the screen
161162
wpe_view_backend_add_activity_state(backend, wpe_view_activity_state_in_window);
163+
wpe_view_backend_add_activity_state(backend, wpe_view_activity_state_visible);
162164
} else {
163-
wpe_view_backend_remove_activity_state(backend, wpe_view_activity_state_in_window);
165+
wpe_view_backend_remove_activity_state(backend, wpe_view_activity_state_visible);
164166
}
165167
}
166168

0 commit comments

Comments
 (0)