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

Function updateNavigationUI

wvbrowser_ui/controls_ui/default.js:380–409  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

378}
379
380function updateNavigationUI(reason) {
381 switch (reason) {
382 case commands.MG_UPDATE_URI:
383 updateURI();
384 updateFavoriteIcon();
385 updateBackForwardButtons();
386 break;
387 case commands.MG_NAV_COMPLETED:
388 case commands.MG_NAV_STARTING:
389 updateReloadButton();
390 break;
391 case commands.MG_SECURITY_UPDATE:
392 updateLockIcon();
393 break;
394 case commands.MG_UPDATE_FAVICON:
395 updateFavicon();
396 break;
397 // If a reason is not provided (for requests not originating from a
398 // message), default to switch tab behavior.
399 default:
400 case commands.MG_SWITCH_TAB:
401 updateURI();
402 updateLockIcon();
403 updateFavicon();
404 updateFavoriteIcon();
405 updateReloadButton();
406 updateBackForwardButtons();
407 break;
408 }
409}
410
411function loadTabUI(tabId) {
412 if (isValidTabId(tabId)) {

Callers 4

switchToTabFunction · 0.85
updatedFaviconURIHandlerFunction · 0.85
messageHandlerFunction · 0.85
refreshControlsFunction · 0.85

Calls 6

updateURIFunction · 0.85
updateFavoriteIconFunction · 0.85
updateBackForwardButtonsFunction · 0.85
updateReloadButtonFunction · 0.85
updateLockIconFunction · 0.85
updateFaviconFunction · 0.85

Tested by

no test coverage detected