Update to Chromium version 122.0.6261.0 (#1250580)

Frame identifiers have changed from int64_t to string type. This is due
to https://crbug.com/1502660 which removes access to frame routing IDs
in the renderer process. New cross-process frame identifiers are 160-bit
values (32-bit child process ID + 128-bit local frame token) and most
easily represented as strings. All other frame-related expectations and
behaviors remain the same.
This commit is contained in:
Marshall Greenblatt
2024-01-25 21:12:43 -05:00
parent 2a86a02bdd
commit 2f1e782f62
156 changed files with 1452 additions and 1436 deletions

View File

@ -1263,8 +1263,9 @@ class OSRTestHandler : public RoutingTestHandler,
auto current_browser = GetBrowser();
EXPECT_TRUE(current_browser->IsSame(browser));
EXPECT_EQ(current_browser->GetFocusedFrame()->GetIdentifier(),
frame->GetIdentifier());
EXPECT_STREQ(
current_browser->GetFocusedFrame()->GetIdentifier().ToString().c_str(),
frame->GetIdentifier().ToString().c_str());
if (test_type_ == OSR_TEST_QUICK_MENU) {
EXPECT_EQ(2U, got_touch_handle_enabled_ct_);
@ -1302,8 +1303,9 @@ class OSRTestHandler : public RoutingTestHandler,
auto current_browser = GetBrowser();
EXPECT_TRUE(current_browser->IsSame(browser));
EXPECT_EQ(current_browser->GetFocusedFrame()->GetIdentifier(),
frame->GetIdentifier());
EXPECT_STREQ(
current_browser->GetFocusedFrame()->GetIdentifier().ToString().c_str(),
frame->GetIdentifier().ToString().c_str());
EXPECT_EQ(OSR_TEST_QUICK_MENU, test_type_);
@ -1340,8 +1342,9 @@ class OSRTestHandler : public RoutingTestHandler,
auto current_browser = GetBrowser();
EXPECT_TRUE(current_browser->IsSame(browser));
EXPECT_EQ(current_browser->GetFocusedFrame()->GetIdentifier(),
frame->GetIdentifier());
EXPECT_STREQ(
current_browser->GetFocusedFrame()->GetIdentifier().ToString().c_str(),
frame->GetIdentifier().ToString().c_str());
EXPECT_EQ(OSR_TEST_QUICK_MENU, test_type_);
@ -1369,8 +1372,9 @@ class OSRTestHandler : public RoutingTestHandler,
auto current_browser = GetBrowser();
EXPECT_TRUE(current_browser->IsSame(browser));
EXPECT_EQ(current_browser->GetFocusedFrame()->GetIdentifier(),
frame->GetIdentifier());
EXPECT_STREQ(
current_browser->GetFocusedFrame()->GetIdentifier().ToString().c_str(),
frame->GetIdentifier().ToString().c_str());
EXPECT_EQ(OSR_TEST_QUICK_MENU, test_type_);