tests: Fix OSR paint test bounds query race

Ignore element bounds queries for paint-only OSR tests. These tests
can start from OnPaint before the asynchronous bounds query arrives,
causing a false started-state assertion failure.
This commit is contained in:
Marshall Greenblatt committed 2026-09-24 14:02:27 -04:00
1 parent 12add0082f
commit 30b4fc6c8d
1 file changed
+4
+4
View File
@@ -498,6 +498,10 @@ class OSRTestHandler : public RoutingTestHandler,
const std::string& messageStr = request;
if (messageStr.length() > 0 && messageStr[0] == '{') {
// Paint-only tests do not use element bounds.
if (test_type_ == OSR_TEST_PAINT || test_type_ == OSR_TEST_TRANSPARENCY) {
return true;
}
return HandleBoundsQuery(browser, frame, query_id, request, persistent,
callback);
}