Преглед на файлове

LibWeb: Fix the update of the favicon during navigation

The check on the currently active document for an existing favicon has
been removed. It caused an issue during navigation because the active
document will only be updated after the load and the favicon check has
been executed against the old document.
Emil Militzer преди 2 години
родител
ревизия
50af15e6b8
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      Userland/Libraries/LibWeb/Loader/FrameLoader.cpp

+ 0 - 4
Userland/Libraries/LibWeb/Loader/FrameLoader.cpp

@@ -267,10 +267,6 @@ bool FrameLoader::load(LoadRequest& request, Type type)
     if (type == Type::IFrame)
     if (type == Type::IFrame)
         return true;
         return true;
 
 
-    auto* document = browsing_context().active_document();
-    if (document && document->has_active_favicon())
-        return true;
-
     if (url.scheme() == "http" || url.scheme() == "https") {
     if (url.scheme() == "http" || url.scheme() == "https") {
         AK::URL favicon_url;
         AK::URL favicon_url;
         favicon_url.set_scheme(url.scheme());
         favicon_url.set_scheme(url.scheme());