mirror of
https://github.com/aphrody-labs/cef.git
synced 2026-10-13 21:07:07 +00:00
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:
1 parent
12add0082f
commit
30b4fc6c8d
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user