diff --git a/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc b/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc index 00caab7ba084..f1b0531b39ae 100644 --- a/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc +++ b/chromium_src/third_party/blink/renderer/modules/plugins/dom_plugin_array.cc @@ -103,11 +103,14 @@ void FarblePlugins(DOMPluginArray* owner, BraveSessionCache::From(*(frame->DomWindow())) .GenerateRandomString("PLUGIN_1_DESCRIPTION", 32), 0, false); + Vector fake_plugin_extensions_1{ + BraveSessionCache::From(*(frame->DomWindow())) + .GenerateRandomString("PLUGIN_1_EXTENSION", 3)}; auto* fake_mime_info_1 = MakeGarbageCollected( "", BraveSessionCache::From(*(frame->DomWindow())) .GenerateRandomString("MIME_1_DESCRIPTION", 32), - *fake_plugin_info_1); + *fake_plugin_info_1, fake_plugin_extensions_1); fake_plugin_info_1->AddMimeType(fake_mime_info_1); auto* fake_dom_plugin_1 = MakeGarbageCollected( frame->DomWindow(), *fake_plugin_info_1); @@ -121,11 +124,14 @@ void FarblePlugins(DOMPluginArray* owner, BraveSessionCache::From(*(frame->DomWindow())) .GenerateRandomString("PLUGIN_2_DESCRIPTION", 31), 0, false); + Vector fake_plugin_extensions_2{ + BraveSessionCache::From(*(frame->DomWindow())) + .GenerateRandomString("PLUGIN_2_EXTENSION", 3)}; auto* fake_mime_info_2 = MakeGarbageCollected( "", BraveSessionCache::From(*(frame->DomWindow())) .GenerateRandomString("MIME_2_DESCRIPTION", 32), - *fake_plugin_info_2); + *fake_plugin_info_2, fake_plugin_extensions_2); fake_plugin_info_2->AddMimeType(fake_mime_info_2); auto* fake_dom_plugin_2 = MakeGarbageCollected( frame->DomWindow(), *fake_plugin_info_2);