diff --git a/browser/gui/BUILD b/browser/gui/BUILD index 1cd1c6e3e..067cb14f1 100644 --- a/browser/gui/BUILD +++ b/browser/gui/BUILD @@ -20,6 +20,7 @@ cc_binary( "//os:system_info", "//protocol", "//render", + "//type:sfml", "//uri", "//util:history", "@fmt", diff --git a/browser/gui/app.h b/browser/gui/app.h index ec3bf0bc5..49df16673 100644 --- a/browser/gui/app.h +++ b/browser/gui/app.h @@ -11,6 +11,7 @@ #include "gfx/sfml_canvas.h" #include "layout/layout_box.h" #include "protocol/handler_factory.h" +#include "type/sfml.h" #include "uri/uri.h" #include "util/history.h" @@ -35,7 +36,8 @@ class App final { private: // Latest Firefox ESR user agent (on Windows). This matches what the Tor browser does. engine::Engine engine_{protocol::HandlerFactory::create( - "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0")}; + "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0"), + std::make_unique()}; bool page_loaded_{}; std::string browser_title_{};