diff --git a/chromium_src/third_party/blink/renderer/modules/broadcastchannel/broadcast_channel.cc b/chromium_src/third_party/blink/renderer/modules/broadcastchannel/broadcast_channel.cc index b25601a95e6..eca6ad88378 100644 --- a/chromium_src/third_party/blink/renderer/modules/broadcastchannel/broadcast_channel.cc +++ b/chromium_src/third_party/blink/renderer/modules/broadcastchannel/broadcast_channel.cc @@ -3,26 +3,22 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include "third_party/blink/public/mojom/broadcastchannel/broadcast_channel.mojom-blink.h" +#include "third_party/blink/renderer/core/frame/local_frame.h" #include "third_party/blink/renderer/modules/storage/brave_dom_window_storage.h" +#include "third_party/blink/renderer/platform/weborigin/security_origin_hash.h" -// Ephemeral origin substitution is applied only to frame-based +// Ephemeral origin channel name altering is applied only to frame-based // ExecutionContexts. This is fine because any Worker-based context still // wouldn't be able to communicate with a frame in both directions because a // frame-based BroadcastChannel will use an ephemeral origin instead of the one // the worker is using. -#define ConnectToChannel \ - Version_; \ - { \ - LocalDOMWindow* window = DynamicTo(execution_context); \ - if (window) { \ - if (auto* origin = GetEphemeralStorageOrigin(window)) { \ - origin_ = origin; \ - } \ - } \ - } \ - provider->ConnectToChannel +#define GetRemoteNavigationAssociatedInterfaces \ + should_send_resource_timing_info_to_parent(); /* no-op */ \ + if (auto* origin = GetEphemeralStorageOrigin(window)) { \ + name_ = name_ + String::Number(SecurityOriginHash::GetHash(origin)); \ + } \ + frame->GetRemoteNavigationAssociatedInterfaces #include "../../../../../../../third_party/blink/renderer/modules/broadcastchannel/broadcast_channel.cc" -#undef ConnectToChannel +#undef GetRemoteNavigationAssociatedInterfaces