Skip to content

Truly independent web browser

LibWebView: Show no tab favicon for a site's embedded frames

Andreas Kling7d6bde41fdda
diff --git a/Libraries/LibWebView/ProcessSnapshot.cpp b/Libraries/LibWebView/ProcessSnapshot.cpp
index 6a468a426c9..54a6d6f6ba8 100644
--- a/Libraries/LibWebView/ProcessSnapshot.cpp
+++ b/Libraries/LibWebView/ProcessSnapshot.cpp
@@ -94,7 +94,8 @@ Vector<ProcessSnapshot> process_snapshots(ProcessManager& manager)
.view_id = page->view->view_id(),
.url = page->url,
.kind = page->kind,
- .favicon_hash = page->view->favicon_hash(),
+ // NB: The view's favicon is its top-level page's, which an embedded frame of another site does not share.
+ .favicon_hash = page->kind == ProcessPageKind::TopLevel ? page->view->favicon_hash() : Optional<String> {},
};
}
snapshots.append(move(snapshot));