Jelajahi Sumber

LibWeb: Remove usage of URL::set_path() in FrameLoader

This replaces a call to URL::set_path() with URL::set_paths(), as
set_path() will be deprecated and removed.
Max Wipfli 4 tahun lalu
induk
melakukan
1c4854824b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      Userland/Libraries/LibWeb/Loader/FrameLoader.cpp

+ 1 - 1
Userland/Libraries/LibWeb/Loader/FrameLoader.cpp

@@ -158,7 +158,7 @@ bool FrameLoader::load(const LoadRequest& request, Type type)
         favicon_url.set_protocol(url.protocol());
         favicon_url.set_host(url.host());
         favicon_url.set_port(url.port());
-        favicon_url.set_path("/favicon.ico");
+        favicon_url.set_paths({ "favicon.ico" });
 
         ResourceLoader::the().load(
             favicon_url,