MCPcopy Create free account
hub / github.com/MicrosoftEdge/WebView2Browser / updateFavicon

Function updateFavicon

wvbrowser_ui/controls_ui/default.js:265–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

263
264// Show active tab's favicon in the address bar
265function updateFavicon() {
266 if (activeTabId == INVALID_TAB_ID) {
267 return;
268 }
269
270 let activeTab = tabs.get(activeTabId);
271
272 let faviconElement = document.getElementById('img-favicon');
273 if (!faviconElement) {
274 refreshControls();
275 return;
276 }
277
278 faviconElement.src = activeTab.favicon;
279
280}
281
282// Update back and forward buttons for the active tab
283function updateBackForwardButtons() {

Callers 1

updateNavigationUIFunction · 0.85

Calls 1

refreshControlsFunction · 0.85

Tested by

no test coverage detected