ports/www/chromium/patches/patch-chrome_test_chromedriver_capabilities_cc

28 lines
939 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: chrome/test/chromedriver/capabilities.cc
--- chrome/test/chromedriver/capabilities.cc.orig
+++ chrome/test/chromedriver/capabilities.cc
2023-09-14 00:49:35 +00:00
@@ -346,7 +346,11 @@ Status ParseMobileEmulation(const base::Value& option,
2023-08-16 22:26:55 +00:00
"'version' field of type string");
}
+#if defined(__clang__) && (__clang_major__ >= 15)
brands.emplace_back(*brand, *version);
+#else
2023-08-18 18:38:43 +00:00
+ brands.emplace_back() = {*brand, *version};
2023-08-16 22:26:55 +00:00
+#endif
}
client_hints.brands = std::move(brands);
2023-09-14 00:49:35 +00:00
@@ -384,7 +388,11 @@ Status ParseMobileEmulation(const base::Value& option,
2023-08-16 22:26:55 +00:00
"a 'version' field of type string");
}
+#if defined(__clang__) && (__clang_major__ >= 15)
full_version_list.emplace_back(*brand, *version);
+#else
2023-08-18 18:38:43 +00:00
+ full_version_list.emplace_back() = {*brand, *version};
2023-08-16 22:26:55 +00:00
+#endif
}
client_hints.full_version_list = std::move(full_version_list);