Bug 1571567 - Fix no-fallthrough errors in /browser. r=MattN,k88hudson

Differential Revision: https://phabricator.services.mozilla.com/D40745
This commit is contained in:
Jared Wein
2019-08-08 15:18:49 +00:00
parent e4a54b42e1
commit a559a71435
12 changed files with 13 additions and 6 deletions

View File

@@ -3183,6 +3183,7 @@ class HandlerInfoWrapper {
if (this instanceof InternalHandlerInfoWrapper) {
return "ask";
}
break;
case kActionUsePlugin:
return "plugin";
@@ -3201,10 +3202,10 @@ class HandlerInfoWrapper {
if (gMainPane.isValidHandlerApp(preferredApp)) {
return gMainPane._getIconURLForHandlerApp(preferredApp);
}
// Explicit fall-through
// This should never happen, but if preferredAction is set to some weird
// value, then fall back to the generic application icon.
// Explicit fall-through
default:
return ICON_URL_APP;
}