Skip to content

Commit 40e8e89

Browse files
committed
Fixed year, format & wait for load stop in test.
1 parent 14e16ed commit 40e8e89

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

browser/tor/test/samesite_strict_cookie_tor_browsertest.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 The Brave Authors. All rights reserved.
1+
/* Copyright (c) 2026 The Brave Authors. All rights reserved.
22
* This Source Code Form is subject to the terms of the Mozilla Public
33
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
44
* You can obtain one at https://mozilla.org/MPL/2.0/. */
@@ -24,8 +24,7 @@ namespace {
2424

2525
constexpr char kSiteA[] = "a.test";
2626
constexpr char kSiteB[] = "b.test";
27-
constexpr char kSameSiteStrictCookie[] =
28-
"strict_cookie=1; ; SameSite=Strict; Path=/";
27+
constexpr char kSameSiteStrictCookie[] = "strict_cookie=1; SameSite=Strict";
2928

3029
std::unique_ptr<net::test_server::HttpResponse> HandleSetStrictCookie(
3130
const net::test_server::HttpRequest& request) {
@@ -92,7 +91,7 @@ IN_PROC_BROWSER_TEST_F(SameSiteStrictCookieTorBrowserTest,
9291
content::TestNavigationObserver observer(view_cookies_url);
9392
observer.StartWatchingNewWebContents();
9493
menu.ExecuteCommand(IDC_CONTENT_CONTEXT_OPENLINKTOR, 0);
95-
observer.WaitForNavigationFinished();
94+
observer.Wait();
9695

9796
auto* web_contents = tor_browser->tab_strip_model()->GetActiveWebContents();
9897
return content::EvalJs(web_contents, "document.body.textContent") == "None";

chromium_src/chrome/browser/renderer_context_menu/render_view_context_menu.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void BraveRenderViewContextMenu::ExecuteCommand(int id, int event_flags) {
470470
TorProfileManager::SwitchToTorProfile(GetProfile());
471471
if (tor_browser) {
472472
OnTorProfileCreated(params_.link_url, params_.frame_origin,
473-
has_tor_window, tor_browser);
473+
has_tor_window, tor_browser);
474474
}
475475
} break;
476476
#endif

0 commit comments

Comments
 (0)